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