source: trunk/j/configure @ 4391

Last change on this file since 4391 was 4391, checked in by piso, 20 years ago

0.20.1.20

File size: 74.8 KB
Line 
1#! /bin/sh
2# From configure.in Revision: 1.160 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.57.
5#
6# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7# 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
24
25# Support unset when possible.
26if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
27  as_unset=unset
28else
29  as_unset=false
30fi
31
32
33# Work around bugs in pre-3.0 UWIN ksh.
34$as_unset ENV MAIL MAILPATH
35PS1='$ '
36PS2='> '
37PS4='+ '
38
39# NLS nuisances.
40for as_var in \
41  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43  LC_TELEPHONE LC_TIME
44do
45  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46    eval $as_var=C; export $as_var
47  else
48    $as_unset $as_var
49  fi
50done
51
52# Required to use basename.
53if expr a : '\(a\)' >/dev/null 2>&1; then
54  as_expr=expr
55else
56  as_expr=false
57fi
58
59if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60  as_basename=basename
61else
62  as_basename=false
63fi
64
65
66# Name of the executable.
67as_me=`$as_basename "$0" ||
68$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69   X"$0" : 'X\(//\)$' \| \
70   X"$0" : 'X\(/\)$' \| \
71   .     : '\(.\)' 2>/dev/null ||
72echo X/"$0" |
73    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74      /^X\/\(\/\/\)$/{ s//\1/; q; }
75      /^X\/\(\/\).*/{ s//\1/; q; }
76      s/.*/./; q'`
77
78
79# PATH needs CR, and LINENO needs CR and PATH.
80# Avoid depending upon Character Ranges.
81as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84as_cr_digits='0123456789'
85as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87# The user is always right.
88if test "${PATH_SEPARATOR+set}" != set; then
89  echo "#! /bin/sh" >conf$$.sh
90  echo  "exit 0"   >>conf$$.sh
91  chmod +x conf$$.sh
92  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93    PATH_SEPARATOR=';'
94  else
95    PATH_SEPARATOR=:
96  fi
97  rm -f conf$$.sh
98fi
99
100
101  as_lineno_1=$LINENO
102  as_lineno_2=$LINENO
103  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104  test "x$as_lineno_1" != "x$as_lineno_2" &&
105  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106  # Find who we are.  Look in the path if we contain no path at all
107  # relative or not.
108  case $0 in
109    *[\\/]* ) as_myself=$0 ;;
110    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111for as_dir in $PATH
112do
113  IFS=$as_save_IFS
114  test -z "$as_dir" && as_dir=.
115  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116done
117
118       ;;
119  esac
120  # We did not find ourselves, most probably we were run as `sh COMMAND'
121  # in which case we are not to be found in the path.
122  if test "x$as_myself" = x; then
123    as_myself=$0
124  fi
125  if test ! -f "$as_myself"; then
126    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127   { (exit 1); exit 1; }; }
128  fi
129  case $CONFIG_SHELL in
130  '')
131    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133do
134  IFS=$as_save_IFS
135  test -z "$as_dir" && as_dir=.
136  for as_base in sh bash ksh sh5; do
137   case $as_dir in
138   /*)
139     if ("$as_dir/$as_base" -c '
140  as_lineno_1=$LINENO
141  as_lineno_2=$LINENO
142  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143  test "x$as_lineno_1" != "x$as_lineno_2" &&
144  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145       $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146       $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147       CONFIG_SHELL=$as_dir/$as_base
148       export CONFIG_SHELL
149       exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150     fi;;
151   esac
152       done
153done
154;;
155  esac
156
157  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158  # uniformly replaced by the line number.  The first 'sed' inserts a
159  # line-number line before each line; the second 'sed' does the real
160  # work.  The second script uses 'N' to pair each line-number line
161  # with the numbered line, and appends trailing '-' during
162  # substitution so that $LINENO is not a special case at line end.
163  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165  sed '=' <$as_myself |
166    sed '
167      N
168      s,$,-,
169      : loop
170      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171      t loop
172      s,-$,,
173      s,^['$as_cr_digits']*\n,,
174    ' >$as_me.lineno &&
175  chmod +x $as_me.lineno ||
176    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177   { (exit 1); exit 1; }; }
178
179  # Don't try to exec as it changes $[0], causing all sort of problems
180  # (the dirname of $[0] is not the place where we might find the
181  # original and so on.  Autoconf is especially sensible to this).
182  . ./$as_me.lineno
183  # Exit status is that of the last command.
184  exit
185}
186
187
188case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189  *c*,-n*) ECHO_N= ECHO_C='
190' ECHO_T='  ' ;;
191  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193esac
194
195if expr a : '\(a\)' >/dev/null 2>&1; then
196  as_expr=expr
197else
198  as_expr=false
199fi
200
201rm -f conf$$ conf$$.exe conf$$.file
202echo >conf$$.file
203if ln -s conf$$.file conf$$ 2>/dev/null; then
204  # We could just check for DJGPP; but this test a) works b) is more generic
205  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206  if test -f conf$$.exe; then
207    # Don't use ln at all; we don't have any links
208    as_ln_s='cp -p'
209  else
210    as_ln_s='ln -s'
211  fi
212elif ln conf$$.file conf$$ 2>/dev/null; then
213  as_ln_s=ln
214else
215  as_ln_s='cp -p'
216fi
217rm -f conf$$ conf$$.exe conf$$.file
218
219if mkdir -p . 2>/dev/null; then
220  as_mkdir_p=:
221else
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS="   $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="j.in"
275ac_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 version PATHSEP JAVA JAVAC JAVACFLAGS JAR JAVA_RUNTIME CP CLASSPATH COMPILER_CLASSPATH JAVA_OPTIONS JPTY LIBOBJS LTLIBOBJS'
276ac_subst_files=''
277
278# Initialize some variables set by options.
279ac_init_help=
280ac_init_version=false
281# The variables have the same names as the options, with
282# dashes changed to underlines.
283cache_file=/dev/null
284exec_prefix=NONE
285no_create=
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
294verbose=
295x_includes=NONE
296x_libraries=NONE
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
315
316ac_prev=
317for ac_option
318do
319  # If the previous option needs an argument, assign it.
320  if test -n "$ac_prev"; then
321    eval "$ac_prev=\$ac_option"
322    ac_prev=
323    continue
324  fi
325
326  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327
328  # Accept the important Cygnus configure options, so we can diagnose typos.
329
330  case $ac_option in
331
332  -bindir | --bindir | --bindi | --bind | --bin | --bi)
333    ac_prev=bindir ;;
334  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335    bindir=$ac_optarg ;;
336
337  -build | --build | --buil | --bui | --bu)
338    ac_prev=build_alias ;;
339  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340    build_alias=$ac_optarg ;;
341
342  -cache-file | --cache-file | --cache-fil | --cache-fi \
343  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344    ac_prev=cache_file ;;
345  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347    cache_file=$ac_optarg ;;
348
349  --config-cache | -C)
350    cache_file=config.cache ;;
351
352  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353    ac_prev=datadir ;;
354  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355  | --da=*)
356    datadir=$ac_optarg ;;
357
358  -disable-* | --disable-*)
359    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360    # Reject names that are not valid shell variable names.
361    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363   { (exit 1); exit 1; }; }
364    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365    eval "enable_$ac_feature=no" ;;
366
367  -enable-* | --enable-*)
368    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369    # Reject names that are not valid shell variable names.
370    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372   { (exit 1); exit 1; }; }
373    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374    case $ac_option in
375      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376      *) ac_optarg=yes ;;
377    esac
378    eval "enable_$ac_feature='$ac_optarg'" ;;
379
380  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382  | --exec | --exe | --ex)
383    ac_prev=exec_prefix ;;
384  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386  | --exec=* | --exe=* | --ex=*)
387    exec_prefix=$ac_optarg ;;
388
389  -gas | --gas | --ga | --g)
390    # Obsolete; use --with-gas.
391    with_gas=yes ;;
392
393  -help | --help | --hel | --he | -h)
394    ac_init_help=long ;;
395  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396    ac_init_help=recursive ;;
397  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398    ac_init_help=short ;;
399
400  -host | --host | --hos | --ho)
401    ac_prev=host_alias ;;
402  -host=* | --host=* | --hos=* | --ho=*)
403    host_alias=$ac_optarg ;;
404
405  -includedir | --includedir | --includedi | --included | --include \
406  | --includ | --inclu | --incl | --inc)
407    ac_prev=includedir ;;
408  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409  | --includ=* | --inclu=* | --incl=* | --inc=*)
410    includedir=$ac_optarg ;;
411
412  -infodir | --infodir | --infodi | --infod | --info | --inf)
413    ac_prev=infodir ;;
414  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415    infodir=$ac_optarg ;;
416
417  -libdir | --libdir | --libdi | --libd)
418    ac_prev=libdir ;;
419  -libdir=* | --libdir=* | --libdi=* | --libd=*)
420    libdir=$ac_optarg ;;
421
422  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423  | --libexe | --libex | --libe)
424    ac_prev=libexecdir ;;
425  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426  | --libexe=* | --libex=* | --libe=*)
427    libexecdir=$ac_optarg ;;
428
429  -localstatedir | --localstatedir | --localstatedi | --localstated \
430  | --localstate | --localstat | --localsta | --localst \
431  | --locals | --local | --loca | --loc | --lo)
432    ac_prev=localstatedir ;;
433  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436    localstatedir=$ac_optarg ;;
437
438  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439    ac_prev=mandir ;;
440  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441    mandir=$ac_optarg ;;
442
443  -nfp | --nfp | --nf)
444    # Obsolete; use --without-fp.
445    with_fp=no ;;
446
447  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448  | --no-cr | --no-c | -n)
449    no_create=yes ;;
450
451  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453    no_recursion=yes ;;
454
455  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457  | --oldin | --oldi | --old | --ol | --o)
458    ac_prev=oldincludedir ;;
459  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462    oldincludedir=$ac_optarg ;;
463
464  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465    ac_prev=prefix ;;
466  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467    prefix=$ac_optarg ;;
468
469  -program-prefix | --program-prefix | --program-prefi | --program-pref \
470  | --program-pre | --program-pr | --program-p)
471    ac_prev=program_prefix ;;
472  -program-prefix=* | --program-prefix=* | --program-prefi=* \
473  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474    program_prefix=$ac_optarg ;;
475
476  -program-suffix | --program-suffix | --program-suffi | --program-suff \
477  | --program-suf | --program-su | --program-s)
478    ac_prev=program_suffix ;;
479  -program-suffix=* | --program-suffix=* | --program-suffi=* \
480  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481    program_suffix=$ac_optarg ;;
482
483  -program-transform-name | --program-transform-name \
484  | --program-transform-nam | --program-transform-na \
485  | --program-transform-n | --program-transform- \
486  | --program-transform | --program-transfor \
487  | --program-transfo | --program-transf \
488  | --program-trans | --program-tran \
489  | --progr-tra | --program-tr | --program-t)
490    ac_prev=program_transform_name ;;
491  -program-transform-name=* | --program-transform-name=* \
492  | --program-transform-nam=* | --program-transform-na=* \
493  | --program-transform-n=* | --program-transform-=* \
494  | --program-transform=* | --program-transfor=* \
495  | --program-transfo=* | --program-transf=* \
496  | --program-trans=* | --program-tran=* \
497  | --progr-tra=* | --program-tr=* | --program-t=*)
498    program_transform_name=$ac_optarg ;;
499
500  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501  | -silent | --silent | --silen | --sile | --sil)
502    silent=yes ;;
503
504  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505    ac_prev=sbindir ;;
506  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507  | --sbi=* | --sb=*)
508    sbindir=$ac_optarg ;;
509
510  -sharedstatedir | --sharedstatedir | --sharedstatedi \
511  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512  | --sharedst | --shareds | --shared | --share | --shar \
513  | --sha | --sh)
514    ac_prev=sharedstatedir ;;
515  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518  | --sha=* | --sh=*)
519    sharedstatedir=$ac_optarg ;;
520
521  -site | --site | --sit)
522    ac_prev=site ;;
523  -site=* | --site=* | --sit=*)
524    site=$ac_optarg ;;
525
526  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527    ac_prev=srcdir ;;
528  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529    srcdir=$ac_optarg ;;
530
531  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532  | --syscon | --sysco | --sysc | --sys | --sy)
533    ac_prev=sysconfdir ;;
534  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536    sysconfdir=$ac_optarg ;;
537
538  -target | --target | --targe | --targ | --tar | --ta | --t)
539    ac_prev=target_alias ;;
540  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541    target_alias=$ac_optarg ;;
542
543  -v | -verbose | --verbose | --verbos | --verbo | --verb)
544    verbose=yes ;;
545
546  -version | --version | --versio | --versi | --vers | -V)
547    ac_init_version=: ;;
548
549  -with-* | --with-*)
550    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551    # Reject names that are not valid shell variable names.
552    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553      { echo "$as_me: error: invalid package name: $ac_package" >&2
554   { (exit 1); exit 1; }; }
555    ac_package=`echo $ac_package| sed 's/-/_/g'`
556    case $ac_option in
557      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558      *) ac_optarg=yes ;;
559    esac
560    eval "with_$ac_package='$ac_optarg'" ;;
561
562  -without-* | --without-*)
563    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564    # Reject names that are not valid shell variable names.
565    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566      { echo "$as_me: error: invalid package name: $ac_package" >&2
567   { (exit 1); exit 1; }; }
568    ac_package=`echo $ac_package | sed 's/-/_/g'`
569    eval "with_$ac_package=no" ;;
570
571  --x)
572    # Obsolete; use --with-x.
573    with_x=yes ;;
574
575  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576  | --x-incl | --x-inc | --x-in | --x-i)
577    ac_prev=x_includes ;;
578  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580    x_includes=$ac_optarg ;;
581
582  -x-libraries | --x-libraries | --x-librarie | --x-librari \
583  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584    ac_prev=x_libraries ;;
585  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587    x_libraries=$ac_optarg ;;
588
589  -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591   { (exit 1); exit 1; }; }
592    ;;
593
594  *=*)
595    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596    # Reject names that are not valid shell variable names.
597    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599   { (exit 1); exit 1; }; }
600    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601    eval "$ac_envvar='$ac_optarg'"
602    export $ac_envvar ;;
603
604  *)
605    # FIXME: should be removed in autoconf 3.0.
606    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
610    ;;
611
612  esac
613done
614
615if test -n "$ac_prev"; then
616  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617  { echo "$as_me: error: missing argument to $ac_option" >&2
618   { (exit 1); exit 1; }; }
619fi
620
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624  eval ac_val=$`echo $ac_var`
625  case $ac_val in
626    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628   { (exit 1); exit 1; }; };;
629  esac
630done
631
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634              localstatedir libdir includedir oldincludedir infodir mandir
635do
636  eval ac_val=$`echo $ac_var`
637  case $ac_val in
638    [\\/$]* | ?:[\\/]* ) ;;
639    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640   { (exit 1); exit 1; }; };;
641  esac
642done
643
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
650
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653  if test "x$build_alias" = x; then
654    cross_compiling=maybe
655    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656    If a cross compiler is detected then cross compile mode will be used." >&2
657  elif test "x$build_alias" != "x$host_alias"; then
658    cross_compiling=yes
659  fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
666
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670  ac_srcdir_defaulted=yes
671  # Try the directory containing this script, then its parent.
672  ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674         X"$0" : 'X\(//\)[^/]' \| \
675         X"$0" : 'X\(//\)$' \| \
676         X"$0" : 'X\(/\)' \| \
677         .     : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681      /^X\(\/\/\)$/{ s//\1/; q; }
682      /^X\(\/\).*/{ s//\1/; q; }
683      s/.*/./; q'`
684  srcdir=$ac_confdir
685  if test ! -r $srcdir/$ac_unique_file; then
686    srcdir=..
687  fi
688else
689  ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692  if test "$ac_srcdir_defaulted" = yes; then
693    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694   { (exit 1); exit 1; }; }
695  else
696    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697   { (exit 1); exit 1; }; }
698  fi
699fi
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702   { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716
717#
718# Report the --help message.
719#
720if test "$ac_init_help" = "long"; then
721  # Omit some internal or obsolete options to make the list less imposing.
722  # This message is too long to be a string in the A/UX 3.1 sh.
723  cat <<_ACEOF
724\`configure' configures this package to adapt to many kinds of systems.
725
726Usage: $0 [OPTION]... [VAR=VALUE]...
727
728To assign environment variables (e.g., CC, CFLAGS...), specify them as
729VAR=VALUE.  See below for descriptions of some of the useful variables.
730
731Defaults for the options are specified in brackets.
732
733Configuration:
734  -h, --help              display this help and exit
735      --help=short        display options specific to this package
736      --help=recursive    display the short help of all the included packages
737  -V, --version           display version information and exit
738  -q, --quiet, --silent   do not print \`checking...' messages
739      --cache-file=FILE   cache test results in FILE [disabled]
740  -C, --config-cache      alias for \`--cache-file=config.cache'
741  -n, --no-create         do not create output files
742      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
743
744_ACEOF
745
746  cat <<_ACEOF
747Installation directories:
748  --prefix=PREFIX         install architecture-independent files in PREFIX
749                          [$ac_default_prefix]
750  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
751                          [PREFIX]
752
753By default, \`make install' will install all the files in
754\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
755an installation prefix other than \`$ac_default_prefix' using \`--prefix',
756for instance \`--prefix=\$HOME'.
757
758For better control, use the options below.
759
760Fine tuning of the installation directories:
761  --bindir=DIR           user executables [EPREFIX/bin]
762  --sbindir=DIR          system admin executables [EPREFIX/sbin]
763  --libexecdir=DIR       program executables [EPREFIX/libexec]
764  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
765  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
766  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
767  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
768  --libdir=DIR           object code libraries [EPREFIX/lib]
769  --includedir=DIR       C header files [PREFIX/include]
770  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
771  --infodir=DIR          info documentation [PREFIX/info]
772  --mandir=DIR           man documentation [PREFIX/man]
773_ACEOF
774
775  cat <<\_ACEOF
776_ACEOF
777fi
778
779if test -n "$ac_init_help"; then
780
781  cat <<\_ACEOF
782
783Optional Features:
784  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
785  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
786  --enable-jpty           build and install jpty
787  --disable-jpty          do not build or install jpty (default)
788  --enable-debug          enable run-time debugging
789  --disable-debug         disable run-time debugging (default)
790
791Optional Packages:
792  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
793  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
794  --with-jdk=DIR          JDK you want to use
795  --with-options=OPTIONS  runtime options to be passed to java (e.g. -server)
796  --with-extensions=PATH  extensions to CLASSPATH (JIMI, Xerces, etc.)
797
798_ACEOF
799fi
800
801if test "$ac_init_help" = "recursive"; then
802  # If there are subdirs, report their specific --help.
803  ac_popdir=`pwd`
804  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
805    test -d $ac_dir || continue
806    ac_builddir=.
807
808if test "$ac_dir" != .; then
809  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
810  # A "../" for each directory in $ac_dir_suffix.
811  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
812else
813  ac_dir_suffix= ac_top_builddir=
814fi
815
816case $srcdir in
817  .)  # No --srcdir option.  We are building in place.
818    ac_srcdir=.
819    if test -z "$ac_top_builddir"; then
820       ac_top_srcdir=.
821    else
822       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
823    fi ;;
824  [\\/]* | ?:[\\/]* )  # Absolute path.
825    ac_srcdir=$srcdir$ac_dir_suffix;
826    ac_top_srcdir=$srcdir ;;
827  *) # Relative path.
828    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
829    ac_top_srcdir=$ac_top_builddir$srcdir ;;
830esac
831# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
832# absolute.
833ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
834ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
835ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
836ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
837
838    cd $ac_dir
839    # Check for guested configure; otherwise get Cygnus style configure.
840    if test -f $ac_srcdir/configure.gnu; then
841      echo
842      $SHELL $ac_srcdir/configure.gnu  --help=recursive
843    elif test -f $ac_srcdir/configure; then
844      echo
845      $SHELL $ac_srcdir/configure  --help=recursive
846    elif test -f $ac_srcdir/configure.ac ||
847           test -f $ac_srcdir/configure.in; then
848      echo
849      $ac_configure --help
850    else
851      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
852    fi
853    cd "$ac_popdir"
854  done
855fi
856
857test -n "$ac_init_help" && exit 0
858if $ac_init_version; then
859  cat <<\_ACEOF
860
861Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
862Free Software Foundation, Inc.
863This configure script is free software; the Free Software Foundation
864gives unlimited permission to copy, distribute and modify it.
865_ACEOF
866  exit 0
867fi
868exec 5>config.log
869cat >&5 <<_ACEOF
870This file contains any messages produced by compilers while
871running configure, to aid debugging if configure makes a mistake.
872
873It was created by $as_me, which was
874generated by GNU Autoconf 2.57.  Invocation command line was
875
876  $ $0 $@
877
878_ACEOF
879{
880cat <<_ASUNAME
881## --------- ##
882## Platform. ##
883## --------- ##
884
885hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
886uname -m = `(uname -m) 2>/dev/null || echo unknown`
887uname -r = `(uname -r) 2>/dev/null || echo unknown`
888uname -s = `(uname -s) 2>/dev/null || echo unknown`
889uname -v = `(uname -v) 2>/dev/null || echo unknown`
890
891/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
892/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
893
894/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
895/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
896/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
897hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
898/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
899/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
900/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
901
902_ASUNAME
903
904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
905for as_dir in $PATH
906do
907  IFS=$as_save_IFS
908  test -z "$as_dir" && as_dir=.
909  echo "PATH: $as_dir"
910done
911
912} >&5
913
914cat >&5 <<_ACEOF
915
916
917## ----------- ##
918## Core tests. ##
919## ----------- ##
920
921_ACEOF
922
923
924# Keep a trace of the command line.
925# Strip out --no-create and --no-recursion so they do not pile up.
926# Strip out --silent because we don't want to record it for future runs.
927# Also quote any args containing shell meta-characters.
928# Make two passes to allow for proper duplicate-argument suppression.
929ac_configure_args=
930ac_configure_args0=
931ac_configure_args1=
932ac_sep=
933ac_must_keep_next=false
934for ac_pass in 1 2
935do
936  for ac_arg
937  do
938    case $ac_arg in
939    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
940    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
941    | -silent | --silent | --silen | --sile | --sil)
942      continue ;;
943    *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
944      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
945    esac
946    case $ac_pass in
947    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
948    2)
949      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
950      if test $ac_must_keep_next = true; then
951        ac_must_keep_next=false # Got value, back to normal.
952      else
953        case $ac_arg in
954          *=* | --config-cache | -C | -disable-* | --disable-* \
955          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
956          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
957          | -with-* | --with-* | -without-* | --without-* | --x)
958            case "$ac_configure_args0 " in
959              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
960            esac
961            ;;
962          -* ) ac_must_keep_next=true ;;
963        esac
964      fi
965      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
966      # Get rid of the leading space.
967      ac_sep=" "
968      ;;
969    esac
970  done
971done
972$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
973$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
974
975# When interrupted or exit'd, cleanup temporary files, and complete
976# config.log.  We remove comments because anyway the quotes in there
977# would cause problems or look ugly.
978# WARNING: Be sure not to use single quotes in there, as some shells,
979# such as our DU 5.0 friend, will then `close' the trap.
980trap 'exit_status=$?
981  # Save into config.log some information that might help in debugging.
982  {
983    echo
984
985    cat <<\_ASBOX
986## ---------------- ##
987## Cache variables. ##
988## ---------------- ##
989_ASBOX
990    echo
991    # The following way of writing the cache mishandles newlines in values,
992{
993  (set) 2>&1 |
994    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
995    *ac_space=\ *)
996      sed -n \
997        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
998        s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
999      ;;
1000    *)
1001      sed -n \
1002        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1003      ;;
1004    esac;
1005}
1006    echo
1007
1008    cat <<\_ASBOX
1009## ----------------- ##
1010## Output variables. ##
1011## ----------------- ##
1012_ASBOX
1013    echo
1014    for ac_var in $ac_subst_vars
1015    do
1016      eval ac_val=$`echo $ac_var`
1017      echo "$ac_var='"'"'$ac_val'"'"'"
1018    done | sort
1019    echo
1020
1021    if test -n "$ac_subst_files"; then
1022      cat <<\_ASBOX
1023## ------------- ##
1024## Output files. ##
1025## ------------- ##
1026_ASBOX
1027      echo
1028      for ac_var in $ac_subst_files
1029      do
1030  eval ac_val=$`echo $ac_var`
1031        echo "$ac_var='"'"'$ac_val'"'"'"
1032      done | sort
1033      echo
1034    fi
1035
1036    if test -s confdefs.h; then
1037      cat <<\_ASBOX
1038## ----------- ##
1039## confdefs.h. ##
1040## ----------- ##
1041_ASBOX
1042      echo
1043      sed "/^$/d" confdefs.h | sort
1044      echo
1045    fi
1046    test "$ac_signal" != 0 &&
1047      echo "$as_me: caught signal $ac_signal"
1048    echo "$as_me: exit $exit_status"
1049  } >&5
1050  rm -f core *.core &&
1051  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1052    exit $exit_status
1053     ' 0
1054for ac_signal in 1 2 13 15; do
1055  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1056done
1057ac_signal=0
1058
1059# confdefs.h avoids OS command line length limits that DEFS can exceed.
1060rm -rf conftest* confdefs.h
1061# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1062echo >confdefs.h
1063
1064# Predefined preprocessor variables.
1065
1066cat >>confdefs.h <<_ACEOF
1067#define PACKAGE_NAME "$PACKAGE_NAME"
1068_ACEOF
1069
1070
1071cat >>confdefs.h <<_ACEOF
1072#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1073_ACEOF
1074
1075
1076cat >>confdefs.h <<_ACEOF
1077#define PACKAGE_VERSION "$PACKAGE_VERSION"
1078_ACEOF
1079
1080
1081cat >>confdefs.h <<_ACEOF
1082#define PACKAGE_STRING "$PACKAGE_STRING"
1083_ACEOF
1084
1085
1086cat >>confdefs.h <<_ACEOF
1087#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1088_ACEOF
1089
1090
1091# Let the site file select an alternate cache file if it wants to.
1092# Prefer explicitly selected file to automatically selected ones.
1093if test -z "$CONFIG_SITE"; then
1094  if test "x$prefix" != xNONE; then
1095    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1096  else
1097    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1098  fi
1099fi
1100for ac_site_file in $CONFIG_SITE; do
1101  if test -r "$ac_site_file"; then
1102    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1103echo "$as_me: loading site script $ac_site_file" >&6;}
1104    sed 's/^/| /' "$ac_site_file" >&5
1105    . "$ac_site_file"
1106  fi
1107done
1108
1109if test -r "$cache_file"; then
1110  # Some versions of bash will fail to source /dev/null (special
1111  # files actually), so we avoid doing that.
1112  if test -f "$cache_file"; then
1113    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1114echo "$as_me: loading cache $cache_file" >&6;}
1115    case $cache_file in
1116      [\\/]* | ?:[\\/]* ) . $cache_file;;
1117      *)                      . ./$cache_file;;
1118    esac
1119  fi
1120else
1121  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1122echo "$as_me: creating cache $cache_file" >&6;}
1123  >$cache_file
1124fi
1125
1126# Check that the precious variables saved in the cache have kept the same
1127# value.
1128ac_cache_corrupted=false
1129for ac_var in `(set) 2>&1 |
1130               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1131  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1132  eval ac_new_set=\$ac_env_${ac_var}_set
1133  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1134  eval ac_new_val="\$ac_env_${ac_var}_value"
1135  case $ac_old_set,$ac_new_set in
1136    set,)
1137      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1138echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1139      ac_cache_corrupted=: ;;
1140    ,set)
1141      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1142echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1143      ac_cache_corrupted=: ;;
1144    ,);;
1145    *)
1146      if test "x$ac_old_val" != "x$ac_new_val"; then
1147        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1148echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1149        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1150echo "$as_me:   former value:  $ac_old_val" >&2;}
1151        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1152echo "$as_me:   current value: $ac_new_val" >&2;}
1153        ac_cache_corrupted=:
1154      fi;;
1155  esac
1156  # Pass precious variables to config.status.
1157  if test "$ac_new_set" = set; then
1158    case $ac_new_val in
1159    *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1160      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1161    *) ac_arg=$ac_var=$ac_new_val ;;
1162    esac
1163    case " $ac_configure_args " in
1164      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1165      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1166    esac
1167  fi
1168done
1169if $ac_cache_corrupted; then
1170  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1171echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1172  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1173echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1174   { (exit 1); exit 1; }; }
1175fi
1176
1177ac_ext=c
1178ac_cpp='$CPP $CPPFLAGS'
1179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1181ac_compiler_gnu=$ac_cv_c_compiler_gnu
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202ac_aux_dir=
1203for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1204  if test -f $ac_dir/install-sh; then
1205    ac_aux_dir=$ac_dir
1206    ac_install_sh="$ac_aux_dir/install-sh -c"
1207    break
1208  elif test -f $ac_dir/install.sh; then
1209    ac_aux_dir=$ac_dir
1210    ac_install_sh="$ac_aux_dir/install.sh -c"
1211    break
1212  elif test -f $ac_dir/shtool; then
1213    ac_aux_dir=$ac_dir
1214    ac_install_sh="$ac_aux_dir/shtool install -c"
1215    break
1216  fi
1217done
1218if test -z "$ac_aux_dir"; then
1219  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1220echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1221   { (exit 1); exit 1; }; }
1222fi
1223ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1224ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1225ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1226
1227# Find a good install program.  We prefer a C program (faster),
1228# so one script is as good as another.  But avoid the broken or
1229# incompatible versions:
1230# SysV /etc/install, /usr/sbin/install
1231# SunOS /usr/etc/install
1232# IRIX /sbin/install
1233# AIX /bin/install
1234# AmigaOS /C/install, which installs bootblocks on floppy discs
1235# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1236# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1237# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1238# ./install, which can be erroneously created by make from ./install.sh.
1239echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1240echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1241if test -z "$INSTALL"; then
1242if test "${ac_cv_path_install+set}" = set; then
1243  echo $ECHO_N "(cached) $ECHO_C" >&6
1244else
1245  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1246for as_dir in $PATH
1247do
1248  IFS=$as_save_IFS
1249  test -z "$as_dir" && as_dir=.
1250  # Account for people who put trailing slashes in PATH elements.
1251case $as_dir/ in
1252  ./ | .// | /cC/* | \
1253  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1254  /usr/ucb/* ) ;;
1255  *)
1256    # OSF1 and SCO ODT 3.0 have their own names for install.
1257    # Don't use installbsd from OSF since it installs stuff as root
1258    # by default.
1259    for ac_prog in ginstall scoinst install; do
1260      for ac_exec_ext in '' $ac_executable_extensions; do
1261        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1262          if test $ac_prog = install &&
1263            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1264            # AIX install.  It has an incompatible calling convention.
1265            :
1266          elif test $ac_prog = install &&
1267            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1268            # program-specific install script used by HP pwplus--don't use.
1269            :
1270          else
1271            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1272            break 3
1273          fi
1274        fi
1275      done
1276    done
1277    ;;
1278esac
1279done
1280
1281
1282fi
1283  if test "${ac_cv_path_install+set}" = set; then
1284    INSTALL=$ac_cv_path_install
1285  else
1286    # As a last resort, use the slow shell script.  We don't cache a
1287    # path for INSTALL within a source directory, because that will
1288    # break other packages using the cache if that directory is
1289    # removed, or if the path is relative.
1290    INSTALL=$ac_install_sh
1291  fi
1292fi
1293echo "$as_me:$LINENO: result: $INSTALL" >&5
1294echo "${ECHO_T}$INSTALL" >&6
1295
1296# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1297# It thinks the first close brace ends the variable substitution.
1298test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1299
1300test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1301
1302test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1303
1304
1305version=0.20.1.20
1306
1307
1308if test $OSTYPE = cygwin32 || test $OSTYPE = cygwin ; then
1309    CYGWIN=yes
1310    PATHSEP=";"
1311else
1312    PATHSEP=":"
1313fi
1314
1315
1316
1317
1318case "${srcdir}" in
1319    /*)
1320        ;;
1321    .)
1322        unset CDPATH
1323        if test "${PWD}" != "" && test "`(cd ${PWD}; sh -c pwd)`" = "`pwd`"; then
1324            srcdir="$PWD"
1325        else
1326            srcdir="`(cd ${srcdir}; pwd)`"
1327        fi
1328        ;;
1329    *)
1330        srcdir="`(cd ${srcdir}; pwd)`"
1331        ;;
1332esac
1333
1334
1335
1336# Check whether --with-jdk or --without-jdk was given.
1337if test "${with_jdk+set}" = set; then
1338  withval="$with_jdk"
1339
1340    JDK=${with_jdk}
1341
1342else
1343
1344    { { echo "$as_me:$LINENO: error: no jdk specified; use --with-jdk" >&5
1345echo "$as_me: error: no jdk specified; use --with-jdk" >&2;}
1346   { (exit 1); exit 1; }; }
1347
1348fi;
1349
1350JDK=`echo $JDK | sed -e 's/\/$//'`
1351
1352if test -x $JDK/bin/java; then
1353    JAVA=$JDK/bin/java;
1354elif test -x $JDK/jre/bin/java; then
1355    JAVA=$JDK/jre/bin/java;
1356elif test -x $JDK/Home/bin/java; then
1357    JAVA=$JDK/Home/bin/java;
1358else
1359    { { echo "$as_me:$LINENO: error: Java not found" >&5
1360echo "$as_me: error: Java not found" >&2;}
1361   { (exit 1); exit 1; }; }
1362fi
1363
1364
1365
1366
1367echo "$as_me:$LINENO: checking Java version" >&5
1368echo $ECHO_N "checking Java version... $ECHO_C" >&6
1369JAVA_VERSION=`$JAVA -version 2>&1`
1370
1371case "$JAVA_VERSION" in
1372    java*1.1*)
1373        { { echo "$as_me:$LINENO: error: Java 1.4 or later is required" >&5
1374echo "$as_me: error: Java 1.4 or later is required" >&2;}
1375   { (exit 1); exit 1; }; }
1376        ;;
1377    java*1.2.*)
1378        { { echo "$as_me:$LINENO: error: Java 1.4 or later is required" >&5
1379echo "$as_me: error: Java 1.4 or later is required" >&2;}
1380   { (exit 1); exit 1; }; }
1381        ;;
1382    java*1.3*)
1383        { { echo "$as_me:$LINENO: error: Java 1.4 or later is required" >&5
1384echo "$as_me: error: Java 1.4 or later is required" >&2;}
1385   { (exit 1); exit 1; }; }
1386        ;;
1387    java*1.4*)
1388        echo "$as_me:$LINENO: result: $JAVA_VERSION" >&5
1389echo "${ECHO_T}$JAVA_VERSION" >&6
1390        ;;
1391    *)
1392        { { echo "$as_me:$LINENO: error: unknown Java version" >&5
1393echo "$as_me: error: unknown Java version" >&2;}
1394   { (exit 1); exit 1; }; }
1395        ;;
1396esac
1397
1398
1399
1400test -z "$JAVAC" && for ac_prog in jikes
1401do
1402  # Extract the first word of "$ac_prog", so it can be a program name with args.
1403set dummy $ac_prog; ac_word=$2
1404echo "$as_me:$LINENO: checking for $ac_word" >&5
1405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406if test "${ac_cv_prog_JAVAC+set}" = set; then
1407  echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409  if test -n "$JAVAC"; then
1410  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
1411else
1412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413for as_dir in $PATH
1414do
1415  IFS=$as_save_IFS
1416  test -z "$as_dir" && as_dir=.
1417  for ac_exec_ext in '' $ac_executable_extensions; do
1418  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1419    ac_cv_prog_JAVAC="$ac_prog"
1420    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1421    break 2
1422  fi
1423done
1424done
1425
1426fi
1427fi
1428JAVAC=$ac_cv_prog_JAVAC
1429if test -n "$JAVAC"; then
1430  echo "$as_me:$LINENO: result: $JAVAC" >&5
1431echo "${ECHO_T}$JAVAC" >&6
1432else
1433  echo "$as_me:$LINENO: result: no" >&5
1434echo "${ECHO_T}no" >&6
1435fi
1436
1437  test -n "$JAVAC" && break
1438done
1439
1440test -z "$JAVAC" && test -x $JDK/Home/bin/javac && JAVAC=$JDK/Home/bin/javac
1441test -z "$JAVAC" && JAVAC=$JDK/bin/javac
1442if test "$JAVAC" = jikes; then
1443    JAVACFLAGS="+D +F"
1444fi
1445
1446
1447
1448
1449test -z "$JAR" && for ac_prog in fastjar
1450do
1451  # Extract the first word of "$ac_prog", so it can be a program name with args.
1452set dummy $ac_prog; ac_word=$2
1453echo "$as_me:$LINENO: checking for $ac_word" >&5
1454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1455if test "${ac_cv_prog_JAR+set}" = set; then
1456  echo $ECHO_N "(cached) $ECHO_C" >&6
1457else
1458  if test -n "$JAR"; then
1459  ac_cv_prog_JAR="$JAR" # Let the user override the test.
1460else
1461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1462for as_dir in $PATH
1463do
1464  IFS=$as_save_IFS
1465  test -z "$as_dir" && as_dir=.
1466  for ac_exec_ext in '' $ac_executable_extensions; do
1467  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1468    ac_cv_prog_JAR="$ac_prog"
1469    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1470    break 2
1471  fi
1472done
1473done
1474
1475fi
1476fi
1477JAR=$ac_cv_prog_JAR
1478if test -n "$JAR"; then
1479  echo "$as_me:$LINENO: result: $JAR" >&5
1480echo "${ECHO_T}$JAR" >&6
1481else
1482  echo "$as_me:$LINENO: result: no" >&5
1483echo "${ECHO_T}no" >&6
1484fi
1485
1486  test -n "$JAR" && break
1487done
1488
1489test -z "$JAR" && test -x $JDK/Home/bin/jar && JAR=$JDK/Home/bin/jar
1490test -z "$JAR" && JAR=$JDK/bin/jar
1491
1492
1493
1494if test -f $JDK/jre/lib/rt.jar ; then
1495    JAVA_RUNTIME=$JDK/jre/lib/rt.jar
1496elif test -f $JDK/jre/lib/core.jar ; then
1497    JAVA_RUNTIME=""
1498    for i in $JDK/jre/lib/*.jar ; do JAVA_RUNTIME=$JAVA_RUNTIME:$i ; done
1499elif test -d $JDK/Classes ; then
1500    JAVA_RUNTIME=""
1501    for i in $JDK/Classes/*.jar ; do JAVA_RUNTIME=$JAVA_RUNTIME:$i ; done
1502else
1503    { { echo "$as_me:$LINENO: error: unable to find Java runtime" >&5
1504echo "$as_me: error: unable to find Java runtime" >&2;}
1505   { (exit 1); exit 1; }; }
1506fi
1507if test -f $JDK/lib/tools.jar ; then
1508    JAVA_RUNTIME=$JAVA_RUNTIME:$JDK/lib/tools.jar
1509fi
1510
1511
1512
1513test "x$prefix" = xNONE && prefix=/usr/local
1514
1515
1516eval "datadir=$datadir"
1517
1518
1519
1520JPATH=$srcdir/src:$datadir/j/j.jar
1521
1522CP="-cp"
1523CLASSPATH="$JPATH:$JDK/lib/tools.jar"
1524
1525
1526
1527COMPILER_CLASSPATH="$srcdir/src:$JAVA_RUNTIME"
1528
1529
1530
1531# Check whether --with-options or --without-options was given.
1532if test "${with_options+set}" = set; then
1533  withval="$with_options"
1534
1535    JAVA_OPTIONS=${with_options}
1536
1537fi;
1538
1539
1540
1541# Check whether --with-extensions or --without-extensions was given.
1542if test "${with_extensions+set}" = set; then
1543  withval="$with_extensions"
1544
1545    EXTENSIONS=${with_extensions}
1546
1547fi;
1548
1549if test $EXTENSIONS; then
1550    CLASSPATH="$CLASSPATH:$EXTENSIONS"
1551    COMPILER_CLASSPATH="$COMPILER_CLASSPATH:$EXTENSIONS"
1552fi
1553
1554if test $CYGWIN; then
1555    JAVA_RUNTIME=`cygpath -p -w $JAVA_RUNTIME`
1556    CLASSPATH=`cygpath -p -w $CLASSPATH`
1557    COMPILER_CLASSPATH=`cygpath -p -w $COMPILER_CLASSPATH`
1558fi
1559
1560
1561# Check whether --enable-jpty or --disable-jpty was given.
1562if test "${enable_jpty+set}" = set; then
1563  enableval="$enable_jpty"
1564
1565fi;
1566
1567if test "$enable_jpty" = "yes"; then
1568    if test $CYGWIN; then
1569        JPTY=jpty.exe
1570    else
1571        JPTY=jpty
1572    fi
1573fi
1574
1575
1576
1577
1578# Check whether --enable-debug or --disable-debug was given.
1579if test "${enable_debug+set}" = set; then
1580  enableval="$enable_debug"
1581
1582fi;
1583
1584if test "$enable_debug" = "yes"; then
1585    JAVACFLAGS="$JAVACFLAGS -g"
1586else
1587    JAVACFLAGS="$JAVACFLAGS -g:none"
1588fi
1589
1590
1591                                                                                                    ac_config_files="$ac_config_files Makefile src/Makefile src/jpty/Makefile src/gnu/regexp/Makefile src/org/armedbear/j/Makefile src/org/armedbear/j/version src/org/armedbear/j/mail/Makefile src/org/armedbear/j/jdb/Makefile src/org/armedbear/lisp/Makefile j"
1592cat >confcache <<\_ACEOF
1593# This file is a shell script that caches the results of configure
1594# tests run on this system so they can be shared between configure
1595# scripts and configure runs, see configure's option --config-cache.
1596# It is not useful on other systems.  If it contains results you don't
1597# want to keep, you may remove or edit it.
1598#
1599# config.status only pays attention to the cache file if you give it
1600# the --recheck option to rerun configure.
1601#
1602# `ac_cv_env_foo' variables (set or unset) will be overridden when
1603# loading this file, other *unset* `ac_cv_foo' will be assigned the
1604# following values.
1605
1606_ACEOF
1607
1608# The following way of writing the cache mishandles newlines in values,
1609# but we know of no workaround that is simple, portable, and efficient.
1610# So, don't put newlines in cache variables' values.
1611# Ultrix sh set writes to stderr and can't be redirected directly,
1612# and sets the high bit in the cache file unless we assign to the vars.
1613{
1614  (set) 2>&1 |
1615    case `(ac_space=' '; set | grep ac_space) 2>&1` in
1616    *ac_space=\ *)
1617      # `set' does not quote correctly, so add quotes (double-quote
1618      # substitution turns \\\\ into \\, and sed turns \\ into \).
1619      sed -n \
1620        "s/'/'\\\\''/g;
1621        s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1622      ;;
1623    *)
1624      # `set' quotes correctly as required by POSIX, so do not add quotes.
1625      sed -n \
1626        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1627      ;;
1628    esac;
1629} |
1630  sed '
1631     t clear
1632     : clear
1633     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1634     t end
1635     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1636     : end' >>confcache
1637if diff $cache_file confcache >/dev/null 2>&1; then :; else
1638  if test -w $cache_file; then
1639    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1640    cat confcache >$cache_file
1641  else
1642    echo "not updating unwritable cache $cache_file"
1643  fi
1644fi
1645rm -f confcache
1646
1647test "x$prefix" = xNONE && prefix=$ac_default_prefix
1648# Let make expand exec_prefix.
1649test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1650
1651# VPATH may cause trouble with some makes, so we remove $(srcdir),
1652# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
1653# trailing colons and then remove the whole line if VPATH becomes empty
1654# (actually we leave an empty line to preserve line numbers).
1655if test "x$srcdir" = x.; then
1656  ac_vpsub='/^[   ]*VPATH[  ]*=/{
1657s/:*\$(srcdir):*/:/;
1658s/:*\${srcdir}:*/:/;
1659s/:*@srcdir@:*/:/;
1660s/^\([^=]*=[  ]*\):*/\1/;
1661s/:*$//;
1662s/^[^=]*=[  ]*$//;
1663}'
1664fi
1665
1666# Transform confdefs.h into DEFS.
1667# Protect against shell expansion while executing Makefile rules.
1668# Protect against Makefile macro expansion.
1669#
1670# If the first sed substitution is executed (which looks for macros that
1671# take arguments), then we branch to the quote section.  Otherwise,
1672# look for a macro that doesn't take arguments.
1673cat >confdef2opt.sed <<\_ACEOF
1674t clear
1675: clear
1676s,^[  ]*#[  ]*define[   ][  ]*\([^  (][^  (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
1677t quote
1678s,^[  ]*#[  ]*define[   ][  ]*\([^  ][^   ]*\)[   ]*\(.*\),-D\1=\2,g
1679t quote
1680d
1681: quote
1682s,[   `~#$^&*(){}\\|;'"<>?],\\&,g
1683s,\[,\\&,g
1684s,\],\\&,g
1685s,\$,$$,g
1686p
1687_ACEOF
1688# We use echo to avoid assuming a particular line-breaking character.
1689# The extra dot is to prevent the shell from consuming trailing
1690# line-breaks from the sub-command output.  A line-break within
1691# single-quotes doesn't work because, if this script is created in a
1692# platform that uses two characters for line-breaks (e.g., DOS), tr
1693# would break.
1694ac_LF_and_DOT=`echo; echo .`
1695DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
1696rm -f confdef2opt.sed
1697
1698
1699ac_libobjs=
1700ac_ltlibobjs=
1701for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1702  # 1. Remove the extension, and $U if already installed.
1703  ac_i=`echo "$ac_i" |
1704         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
1705  # 2. Add them.
1706  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
1707  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1708done
1709LIBOBJS=$ac_libobjs
1710
1711LTLIBOBJS=$ac_ltlibobjs
1712
1713
1714
1715: ${CONFIG_STATUS=./config.status}
1716ac_clean_files_save=$ac_clean_files
1717ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1718{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
1719echo "$as_me: creating $CONFIG_STATUS" >&6;}
1720cat >$CONFIG_STATUS <<_ACEOF
1721#! $SHELL
1722# Generated by $as_me.
1723# Run this file to recreate the current configuration.
1724# Compiler output produced by configure, useful for debugging
1725# configure, is in config.log if it exists.
1726
1727debug=false
1728ac_cs_recheck=false
1729ac_cs_silent=false
1730SHELL=\${CONFIG_SHELL-$SHELL}
1731_ACEOF
1732
1733cat >>$CONFIG_STATUS <<\_ACEOF
1734## --------------------- ##
1735## M4sh Initialization.  ##
1736## --------------------- ##
1737
1738# Be Bourne compatible
1739if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1740  emulate sh
1741  NULLCMD=:
1742  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1743  # is contrary to our usage.  Disable this feature.
1744  alias -g '${1+"$@"}'='"$@"'
1745elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
1746  set -o posix
1747fi
1748
1749# Support unset when possible.
1750if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
1751  as_unset=unset
1752else
1753  as_unset=false
1754fi
1755
1756
1757# Work around bugs in pre-3.0 UWIN ksh.
1758$as_unset ENV MAIL MAILPATH
1759PS1='$ '
1760PS2='> '
1761PS4='+ '
1762
1763# NLS nuisances.
1764for as_var in \
1765  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
1766  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
1767  LC_TELEPHONE LC_TIME
1768do
1769  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
1770    eval $as_var=C; export $as_var
1771  else
1772    $as_unset $as_var
1773  fi
1774done
1775
1776# Required to use basename.
1777if expr a : '\(a\)' >/dev/null 2>&1; then
1778  as_expr=expr
1779else
1780  as_expr=false
1781fi
1782
1783if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1784  as_basename=basename
1785else
1786  as_basename=false
1787fi
1788
1789
1790# Name of the executable.
1791as_me=`$as_basename "$0" ||
1792$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1793   X"$0" : 'X\(//\)$' \| \
1794   X"$0" : 'X\(/\)$' \| \
1795   .     : '\(.\)' 2>/dev/null ||
1796echo X/"$0" |
1797    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
1798      /^X\/\(\/\/\)$/{ s//\1/; q; }
1799      /^X\/\(\/\).*/{ s//\1/; q; }
1800      s/.*/./; q'`
1801
1802
1803# PATH needs CR, and LINENO needs CR and PATH.
1804# Avoid depending upon Character Ranges.
1805as_cr_letters='abcdefghijklmnopqrstuvwxyz'
1806as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1807as_cr_Letters=$as_cr_letters$as_cr_LETTERS
1808as_cr_digits='0123456789'
1809as_cr_alnum=$as_cr_Letters$as_cr_digits
1810
1811# The user is always right.
1812if test "${PATH_SEPARATOR+set}" != set; then
1813  echo "#! /bin/sh" >conf$$.sh
1814  echo  "exit 0"   >>conf$$.sh
1815  chmod +x conf$$.sh
1816  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1817    PATH_SEPARATOR=';'
1818  else
1819    PATH_SEPARATOR=:
1820  fi
1821  rm -f conf$$.sh
1822fi
1823
1824
1825  as_lineno_1=$LINENO
1826  as_lineno_2=$LINENO
1827  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1828  test "x$as_lineno_1" != "x$as_lineno_2" &&
1829  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
1830  # Find who we are.  Look in the path if we contain no path at all
1831  # relative or not.
1832  case $0 in
1833    *[\\/]* ) as_myself=$0 ;;
1834    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835for as_dir in $PATH
1836do
1837  IFS=$as_save_IFS
1838  test -z "$as_dir" && as_dir=.
1839  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1840done
1841
1842       ;;
1843  esac
1844  # We did not find ourselves, most probably we were run as `sh COMMAND'
1845  # in which case we are not to be found in the path.
1846  if test "x$as_myself" = x; then
1847    as_myself=$0
1848  fi
1849  if test ! -f "$as_myself"; then
1850    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
1851echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
1852   { (exit 1); exit 1; }; }
1853  fi
1854  case $CONFIG_SHELL in
1855  '')
1856    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1858do
1859  IFS=$as_save_IFS
1860  test -z "$as_dir" && as_dir=.
1861  for as_base in sh bash ksh sh5; do
1862   case $as_dir in
1863   /*)
1864     if ("$as_dir/$as_base" -c '
1865  as_lineno_1=$LINENO
1866  as_lineno_2=$LINENO
1867  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1868  test "x$as_lineno_1" != "x$as_lineno_2" &&
1869  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
1870       $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
1871       $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
1872       CONFIG_SHELL=$as_dir/$as_base
1873       export CONFIG_SHELL
1874       exec "$CONFIG_SHELL" "$0" ${1+"$@"}
1875     fi;;
1876   esac
1877       done
1878done
1879;;
1880  esac
1881
1882  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
1883  # uniformly replaced by the line number.  The first 'sed' inserts a
1884  # line-number line before each line; the second 'sed' does the real
1885  # work.  The second script uses 'N' to pair each line-number line
1886  # with the numbered line, and appends trailing '-' during
1887  # substitution so that $LINENO is not a special case at line end.
1888  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1889  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
1890  sed '=' <$as_myself |
1891    sed '
1892      N
1893      s,$,-,
1894      : loop
1895      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1896      t loop
1897      s,-$,,
1898      s,^['$as_cr_digits']*\n,,
1899    ' >$as_me.lineno &&
1900  chmod +x $as_me.lineno ||
1901    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
1902echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1903   { (exit 1); exit 1; }; }
1904
1905  # Don't try to exec as it changes $[0], causing all sort of problems
1906  # (the dirname of $[0] is not the place where we might find the
1907  # original and so on.  Autoconf is especially sensible to this).
1908  . ./$as_me.lineno
1909  # Exit status is that of the last command.
1910  exit
1911}
1912
1913
1914case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1915  *c*,-n*) ECHO_N= ECHO_C='
1916' ECHO_T='  ' ;;
1917  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1918  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
1919esac
1920
1921if expr a : '\(a\)' >/dev/null 2>&1; then
1922  as_expr=expr
1923else
1924  as_expr=false
1925fi
1926
1927rm -f conf$$ conf$$.exe conf$$.file
1928echo >conf$$.file
1929if ln -s conf$$.file conf$$ 2>/dev/null; then
1930  # We could just check for DJGPP; but this test a) works b) is more generic
1931  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
1932  if test -f conf$$.exe; then
1933    # Don't use ln at all; we don't have any links
1934    as_ln_s='cp -p'
1935  else
1936    as_ln_s='ln -s'
1937  fi
1938elif ln conf$$.file conf$$ 2>/dev/null; then
1939  as_ln_s=ln
1940else
1941  as_ln_s='cp -p'
1942fi
1943rm -f conf$$ conf$$.exe conf$$.file
1944
1945if mkdir -p . 2>/dev/null; then
1946  as_mkdir_p=:
1947else
1948  as_mkdir_p=false
1949fi
1950
1951as_executable_p="test -f"
1952
1953# Sed expression to map a string onto a valid CPP name.
1954as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
1955
1956# Sed expression to map a string onto a valid variable name.
1957as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
1958
1959
1960# IFS
1961# We need space, tab and new line, in precisely that order.
1962as_nl='
1963'
1964IFS="   $as_nl"
1965
1966# CDPATH.
1967$as_unset CDPATH
1968
1969exec 6>&1
1970
1971# Open the log real soon, to keep \$[0] and so on meaningful, and to
1972# report actual input values of CONFIG_FILES etc. instead of their
1973# values after options handling.  Logging --version etc. is OK.
1974exec 5>>config.log
1975{
1976  echo
1977  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1978## Running $as_me. ##
1979_ASBOX
1980} >&5
1981cat >&5 <<_CSEOF
1982
1983This file was extended by $as_me, which was
1984generated by GNU Autoconf 2.57.  Invocation command line was
1985
1986  CONFIG_FILES    = $CONFIG_FILES
1987  CONFIG_HEADERS  = $CONFIG_HEADERS
1988  CONFIG_LINKS    = $CONFIG_LINKS
1989  CONFIG_COMMANDS = $CONFIG_COMMANDS
1990  $ $0 $@
1991
1992_CSEOF
1993echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
1994echo >&5
1995_ACEOF
1996
1997# Files that config.status was made for.
1998if test -n "$ac_config_files"; then
1999  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2000fi
2001
2002if test -n "$ac_config_headers"; then
2003  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2004fi
2005
2006if test -n "$ac_config_links"; then
2007  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2008fi
2009
2010if test -n "$ac_config_commands"; then
2011  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2012fi
2013
2014cat >>$CONFIG_STATUS <<\_ACEOF
2015
2016ac_cs_usage="\
2017\`$as_me' instantiates files from templates according to the
2018current configuration.
2019
2020Usage: $0 [OPTIONS] [FILE]...
2021
2022  -h, --help       print this help, then exit
2023  -V, --version    print version number, then exit
2024  -q, --quiet      do not print progress messages
2025  -d, --debug      don't remove temporary files
2026      --recheck    update $as_me by reconfiguring in the same conditions
2027  --file=FILE[:TEMPLATE]
2028                   instantiate the configuration file FILE
2029
2030Configuration files:
2031$config_files
2032
2033Report bugs to <bug-autoconf@gnu.org>."
2034_ACEOF
2035
2036cat >>$CONFIG_STATUS <<_ACEOF
2037ac_cs_version="\\
2038config.status
2039configured by $0, generated by GNU Autoconf 2.57,
2040  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2041
2042Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
2043Free Software Foundation, Inc.
2044This config.status script is free software; the Free Software Foundation
2045gives unlimited permission to copy, distribute and modify it."
2046srcdir=$srcdir
2047INSTALL="$INSTALL"
2048_ACEOF
2049
2050cat >>$CONFIG_STATUS <<\_ACEOF
2051# If no file are specified by the user, then we need to provide default
2052# value.  By we need to know if files were specified by the user.
2053ac_need_defaults=:
2054while test $# != 0
2055do
2056  case $1 in
2057  --*=*)
2058    ac_option=`expr "x$1" : 'x\([^=]*\)='`
2059    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2060    ac_shift=:
2061    ;;
2062  -*)
2063    ac_option=$1
2064    ac_optarg=$2
2065    ac_shift=shift
2066    ;;
2067  *) # This is not an option, so the user has probably given explicit
2068     # arguments.
2069     ac_option=$1
2070     ac_need_defaults=false;;
2071  esac
2072
2073  case $ac_option in
2074  # Handling of the options.
2075_ACEOF
2076cat >>$CONFIG_STATUS <<\_ACEOF
2077  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2078    ac_cs_recheck=: ;;
2079  --version | --vers* | -V )
2080    echo "$ac_cs_version"; exit 0 ;;
2081  --he | --h)
2082    # Conflict between --help and --header
2083    { { echo "$as_me:$LINENO: error: ambiguous option: $1
2084Try \`$0 --help' for more information." >&5
2085echo "$as_me: error: ambiguous option: $1
2086Try \`$0 --help' for more information." >&2;}
2087   { (exit 1); exit 1; }; };;
2088  --help | --hel | -h )
2089    echo "$ac_cs_usage"; exit 0 ;;
2090  --debug | --d* | -d )
2091    debug=: ;;
2092  --file | --fil | --fi | --f )
2093    $ac_shift
2094    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2095    ac_need_defaults=false;;
2096  --header | --heade | --head | --hea )
2097    $ac_shift
2098    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
2099    ac_need_defaults=false;;
2100  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2101  | -silent | --silent | --silen | --sile | --sil | --si | --s)
2102    ac_cs_silent=: ;;
2103
2104  # This is an error.
2105  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
2106Try \`$0 --help' for more information." >&5
2107echo "$as_me: error: unrecognized option: $1
2108Try \`$0 --help' for more information." >&2;}
2109   { (exit 1); exit 1; }; } ;;
2110
2111  *) ac_config_targets="$ac_config_targets $1" ;;
2112
2113  esac
2114  shift
2115done
2116
2117ac_configure_extra_args=
2118
2119if $ac_cs_silent; then
2120  exec 6>/dev/null
2121  ac_configure_extra_args="$ac_configure_extra_args --silent"
2122fi
2123
2124_ACEOF
2125cat >>$CONFIG_STATUS <<_ACEOF
2126if \$ac_cs_recheck; then
2127  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
2128  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2129fi
2130
2131_ACEOF
2132
2133
2134
2135
2136
2137cat >>$CONFIG_STATUS <<\_ACEOF
2138for ac_config_target in $ac_config_targets
2139do
2140  case "$ac_config_target" in
2141  # Handling of arguments.
2142  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2143  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
2144  "src/jpty/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/jpty/Makefile" ;;
2145  "src/gnu/regexp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnu/regexp/Makefile" ;;
2146  "src/org/armedbear/j/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/org/armedbear/j/Makefile" ;;
2147  "src/org/armedbear/j/version" ) CONFIG_FILES="$CONFIG_FILES src/org/armedbear/j/version" ;;
2148  "src/org/armedbear/j/mail/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/org/armedbear/j/mail/Makefile" ;;
2149  "src/org/armedbear/j/jdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/org/armedbear/j/jdb/Makefile" ;;
2150  "src/org/armedbear/lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/org/armedbear/lisp/Makefile" ;;
2151  "j" ) CONFIG_FILES="$CONFIG_FILES j" ;;
2152  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2153echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2154   { (exit 1); exit 1; }; };;
2155  esac
2156done
2157
2158# If the user did not use the arguments to specify the items to instantiate,
2159# then the envvar interface is used.  Set only those that are not.
2160# We use the long form for the default assignment because of an extremely
2161# bizarre bug on SunOS 4.1.3.
2162if $ac_need_defaults; then
2163  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2164fi
2165
2166# Have a temporary directory for convenience.  Make it in the build tree
2167# simply because there is no reason to put it here, and in addition,
2168# creating and moving files from /tmp can sometimes cause problems.
2169# Create a temporary directory, and hook for its removal unless debugging.
2170$debug ||
2171{
2172  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2173  trap '{ (exit 1); exit 1; }' 1 2 13 15
2174}
2175
2176# Create a (secure) tmp directory for tmp files.
2177
2178{
2179  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
2180  test -n "$tmp" && test -d "$tmp"
2181}  ||
2182{
2183  tmp=./confstat$$-$RANDOM
2184  (umask 077 && mkdir $tmp)
2185} ||
2186{
2187   echo "$me: cannot create a temporary directory in ." >&2
2188   { (exit 1); exit 1; }
2189}
2190
2191_ACEOF
2192
2193cat >>$CONFIG_STATUS <<_ACEOF
2194
2195#
2196# CONFIG_FILES section.
2197#
2198
2199# No need to generate the scripts if there are no CONFIG_FILES.
2200# This happens for instance when ./config.status config.h
2201if test -n "\$CONFIG_FILES"; then
2202  # Protect against being on the right side of a sed subst in config.status.
2203  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
2204   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
2205s,@SHELL@,$SHELL,;t t
2206s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
2207s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
2208s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
2209s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
2210s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
2211s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
2212s,@exec_prefix@,$exec_prefix,;t t
2213s,@prefix@,$prefix,;t t
2214s,@program_transform_name@,$program_transform_name,;t t
2215s,@bindir@,$bindir,;t t
2216s,@sbindir@,$sbindir,;t t
2217s,@libexecdir@,$libexecdir,;t t
2218s,@datadir@,$datadir,;t t
2219s,@sysconfdir@,$sysconfdir,;t t
2220s,@sharedstatedir@,$sharedstatedir,;t t
2221s,@localstatedir@,$localstatedir,;t t
2222s,@libdir@,$libdir,;t t
2223s,@includedir@,$includedir,;t t
2224s,@oldincludedir@,$oldincludedir,;t t
2225s,@infodir@,$infodir,;t t
2226s,@mandir@,$mandir,;t t
2227s,@build_alias@,$build_alias,;t t
2228s,@host_alias@,$host_alias,;t t
2229s,@target_alias@,$target_alias,;t t
2230s,@DEFS@,$DEFS,;t t
2231s,@ECHO_C@,$ECHO_C,;t t
2232s,@ECHO_N@,$ECHO_N,;t t
2233s,@ECHO_T@,$ECHO_T,;t t
2234s,@LIBS@,$LIBS,;t t
2235s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
2236s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
2237s,@INSTALL_DATA@,$INSTALL_DATA,;t t
2238s,@version@,$version,;t t
2239s,@PATHSEP@,$PATHSEP,;t t
2240s,@JAVA@,$JAVA,;t t
2241s,@JAVAC@,$JAVAC,;t t
2242s,@JAVACFLAGS@,$JAVACFLAGS,;t t
2243s,@JAR@,$JAR,;t t
2244s,@JAVA_RUNTIME@,$JAVA_RUNTIME,;t t
2245s,@CP@,$CP,;t t
2246s,@CLASSPATH@,$CLASSPATH,;t t
2247s,@COMPILER_CLASSPATH@,$COMPILER_CLASSPATH,;t t
2248s,@JAVA_OPTIONS@,$JAVA_OPTIONS,;t t
2249s,@JPTY@,$JPTY,;t t
2250s,@LIBOBJS@,$LIBOBJS,;t t
2251s,@LTLIBOBJS@,$LTLIBOBJS,;t t
2252CEOF
2253
2254_ACEOF
2255
2256  cat >>$CONFIG_STATUS <<\_ACEOF
2257  # Split the substitutions into bite-sized pieces for seds with
2258  # small command number limits, like on Digital OSF/1 and HP-UX.
2259  ac_max_sed_lines=48
2260  ac_sed_frag=1 # Number of current file.
2261  ac_beg=1 # First line for current file.
2262  ac_end=$ac_max_sed_lines # Line after last line for current file.
2263  ac_more_lines=:
2264  ac_sed_cmds=
2265  while $ac_more_lines; do
2266    if test $ac_beg -gt 1; then
2267      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2268    else
2269      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2270    fi
2271    if test ! -s $tmp/subs.frag; then
2272      ac_more_lines=false
2273    else
2274      # The purpose of the label and of the branching condition is to
2275      # speed up the sed processing (if there are no `@' at all, there
2276      # is no need to browse any of the substitutions).
2277      # These are the two extra sed commands mentioned above.
2278      (echo ':t
2279  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2280      if test -z "$ac_sed_cmds"; then
2281    ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2282      else
2283    ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2284      fi
2285      ac_sed_frag=`expr $ac_sed_frag + 1`
2286      ac_beg=$ac_end
2287      ac_end=`expr $ac_end + $ac_max_sed_lines`
2288    fi
2289  done
2290  if test -z "$ac_sed_cmds"; then
2291    ac_sed_cmds=cat
2292  fi
2293fi # test -n "$CONFIG_FILES"
2294
2295_ACEOF
2296cat >>$CONFIG_STATUS <<\_ACEOF
2297for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2298  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2299  case $ac_file in
2300  - | *:- | *:-:* ) # input from stdin
2301        cat >$tmp/stdin
2302        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2303        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2304  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2305        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2306  * )   ac_file_in=$ac_file.in ;;
2307  esac
2308
2309  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2310  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
2311$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2312         X"$ac_file" : 'X\(//\)[^/]' \| \
2313         X"$ac_file" : 'X\(//\)$' \| \
2314         X"$ac_file" : 'X\(/\)' \| \
2315         .     : '\(.\)' 2>/dev/null ||
2316echo X"$ac_file" |
2317    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2318      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2319      /^X\(\/\/\)$/{ s//\1/; q; }
2320      /^X\(\/\).*/{ s//\1/; q; }
2321      s/.*/./; q'`
2322  { if $as_mkdir_p; then
2323    mkdir -p "$ac_dir"
2324  else
2325    as_dir="$ac_dir"
2326    as_dirs=
2327    while test ! -d "$as_dir"; do
2328      as_dirs="$as_dir $as_dirs"
2329      as_dir=`(dirname "$as_dir") 2>/dev/null ||
2330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2331         X"$as_dir" : 'X\(//\)[^/]' \| \
2332         X"$as_dir" : 'X\(//\)$' \| \
2333         X"$as_dir" : 'X\(/\)' \| \
2334         .     : '\(.\)' 2>/dev/null ||
2335echo X"$as_dir" |
2336    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2337      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2338      /^X\(\/\/\)$/{ s//\1/; q; }
2339      /^X\(\/\).*/{ s//\1/; q; }
2340      s/.*/./; q'`
2341    done
2342    test ! -n "$as_dirs" || mkdir $as_dirs
2343  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
2344echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
2345   { (exit 1); exit 1; }; }; }
2346
2347  ac_builddir=.
2348
2349if test "$ac_dir" != .; then
2350  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2351  # A "../" for each directory in $ac_dir_suffix.
2352  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
2353else
2354  ac_dir_suffix= ac_top_builddir=
2355fi
2356
2357case $srcdir in
2358  .)  # No --srcdir option.  We are building in place.
2359    ac_srcdir=.
2360    if test -z "$ac_top_builddir"; then
2361       ac_top_srcdir=.
2362    else
2363       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
2364    fi ;;
2365  [\\/]* | ?:[\\/]* )  # Absolute path.
2366    ac_srcdir=$srcdir$ac_dir_suffix;
2367    ac_top_srcdir=$srcdir ;;
2368  *) # Relative path.
2369    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
2370    ac_top_srcdir=$ac_top_builddir$srcdir ;;
2371esac
2372# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
2373# absolute.
2374ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
2375ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
2376ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
2377ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
2378
2379
2380  case $INSTALL in
2381  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2382  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
2383  esac
2384
2385  if test x"$ac_file" != x-; then
2386    { echo "$as_me:$LINENO: creating $ac_file" >&5
2387echo "$as_me: creating $ac_file" >&6;}
2388    rm -f "$ac_file"
2389  fi
2390  # Let's still pretend it is `configure' which instantiates (i.e., don't
2391  # use $as_me), people would be surprised to read:
2392  #    /* config.h.  Generated by config.status.  */
2393  if test x"$ac_file" = x-; then
2394    configure_input=
2395  else
2396    configure_input="$ac_file.  "
2397  fi
2398  configure_input=$configure_input"Generated from `echo $ac_file_in |
2399                                     sed 's,.*/,,'` by configure."
2400
2401  # First look for the input files in the build tree, otherwise in the
2402  # src tree.
2403  ac_file_inputs=`IFS=:
2404    for f in $ac_file_in; do
2405      case $f in
2406      -) echo $tmp/stdin ;;
2407      [\\/$]*)
2408         # Absolute (can't be DOS-style, as IFS=:)
2409         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2410echo "$as_me: error: cannot find input file: $f" >&2;}
2411   { (exit 1); exit 1; }; }
2412         echo $f;;
2413      *) # Relative
2414         if test -f "$f"; then
2415           # Build tree
2416           echo $f
2417         elif test -f "$srcdir/$f"; then
2418           # Source tree
2419           echo $srcdir/$f
2420         else
2421           # /dev/null tree
2422           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2423echo "$as_me: error: cannot find input file: $f" >&2;}
2424   { (exit 1); exit 1; }; }
2425         fi;;
2426      esac
2427    done` || { (exit 1); exit 1; }
2428_ACEOF
2429cat >>$CONFIG_STATUS <<_ACEOF
2430  sed "$ac_vpsub
2431$extrasub
2432_ACEOF
2433cat >>$CONFIG_STATUS <<\_ACEOF
2434:t
2435/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2436s,@configure_input@,$configure_input,;t t
2437s,@srcdir@,$ac_srcdir,;t t
2438s,@abs_srcdir@,$ac_abs_srcdir,;t t
2439s,@top_srcdir@,$ac_top_srcdir,;t t
2440s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
2441s,@builddir@,$ac_builddir,;t t
2442s,@abs_builddir@,$ac_abs_builddir,;t t
2443s,@top_builddir@,$ac_top_builddir,;t t
2444s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
2445s,@INSTALL@,$ac_INSTALL,;t t
2446" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
2447  rm -f $tmp/stdin
2448  if test x"$ac_file" != x-; then
2449    mv $tmp/out $ac_file
2450  else
2451    cat $tmp/out
2452    rm -f $tmp/out
2453  fi
2454
2455done
2456_ACEOF
2457
2458cat >>$CONFIG_STATUS <<\_ACEOF
2459
2460{ (exit 0); exit 0; }
2461_ACEOF
2462chmod +x $CONFIG_STATUS
2463ac_clean_files=$ac_clean_files_save
2464
2465
2466# configure is writing to config.log, and then calls config.status.
2467# config.status does its own redirection, appending to config.log.
2468# Unfortunately, on DOS this fails, as config.log is still kept open
2469# by configure, so config.status won't be able to write to it; its
2470# output is simply discarded.  So we exec the FD to /dev/null,
2471# effectively closing config.log, so it can be properly (re)opened and
2472# appended to by config.status.  When coming back to configure, we
2473# need to make the FD available again.
2474if test "$no_create" != yes; then
2475  ac_cs_success=:
2476  ac_config_status_args=
2477  test "$silent" = yes &&
2478    ac_config_status_args="$ac_config_status_args --quiet"
2479  exec 5>/dev/null
2480  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
2481  exec 5>>config.log
2482  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2483  # would make configure fail if this is the last instruction.
2484  $ac_cs_success || { (exit 1); exit 1; }
2485fi
2486
2487
2488          ac_config_commands="$ac_config_commands default-1"
2489
2490
2491
2492
2493          ac_config_commands="$ac_config_commands default-2"
2494
Note: See TracBrowser for help on using the repository browser.