source: main/trunk/gs2-core/common-src/configure@ 21694

Last change on this file since 21694 was 21626, checked in by mdewsnip, 14 years ago

Changed the SQLite configure command so the --bindir argument is passed through to it correctly.

  • Property svn:executable set to *
File size: 127.7 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for greenstone2-common-src 2.84.
4#
5# Report bugs to <[email protected]>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for 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
45do
46 if (set +x; test -z "`(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
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo 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.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if 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
99fi
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
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
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
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
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
154done
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
189case `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= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if 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
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='greenstone2-common-src'
271PACKAGE_TARNAME='greenstone2-common-src'
272PACKAGE_VERSION='2.84'
273PACKAGE_STRING='greenstone2-common-src 2.84'
274PACKAGE_BUGREPORT='[email protected]'
275
276ac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os COMPAT32BITFLAGS ENABLE_LUCENE_TRUE ENABLE_LUCENE_FALSE USE_SQLITE_TRUE USE_SQLITE_FALSE LIBOBJS LTLIBOBJS'
277ac_subst_files=''
278
279# Initialize some variables set by options.
280ac_init_help=
281ac_init_version=false
282# The variables have the same names as the options, with
283# dashes changed to underlines.
284cache_file=/dev/null
285exec_prefix=NONE
286no_create=
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
295verbose=
296x_includes=NONE
297x_libraries=NONE
298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
307datadir='${prefix}/share'
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
311libdir='${exec_prefix}/lib'
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
314infodir='${prefix}/info'
315mandir='${prefix}/man'
316
317ac_prev=
318for ac_option
319do
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
323 ac_prev=
324 continue
325 fi
326
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
331 case $ac_option in
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336 bindir=$ac_optarg ;;
337
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
352
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
357 datadir=$ac_optarg ;;
358
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
367
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
400
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
421 libdir=$ac_optarg ;;
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442 mandir=$ac_optarg ;;
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468 prefix=$ac_optarg ;;
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
509 sbindir=$ac_optarg ;;
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
520 sharedstatedir=$ac_optarg ;;
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
525 site=$ac_optarg ;;
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530 srcdir=$ac_optarg ;;
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
549
550 -with-* | --with-*)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
562
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
589
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
593 ;;
594
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
603 export $ac_envvar ;;
604
605 *)
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
620fi
621
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
624do
625 eval ac_val=$`echo $ac_var`
626 case $ac_val in
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631done
632
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
636do
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
642 esac
643done
644
645# There might be people who depend on the old broken behavior: `$host'
646# used to hold the argument of --host etc.
647# FIXME: To remove some day.
648build=$build_alias
649host=$host_alias
650target=$target_alias
651
652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
667
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
679echo X"$0" |
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
685 srcdir=$ac_confdir
686 if test ! -r $srcdir/$ac_unique_file; then
687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
699 fi
700fi
701(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
717ac_env_CXX_set=${CXX+set}
718ac_env_CXX_value=$CXX
719ac_cv_env_CXX_set=${CXX+set}
720ac_cv_env_CXX_value=$CXX
721ac_env_CXXFLAGS_set=${CXXFLAGS+set}
722ac_env_CXXFLAGS_value=$CXXFLAGS
723ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
724ac_cv_env_CXXFLAGS_value=$CXXFLAGS
725ac_env_LDFLAGS_set=${LDFLAGS+set}
726ac_env_LDFLAGS_value=$LDFLAGS
727ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728ac_cv_env_LDFLAGS_value=$LDFLAGS
729ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730ac_env_CPPFLAGS_value=$CPPFLAGS
731ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_cv_env_CPPFLAGS_value=$CPPFLAGS
733
734#
735# Report the --help message.
736#
737if test "$ac_init_help" = "long"; then
738 # Omit some internal or obsolete options to make the list less imposing.
739 # This message is too long to be a string in the A/UX 3.1 sh.
740 cat <<_ACEOF
741\`configure' configures greenstone2-common-src 2.84 to adapt to many kinds of systems.
742
743Usage: $0 [OPTION]... [VAR=VALUE]...
744
745To assign environment variables (e.g., CC, CFLAGS...), specify them as
746VAR=VALUE. See below for descriptions of some of the useful variables.
747
748Defaults for the options are specified in brackets.
749
750Configuration:
751 -h, --help display this help and exit
752 --help=short display options specific to this package
753 --help=recursive display the short help of all the included packages
754 -V, --version display version information and exit
755 -q, --quiet, --silent do not print \`checking...' messages
756 --cache-file=FILE cache test results in FILE [disabled]
757 -C, --config-cache alias for \`--cache-file=config.cache'
758 -n, --no-create do not create output files
759 --srcdir=DIR find the sources in DIR [configure dir or \`..']
760
761_ACEOF
762
763 cat <<_ACEOF
764Installation directories:
765 --prefix=PREFIX install architecture-independent files in PREFIX
766 [$ac_default_prefix]
767 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
768 [PREFIX]
769
770By default, \`make install' will install all the files in
771\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
772an installation prefix other than \`$ac_default_prefix' using \`--prefix',
773for instance \`--prefix=\$HOME'.
774
775For better control, use the options below.
776
777Fine tuning of the installation directories:
778 --bindir=DIR user executables [EPREFIX/bin]
779 --sbindir=DIR system admin executables [EPREFIX/sbin]
780 --libexecdir=DIR program executables [EPREFIX/libexec]
781 --datadir=DIR read-only architecture-independent data [PREFIX/share]
782 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
783 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
784 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
785 --libdir=DIR object code libraries [EPREFIX/lib]
786 --includedir=DIR C header files [PREFIX/include]
787 --oldincludedir=DIR C header files for non-gcc [/usr/include]
788 --infodir=DIR info documentation [PREFIX/info]
789 --mandir=DIR man documentation [PREFIX/man]
790_ACEOF
791
792 cat <<\_ACEOF
793
794Program names:
795 --program-prefix=PREFIX prepend PREFIX to installed program names
796 --program-suffix=SUFFIX append SUFFIX to installed program names
797 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
798
799System types:
800 --build=BUILD configure for building on BUILD [guessed]
801 --host=HOST cross-compile to build programs to run on HOST [BUILD]
802_ACEOF
803fi
804
805if test -n "$ac_init_help"; then
806 case $ac_init_help in
807 short | recursive ) echo "Configuration of greenstone2-common-src 2.84:";;
808 esac
809 cat <<\_ACEOF
810
811Optional Features:
812 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
813 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
814 --disable-dependency-tracking speeds up one-time build
815 --enable-dependency-tracking do not reject slow dependency extractors
816 --disable-lucene Disable Lucene support
817 --disable-sqlite Disable SQLite support
818
819Some influential environment variables:
820 CXX C++ compiler command
821 CXXFLAGS C++ compiler flags
822 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
823 nonstandard directory <lib dir>
824 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
825 headers in a nonstandard directory <include dir>
826
827Use these variables to override the choices made by `configure' or to help
828it to find libraries and programs with nonstandard names/locations.
829
830Report bugs to <[email protected]>.
831_ACEOF
832fi
833
834if test "$ac_init_help" = "recursive"; then
835 # If there are subdirs, report their specific --help.
836 ac_popdir=`pwd`
837 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
838 test -d $ac_dir || continue
839 ac_builddir=.
840
841if test "$ac_dir" != .; then
842 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
843 # A "../" for each directory in $ac_dir_suffix.
844 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
845else
846 ac_dir_suffix= ac_top_builddir=
847fi
848
849case $srcdir in
850 .) # No --srcdir option. We are building in place.
851 ac_srcdir=.
852 if test -z "$ac_top_builddir"; then
853 ac_top_srcdir=.
854 else
855 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
856 fi ;;
857 [\\/]* | ?:[\\/]* ) # Absolute path.
858 ac_srcdir=$srcdir$ac_dir_suffix;
859 ac_top_srcdir=$srcdir ;;
860 *) # Relative path.
861 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
862 ac_top_srcdir=$ac_top_builddir$srcdir ;;
863esac
864
865# Do not use `cd foo && pwd` to compute absolute paths, because
866# the directories may not exist.
867case `pwd` in
868.) ac_abs_builddir="$ac_dir";;
869*)
870 case "$ac_dir" in
871 .) ac_abs_builddir=`pwd`;;
872 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
873 *) ac_abs_builddir=`pwd`/"$ac_dir";;
874 esac;;
875esac
876case $ac_abs_builddir in
877.) ac_abs_top_builddir=${ac_top_builddir}.;;
878*)
879 case ${ac_top_builddir}. in
880 .) ac_abs_top_builddir=$ac_abs_builddir;;
881 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
882 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
883 esac;;
884esac
885case $ac_abs_builddir in
886.) ac_abs_srcdir=$ac_srcdir;;
887*)
888 case $ac_srcdir in
889 .) ac_abs_srcdir=$ac_abs_builddir;;
890 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
891 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
892 esac;;
893esac
894case $ac_abs_builddir in
895.) ac_abs_top_srcdir=$ac_top_srcdir;;
896*)
897 case $ac_top_srcdir in
898 .) ac_abs_top_srcdir=$ac_abs_builddir;;
899 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
900 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
901 esac;;
902esac
903
904 cd $ac_dir
905 # Check for guested configure; otherwise get Cygnus style configure.
906 if test -f $ac_srcdir/configure.gnu; then
907 echo
908 $SHELL $ac_srcdir/configure.gnu --help=recursive
909 elif test -f $ac_srcdir/configure; then
910 echo
911 $SHELL $ac_srcdir/configure --help=recursive
912 elif test -f $ac_srcdir/configure.ac ||
913 test -f $ac_srcdir/configure.in; then
914 echo
915 $ac_configure --help
916 else
917 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
918 fi
919 cd $ac_popdir
920 done
921fi
922
923test -n "$ac_init_help" && exit 0
924if $ac_init_version; then
925 cat <<\_ACEOF
926greenstone2-common-src configure 2.84
927generated by GNU Autoconf 2.59
928
929Copyright (C) 2003 Free Software Foundation, Inc.
930This configure script is free software; the Free Software Foundation
931gives unlimited permission to copy, distribute and modify it.
932_ACEOF
933 exit 0
934fi
935exec 5>config.log
936cat >&5 <<_ACEOF
937This file contains any messages produced by compilers while
938running configure, to aid debugging if configure makes a mistake.
939
940It was created by greenstone2-common-src $as_me 2.84, which was
941generated by GNU Autoconf 2.59. Invocation command line was
942
943 $ $0 $@
944
945_ACEOF
946{
947cat <<_ASUNAME
948## --------- ##
949## Platform. ##
950## --------- ##
951
952hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
953uname -m = `(uname -m) 2>/dev/null || echo unknown`
954uname -r = `(uname -r) 2>/dev/null || echo unknown`
955uname -s = `(uname -s) 2>/dev/null || echo unknown`
956uname -v = `(uname -v) 2>/dev/null || echo unknown`
957
958/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
959/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
960
961/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
962/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
963/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
964hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
965/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
966/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
967/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
968
969_ASUNAME
970
971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
972for as_dir in $PATH
973do
974 IFS=$as_save_IFS
975 test -z "$as_dir" && as_dir=.
976 echo "PATH: $as_dir"
977done
978
979} >&5
980
981cat >&5 <<_ACEOF
982
983
984## ----------- ##
985## Core tests. ##
986## ----------- ##
987
988_ACEOF
989
990
991# Keep a trace of the command line.
992# Strip out --no-create and --no-recursion so they do not pile up.
993# Strip out --silent because we don't want to record it for future runs.
994# Also quote any args containing shell meta-characters.
995# Make two passes to allow for proper duplicate-argument suppression.
996ac_configure_args=
997ac_configure_args0=
998ac_configure_args1=
999ac_sep=
1000ac_must_keep_next=false
1001for ac_pass in 1 2
1002do
1003 for ac_arg
1004 do
1005 case $ac_arg in
1006 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1008 | -silent | --silent | --silen | --sile | --sil)
1009 continue ;;
1010 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1011 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1012 esac
1013 case $ac_pass in
1014 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1015 2)
1016 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1017 if test $ac_must_keep_next = true; then
1018 ac_must_keep_next=false # Got value, back to normal.
1019 else
1020 case $ac_arg in
1021 *=* | --config-cache | -C | -disable-* | --disable-* \
1022 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1023 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1024 | -with-* | --with-* | -without-* | --without-* | --x)
1025 case "$ac_configure_args0 " in
1026 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1027 esac
1028 ;;
1029 -* ) ac_must_keep_next=true ;;
1030 esac
1031 fi
1032 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1033 # Get rid of the leading space.
1034 ac_sep=" "
1035 ;;
1036 esac
1037 done
1038done
1039$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1040$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1041
1042# When interrupted or exit'd, cleanup temporary files, and complete
1043# config.log. We remove comments because anyway the quotes in there
1044# would cause problems or look ugly.
1045# WARNING: Be sure not to use single quotes in there, as some shells,
1046# such as our DU 5.0 friend, will then `close' the trap.
1047trap 'exit_status=$?
1048 # Save into config.log some information that might help in debugging.
1049 {
1050 echo
1051
1052 cat <<\_ASBOX
1053## ---------------- ##
1054## Cache variables. ##
1055## ---------------- ##
1056_ASBOX
1057 echo
1058 # The following way of writing the cache mishandles newlines in values,
1059{
1060 (set) 2>&1 |
1061 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1062 *ac_space=\ *)
1063 sed -n \
1064 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1066 ;;
1067 *)
1068 sed -n \
1069 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1070 ;;
1071 esac;
1072}
1073 echo
1074
1075 cat <<\_ASBOX
1076## ----------------- ##
1077## Output variables. ##
1078## ----------------- ##
1079_ASBOX
1080 echo
1081 for ac_var in $ac_subst_vars
1082 do
1083 eval ac_val=$`echo $ac_var`
1084 echo "$ac_var='"'"'$ac_val'"'"'"
1085 done | sort
1086 echo
1087
1088 if test -n "$ac_subst_files"; then
1089 cat <<\_ASBOX
1090## ------------- ##
1091## Output files. ##
1092## ------------- ##
1093_ASBOX
1094 echo
1095 for ac_var in $ac_subst_files
1096 do
1097 eval ac_val=$`echo $ac_var`
1098 echo "$ac_var='"'"'$ac_val'"'"'"
1099 done | sort
1100 echo
1101 fi
1102
1103 if test -s confdefs.h; then
1104 cat <<\_ASBOX
1105## ----------- ##
1106## confdefs.h. ##
1107## ----------- ##
1108_ASBOX
1109 echo
1110 sed "/^$/d" confdefs.h | sort
1111 echo
1112 fi
1113 test "$ac_signal" != 0 &&
1114 echo "$as_me: caught signal $ac_signal"
1115 echo "$as_me: exit $exit_status"
1116 } >&5
1117 rm -f core *.core &&
1118 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1119 exit $exit_status
1120 ' 0
1121for ac_signal in 1 2 13 15; do
1122 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1123done
1124ac_signal=0
1125
1126# confdefs.h avoids OS command line length limits that DEFS can exceed.
1127rm -rf conftest* confdefs.h
1128# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1129echo >confdefs.h
1130
1131# Predefined preprocessor variables.
1132
1133cat >>confdefs.h <<_ACEOF
1134#define PACKAGE_NAME "$PACKAGE_NAME"
1135_ACEOF
1136
1137
1138cat >>confdefs.h <<_ACEOF
1139#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1140_ACEOF
1141
1142
1143cat >>confdefs.h <<_ACEOF
1144#define PACKAGE_VERSION "$PACKAGE_VERSION"
1145_ACEOF
1146
1147
1148cat >>confdefs.h <<_ACEOF
1149#define PACKAGE_STRING "$PACKAGE_STRING"
1150_ACEOF
1151
1152
1153cat >>confdefs.h <<_ACEOF
1154#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1155_ACEOF
1156
1157
1158# Let the site file select an alternate cache file if it wants to.
1159# Prefer explicitly selected file to automatically selected ones.
1160if test -z "$CONFIG_SITE"; then
1161 if test "x$prefix" != xNONE; then
1162 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1163 else
1164 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1165 fi
1166fi
1167for ac_site_file in $CONFIG_SITE; do
1168 if test -r "$ac_site_file"; then
1169 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1170echo "$as_me: loading site script $ac_site_file" >&6;}
1171 sed 's/^/| /' "$ac_site_file" >&5
1172 . "$ac_site_file"
1173 fi
1174done
1175
1176if test -r "$cache_file"; then
1177 # Some versions of bash will fail to source /dev/null (special
1178 # files actually), so we avoid doing that.
1179 if test -f "$cache_file"; then
1180 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1181echo "$as_me: loading cache $cache_file" >&6;}
1182 case $cache_file in
1183 [\\/]* | ?:[\\/]* ) . $cache_file;;
1184 *) . ./$cache_file;;
1185 esac
1186 fi
1187else
1188 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1189echo "$as_me: creating cache $cache_file" >&6;}
1190 >$cache_file
1191fi
1192
1193# Check that the precious variables saved in the cache have kept the same
1194# value.
1195ac_cache_corrupted=false
1196for ac_var in `(set) 2>&1 |
1197 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1198 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1199 eval ac_new_set=\$ac_env_${ac_var}_set
1200 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1201 eval ac_new_val="\$ac_env_${ac_var}_value"
1202 case $ac_old_set,$ac_new_set in
1203 set,)
1204 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1205echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1206 ac_cache_corrupted=: ;;
1207 ,set)
1208 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1209echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1210 ac_cache_corrupted=: ;;
1211 ,);;
1212 *)
1213 if test "x$ac_old_val" != "x$ac_new_val"; then
1214 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1215echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1216 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1217echo "$as_me: former value: $ac_old_val" >&2;}
1218 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1219echo "$as_me: current value: $ac_new_val" >&2;}
1220 ac_cache_corrupted=:
1221 fi;;
1222 esac
1223 # Pass precious variables to config.status.
1224 if test "$ac_new_set" = set; then
1225 case $ac_new_val in
1226 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1227 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1228 *) ac_arg=$ac_var=$ac_new_val ;;
1229 esac
1230 case " $ac_configure_args " in
1231 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1232 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1233 esac
1234 fi
1235done
1236if $ac_cache_corrupted; then
1237 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1238echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1239 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1240echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1241 { (exit 1); exit 1; }; }
1242fi
1243
1244ac_ext=c
1245ac_cpp='$CPP $CPPFLAGS'
1246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1248ac_compiler_gnu=$ac_cv_c_compiler_gnu
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276ac_aux_dir=
1277for ac_dir in . $srcdir/.; do
1278 if test -f $ac_dir/install-sh; then
1279 ac_aux_dir=$ac_dir
1280 ac_install_sh="$ac_aux_dir/install-sh -c"
1281 break
1282 elif test -f $ac_dir/install.sh; then
1283 ac_aux_dir=$ac_dir
1284 ac_install_sh="$ac_aux_dir/install.sh -c"
1285 break
1286 elif test -f $ac_dir/shtool; then
1287 ac_aux_dir=$ac_dir
1288 ac_install_sh="$ac_aux_dir/shtool install -c"
1289 break
1290 fi
1291done
1292if test -z "$ac_aux_dir"; then
1293 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1294echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1295 { (exit 1); exit 1; }; }
1296fi
1297ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1298ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1299ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1300
1301 ac_config_headers="$ac_config_headers config.h"
1302
1303am__api_version="1.9"
1304# Find a good install program. We prefer a C program (faster),
1305# so one script is as good as another. But avoid the broken or
1306# incompatible versions:
1307# SysV /etc/install, /usr/sbin/install
1308# SunOS /usr/etc/install
1309# IRIX /sbin/install
1310# AIX /bin/install
1311# AmigaOS /C/install, which installs bootblocks on floppy discs
1312# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1313# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1314# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1315# OS/2's system install, which has a completely different semantic
1316# ./install, which can be erroneously created by make from ./install.sh.
1317echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1318echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1319if test -z "$INSTALL"; then
1320if test "${ac_cv_path_install+set}" = set; then
1321 echo $ECHO_N "(cached) $ECHO_C" >&6
1322else
1323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1324for as_dir in $PATH
1325do
1326 IFS=$as_save_IFS
1327 test -z "$as_dir" && as_dir=.
1328 # Account for people who put trailing slashes in PATH elements.
1329case $as_dir/ in
1330 ./ | .// | /cC/* | \
1331 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1332 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1333 /usr/ucb/* ) ;;
1334 *)
1335 # OSF1 and SCO ODT 3.0 have their own names for install.
1336 # Don't use installbsd from OSF since it installs stuff as root
1337 # by default.
1338 for ac_prog in ginstall scoinst install; do
1339 for ac_exec_ext in '' $ac_executable_extensions; do
1340 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1341 if test $ac_prog = install &&
1342 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1343 # AIX install. It has an incompatible calling convention.
1344 :
1345 elif test $ac_prog = install &&
1346 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1347 # program-specific install script used by HP pwplus--don't use.
1348 :
1349 else
1350 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1351 break 3
1352 fi
1353 fi
1354 done
1355 done
1356 ;;
1357esac
1358done
1359
1360
1361fi
1362 if test "${ac_cv_path_install+set}" = set; then
1363 INSTALL=$ac_cv_path_install
1364 else
1365 # As a last resort, use the slow shell script. We don't cache a
1366 # path for INSTALL within a source directory, because that will
1367 # break other packages using the cache if that directory is
1368 # removed, or if the path is relative.
1369 INSTALL=$ac_install_sh
1370 fi
1371fi
1372echo "$as_me:$LINENO: result: $INSTALL" >&5
1373echo "${ECHO_T}$INSTALL" >&6
1374
1375# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1376# It thinks the first close brace ends the variable substitution.
1377test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1378
1379test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1380
1381test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1382
1383echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1384echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1385# Just in case
1386sleep 1
1387echo timestamp > conftest.file
1388# Do `set' in a subshell so we don't clobber the current shell's
1389# arguments. Must try -L first in case configure is actually a
1390# symlink; some systems play weird games with the mod time of symlinks
1391# (eg FreeBSD returns the mod time of the symlink's containing
1392# directory).
1393if (
1394 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1395 if test "$*" = "X"; then
1396 # -L didn't work.
1397 set X `ls -t $srcdir/configure conftest.file`
1398 fi
1399 rm -f conftest.file
1400 if test "$*" != "X $srcdir/configure conftest.file" \
1401 && test "$*" != "X conftest.file $srcdir/configure"; then
1402
1403 # If neither matched, then we have a broken ls. This can happen
1404 # if, for instance, CONFIG_SHELL is bash and it inherits a
1405 # broken ls alias from the environment. This has actually
1406 # happened. Such a system could not be considered "sane".
1407 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1408alias in your environment" >&5
1409echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1410alias in your environment" >&2;}
1411 { (exit 1); exit 1; }; }
1412 fi
1413
1414 test "$2" = conftest.file
1415 )
1416then
1417 # Ok.
1418 :
1419else
1420 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1421Check your system clock" >&5
1422echo "$as_me: error: newly created file is older than distributed files!
1423Check your system clock" >&2;}
1424 { (exit 1); exit 1; }; }
1425fi
1426echo "$as_me:$LINENO: result: yes" >&5
1427echo "${ECHO_T}yes" >&6
1428test "$program_prefix" != NONE &&
1429 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1430# Use a double $ so make ignores it.
1431test "$program_suffix" != NONE &&
1432 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1433# Double any \ or $. echo might interpret backslashes.
1434# By default was `s,x,x', remove it if useless.
1435cat <<\_ACEOF >conftest.sed
1436s/[\\$]/&&/g;s/;s,x,x,$//
1437_ACEOF
1438program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1439rm conftest.sed
1440
1441# expand $ac_aux_dir to an absolute path
1442am_aux_dir=`cd $ac_aux_dir && pwd`
1443
1444test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1445# Use eval to expand $SHELL
1446if eval "$MISSING --run true"; then
1447 am_missing_run="$MISSING --run "
1448else
1449 am_missing_run=
1450 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1451echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1452fi
1453
1454if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1455 # We used to keeping the `.' as first argument, in order to
1456 # allow $(mkdir_p) to be used without argument. As in
1457 # $(mkdir_p) $(somedir)
1458 # where $(somedir) is conditionally defined. However this is wrong
1459 # for two reasons:
1460 # 1. if the package is installed by a user who cannot write `.'
1461 # make install will fail,
1462 # 2. the above comment should most certainly read
1463 # $(mkdir_p) $(DESTDIR)$(somedir)
1464 # so it does not work when $(somedir) is undefined and
1465 # $(DESTDIR) is not.
1466 # To support the latter case, we have to write
1467 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1468 # so the `.' trick is pointless.
1469 mkdir_p='mkdir -p --'
1470else
1471 # On NextStep and OpenStep, the `mkdir' command does not
1472 # recognize any option. It will interpret all options as
1473 # directories to create, and then abort because `.' already
1474 # exists.
1475 for d in ./-p ./--version;
1476 do
1477 test -d $d && rmdir $d
1478 done
1479 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1480 if test -f "$ac_aux_dir/mkinstalldirs"; then
1481 mkdir_p='$(mkinstalldirs)'
1482 else
1483 mkdir_p='$(install_sh) -d'
1484 fi
1485fi
1486
1487for ac_prog in gawk mawk nawk awk
1488do
1489 # Extract the first word of "$ac_prog", so it can be a program name with args.
1490set dummy $ac_prog; ac_word=$2
1491echo "$as_me:$LINENO: checking for $ac_word" >&5
1492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1493if test "${ac_cv_prog_AWK+set}" = set; then
1494 echo $ECHO_N "(cached) $ECHO_C" >&6
1495else
1496 if test -n "$AWK"; then
1497 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1498else
1499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500for as_dir in $PATH
1501do
1502 IFS=$as_save_IFS
1503 test -z "$as_dir" && as_dir=.
1504 for ac_exec_ext in '' $ac_executable_extensions; do
1505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1506 ac_cv_prog_AWK="$ac_prog"
1507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1508 break 2
1509 fi
1510done
1511done
1512
1513fi
1514fi
1515AWK=$ac_cv_prog_AWK
1516if test -n "$AWK"; then
1517 echo "$as_me:$LINENO: result: $AWK" >&5
1518echo "${ECHO_T}$AWK" >&6
1519else
1520 echo "$as_me:$LINENO: result: no" >&5
1521echo "${ECHO_T}no" >&6
1522fi
1523
1524 test -n "$AWK" && break
1525done
1526
1527echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1528echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1529set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1530if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1532else
1533 cat >conftest.make <<\_ACEOF
1534all:
1535 @echo 'ac_maketemp="$(MAKE)"'
1536_ACEOF
1537# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1538eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1539if test -n "$ac_maketemp"; then
1540 eval ac_cv_prog_make_${ac_make}_set=yes
1541else
1542 eval ac_cv_prog_make_${ac_make}_set=no
1543fi
1544rm -f conftest.make
1545fi
1546if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1547 echo "$as_me:$LINENO: result: yes" >&5
1548echo "${ECHO_T}yes" >&6
1549 SET_MAKE=
1550else
1551 echo "$as_me:$LINENO: result: no" >&5
1552echo "${ECHO_T}no" >&6
1553 SET_MAKE="MAKE=${MAKE-make}"
1554fi
1555
1556rm -rf .tst 2>/dev/null
1557mkdir .tst 2>/dev/null
1558if test -d .tst; then
1559 am__leading_dot=.
1560else
1561 am__leading_dot=_
1562fi
1563rmdir .tst 2>/dev/null
1564
1565# test to see if srcdir already configured
1566if test "`cd $srcdir && pwd`" != "`pwd`" &&
1567 test -f $srcdir/config.status; then
1568 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1569echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1570 { (exit 1); exit 1; }; }
1571fi
1572
1573# test whether we have cygpath
1574if test -z "$CYGPATH_W"; then
1575 if (cygpath --version) >/dev/null 2>/dev/null; then
1576 CYGPATH_W='cygpath -w'
1577 else
1578 CYGPATH_W=echo
1579 fi
1580fi
1581
1582
1583# Define the identity of the package.
1584 PACKAGE='greenstone2-common-src'
1585 VERSION='2.84'
1586
1587
1588# Some tools Automake needs.
1589
1590ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1591
1592
1593AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1594
1595
1596AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1597
1598
1599AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1600
1601
1602MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1603
1604install_sh=${install_sh-"$am_aux_dir/install-sh"}
1605
1606# Installed binaries are usually stripped using `strip' when the user
1607# run `make install-strip'. However `strip' might not be the right
1608# tool to use in cross-compilation environments, therefore Automake
1609# will honor the `STRIP' environment variable to overrule this program.
1610if test "$cross_compiling" != no; then
1611 if test -n "$ac_tool_prefix"; then
1612 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1613set dummy ${ac_tool_prefix}strip; ac_word=$2
1614echo "$as_me:$LINENO: checking for $ac_word" >&5
1615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1616if test "${ac_cv_prog_STRIP+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1618else
1619 if test -n "$STRIP"; then
1620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1621else
1622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623for as_dir in $PATH
1624do
1625 IFS=$as_save_IFS
1626 test -z "$as_dir" && as_dir=.
1627 for ac_exec_ext in '' $ac_executable_extensions; do
1628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1629 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631 break 2
1632 fi
1633done
1634done
1635
1636fi
1637fi
1638STRIP=$ac_cv_prog_STRIP
1639if test -n "$STRIP"; then
1640 echo "$as_me:$LINENO: result: $STRIP" >&5
1641echo "${ECHO_T}$STRIP" >&6
1642else
1643 echo "$as_me:$LINENO: result: no" >&5
1644echo "${ECHO_T}no" >&6
1645fi
1646
1647fi
1648if test -z "$ac_cv_prog_STRIP"; then
1649 ac_ct_STRIP=$STRIP
1650 # Extract the first word of "strip", so it can be a program name with args.
1651set dummy strip; ac_word=$2
1652echo "$as_me:$LINENO: checking for $ac_word" >&5
1653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1656else
1657 if test -n "$ac_ct_STRIP"; then
1658 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1659else
1660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661for as_dir in $PATH
1662do
1663 IFS=$as_save_IFS
1664 test -z "$as_dir" && as_dir=.
1665 for ac_exec_ext in '' $ac_executable_extensions; do
1666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1667 ac_cv_prog_ac_ct_STRIP="strip"
1668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669 break 2
1670 fi
1671done
1672done
1673
1674 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1675fi
1676fi
1677ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1678if test -n "$ac_ct_STRIP"; then
1679 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1680echo "${ECHO_T}$ac_ct_STRIP" >&6
1681else
1682 echo "$as_me:$LINENO: result: no" >&5
1683echo "${ECHO_T}no" >&6
1684fi
1685
1686 STRIP=$ac_ct_STRIP
1687else
1688 STRIP="$ac_cv_prog_STRIP"
1689fi
1690
1691fi
1692INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1693
1694# We need awk for the "check" target. The system "awk" is bad on
1695# some platforms.
1696# Always define AMTAR for backward compatibility.
1697
1698AMTAR=${AMTAR-"${am_missing_run}tar"}
1699
1700am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1701
1702
1703
1704
1705
1706
1707# This package requires C++ compilation and library creation
1708ac_ext=cc
1709ac_cpp='$CXXCPP $CPPFLAGS'
1710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1713if test -n "$ac_tool_prefix"; then
1714 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1715 do
1716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1717set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1718echo "$as_me:$LINENO: checking for $ac_word" >&5
1719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720if test "${ac_cv_prog_CXX+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1722else
1723 if test -n "$CXX"; then
1724 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1725else
1726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727for as_dir in $PATH
1728do
1729 IFS=$as_save_IFS
1730 test -z "$as_dir" && as_dir=.
1731 for ac_exec_ext in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 break 2
1736 fi
1737done
1738done
1739
1740fi
1741fi
1742CXX=$ac_cv_prog_CXX
1743if test -n "$CXX"; then
1744 echo "$as_me:$LINENO: result: $CXX" >&5
1745echo "${ECHO_T}$CXX" >&6
1746else
1747 echo "$as_me:$LINENO: result: no" >&5
1748echo "${ECHO_T}no" >&6
1749fi
1750
1751 test -n "$CXX" && break
1752 done
1753fi
1754if test -z "$CXX"; then
1755 ac_ct_CXX=$CXX
1756 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1757do
1758 # Extract the first word of "$ac_prog", so it can be a program name with args.
1759set dummy $ac_prog; ac_word=$2
1760echo "$as_me:$LINENO: checking for $ac_word" >&5
1761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1764else
1765 if test -n "$ac_ct_CXX"; then
1766 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1767else
1768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769for as_dir in $PATH
1770do
1771 IFS=$as_save_IFS
1772 test -z "$as_dir" && as_dir=.
1773 for ac_exec_ext in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 ac_cv_prog_ac_ct_CXX="$ac_prog"
1776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 break 2
1778 fi
1779done
1780done
1781
1782fi
1783fi
1784ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1785if test -n "$ac_ct_CXX"; then
1786 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1787echo "${ECHO_T}$ac_ct_CXX" >&6
1788else
1789 echo "$as_me:$LINENO: result: no" >&5
1790echo "${ECHO_T}no" >&6
1791fi
1792
1793 test -n "$ac_ct_CXX" && break
1794done
1795test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1796
1797 CXX=$ac_ct_CXX
1798fi
1799
1800
1801# Provide some information about the compiler.
1802echo "$as_me:$LINENO:" \
1803 "checking for C++ compiler version" >&5
1804ac_compiler=`set X $ac_compile; echo $2`
1805{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1806 (eval $ac_compiler --version </dev/null >&5) 2>&5
1807 ac_status=$?
1808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809 (exit $ac_status); }
1810{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1811 (eval $ac_compiler -v </dev/null >&5) 2>&5
1812 ac_status=$?
1813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814 (exit $ac_status); }
1815{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1816 (eval $ac_compiler -V </dev/null >&5) 2>&5
1817 ac_status=$?
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); }
1820
1821cat >conftest.$ac_ext <<_ACEOF
1822/* confdefs.h. */
1823_ACEOF
1824cat confdefs.h >>conftest.$ac_ext
1825cat >>conftest.$ac_ext <<_ACEOF
1826/* end confdefs.h. */
1827
1828int
1829main ()
1830{
1831
1832 ;
1833 return 0;
1834}
1835_ACEOF
1836ac_clean_files_save=$ac_clean_files
1837ac_clean_files="$ac_clean_files a.out a.exe b.out"
1838# Try to create an executable without -o first, disregard a.out.
1839# It will help us diagnose broken compilers, and finding out an intuition
1840# of exeext.
1841echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1842echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1843ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1844if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1845 (eval $ac_link_default) 2>&5
1846 ac_status=$?
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }; then
1849 # Find the output, starting from the most likely. This scheme is
1850# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1851# resort.
1852
1853# Be careful to initialize this variable, since it used to be cached.
1854# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1855ac_cv_exeext=
1856# b.out is created by i960 compilers.
1857for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1858do
1859 test -f "$ac_file" || continue
1860 case $ac_file in
1861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1862 ;;
1863 conftest.$ac_ext )
1864 # This is the source file.
1865 ;;
1866 [ab].out )
1867 # We found the default executable, but exeext='' is most
1868 # certainly right.
1869 break;;
1870 *.* )
1871 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1872 # FIXME: I believe we export ac_cv_exeext for Libtool,
1873 # but it would be cool to find out if it's true. Does anybody
1874 # maintain Libtool? --akim.
1875 export ac_cv_exeext
1876 break;;
1877 * )
1878 break;;
1879 esac
1880done
1881else
1882 echo "$as_me: failed program was:" >&5
1883sed 's/^/| /' conftest.$ac_ext >&5
1884
1885{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1886See \`config.log' for more details." >&5
1887echo "$as_me: error: C++ compiler cannot create executables
1888See \`config.log' for more details." >&2;}
1889 { (exit 77); exit 77; }; }
1890fi
1891
1892ac_exeext=$ac_cv_exeext
1893echo "$as_me:$LINENO: result: $ac_file" >&5
1894echo "${ECHO_T}$ac_file" >&6
1895
1896# Check the compiler produces executables we can run. If not, either
1897# the compiler is broken, or we cross compile.
1898echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1899echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1900# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1901# If not cross compiling, check that we can run a simple program.
1902if test "$cross_compiling" != yes; then
1903 if { ac_try='./$ac_file'
1904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1905 (eval $ac_try) 2>&5
1906 ac_status=$?
1907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908 (exit $ac_status); }; }; then
1909 cross_compiling=no
1910 else
1911 if test "$cross_compiling" = maybe; then
1912 cross_compiling=yes
1913 else
1914 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1915If you meant to cross compile, use \`--host'.
1916See \`config.log' for more details." >&5
1917echo "$as_me: error: cannot run C++ compiled programs.
1918If you meant to cross compile, use \`--host'.
1919See \`config.log' for more details." >&2;}
1920 { (exit 1); exit 1; }; }
1921 fi
1922 fi
1923fi
1924echo "$as_me:$LINENO: result: yes" >&5
1925echo "${ECHO_T}yes" >&6
1926
1927rm -f a.out a.exe conftest$ac_cv_exeext b.out
1928ac_clean_files=$ac_clean_files_save
1929# Check the compiler produces executables we can run. If not, either
1930# the compiler is broken, or we cross compile.
1931echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1932echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1933echo "$as_me:$LINENO: result: $cross_compiling" >&5
1934echo "${ECHO_T}$cross_compiling" >&6
1935
1936echo "$as_me:$LINENO: checking for suffix of executables" >&5
1937echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1939 (eval $ac_link) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; then
1943 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1944# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1945# work properly (i.e., refer to `conftest.exe'), while it won't with
1946# `rm'.
1947for ac_file in conftest.exe conftest conftest.*; do
1948 test -f "$ac_file" || continue
1949 case $ac_file in
1950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1951 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1952 export ac_cv_exeext
1953 break;;
1954 * ) break;;
1955 esac
1956done
1957else
1958 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1959See \`config.log' for more details." >&5
1960echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1961See \`config.log' for more details." >&2;}
1962 { (exit 1); exit 1; }; }
1963fi
1964
1965rm -f conftest$ac_cv_exeext
1966echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1967echo "${ECHO_T}$ac_cv_exeext" >&6
1968
1969rm -f conftest.$ac_ext
1970EXEEXT=$ac_cv_exeext
1971ac_exeext=$EXEEXT
1972echo "$as_me:$LINENO: checking for suffix of object files" >&5
1973echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1974if test "${ac_cv_objext+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976else
1977 cat >conftest.$ac_ext <<_ACEOF
1978/* confdefs.h. */
1979_ACEOF
1980cat confdefs.h >>conftest.$ac_ext
1981cat >>conftest.$ac_ext <<_ACEOF
1982/* end confdefs.h. */
1983
1984int
1985main ()
1986{
1987
1988 ;
1989 return 0;
1990}
1991_ACEOF
1992rm -f conftest.o conftest.obj
1993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1994 (eval $ac_compile) 2>&5
1995 ac_status=$?
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }; then
1998 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1999 case $ac_file in
2000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2001 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2002 break;;
2003 esac
2004done
2005else
2006 echo "$as_me: failed program was:" >&5
2007sed 's/^/| /' conftest.$ac_ext >&5
2008
2009{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2010See \`config.log' for more details." >&5
2011echo "$as_me: error: cannot compute suffix of object files: cannot compile
2012See \`config.log' for more details." >&2;}
2013 { (exit 1); exit 1; }; }
2014fi
2015
2016rm -f conftest.$ac_cv_objext conftest.$ac_ext
2017fi
2018echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2019echo "${ECHO_T}$ac_cv_objext" >&6
2020OBJEXT=$ac_cv_objext
2021ac_objext=$OBJEXT
2022echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2023echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2024if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026else
2027 cat >conftest.$ac_ext <<_ACEOF
2028/* confdefs.h. */
2029_ACEOF
2030cat confdefs.h >>conftest.$ac_ext
2031cat >>conftest.$ac_ext <<_ACEOF
2032/* end confdefs.h. */
2033
2034int
2035main ()
2036{
2037#ifndef __GNUC__
2038 choke me
2039#endif
2040
2041 ;
2042 return 0;
2043}
2044_ACEOF
2045rm -f conftest.$ac_objext
2046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2047 (eval $ac_compile) 2>conftest.er1
2048 ac_status=$?
2049 grep -v '^ *+' conftest.er1 >conftest.err
2050 rm -f conftest.er1
2051 cat conftest.err >&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); } &&
2054 { ac_try='test -z "$ac_cxx_werror_flag"
2055 || test ! -s conftest.err'
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057 (eval $ac_try) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; } &&
2061 { ac_try='test -s conftest.$ac_objext'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 (eval $ac_try) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; }; then
2067 ac_compiler_gnu=yes
2068else
2069 echo "$as_me: failed program was:" >&5
2070sed 's/^/| /' conftest.$ac_ext >&5
2071
2072ac_compiler_gnu=no
2073fi
2074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2075ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2076
2077fi
2078echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2079echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2080GXX=`test $ac_compiler_gnu = yes && echo yes`
2081ac_test_CXXFLAGS=${CXXFLAGS+set}
2082ac_save_CXXFLAGS=$CXXFLAGS
2083CXXFLAGS="-g"
2084echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2085echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2086if test "${ac_cv_prog_cxx_g+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2088else
2089 cat >conftest.$ac_ext <<_ACEOF
2090/* confdefs.h. */
2091_ACEOF
2092cat confdefs.h >>conftest.$ac_ext
2093cat >>conftest.$ac_ext <<_ACEOF
2094/* end confdefs.h. */
2095
2096int
2097main ()
2098{
2099
2100 ;
2101 return 0;
2102}
2103_ACEOF
2104rm -f conftest.$ac_objext
2105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2106 (eval $ac_compile) 2>conftest.er1
2107 ac_status=$?
2108 grep -v '^ *+' conftest.er1 >conftest.err
2109 rm -f conftest.er1
2110 cat conftest.err >&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); } &&
2113 { ac_try='test -z "$ac_cxx_werror_flag"
2114 || test ! -s conftest.err'
2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116 (eval $ac_try) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; } &&
2120 { ac_try='test -s conftest.$ac_objext'
2121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122 (eval $ac_try) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; }; then
2126 ac_cv_prog_cxx_g=yes
2127else
2128 echo "$as_me: failed program was:" >&5
2129sed 's/^/| /' conftest.$ac_ext >&5
2130
2131ac_cv_prog_cxx_g=no
2132fi
2133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2134fi
2135echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2136echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2137if test "$ac_test_CXXFLAGS" = set; then
2138 CXXFLAGS=$ac_save_CXXFLAGS
2139elif test $ac_cv_prog_cxx_g = yes; then
2140 if test "$GXX" = yes; then
2141 CXXFLAGS="-g -O2"
2142 else
2143 CXXFLAGS="-g"
2144 fi
2145else
2146 if test "$GXX" = yes; then
2147 CXXFLAGS="-O2"
2148 else
2149 CXXFLAGS=
2150 fi
2151fi
2152for ac_declaration in \
2153 '' \
2154 'extern "C" void std::exit (int) throw (); using std::exit;' \
2155 'extern "C" void std::exit (int); using std::exit;' \
2156 'extern "C" void exit (int) throw ();' \
2157 'extern "C" void exit (int);' \
2158 'void exit (int);'
2159do
2160 cat >conftest.$ac_ext <<_ACEOF
2161/* confdefs.h. */
2162_ACEOF
2163cat confdefs.h >>conftest.$ac_ext
2164cat >>conftest.$ac_ext <<_ACEOF
2165/* end confdefs.h. */
2166$ac_declaration
2167#include <stdlib.h>
2168int
2169main ()
2170{
2171exit (42);
2172 ;
2173 return 0;
2174}
2175_ACEOF
2176rm -f conftest.$ac_objext
2177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2178 (eval $ac_compile) 2>conftest.er1
2179 ac_status=$?
2180 grep -v '^ *+' conftest.er1 >conftest.err
2181 rm -f conftest.er1
2182 cat conftest.err >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); } &&
2185 { ac_try='test -z "$ac_cxx_werror_flag"
2186 || test ! -s conftest.err'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; } &&
2192 { ac_try='test -s conftest.$ac_objext'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 (eval $ac_try) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
2198 :
2199else
2200 echo "$as_me: failed program was:" >&5
2201sed 's/^/| /' conftest.$ac_ext >&5
2202
2203continue
2204fi
2205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2206 cat >conftest.$ac_ext <<_ACEOF
2207/* confdefs.h. */
2208_ACEOF
2209cat confdefs.h >>conftest.$ac_ext
2210cat >>conftest.$ac_ext <<_ACEOF
2211/* end confdefs.h. */
2212$ac_declaration
2213int
2214main ()
2215{
2216exit (42);
2217 ;
2218 return 0;
2219}
2220_ACEOF
2221rm -f conftest.$ac_objext
2222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2223 (eval $ac_compile) 2>conftest.er1
2224 ac_status=$?
2225 grep -v '^ *+' conftest.er1 >conftest.err
2226 rm -f conftest.er1
2227 cat conftest.err >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); } &&
2230 { ac_try='test -z "$ac_cxx_werror_flag"
2231 || test ! -s conftest.err'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 (eval $ac_try) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; } &&
2237 { ac_try='test -s conftest.$ac_objext'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 (eval $ac_try) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; }; then
2243 break
2244else
2245 echo "$as_me: failed program was:" >&5
2246sed 's/^/| /' conftest.$ac_ext >&5
2247
2248fi
2249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2250done
2251rm -f conftest*
2252if test -n "$ac_declaration"; then
2253 echo '#ifdef __cplusplus' >>confdefs.h
2254 echo $ac_declaration >>confdefs.h
2255 echo '#endif' >>confdefs.h
2256fi
2257
2258ac_ext=c
2259ac_cpp='$CPP $CPPFLAGS'
2260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2262ac_compiler_gnu=$ac_cv_c_compiler_gnu
2263DEPDIR="${am__leading_dot}deps"
2264
2265 ac_config_commands="$ac_config_commands depfiles"
2266
2267
2268am_make=${MAKE-make}
2269cat > confinc << 'END'
2270am__doit:
2271 @echo done
2272.PHONY: am__doit
2273END
2274# If we don't find an include directive, just comment out the code.
2275echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2276echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2277am__include="#"
2278am__quote=
2279_am_result=none
2280# First try GNU make style include.
2281echo "include confinc" > confmf
2282# We grep out `Entering directory' and `Leaving directory'
2283# messages which can occur if `w' ends up in MAKEFLAGS.
2284# In particular we don't look at `^make:' because GNU make might
2285# be invoked under some other name (usually "gmake"), in which
2286# case it prints its new name instead of `make'.
2287if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2288 am__include=include
2289 am__quote=
2290 _am_result=GNU
2291fi
2292# Now try BSD make style include.
2293if test "$am__include" = "#"; then
2294 echo '.include "confinc"' > confmf
2295 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2296 am__include=.include
2297 am__quote="\""
2298 _am_result=BSD
2299 fi
2300fi
2301
2302
2303echo "$as_me:$LINENO: result: $_am_result" >&5
2304echo "${ECHO_T}$_am_result" >&6
2305rm -f confinc confmf
2306
2307# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2308if test "${enable_dependency_tracking+set}" = set; then
2309 enableval="$enable_dependency_tracking"
2310
2311fi;
2312if test "x$enable_dependency_tracking" != xno; then
2313 am_depcomp="$ac_aux_dir/depcomp"
2314 AMDEPBACKSLASH='\'
2315fi
2316
2317
2318if test "x$enable_dependency_tracking" != xno; then
2319 AMDEP_TRUE=
2320 AMDEP_FALSE='#'
2321else
2322 AMDEP_TRUE='#'
2323 AMDEP_FALSE=
2324fi
2325
2326
2327
2328
2329depcc="$CXX" am_compiler_list=
2330
2331echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2332echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2333if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335else
2336 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2337 # We make a subdir and do the tests there. Otherwise we can end up
2338 # making bogus files that we don't know about and never remove. For
2339 # instance it was reported that on HP-UX the gcc test will end up
2340 # making a dummy file named `D' -- because `-MD' means `put the output
2341 # in D'.
2342 mkdir conftest.dir
2343 # Copy depcomp to subdir because otherwise we won't find it if we're
2344 # using a relative directory.
2345 cp "$am_depcomp" conftest.dir
2346 cd conftest.dir
2347 # We will build objects and dependencies in a subdirectory because
2348 # it helps to detect inapplicable dependency modes. For instance
2349 # both Tru64's cc and ICC support -MD to output dependencies as a
2350 # side effect of compilation, but ICC will put the dependencies in
2351 # the current directory while Tru64 will put them in the object
2352 # directory.
2353 mkdir sub
2354
2355 am_cv_CXX_dependencies_compiler_type=none
2356 if test "$am_compiler_list" = ""; then
2357 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2358 fi
2359 for depmode in $am_compiler_list; do
2360 # Setup a source with many dependencies, because some compilers
2361 # like to wrap large dependency lists on column 80 (with \), and
2362 # we should not choose a depcomp mode which is confused by this.
2363 #
2364 # We need to recreate these files for each test, as the compiler may
2365 # overwrite some of them when testing with obscure command lines.
2366 # This happens at least with the AIX C compiler.
2367 : > sub/conftest.c
2368 for i in 1 2 3 4 5 6; do
2369 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2370 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2371 # Solaris 8's {/usr,}/bin/sh.
2372 touch sub/conftst$i.h
2373 done
2374 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2375
2376 case $depmode in
2377 nosideeffect)
2378 # after this tag, mechanisms are not by side-effect, so they'll
2379 # only be used when explicitly requested
2380 if test "x$enable_dependency_tracking" = xyes; then
2381 continue
2382 else
2383 break
2384 fi
2385 ;;
2386 none) break ;;
2387 esac
2388 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2389 # mode. It turns out that the SunPro C++ compiler does not properly
2390 # handle `-M -o', and we need to detect this.
2391 if depmode=$depmode \
2392 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2393 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2394 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2395 >/dev/null 2>conftest.err &&
2396 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2397 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2398 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2399 # icc doesn't choke on unknown options, it will just issue warnings
2400 # or remarks (even with -Werror). So we grep stderr for any message
2401 # that says an option was ignored or not supported.
2402 # When given -MP, icc 7.0 and 7.1 complain thusly:
2403 # icc: Command line warning: ignoring option '-M'; no argument required
2404 # The diagnosis changed in icc 8.0:
2405 # icc: Command line remark: option '-MP' not supported
2406 if (grep 'ignoring option' conftest.err ||
2407 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2408 am_cv_CXX_dependencies_compiler_type=$depmode
2409 break
2410 fi
2411 fi
2412 done
2413
2414 cd ..
2415 rm -rf conftest.dir
2416else
2417 am_cv_CXX_dependencies_compiler_type=none
2418fi
2419
2420fi
2421echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2422echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2423CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2424
2425
2426
2427if
2428 test "x$enable_dependency_tracking" != xno \
2429 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2430 am__fastdepCXX_TRUE=
2431 am__fastdepCXX_FALSE='#'
2432else
2433 am__fastdepCXX_TRUE='#'
2434 am__fastdepCXX_FALSE=
2435fi
2436
2437
2438# Find a good install program. We prefer a C program (faster),
2439# so one script is as good as another. But avoid the broken or
2440# incompatible versions:
2441# SysV /etc/install, /usr/sbin/install
2442# SunOS /usr/etc/install
2443# IRIX /sbin/install
2444# AIX /bin/install
2445# AmigaOS /C/install, which installs bootblocks on floppy discs
2446# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2447# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2448# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2449# OS/2's system install, which has a completely different semantic
2450# ./install, which can be erroneously created by make from ./install.sh.
2451echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2452echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2453if test -z "$INSTALL"; then
2454if test "${ac_cv_path_install+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2456else
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458for as_dir in $PATH
2459do
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
2462 # Account for people who put trailing slashes in PATH elements.
2463case $as_dir/ in
2464 ./ | .// | /cC/* | \
2465 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2466 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2467 /usr/ucb/* ) ;;
2468 *)
2469 # OSF1 and SCO ODT 3.0 have their own names for install.
2470 # Don't use installbsd from OSF since it installs stuff as root
2471 # by default.
2472 for ac_prog in ginstall scoinst install; do
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2475 if test $ac_prog = install &&
2476 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2477 # AIX install. It has an incompatible calling convention.
2478 :
2479 elif test $ac_prog = install &&
2480 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2481 # program-specific install script used by HP pwplus--don't use.
2482 :
2483 else
2484 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2485 break 3
2486 fi
2487 fi
2488 done
2489 done
2490 ;;
2491esac
2492done
2493
2494
2495fi
2496 if test "${ac_cv_path_install+set}" = set; then
2497 INSTALL=$ac_cv_path_install
2498 else
2499 # As a last resort, use the slow shell script. We don't cache a
2500 # path for INSTALL within a source directory, because that will
2501 # break other packages using the cache if that directory is
2502 # removed, or if the path is relative.
2503 INSTALL=$ac_install_sh
2504 fi
2505fi
2506echo "$as_me:$LINENO: result: $INSTALL" >&5
2507echo "${ECHO_T}$INSTALL" >&6
2508
2509# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2510# It thinks the first close brace ends the variable substitution.
2511test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2512
2513test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2514
2515test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2516
2517if test -n "$ac_tool_prefix"; then
2518 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2519set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2520echo "$as_me:$LINENO: checking for $ac_word" >&5
2521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2522if test "${ac_cv_prog_RANLIB+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2524else
2525 if test -n "$RANLIB"; then
2526 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2527else
2528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529for as_dir in $PATH
2530do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2535 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 break 2
2538 fi
2539done
2540done
2541
2542fi
2543fi
2544RANLIB=$ac_cv_prog_RANLIB
2545if test -n "$RANLIB"; then
2546 echo "$as_me:$LINENO: result: $RANLIB" >&5
2547echo "${ECHO_T}$RANLIB" >&6
2548else
2549 echo "$as_me:$LINENO: result: no" >&5
2550echo "${ECHO_T}no" >&6
2551fi
2552
2553fi
2554if test -z "$ac_cv_prog_RANLIB"; then
2555 ac_ct_RANLIB=$RANLIB
2556 # Extract the first word of "ranlib", so it can be a program name with args.
2557set dummy ranlib; ac_word=$2
2558echo "$as_me:$LINENO: checking for $ac_word" >&5
2559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2560if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2562else
2563 if test -n "$ac_ct_RANLIB"; then
2564 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2565else
2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2573 ac_cv_prog_ac_ct_RANLIB="ranlib"
2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 break 2
2576 fi
2577done
2578done
2579
2580 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2581fi
2582fi
2583ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2584if test -n "$ac_ct_RANLIB"; then
2585 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2586echo "${ECHO_T}$ac_ct_RANLIB" >&6
2587else
2588 echo "$as_me:$LINENO: result: no" >&5
2589echo "${ECHO_T}no" >&6
2590fi
2591
2592 RANLIB=$ac_ct_RANLIB
2593else
2594 RANLIB="$ac_cv_prog_RANLIB"
2595fi
2596
2597
2598# Check for 64-bit machines
2599# Make sure we can run config.sub.
2600$ac_config_sub sun4 >/dev/null 2>&1 ||
2601 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2602echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2603 { (exit 1); exit 1; }; }
2604
2605echo "$as_me:$LINENO: checking build system type" >&5
2606echo $ECHO_N "checking build system type... $ECHO_C" >&6
2607if test "${ac_cv_build+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2609else
2610 ac_cv_build_alias=$build_alias
2611test -z "$ac_cv_build_alias" &&
2612 ac_cv_build_alias=`$ac_config_guess`
2613test -z "$ac_cv_build_alias" &&
2614 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2615echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2616 { (exit 1); exit 1; }; }
2617ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2618 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2619echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2620 { (exit 1); exit 1; }; }
2621
2622fi
2623echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2624echo "${ECHO_T}$ac_cv_build" >&6
2625build=$ac_cv_build
2626build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2627build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2628build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2629
2630
2631echo "$as_me:$LINENO: checking host system type" >&5
2632echo $ECHO_N "checking host system type... $ECHO_C" >&6
2633if test "${ac_cv_host+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2635else
2636 ac_cv_host_alias=$host_alias
2637test -z "$ac_cv_host_alias" &&
2638 ac_cv_host_alias=$ac_cv_build_alias
2639ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2640 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2641echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2642 { (exit 1); exit 1; }; }
2643
2644fi
2645echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2646echo "${ECHO_T}$ac_cv_host" >&6
2647host=$ac_cv_host
2648host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2649host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2650host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2651
2652
2653echo "$as_me:$LINENO: checking if architecture is 64-bit" >&5
2654echo $ECHO_N "checking if architecture is 64-bit... $ECHO_C" >&6
2655arch_64bit=no
2656case "$host_cpu" in
2657 x86_64) arch_64bit=yes ;;
2658esac
2659if test "$arch_64bit" = yes; then
2660 echo "$as_me:$LINENO: result: yes" >&5
2661echo "${ECHO_T}yes" >&6
2662 if test -z "$COMPAT32BITFLAGS" ; then
2663 COMPAT32BITFLAGS="-m32"
2664 fi
2665else
2666 echo "$as_me:$LINENO: result: no" >&5
2667echo "${ECHO_T}no" >&6
2668fi
2669
2670
2671# Option: Lucene support (enabled by default)
2672# Check whether --enable-lucene or --disable-lucene was given.
2673if test "${enable_lucene+set}" = set; then
2674 enableval="$enable_lucene"
2675
2676else
2677 enable_lucene=yes
2678fi;
2679if test "x$enable_lucene" != xno; then
2680
2681cat >>confdefs.h <<\_ACEOF
2682#define ENABLE_LUCENE 1
2683_ACEOF
2684
2685
2686 # Unpack Expat (if it hasn't already been done)
2687 if test ! -d "packages/expat/expat-1.95.8"; then
2688 cd packages/expat
2689 gzip -dc expat-1.95.8.tar.gz | tar -xf -
2690 cd ../..
2691 fi
2692
2693 # Configure Expat manually
2694 cd packages/expat/expat-1.95.8
2695 ./configure --prefix=`pwd`/..
2696 cd ../../..
2697fi
2698
2699
2700if test "x$enable_lucene" != xno; then
2701 ENABLE_LUCENE_TRUE=
2702 ENABLE_LUCENE_FALSE='#'
2703else
2704 ENABLE_LUCENE_TRUE='#'
2705 ENABLE_LUCENE_FALSE=
2706fi
2707
2708
2709# Option: SQLite support (enabled by default)
2710# Check whether --enable-sqlite or --disable-sqlite was given.
2711if test "${enable_sqlite+set}" = set; then
2712 enableval="$enable_sqlite"
2713
2714else
2715 enable_sqlite=yes
2716fi;
2717if test "x$enable_sqlite" != xno; then
2718
2719cat >>confdefs.h <<\_ACEOF
2720#define USE_SQLITE 1
2721_ACEOF
2722
2723
2724 # Unpack SQLite (if it hasn't already been done)
2725 if test ! -d "packages/sqlite/sqlite-amalgamation-3.5.9"; then
2726 cd packages/sqlite
2727 gzip -dc sqlite-amalgamation-3.5.9.tar.gz | tar -xf -
2728 cd ../..
2729 fi
2730
2731 # Configure SQLite manually
2732 cd packages/sqlite/sqlite-amalgamation-3.5.9
2733 ./configure --prefix=`pwd`/.. --bindir="$bindir"
2734 cd ../../..
2735fi
2736
2737
2738if test "x$enable_sqlite" != xno; then
2739 USE_SQLITE_TRUE=
2740 USE_SQLITE_FALSE='#'
2741else
2742 USE_SQLITE_TRUE='#'
2743 USE_SQLITE_FALSE=
2744fi
2745
2746
2747# Generate the Makefiles for this package
2748 ac_config_files="$ac_config_files Makefile src/lib/Makefile"
2749cat >confcache <<\_ACEOF
2750# This file is a shell script that caches the results of configure
2751# tests run on this system so they can be shared between configure
2752# scripts and configure runs, see configure's option --config-cache.
2753# It is not useful on other systems. If it contains results you don't
2754# want to keep, you may remove or edit it.
2755#
2756# config.status only pays attention to the cache file if you give it
2757# the --recheck option to rerun configure.
2758#
2759# `ac_cv_env_foo' variables (set or unset) will be overridden when
2760# loading this file, other *unset* `ac_cv_foo' will be assigned the
2761# following values.
2762
2763_ACEOF
2764
2765# The following way of writing the cache mishandles newlines in values,
2766# but we know of no workaround that is simple, portable, and efficient.
2767# So, don't put newlines in cache variables' values.
2768# Ultrix sh set writes to stderr and can't be redirected directly,
2769# and sets the high bit in the cache file unless we assign to the vars.
2770{
2771 (set) 2>&1 |
2772 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2773 *ac_space=\ *)
2774 # `set' does not quote correctly, so add quotes (double-quote
2775 # substitution turns \\\\ into \\, and sed turns \\ into \).
2776 sed -n \
2777 "s/'/'\\\\''/g;
2778 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2779 ;;
2780 *)
2781 # `set' quotes correctly as required by POSIX, so do not add quotes.
2782 sed -n \
2783 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2784 ;;
2785 esac;
2786} |
2787 sed '
2788 t clear
2789 : clear
2790 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2791 t end
2792 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2793 : end' >>confcache
2794if diff $cache_file confcache >/dev/null 2>&1; then :; else
2795 if test -w $cache_file; then
2796 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2797 cat confcache >$cache_file
2798 else
2799 echo "not updating unwritable cache $cache_file"
2800 fi
2801fi
2802rm -f confcache
2803
2804test "x$prefix" = xNONE && prefix=$ac_default_prefix
2805# Let make expand exec_prefix.
2806test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2807
2808# VPATH may cause trouble with some makes, so we remove $(srcdir),
2809# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2810# trailing colons and then remove the whole line if VPATH becomes empty
2811# (actually we leave an empty line to preserve line numbers).
2812if test "x$srcdir" = x.; then
2813 ac_vpsub='/^[ ]*VPATH[ ]*=/{
2814s/:*\$(srcdir):*/:/;
2815s/:*\${srcdir}:*/:/;
2816s/:*@srcdir@:*/:/;
2817s/^\([^=]*=[ ]*\):*/\1/;
2818s/:*$//;
2819s/^[^=]*=[ ]*$//;
2820}'
2821fi
2822
2823DEFS=-DHAVE_CONFIG_H
2824
2825ac_libobjs=
2826ac_ltlibobjs=
2827for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2828 # 1. Remove the extension, and $U if already installed.
2829 ac_i=`echo "$ac_i" |
2830 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
2831 # 2. Add them.
2832 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
2833 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2834done
2835LIBOBJS=$ac_libobjs
2836
2837LTLIBOBJS=$ac_ltlibobjs
2838
2839
2840if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
2841 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
2842Usually this means the macro was only invoked conditionally." >&5
2843echo "$as_me: error: conditional \"AMDEP\" was never defined.
2844Usually this means the macro was only invoked conditionally." >&2;}
2845 { (exit 1); exit 1; }; }
2846fi
2847if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
2848 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
2849Usually this means the macro was only invoked conditionally." >&5
2850echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
2851Usually this means the macro was only invoked conditionally." >&2;}
2852 { (exit 1); exit 1; }; }
2853fi
2854if test -z "${ENABLE_LUCENE_TRUE}" && test -z "${ENABLE_LUCENE_FALSE}"; then
2855 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LUCENE\" was never defined.
2856Usually this means the macro was only invoked conditionally." >&5
2857echo "$as_me: error: conditional \"ENABLE_LUCENE\" was never defined.
2858Usually this means the macro was only invoked conditionally." >&2;}
2859 { (exit 1); exit 1; }; }
2860fi
2861if test -z "${USE_SQLITE_TRUE}" && test -z "${USE_SQLITE_FALSE}"; then
2862 { { echo "$as_me:$LINENO: error: conditional \"USE_SQLITE\" was never defined.
2863Usually this means the macro was only invoked conditionally." >&5
2864echo "$as_me: error: conditional \"USE_SQLITE\" was never defined.
2865Usually this means the macro was only invoked conditionally." >&2;}
2866 { (exit 1); exit 1; }; }
2867fi
2868
2869: ${CONFIG_STATUS=./config.status}
2870ac_clean_files_save=$ac_clean_files
2871ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2872{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2873echo "$as_me: creating $CONFIG_STATUS" >&6;}
2874cat >$CONFIG_STATUS <<_ACEOF
2875#! $SHELL
2876# Generated by $as_me.
2877# Run this file to recreate the current configuration.
2878# Compiler output produced by configure, useful for debugging
2879# configure, is in config.log if it exists.
2880
2881debug=false
2882ac_cs_recheck=false
2883ac_cs_silent=false
2884SHELL=\${CONFIG_SHELL-$SHELL}
2885_ACEOF
2886
2887cat >>$CONFIG_STATUS <<\_ACEOF
2888## --------------------- ##
2889## M4sh Initialization. ##
2890## --------------------- ##
2891
2892# Be Bourne compatible
2893if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2894 emulate sh
2895 NULLCMD=:
2896 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2897 # is contrary to our usage. Disable this feature.
2898 alias -g '${1+"$@"}'='"$@"'
2899elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2900 set -o posix
2901fi
2902DUALCASE=1; export DUALCASE # for MKS sh
2903
2904# Support unset when possible.
2905if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2906 as_unset=unset
2907else
2908 as_unset=false
2909fi
2910
2911
2912# Work around bugs in pre-3.0 UWIN ksh.
2913$as_unset ENV MAIL MAILPATH
2914PS1='$ '
2915PS2='> '
2916PS4='+ '
2917
2918# NLS nuisances.
2919for as_var in \
2920 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2921 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2922 LC_TELEPHONE LC_TIME
2923do
2924 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2925 eval $as_var=C; export $as_var
2926 else
2927 $as_unset $as_var
2928 fi
2929done
2930
2931# Required to use basename.
2932if expr a : '\(a\)' >/dev/null 2>&1; then
2933 as_expr=expr
2934else
2935 as_expr=false
2936fi
2937
2938if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2939 as_basename=basename
2940else
2941 as_basename=false
2942fi
2943
2944
2945# Name of the executable.
2946as_me=`$as_basename "$0" ||
2947$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2948 X"$0" : 'X\(//\)$' \| \
2949 X"$0" : 'X\(/\)$' \| \
2950 . : '\(.\)' 2>/dev/null ||
2951echo X/"$0" |
2952 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2953 /^X\/\(\/\/\)$/{ s//\1/; q; }
2954 /^X\/\(\/\).*/{ s//\1/; q; }
2955 s/.*/./; q'`
2956
2957
2958# PATH needs CR, and LINENO needs CR and PATH.
2959# Avoid depending upon Character Ranges.
2960as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2961as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2962as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2963as_cr_digits='0123456789'
2964as_cr_alnum=$as_cr_Letters$as_cr_digits
2965
2966# The user is always right.
2967if test "${PATH_SEPARATOR+set}" != set; then
2968 echo "#! /bin/sh" >conf$$.sh
2969 echo "exit 0" >>conf$$.sh
2970 chmod +x conf$$.sh
2971 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2972 PATH_SEPARATOR=';'
2973 else
2974 PATH_SEPARATOR=:
2975 fi
2976 rm -f conf$$.sh
2977fi
2978
2979
2980 as_lineno_1=$LINENO
2981 as_lineno_2=$LINENO
2982 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2983 test "x$as_lineno_1" != "x$as_lineno_2" &&
2984 test "x$as_lineno_3" = "x$as_lineno_2" || {
2985 # Find who we are. Look in the path if we contain no path at all
2986 # relative or not.
2987 case $0 in
2988 *[\\/]* ) as_myself=$0 ;;
2989 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990for as_dir in $PATH
2991do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2995done
2996
2997 ;;
2998 esac
2999 # We did not find ourselves, most probably we were run as `sh COMMAND'
3000 # in which case we are not to be found in the path.
3001 if test "x$as_myself" = x; then
3002 as_myself=$0
3003 fi
3004 if test ! -f "$as_myself"; then
3005 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3006echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3007 { (exit 1); exit 1; }; }
3008 fi
3009 case $CONFIG_SHELL in
3010 '')
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3013do
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
3016 for as_base in sh bash ksh sh5; do
3017 case $as_dir in
3018 /*)
3019 if ("$as_dir/$as_base" -c '
3020 as_lineno_1=$LINENO
3021 as_lineno_2=$LINENO
3022 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3023 test "x$as_lineno_1" != "x$as_lineno_2" &&
3024 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3025 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3026 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3027 CONFIG_SHELL=$as_dir/$as_base
3028 export CONFIG_SHELL
3029 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3030 fi;;
3031 esac
3032 done
3033done
3034;;
3035 esac
3036
3037 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3038 # uniformly replaced by the line number. The first 'sed' inserts a
3039 # line-number line before each line; the second 'sed' does the real
3040 # work. The second script uses 'N' to pair each line-number line
3041 # with the numbered line, and appends trailing '-' during
3042 # substitution so that $LINENO is not a special case at line end.
3043 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3044 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3045 sed '=' <$as_myself |
3046 sed '
3047 N
3048 s,$,-,
3049 : loop
3050 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3051 t loop
3052 s,-$,,
3053 s,^['$as_cr_digits']*\n,,
3054 ' >$as_me.lineno &&
3055 chmod +x $as_me.lineno ||
3056 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3057echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3058 { (exit 1); exit 1; }; }
3059
3060 # Don't try to exec as it changes $[0], causing all sort of problems
3061 # (the dirname of $[0] is not the place where we might find the
3062 # original and so on. Autoconf is especially sensible to this).
3063 . ./$as_me.lineno
3064 # Exit status is that of the last command.
3065 exit
3066}
3067
3068
3069case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3070 *c*,-n*) ECHO_N= ECHO_C='
3071' ECHO_T=' ' ;;
3072 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3073 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3074esac
3075
3076if expr a : '\(a\)' >/dev/null 2>&1; then
3077 as_expr=expr
3078else
3079 as_expr=false
3080fi
3081
3082rm -f conf$$ conf$$.exe conf$$.file
3083echo >conf$$.file
3084if ln -s conf$$.file conf$$ 2>/dev/null; then
3085 # We could just check for DJGPP; but this test a) works b) is more generic
3086 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3087 if test -f conf$$.exe; then
3088 # Don't use ln at all; we don't have any links
3089 as_ln_s='cp -p'
3090 else
3091 as_ln_s='ln -s'
3092 fi
3093elif ln conf$$.file conf$$ 2>/dev/null; then
3094 as_ln_s=ln
3095else
3096 as_ln_s='cp -p'
3097fi
3098rm -f conf$$ conf$$.exe conf$$.file
3099
3100if mkdir -p . 2>/dev/null; then
3101 as_mkdir_p=:
3102else
3103 test -d ./-p && rmdir ./-p
3104 as_mkdir_p=false
3105fi
3106
3107as_executable_p="test -f"
3108
3109# Sed expression to map a string onto a valid CPP name.
3110as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3111
3112# Sed expression to map a string onto a valid variable name.
3113as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3114
3115
3116# IFS
3117# We need space, tab and new line, in precisely that order.
3118as_nl='
3119'
3120IFS=" $as_nl"
3121
3122# CDPATH.
3123$as_unset CDPATH
3124
3125exec 6>&1
3126
3127# Open the log real soon, to keep \$[0] and so on meaningful, and to
3128# report actual input values of CONFIG_FILES etc. instead of their
3129# values after options handling. Logging --version etc. is OK.
3130exec 5>>config.log
3131{
3132 echo
3133 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3134## Running $as_me. ##
3135_ASBOX
3136} >&5
3137cat >&5 <<_CSEOF
3138
3139This file was extended by greenstone2-common-src $as_me 2.84, which was
3140generated by GNU Autoconf 2.59. Invocation command line was
3141
3142 CONFIG_FILES = $CONFIG_FILES
3143 CONFIG_HEADERS = $CONFIG_HEADERS
3144 CONFIG_LINKS = $CONFIG_LINKS
3145 CONFIG_COMMANDS = $CONFIG_COMMANDS
3146 $ $0 $@
3147
3148_CSEOF
3149echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3150echo >&5
3151_ACEOF
3152
3153# Files that config.status was made for.
3154if test -n "$ac_config_files"; then
3155 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3156fi
3157
3158if test -n "$ac_config_headers"; then
3159 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3160fi
3161
3162if test -n "$ac_config_links"; then
3163 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3164fi
3165
3166if test -n "$ac_config_commands"; then
3167 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3168fi
3169
3170cat >>$CONFIG_STATUS <<\_ACEOF
3171
3172ac_cs_usage="\
3173\`$as_me' instantiates files from templates according to the
3174current configuration.
3175
3176Usage: $0 [OPTIONS] [FILE]...
3177
3178 -h, --help print this help, then exit
3179 -V, --version print version number, then exit
3180 -q, --quiet do not print progress messages
3181 -d, --debug don't remove temporary files
3182 --recheck update $as_me by reconfiguring in the same conditions
3183 --file=FILE[:TEMPLATE]
3184 instantiate the configuration file FILE
3185 --header=FILE[:TEMPLATE]
3186 instantiate the configuration header FILE
3187
3188Configuration files:
3189$config_files
3190
3191Configuration headers:
3192$config_headers
3193
3194Configuration commands:
3195$config_commands
3196
3197Report bugs to <[email protected]>."
3198_ACEOF
3199
3200cat >>$CONFIG_STATUS <<_ACEOF
3201ac_cs_version="\\
3202greenstone2-common-src config.status 2.84
3203configured by $0, generated by GNU Autoconf 2.59,
3204 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3205
3206Copyright (C) 2003 Free Software Foundation, Inc.
3207This config.status script is free software; the Free Software Foundation
3208gives unlimited permission to copy, distribute and modify it."
3209srcdir=$srcdir
3210INSTALL="$INSTALL"
3211_ACEOF
3212
3213cat >>$CONFIG_STATUS <<\_ACEOF
3214# If no file are specified by the user, then we need to provide default
3215# value. By we need to know if files were specified by the user.
3216ac_need_defaults=:
3217while test $# != 0
3218do
3219 case $1 in
3220 --*=*)
3221 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3222 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3223 ac_shift=:
3224 ;;
3225 -*)
3226 ac_option=$1
3227 ac_optarg=$2
3228 ac_shift=shift
3229 ;;
3230 *) # This is not an option, so the user has probably given explicit
3231 # arguments.
3232 ac_option=$1
3233 ac_need_defaults=false;;
3234 esac
3235
3236 case $ac_option in
3237 # Handling of the options.
3238_ACEOF
3239cat >>$CONFIG_STATUS <<\_ACEOF
3240 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3241 ac_cs_recheck=: ;;
3242 --version | --vers* | -V )
3243 echo "$ac_cs_version"; exit 0 ;;
3244 --he | --h)
3245 # Conflict between --help and --header
3246 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3247Try \`$0 --help' for more information." >&5
3248echo "$as_me: error: ambiguous option: $1
3249Try \`$0 --help' for more information." >&2;}
3250 { (exit 1); exit 1; }; };;
3251 --help | --hel | -h )
3252 echo "$ac_cs_usage"; exit 0 ;;
3253 --debug | --d* | -d )
3254 debug=: ;;
3255 --file | --fil | --fi | --f )
3256 $ac_shift
3257 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3258 ac_need_defaults=false;;
3259 --header | --heade | --head | --hea )
3260 $ac_shift
3261 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3262 ac_need_defaults=false;;
3263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3264 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3265 ac_cs_silent=: ;;
3266
3267 # This is an error.
3268 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3269Try \`$0 --help' for more information." >&5
3270echo "$as_me: error: unrecognized option: $1
3271Try \`$0 --help' for more information." >&2;}
3272 { (exit 1); exit 1; }; } ;;
3273
3274 *) ac_config_targets="$ac_config_targets $1" ;;
3275
3276 esac
3277 shift
3278done
3279
3280ac_configure_extra_args=
3281
3282if $ac_cs_silent; then
3283 exec 6>/dev/null
3284 ac_configure_extra_args="$ac_configure_extra_args --silent"
3285fi
3286
3287_ACEOF
3288cat >>$CONFIG_STATUS <<_ACEOF
3289if \$ac_cs_recheck; then
3290 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3291 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3292fi
3293
3294_ACEOF
3295
3296cat >>$CONFIG_STATUS <<_ACEOF
3297#
3298# INIT-COMMANDS section.
3299#
3300
3301AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
3302
3303_ACEOF
3304
3305
3306
3307cat >>$CONFIG_STATUS <<\_ACEOF
3308for ac_config_target in $ac_config_targets
3309do
3310 case "$ac_config_target" in
3311 # Handling of arguments.
3312 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3313 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
3314 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
3315 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3316 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3317echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3318 { (exit 1); exit 1; }; };;
3319 esac
3320done
3321
3322# If the user did not use the arguments to specify the items to instantiate,
3323# then the envvar interface is used. Set only those that are not.
3324# We use the long form for the default assignment because of an extremely
3325# bizarre bug on SunOS 4.1.3.
3326if $ac_need_defaults; then
3327 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3328 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3329 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3330fi
3331
3332# Have a temporary directory for convenience. Make it in the build tree
3333# simply because there is no reason to put it here, and in addition,
3334# creating and moving files from /tmp can sometimes cause problems.
3335# Create a temporary directory, and hook for its removal unless debugging.
3336$debug ||
3337{
3338 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3339 trap '{ (exit 1); exit 1; }' 1 2 13 15
3340}
3341
3342# Create a (secure) tmp directory for tmp files.
3343
3344{
3345 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3346 test -n "$tmp" && test -d "$tmp"
3347} ||
3348{
3349 tmp=./confstat$$-$RANDOM
3350 (umask 077 && mkdir $tmp)
3351} ||
3352{
3353 echo "$me: cannot create a temporary directory in ." >&2
3354 { (exit 1); exit 1; }
3355}
3356
3357_ACEOF
3358
3359cat >>$CONFIG_STATUS <<_ACEOF
3360
3361#
3362# CONFIG_FILES section.
3363#
3364
3365# No need to generate the scripts if there are no CONFIG_FILES.
3366# This happens for instance when ./config.status config.h
3367if test -n "\$CONFIG_FILES"; then
3368 # Protect against being on the right side of a sed subst in config.status.
3369 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3370 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3371s,@SHELL@,$SHELL,;t t
3372s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3373s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3374s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3375s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3376s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3377s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3378s,@exec_prefix@,$exec_prefix,;t t
3379s,@prefix@,$prefix,;t t
3380s,@program_transform_name@,$program_transform_name,;t t
3381s,@bindir@,$bindir,;t t
3382s,@sbindir@,$sbindir,;t t
3383s,@libexecdir@,$libexecdir,;t t
3384s,@datadir@,$datadir,;t t
3385s,@sysconfdir@,$sysconfdir,;t t
3386s,@sharedstatedir@,$sharedstatedir,;t t
3387s,@localstatedir@,$localstatedir,;t t
3388s,@libdir@,$libdir,;t t
3389s,@includedir@,$includedir,;t t
3390s,@oldincludedir@,$oldincludedir,;t t
3391s,@infodir@,$infodir,;t t
3392s,@mandir@,$mandir,;t t
3393s,@build_alias@,$build_alias,;t t
3394s,@host_alias@,$host_alias,;t t
3395s,@target_alias@,$target_alias,;t t
3396s,@DEFS@,$DEFS,;t t
3397s,@ECHO_C@,$ECHO_C,;t t
3398s,@ECHO_N@,$ECHO_N,;t t
3399s,@ECHO_T@,$ECHO_T,;t t
3400s,@LIBS@,$LIBS,;t t
3401s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3402s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3403s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3404s,@CYGPATH_W@,$CYGPATH_W,;t t
3405s,@PACKAGE@,$PACKAGE,;t t
3406s,@VERSION@,$VERSION,;t t
3407s,@ACLOCAL@,$ACLOCAL,;t t
3408s,@AUTOCONF@,$AUTOCONF,;t t
3409s,@AUTOMAKE@,$AUTOMAKE,;t t
3410s,@AUTOHEADER@,$AUTOHEADER,;t t
3411s,@MAKEINFO@,$MAKEINFO,;t t
3412s,@install_sh@,$install_sh,;t t
3413s,@STRIP@,$STRIP,;t t
3414s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
3415s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
3416s,@mkdir_p@,$mkdir_p,;t t
3417s,@AWK@,$AWK,;t t
3418s,@SET_MAKE@,$SET_MAKE,;t t
3419s,@am__leading_dot@,$am__leading_dot,;t t
3420s,@AMTAR@,$AMTAR,;t t
3421s,@am__tar@,$am__tar,;t t
3422s,@am__untar@,$am__untar,;t t
3423s,@CXX@,$CXX,;t t
3424s,@CXXFLAGS@,$CXXFLAGS,;t t
3425s,@LDFLAGS@,$LDFLAGS,;t t
3426s,@CPPFLAGS@,$CPPFLAGS,;t t
3427s,@ac_ct_CXX@,$ac_ct_CXX,;t t
3428s,@EXEEXT@,$EXEEXT,;t t
3429s,@OBJEXT@,$OBJEXT,;t t
3430s,@DEPDIR@,$DEPDIR,;t t
3431s,@am__include@,$am__include,;t t
3432s,@am__quote@,$am__quote,;t t
3433s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
3434s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
3435s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
3436s,@CXXDEPMODE@,$CXXDEPMODE,;t t
3437s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
3438s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
3439s,@RANLIB@,$RANLIB,;t t
3440s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
3441s,@build@,$build,;t t
3442s,@build_cpu@,$build_cpu,;t t
3443s,@build_vendor@,$build_vendor,;t t
3444s,@build_os@,$build_os,;t t
3445s,@host@,$host,;t t
3446s,@host_cpu@,$host_cpu,;t t
3447s,@host_vendor@,$host_vendor,;t t
3448s,@host_os@,$host_os,;t t
3449s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
3450s,@ENABLE_LUCENE_TRUE@,$ENABLE_LUCENE_TRUE,;t t
3451s,@ENABLE_LUCENE_FALSE@,$ENABLE_LUCENE_FALSE,;t t
3452s,@USE_SQLITE_TRUE@,$USE_SQLITE_TRUE,;t t
3453s,@USE_SQLITE_FALSE@,$USE_SQLITE_FALSE,;t t
3454s,@LIBOBJS@,$LIBOBJS,;t t
3455s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3456CEOF
3457
3458_ACEOF
3459
3460 cat >>$CONFIG_STATUS <<\_ACEOF
3461 # Split the substitutions into bite-sized pieces for seds with
3462 # small command number limits, like on Digital OSF/1 and HP-UX.
3463 ac_max_sed_lines=48
3464 ac_sed_frag=1 # Number of current file.
3465 ac_beg=1 # First line for current file.
3466 ac_end=$ac_max_sed_lines # Line after last line for current file.
3467 ac_more_lines=:
3468 ac_sed_cmds=
3469 while $ac_more_lines; do
3470 if test $ac_beg -gt 1; then
3471 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3472 else
3473 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3474 fi
3475 if test ! -s $tmp/subs.frag; then
3476 ac_more_lines=false
3477 else
3478 # The purpose of the label and of the branching condition is to
3479 # speed up the sed processing (if there are no `@' at all, there
3480 # is no need to browse any of the substitutions).
3481 # These are the two extra sed commands mentioned above.
3482 (echo ':t
3483 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3484 if test -z "$ac_sed_cmds"; then
3485 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3486 else
3487 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3488 fi
3489 ac_sed_frag=`expr $ac_sed_frag + 1`
3490 ac_beg=$ac_end
3491 ac_end=`expr $ac_end + $ac_max_sed_lines`
3492 fi
3493 done
3494 if test -z "$ac_sed_cmds"; then
3495 ac_sed_cmds=cat
3496 fi
3497fi # test -n "$CONFIG_FILES"
3498
3499_ACEOF
3500cat >>$CONFIG_STATUS <<\_ACEOF
3501for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3502 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3503 case $ac_file in
3504 - | *:- | *:-:* ) # input from stdin
3505 cat >$tmp/stdin
3506 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3507 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3508 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3509 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3510 * ) ac_file_in=$ac_file.in ;;
3511 esac
3512
3513 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3514 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3515$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3516 X"$ac_file" : 'X\(//\)[^/]' \| \
3517 X"$ac_file" : 'X\(//\)$' \| \
3518 X"$ac_file" : 'X\(/\)' \| \
3519 . : '\(.\)' 2>/dev/null ||
3520echo X"$ac_file" |
3521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3523 /^X\(\/\/\)$/{ s//\1/; q; }
3524 /^X\(\/\).*/{ s//\1/; q; }
3525 s/.*/./; q'`
3526 { if $as_mkdir_p; then
3527 mkdir -p "$ac_dir"
3528 else
3529 as_dir="$ac_dir"
3530 as_dirs=
3531 while test ! -d "$as_dir"; do
3532 as_dirs="$as_dir $as_dirs"
3533 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3534$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3535 X"$as_dir" : 'X\(//\)[^/]' \| \
3536 X"$as_dir" : 'X\(//\)$' \| \
3537 X"$as_dir" : 'X\(/\)' \| \
3538 . : '\(.\)' 2>/dev/null ||
3539echo X"$as_dir" |
3540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3542 /^X\(\/\/\)$/{ s//\1/; q; }
3543 /^X\(\/\).*/{ s//\1/; q; }
3544 s/.*/./; q'`
3545 done
3546 test ! -n "$as_dirs" || mkdir $as_dirs
3547 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3548echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3549 { (exit 1); exit 1; }; }; }
3550
3551 ac_builddir=.
3552
3553if test "$ac_dir" != .; then
3554 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3555 # A "../" for each directory in $ac_dir_suffix.
3556 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3557else
3558 ac_dir_suffix= ac_top_builddir=
3559fi
3560
3561case $srcdir in
3562 .) # No --srcdir option. We are building in place.
3563 ac_srcdir=.
3564 if test -z "$ac_top_builddir"; then
3565 ac_top_srcdir=.
3566 else
3567 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3568 fi ;;
3569 [\\/]* | ?:[\\/]* ) # Absolute path.
3570 ac_srcdir=$srcdir$ac_dir_suffix;
3571 ac_top_srcdir=$srcdir ;;
3572 *) # Relative path.
3573 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3574 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3575esac
3576
3577# Do not use `cd foo && pwd` to compute absolute paths, because
3578# the directories may not exist.
3579case `pwd` in
3580.) ac_abs_builddir="$ac_dir";;
3581*)
3582 case "$ac_dir" in
3583 .) ac_abs_builddir=`pwd`;;
3584 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3585 *) ac_abs_builddir=`pwd`/"$ac_dir";;
3586 esac;;
3587esac
3588case $ac_abs_builddir in
3589.) ac_abs_top_builddir=${ac_top_builddir}.;;
3590*)
3591 case ${ac_top_builddir}. in
3592 .) ac_abs_top_builddir=$ac_abs_builddir;;
3593 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3594 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3595 esac;;
3596esac
3597case $ac_abs_builddir in
3598.) ac_abs_srcdir=$ac_srcdir;;
3599*)
3600 case $ac_srcdir in
3601 .) ac_abs_srcdir=$ac_abs_builddir;;
3602 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3603 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3604 esac;;
3605esac
3606case $ac_abs_builddir in
3607.) ac_abs_top_srcdir=$ac_top_srcdir;;
3608*)
3609 case $ac_top_srcdir in
3610 .) ac_abs_top_srcdir=$ac_abs_builddir;;
3611 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3612 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3613 esac;;
3614esac
3615
3616
3617 case $INSTALL in
3618 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3619 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3620 esac
3621
3622 if test x"$ac_file" != x-; then
3623 { echo "$as_me:$LINENO: creating $ac_file" >&5
3624echo "$as_me: creating $ac_file" >&6;}
3625 rm -f "$ac_file"
3626 fi
3627 # Let's still pretend it is `configure' which instantiates (i.e., don't
3628 # use $as_me), people would be surprised to read:
3629 # /* config.h. Generated by config.status. */
3630 if test x"$ac_file" = x-; then
3631 configure_input=
3632 else
3633 configure_input="$ac_file. "
3634 fi
3635 configure_input=$configure_input"Generated from `echo $ac_file_in |
3636 sed 's,.*/,,'` by configure."
3637
3638 # First look for the input files in the build tree, otherwise in the
3639 # src tree.
3640 ac_file_inputs=`IFS=:
3641 for f in $ac_file_in; do
3642 case $f in
3643 -) echo $tmp/stdin ;;
3644 [\\/$]*)
3645 # Absolute (can't be DOS-style, as IFS=:)
3646 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3647echo "$as_me: error: cannot find input file: $f" >&2;}
3648 { (exit 1); exit 1; }; }
3649 echo "$f";;
3650 *) # Relative
3651 if test -f "$f"; then
3652 # Build tree
3653 echo "$f"
3654 elif test -f "$srcdir/$f"; then
3655 # Source tree
3656 echo "$srcdir/$f"
3657 else
3658 # /dev/null tree
3659 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3660echo "$as_me: error: cannot find input file: $f" >&2;}
3661 { (exit 1); exit 1; }; }
3662 fi;;
3663 esac
3664 done` || { (exit 1); exit 1; }
3665_ACEOF
3666cat >>$CONFIG_STATUS <<_ACEOF
3667 sed "$ac_vpsub
3668$extrasub
3669_ACEOF
3670cat >>$CONFIG_STATUS <<\_ACEOF
3671:t
3672/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3673s,@configure_input@,$configure_input,;t t
3674s,@srcdir@,$ac_srcdir,;t t
3675s,@abs_srcdir@,$ac_abs_srcdir,;t t
3676s,@top_srcdir@,$ac_top_srcdir,;t t
3677s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3678s,@builddir@,$ac_builddir,;t t
3679s,@abs_builddir@,$ac_abs_builddir,;t t
3680s,@top_builddir@,$ac_top_builddir,;t t
3681s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3682s,@INSTALL@,$ac_INSTALL,;t t
3683" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3684 rm -f $tmp/stdin
3685 if test x"$ac_file" != x-; then
3686 mv $tmp/out $ac_file
3687 else
3688 cat $tmp/out
3689 rm -f $tmp/out
3690 fi
3691
3692done
3693_ACEOF
3694cat >>$CONFIG_STATUS <<\_ACEOF
3695
3696#
3697# CONFIG_HEADER section.
3698#
3699
3700# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3701# NAME is the cpp macro being defined and VALUE is the value it is being given.
3702#
3703# ac_d sets the value in "#define NAME VALUE" lines.
3704ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3705ac_dB='[ ].*$,\1#\2'
3706ac_dC=' '
3707ac_dD=',;t'
3708# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3709ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3710ac_uB='$,\1#\2define\3'
3711ac_uC=' '
3712ac_uD=',;t'
3713
3714for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3715 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3716 case $ac_file in
3717 - | *:- | *:-:* ) # input from stdin
3718 cat >$tmp/stdin
3719 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3720 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3721 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3722 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3723 * ) ac_file_in=$ac_file.in ;;
3724 esac
3725
3726 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
3727echo "$as_me: creating $ac_file" >&6;}
3728
3729 # First look for the input files in the build tree, otherwise in the
3730 # src tree.
3731 ac_file_inputs=`IFS=:
3732 for f in $ac_file_in; do
3733 case $f in
3734 -) echo $tmp/stdin ;;
3735 [\\/$]*)
3736 # Absolute (can't be DOS-style, as IFS=:)
3737 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3738echo "$as_me: error: cannot find input file: $f" >&2;}
3739 { (exit 1); exit 1; }; }
3740 # Do quote $f, to prevent DOS paths from being IFS'd.
3741 echo "$f";;
3742 *) # Relative
3743 if test -f "$f"; then
3744 # Build tree
3745 echo "$f"
3746 elif test -f "$srcdir/$f"; then
3747 # Source tree
3748 echo "$srcdir/$f"
3749 else
3750 # /dev/null tree
3751 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3752echo "$as_me: error: cannot find input file: $f" >&2;}
3753 { (exit 1); exit 1; }; }
3754 fi;;
3755 esac
3756 done` || { (exit 1); exit 1; }
3757 # Remove the trailing spaces.
3758 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
3759
3760_ACEOF
3761
3762# Transform confdefs.h into two sed scripts, `conftest.defines' and
3763# `conftest.undefs', that substitutes the proper values into
3764# config.h.in to produce config.h. The first handles `#define'
3765# templates, and the second `#undef' templates.
3766# And first: Protect against being on the right side of a sed subst in
3767# config.status. Protect against being in an unquoted here document
3768# in config.status.
3769rm -f conftest.defines conftest.undefs
3770# Using a here document instead of a string reduces the quoting nightmare.
3771# Putting comments in sed scripts is not portable.
3772#
3773# `end' is used to avoid that the second main sed command (meant for
3774# 0-ary CPP macros) applies to n-ary macro definitions.
3775# See the Autoconf documentation for `clear'.
3776cat >confdef2sed.sed <<\_ACEOF
3777s/[\\&,]/\\&/g
3778s,[\\$`],\\&,g
3779t clear
3780: clear
3781s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
3782t end
3783s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3784: end
3785_ACEOF
3786# If some macros were called several times there might be several times
3787# the same #defines, which is useless. Nevertheless, we may not want to
3788# sort them, since we want the *last* AC-DEFINE to be honored.
3789uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3790sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3791rm -f confdef2sed.sed
3792
3793# This sed command replaces #undef with comments. This is necessary, for
3794# example, in the case of _POSIX_SOURCE, which is predefined and required
3795# on some systems where configure will not decide to define it.
3796cat >>conftest.undefs <<\_ACEOF
3797s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3798_ACEOF
3799
3800# Break up conftest.defines because some shells have a limit on the size
3801# of here documents, and old seds have small limits too (100 cmds).
3802echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3803echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3804echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3805echo ' :' >>$CONFIG_STATUS
3806rm -f conftest.tail
3807while grep . conftest.defines >/dev/null
3808do
3809 # Write a limited-size here document to $tmp/defines.sed.
3810 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3811 # Speed up: don't consider the non `#define' lines.
3812 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
3813 # Work around the forget-to-reset-the-flag bug.
3814 echo 't clr' >>$CONFIG_STATUS
3815 echo ': clr' >>$CONFIG_STATUS
3816 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3817 echo 'CEOF
3818 sed -f $tmp/defines.sed $tmp/in >$tmp/out
3819 rm -f $tmp/in
3820 mv $tmp/out $tmp/in
3821' >>$CONFIG_STATUS
3822 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
3823 rm -f conftest.defines
3824 mv conftest.tail conftest.defines
3825done
3826rm -f conftest.defines
3827echo ' fi # grep' >>$CONFIG_STATUS
3828echo >>$CONFIG_STATUS
3829
3830# Break up conftest.undefs because some shells have a limit on the size
3831# of here documents, and old seds have small limits too (100 cmds).
3832echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
3833rm -f conftest.tail
3834while grep . conftest.undefs >/dev/null
3835do
3836 # Write a limited-size here document to $tmp/undefs.sed.
3837 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
3838 # Speed up: don't consider the non `#undef'
3839 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
3840 # Work around the forget-to-reset-the-flag bug.
3841 echo 't clr' >>$CONFIG_STATUS
3842 echo ': clr' >>$CONFIG_STATUS
3843 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
3844 echo 'CEOF
3845 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
3846 rm -f $tmp/in
3847 mv $tmp/out $tmp/in
3848' >>$CONFIG_STATUS
3849 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
3850 rm -f conftest.undefs
3851 mv conftest.tail conftest.undefs
3852done
3853rm -f conftest.undefs
3854
3855cat >>$CONFIG_STATUS <<\_ACEOF
3856 # Let's still pretend it is `configure' which instantiates (i.e., don't
3857 # use $as_me), people would be surprised to read:
3858 # /* config.h. Generated by config.status. */
3859 if test x"$ac_file" = x-; then
3860 echo "/* Generated by configure. */" >$tmp/config.h
3861 else
3862 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
3863 fi
3864 cat $tmp/in >>$tmp/config.h
3865 rm -f $tmp/in
3866 if test x"$ac_file" != x-; then
3867 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
3868 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
3869echo "$as_me: $ac_file is unchanged" >&6;}
3870 else
3871 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3872$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3873 X"$ac_file" : 'X\(//\)[^/]' \| \
3874 X"$ac_file" : 'X\(//\)$' \| \
3875 X"$ac_file" : 'X\(/\)' \| \
3876 . : '\(.\)' 2>/dev/null ||
3877echo X"$ac_file" |
3878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3879 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3880 /^X\(\/\/\)$/{ s//\1/; q; }
3881 /^X\(\/\).*/{ s//\1/; q; }
3882 s/.*/./; q'`
3883 { if $as_mkdir_p; then
3884 mkdir -p "$ac_dir"
3885 else
3886 as_dir="$ac_dir"
3887 as_dirs=
3888 while test ! -d "$as_dir"; do
3889 as_dirs="$as_dir $as_dirs"
3890 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3891$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3892 X"$as_dir" : 'X\(//\)[^/]' \| \
3893 X"$as_dir" : 'X\(//\)$' \| \
3894 X"$as_dir" : 'X\(/\)' \| \
3895 . : '\(.\)' 2>/dev/null ||
3896echo X"$as_dir" |
3897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3898 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3899 /^X\(\/\/\)$/{ s//\1/; q; }
3900 /^X\(\/\).*/{ s//\1/; q; }
3901 s/.*/./; q'`
3902 done
3903 test ! -n "$as_dirs" || mkdir $as_dirs
3904 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3905echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3906 { (exit 1); exit 1; }; }; }
3907
3908 rm -f $ac_file
3909 mv $tmp/config.h $ac_file
3910 fi
3911 else
3912 cat $tmp/config.h
3913 rm -f $tmp/config.h
3914 fi
3915# Compute $ac_file's index in $config_headers.
3916_am_stamp_count=1
3917for _am_header in $config_headers :; do
3918 case $_am_header in
3919 $ac_file | $ac_file:* )
3920 break ;;
3921 * )
3922 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
3923 esac
3924done
3925echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
3926$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3927 X$ac_file : 'X\(//\)[^/]' \| \
3928 X$ac_file : 'X\(//\)$' \| \
3929 X$ac_file : 'X\(/\)' \| \
3930 . : '\(.\)' 2>/dev/null ||
3931echo X$ac_file |
3932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3933 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3934 /^X\(\/\/\)$/{ s//\1/; q; }
3935 /^X\(\/\).*/{ s//\1/; q; }
3936 s/.*/./; q'`/stamp-h$_am_stamp_count
3937done
3938_ACEOF
3939cat >>$CONFIG_STATUS <<\_ACEOF
3940
3941#
3942# CONFIG_COMMANDS section.
3943#
3944for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
3945 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
3946 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
3947 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
3948$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3949 X"$ac_dest" : 'X\(//\)[^/]' \| \
3950 X"$ac_dest" : 'X\(//\)$' \| \
3951 X"$ac_dest" : 'X\(/\)' \| \
3952 . : '\(.\)' 2>/dev/null ||
3953echo X"$ac_dest" |
3954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3955 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3956 /^X\(\/\/\)$/{ s//\1/; q; }
3957 /^X\(\/\).*/{ s//\1/; q; }
3958 s/.*/./; q'`
3959 { if $as_mkdir_p; then
3960 mkdir -p "$ac_dir"
3961 else
3962 as_dir="$ac_dir"
3963 as_dirs=
3964 while test ! -d "$as_dir"; do
3965 as_dirs="$as_dir $as_dirs"
3966 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3967$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3968 X"$as_dir" : 'X\(//\)[^/]' \| \
3969 X"$as_dir" : 'X\(//\)$' \| \
3970 X"$as_dir" : 'X\(/\)' \| \
3971 . : '\(.\)' 2>/dev/null ||
3972echo X"$as_dir" |
3973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3974 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3975 /^X\(\/\/\)$/{ s//\1/; q; }
3976 /^X\(\/\).*/{ s//\1/; q; }
3977 s/.*/./; q'`
3978 done
3979 test ! -n "$as_dirs" || mkdir $as_dirs
3980 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3981echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3982 { (exit 1); exit 1; }; }; }
3983
3984 ac_builddir=.
3985
3986if test "$ac_dir" != .; then
3987 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3988 # A "../" for each directory in $ac_dir_suffix.
3989 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3990else
3991 ac_dir_suffix= ac_top_builddir=
3992fi
3993
3994case $srcdir in
3995 .) # No --srcdir option. We are building in place.
3996 ac_srcdir=.
3997 if test -z "$ac_top_builddir"; then
3998 ac_top_srcdir=.
3999 else
4000 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4001 fi ;;
4002 [\\/]* | ?:[\\/]* ) # Absolute path.
4003 ac_srcdir=$srcdir$ac_dir_suffix;
4004 ac_top_srcdir=$srcdir ;;
4005 *) # Relative path.
4006 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4007 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4008esac
4009
4010# Do not use `cd foo && pwd` to compute absolute paths, because
4011# the directories may not exist.
4012case `pwd` in
4013.) ac_abs_builddir="$ac_dir";;
4014*)
4015 case "$ac_dir" in
4016 .) ac_abs_builddir=`pwd`;;
4017 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4018 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4019 esac;;
4020esac
4021case $ac_abs_builddir in
4022.) ac_abs_top_builddir=${ac_top_builddir}.;;
4023*)
4024 case ${ac_top_builddir}. in
4025 .) ac_abs_top_builddir=$ac_abs_builddir;;
4026 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4027 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4028 esac;;
4029esac
4030case $ac_abs_builddir in
4031.) ac_abs_srcdir=$ac_srcdir;;
4032*)
4033 case $ac_srcdir in
4034 .) ac_abs_srcdir=$ac_abs_builddir;;
4035 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4036 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4037 esac;;
4038esac
4039case $ac_abs_builddir in
4040.) ac_abs_top_srcdir=$ac_top_srcdir;;
4041*)
4042 case $ac_top_srcdir in
4043 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4044 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4045 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4046 esac;;
4047esac
4048
4049
4050 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4051echo "$as_me: executing $ac_dest commands" >&6;}
4052 case $ac_dest in
4053 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
4054 # Strip MF so we end up with the name of the file.
4055 mf=`echo "$mf" | sed -e 's/:.*$//'`
4056 # Check whether this is an Automake generated Makefile or not.
4057 # We used to match only the files named `Makefile.in', but
4058 # some people rename them; so instead we look at the file content.
4059 # Grep'ing the first line is not enough: some people post-process
4060 # each Makefile.in and add a new line on top of each file to say so.
4061 # So let's grep whole file.
4062 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
4063 dirpart=`(dirname "$mf") 2>/dev/null ||
4064$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4065 X"$mf" : 'X\(//\)[^/]' \| \
4066 X"$mf" : 'X\(//\)$' \| \
4067 X"$mf" : 'X\(/\)' \| \
4068 . : '\(.\)' 2>/dev/null ||
4069echo X"$mf" |
4070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4072 /^X\(\/\/\)$/{ s//\1/; q; }
4073 /^X\(\/\).*/{ s//\1/; q; }
4074 s/.*/./; q'`
4075 else
4076 continue
4077 fi
4078 # Extract the definition of DEPDIR, am__include, and am__quote
4079 # from the Makefile without running `make'.
4080 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
4081 test -z "$DEPDIR" && continue
4082 am__include=`sed -n 's/^am__include = //p' < "$mf"`
4083 test -z "am__include" && continue
4084 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
4085 # When using ansi2knr, U may be empty or an underscore; expand it
4086 U=`sed -n 's/^U = //p' < "$mf"`
4087 # Find all dependency output files, they are included files with
4088 # $(DEPDIR) in their names. We invoke sed twice because it is the
4089 # simplest approach to changing $(DEPDIR) to its actual value in the
4090 # expansion.
4091 for file in `sed -n "
4092 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
4093 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4094 # Make sure the directory exists.
4095 test -f "$dirpart/$file" && continue
4096 fdir=`(dirname "$file") 2>/dev/null ||
4097$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4098 X"$file" : 'X\(//\)[^/]' \| \
4099 X"$file" : 'X\(//\)$' \| \
4100 X"$file" : 'X\(/\)' \| \
4101 . : '\(.\)' 2>/dev/null ||
4102echo X"$file" |
4103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4104 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4105 /^X\(\/\/\)$/{ s//\1/; q; }
4106 /^X\(\/\).*/{ s//\1/; q; }
4107 s/.*/./; q'`
4108 { if $as_mkdir_p; then
4109 mkdir -p $dirpart/$fdir
4110 else
4111 as_dir=$dirpart/$fdir
4112 as_dirs=
4113 while test ! -d "$as_dir"; do
4114 as_dirs="$as_dir $as_dirs"
4115 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4116$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4117 X"$as_dir" : 'X\(//\)[^/]' \| \
4118 X"$as_dir" : 'X\(//\)$' \| \
4119 X"$as_dir" : 'X\(/\)' \| \
4120 . : '\(.\)' 2>/dev/null ||
4121echo X"$as_dir" |
4122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4123 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4124 /^X\(\/\/\)$/{ s//\1/; q; }
4125 /^X\(\/\).*/{ s//\1/; q; }
4126 s/.*/./; q'`
4127 done
4128 test ! -n "$as_dirs" || mkdir $as_dirs
4129 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
4130echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
4131 { (exit 1); exit 1; }; }; }
4132
4133 # echo "creating $dirpart/$file"
4134 echo '# dummy' > "$dirpart/$file"
4135 done
4136done
4137 ;;
4138 esac
4139done
4140_ACEOF
4141
4142cat >>$CONFIG_STATUS <<\_ACEOF
4143
4144{ (exit 0); exit 0; }
4145_ACEOF
4146chmod +x $CONFIG_STATUS
4147ac_clean_files=$ac_clean_files_save
4148
4149
4150# configure is writing to config.log, and then calls config.status.
4151# config.status does its own redirection, appending to config.log.
4152# Unfortunately, on DOS this fails, as config.log is still kept open
4153# by configure, so config.status won't be able to write to it; its
4154# output is simply discarded. So we exec the FD to /dev/null,
4155# effectively closing config.log, so it can be properly (re)opened and
4156# appended to by config.status. When coming back to configure, we
4157# need to make the FD available again.
4158if test "$no_create" != yes; then
4159 ac_cs_success=:
4160 ac_config_status_args=
4161 test "$silent" = yes &&
4162 ac_config_status_args="$ac_config_status_args --quiet"
4163 exec 5>/dev/null
4164 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4165 exec 5>>config.log
4166 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4167 # would make configure fail if this is the last instruction.
4168 $ac_cs_success || { (exit 1); exit 1; }
4169fi
4170
Note: See TracBrowser for help on using the repository browser.