1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" 	$as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Name of the host.
244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245# so uname gets run too.
246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248exec 6>&1
249
250#
251# Initializations.
252#
253ac_default_prefix=/usr/local
254ac_config_libobj_dir=.
255cross_compiling=no
256subdirs=
257MFLAGS=
258MAKEFLAGS=
259SHELL=${CONFIG_SHELL-/bin/sh}
260
261# Maximum number of lines to put in a shell here document.
262# This variable seems obsolete.  It should probably be removed, and
263# only ac_max_sed_lines should be used.
264: ${ac_max_here_lines=38}
265
266# Identity of this package.
267PACKAGE_NAME=
268PACKAGE_TARNAME=
269PACKAGE_VERSION=
270PACKAGE_STRING=
271PACKAGE_BUGREPORT=
272
273ac_unique_file="src/main.c"
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288#  include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293#  include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304#  include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
311ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE 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 MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE USE_NLS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB PKG_CONFIG GLIB_CFLAGS GLIB_LIBS CPP EGREP LIBMT_CFLAGS LIBMT_LIBS GETTEXT_PACKAGE RANLIB ac_ct_RANLIB ALLOCA GLIBC21 INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX cardpics_flag cardpics_dir mt_gtk_client_flag mt_gtk_client_dir LIBOBJS LTLIBOBJS'
312ac_subst_files=''
313
314# Initialize some variables set by options.
315ac_init_help=
316ac_init_version=false
317# The variables have the same names as the options, with
318# dashes changed to underlines.
319cache_file=/dev/null
320exec_prefix=NONE
321no_create=
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
330verbose=
331x_includes=NONE
332x_libraries=NONE
333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
352ac_prev=
353for ac_option
354do
355  # If the previous option needs an argument, assign it.
356  if test -n "$ac_prev"; then
357    eval "$ac_prev=\$ac_option"
358    ac_prev=
359    continue
360  fi
361
362  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364  # Accept the important Cygnus configure options, so we can diagnose typos.
365
366  case $ac_option in
367
368  -bindir | --bindir | --bindi | --bind | --bin | --bi)
369    ac_prev=bindir ;;
370  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371    bindir=$ac_optarg ;;
372
373  -build | --build | --buil | --bui | --bu)
374    ac_prev=build_alias ;;
375  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376    build_alias=$ac_optarg ;;
377
378  -cache-file | --cache-file | --cache-fil | --cache-fi \
379  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380    ac_prev=cache_file ;;
381  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383    cache_file=$ac_optarg ;;
384
385  --config-cache | -C)
386    cache_file=config.cache ;;
387
388  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389    ac_prev=datadir ;;
390  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391  | --da=*)
392    datadir=$ac_optarg ;;
393
394  -disable-* | --disable-*)
395    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396    # Reject names that are not valid shell variable names.
397    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399   { (exit 1); exit 1; }; }
400    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401    eval "enable_$ac_feature=no" ;;
402
403  -enable-* | --enable-*)
404    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405    # Reject names that are not valid shell variable names.
406    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408   { (exit 1); exit 1; }; }
409    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410    case $ac_option in
411      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412      *) ac_optarg=yes ;;
413    esac
414    eval "enable_$ac_feature='$ac_optarg'" ;;
415
416  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418  | --exec | --exe | --ex)
419    ac_prev=exec_prefix ;;
420  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422  | --exec=* | --exe=* | --ex=*)
423    exec_prefix=$ac_optarg ;;
424
425  -gas | --gas | --ga | --g)
426    # Obsolete; use --with-gas.
427    with_gas=yes ;;
428
429  -help | --help | --hel | --he | -h)
430    ac_init_help=long ;;
431  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432    ac_init_help=recursive ;;
433  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434    ac_init_help=short ;;
435
436  -host | --host | --hos | --ho)
437    ac_prev=host_alias ;;
438  -host=* | --host=* | --hos=* | --ho=*)
439    host_alias=$ac_optarg ;;
440
441  -includedir | --includedir | --includedi | --included | --include \
442  | --includ | --inclu | --incl | --inc)
443    ac_prev=includedir ;;
444  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445  | --includ=* | --inclu=* | --incl=* | --inc=*)
446    includedir=$ac_optarg ;;
447
448  -infodir | --infodir | --infodi | --infod | --info | --inf)
449    ac_prev=infodir ;;
450  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451    infodir=$ac_optarg ;;
452
453  -libdir | --libdir | --libdi | --libd)
454    ac_prev=libdir ;;
455  -libdir=* | --libdir=* | --libdi=* | --libd=*)
456    libdir=$ac_optarg ;;
457
458  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459  | --libexe | --libex | --libe)
460    ac_prev=libexecdir ;;
461  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462  | --libexe=* | --libex=* | --libe=*)
463    libexecdir=$ac_optarg ;;
464
465  -localstatedir | --localstatedir | --localstatedi | --localstated \
466  | --localstate | --localstat | --localsta | --localst \
467  | --locals | --local | --loca | --loc | --lo)
468    ac_prev=localstatedir ;;
469  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472    localstatedir=$ac_optarg ;;
473
474  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475    ac_prev=mandir ;;
476  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477    mandir=$ac_optarg ;;
478
479  -nfp | --nfp | --nf)
480    # Obsolete; use --without-fp.
481    with_fp=no ;;
482
483  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484  | --no-cr | --no-c | -n)
485    no_create=yes ;;
486
487  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489    no_recursion=yes ;;
490
491  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493  | --oldin | --oldi | --old | --ol | --o)
494    ac_prev=oldincludedir ;;
495  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498    oldincludedir=$ac_optarg ;;
499
500  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501    ac_prev=prefix ;;
502  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503    prefix=$ac_optarg ;;
504
505  -program-prefix | --program-prefix | --program-prefi | --program-pref \
506  | --program-pre | --program-pr | --program-p)
507    ac_prev=program_prefix ;;
508  -program-prefix=* | --program-prefix=* | --program-prefi=* \
509  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510    program_prefix=$ac_optarg ;;
511
512  -program-suffix | --program-suffix | --program-suffi | --program-suff \
513  | --program-suf | --program-su | --program-s)
514    ac_prev=program_suffix ;;
515  -program-suffix=* | --program-suffix=* | --program-suffi=* \
516  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517    program_suffix=$ac_optarg ;;
518
519  -program-transform-name | --program-transform-name \
520  | --program-transform-nam | --program-transform-na \
521  | --program-transform-n | --program-transform- \
522  | --program-transform | --program-transfor \
523  | --program-transfo | --program-transf \
524  | --program-trans | --program-tran \
525  | --progr-tra | --program-tr | --program-t)
526    ac_prev=program_transform_name ;;
527  -program-transform-name=* | --program-transform-name=* \
528  | --program-transform-nam=* | --program-transform-na=* \
529  | --program-transform-n=* | --program-transform-=* \
530  | --program-transform=* | --program-transfor=* \
531  | --program-transfo=* | --program-transf=* \
532  | --program-trans=* | --program-tran=* \
533  | --progr-tra=* | --program-tr=* | --program-t=*)
534    program_transform_name=$ac_optarg ;;
535
536  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537  | -silent | --silent | --silen | --sile | --sil)
538    silent=yes ;;
539
540  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541    ac_prev=sbindir ;;
542  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543  | --sbi=* | --sb=*)
544    sbindir=$ac_optarg ;;
545
546  -sharedstatedir | --sharedstatedir | --sharedstatedi \
547  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548  | --sharedst | --shareds | --shared | --share | --shar \
549  | --sha | --sh)
550    ac_prev=sharedstatedir ;;
551  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554  | --sha=* | --sh=*)
555    sharedstatedir=$ac_optarg ;;
556
557  -site | --site | --sit)
558    ac_prev=site ;;
559  -site=* | --site=* | --sit=*)
560    site=$ac_optarg ;;
561
562  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563    ac_prev=srcdir ;;
564  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565    srcdir=$ac_optarg ;;
566
567  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568  | --syscon | --sysco | --sysc | --sys | --sy)
569    ac_prev=sysconfdir ;;
570  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572    sysconfdir=$ac_optarg ;;
573
574  -target | --target | --targe | --targ | --tar | --ta | --t)
575    ac_prev=target_alias ;;
576  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577    target_alias=$ac_optarg ;;
578
579  -v | -verbose | --verbose | --verbos | --verbo | --verb)
580    verbose=yes ;;
581
582  -version | --version | --versio | --versi | --vers | -V)
583    ac_init_version=: ;;
584
585  -with-* | --with-*)
586    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587    # Reject names that are not valid shell variable names.
588    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589      { echo "$as_me: error: invalid package name: $ac_package" >&2
590   { (exit 1); exit 1; }; }
591    ac_package=`echo $ac_package| sed 's/-/_/g'`
592    case $ac_option in
593      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594      *) ac_optarg=yes ;;
595    esac
596    eval "with_$ac_package='$ac_optarg'" ;;
597
598  -without-* | --without-*)
599    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600    # Reject names that are not valid shell variable names.
601    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602      { echo "$as_me: error: invalid package name: $ac_package" >&2
603   { (exit 1); exit 1; }; }
604    ac_package=`echo $ac_package | sed 's/-/_/g'`
605    eval "with_$ac_package=no" ;;
606
607  --x)
608    # Obsolete; use --with-x.
609    with_x=yes ;;
610
611  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612  | --x-incl | --x-inc | --x-in | --x-i)
613    ac_prev=x_includes ;;
614  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616    x_includes=$ac_optarg ;;
617
618  -x-libraries | --x-libraries | --x-librarie | --x-librari \
619  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620    ac_prev=x_libraries ;;
621  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623    x_libraries=$ac_optarg ;;
624
625  -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627   { (exit 1); exit 1; }; }
628    ;;
629
630  *=*)
631    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632    # Reject names that are not valid shell variable names.
633    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635   { (exit 1); exit 1; }; }
636    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637    eval "$ac_envvar='$ac_optarg'"
638    export $ac_envvar ;;
639
640  *)
641    # FIXME: should be removed in autoconf 3.0.
642    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646    ;;
647
648  esac
649done
650
651if test -n "$ac_prev"; then
652  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653  { echo "$as_me: error: missing argument to $ac_option" >&2
654   { (exit 1); exit 1; }; }
655fi
656
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
660  eval ac_val=$`echo $ac_var`
661  case $ac_val in
662    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664   { (exit 1); exit 1; }; };;
665  esac
666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670              localstatedir libdir includedir oldincludedir infodir mandir
671do
672  eval ac_val=$`echo $ac_var`
673  case $ac_val in
674    [\\/$]* | ?:[\\/]* ) ;;
675    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676   { (exit 1); exit 1; }; };;
677  esac
678done
679
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
682# FIXME: To remove some day.
683build=$build_alias
684host=$host_alias
685target=$target_alias
686
687# FIXME: To remove some day.
688if test "x$host_alias" != x; then
689  if test "x$build_alias" = x; then
690    cross_compiling=maybe
691    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692    If a cross compiler is detected then cross compile mode will be used." >&2
693  elif test "x$build_alias" != "x$host_alias"; then
694    cross_compiling=yes
695  fi
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
702
703
704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706  ac_srcdir_defaulted=yes
707  # Try the directory containing this script, then its parent.
708  ac_confdir=`(dirname "$0") 2>/dev/null ||
709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710         X"$0" : 'X\(//\)[^/]' \| \
711         X"$0" : 'X\(//\)$' \| \
712         X"$0" : 'X\(/\)' \| \
713         .     : '\(.\)' 2>/dev/null ||
714echo X"$0" |
715    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717  	  /^X\(\/\/\)$/{ s//\1/; q; }
718  	  /^X\(\/\).*/{ s//\1/; q; }
719  	  s/.*/./; q'`
720  srcdir=$ac_confdir
721  if test ! -r $srcdir/$ac_unique_file; then
722    srcdir=..
723  fi
724else
725  ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728  if test "$ac_srcdir_defaulted" = yes; then
729    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730   { (exit 1); exit 1; }; }
731  else
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733   { (exit 1); exit 1; }; }
734  fi
735fi
736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738   { (exit 1); exit 1; }; }
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
752ac_env_CC_set=${CC+set}
753ac_env_CC_value=$CC
754ac_cv_env_CC_set=${CC+set}
755ac_cv_env_CC_value=$CC
756ac_env_CFLAGS_set=${CFLAGS+set}
757ac_env_CFLAGS_value=$CFLAGS
758ac_cv_env_CFLAGS_set=${CFLAGS+set}
759ac_cv_env_CFLAGS_value=$CFLAGS
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
764ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765ac_env_CPPFLAGS_value=$CPPFLAGS
766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768ac_env_CPP_set=${CPP+set}
769ac_env_CPP_value=$CPP
770ac_cv_env_CPP_set=${CPP+set}
771ac_cv_env_CPP_value=$CPP
772
773#
774# Report the --help message.
775#
776if test "$ac_init_help" = "long"; then
777  # Omit some internal or obsolete options to make the list less imposing.
778  # This message is too long to be a string in the A/UX 3.1 sh.
779  cat <<_ACEOF
780\`configure' configures this package to adapt to many kinds of systems.
781
782Usage: $0 [OPTION]... [VAR=VALUE]...
783
784To assign environment variables (e.g., CC, CFLAGS...), specify them as
785VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787Defaults for the options are specified in brackets.
788
789Configuration:
790  -h, --help              display this help and exit
791      --help=short        display options specific to this package
792      --help=recursive    display the short help of all the included packages
793  -V, --version           display version information and exit
794  -q, --quiet, --silent   do not print \`checking...' messages
795      --cache-file=FILE   cache test results in FILE [disabled]
796  -C, --config-cache      alias for \`--cache-file=config.cache'
797  -n, --no-create         do not create output files
798      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800_ACEOF
801
802  cat <<_ACEOF
803Installation directories:
804  --prefix=PREFIX         install architecture-independent files in PREFIX
805                          [$ac_default_prefix]
806  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                          [PREFIX]
808
809By default, \`make install' will install all the files in
810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812for instance \`--prefix=\$HOME'.
813
814For better control, use the options below.
815
816Fine tuning of the installation directories:
817  --bindir=DIR           user executables [EPREFIX/bin]
818  --sbindir=DIR          system admin executables [EPREFIX/sbin]
819  --libexecdir=DIR       program executables [EPREFIX/libexec]
820  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824  --libdir=DIR           object code libraries [EPREFIX/lib]
825  --includedir=DIR       C header files [PREFIX/include]
826  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827  --infodir=DIR          info documentation [PREFIX/info]
828  --mandir=DIR           man documentation [PREFIX/man]
829_ACEOF
830
831  cat <<\_ACEOF
832
833Program names:
834  --program-prefix=PREFIX            prepend PREFIX to installed program names
835  --program-suffix=SUFFIX            append SUFFIX to installed program names
836  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838System types:
839  --build=BUILD     configure for building on BUILD [guessed]
840  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841  --target=TARGET   configure for building compilers for TARGET [HOST]
842_ACEOF
843fi
844
845if test -n "$ac_init_help"; then
846
847  cat <<\_ACEOF
848
849Optional Features:
850  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852  --disable-dependency-tracking Speeds up one-time builds
853  --enable-dependency-tracking  Do not reject slow dependency extractors
854  --disable-nls           do not use Native Language Support
855  --enable-gnome2         Enable gnome2 support
856  --disable-install       No installation. Played from the source directory.
857
858Optional Packages:
859  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
860  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
861  --with-gnu-ld           assume the C compiler uses GNU ld default=no
862  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
863  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
864  --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
865  --without-libintl-prefix     don't search for libintl in includedir and libdir
866\
867  --with-libmaitretarot   path to libmaitretarot libraries
868\
869  --with-libmt_client   path to libmt_client libraries
870  --with-included-gettext use the GNU gettext library included here
871  --with-cardpics-dir     Directory containing the cardpics cards images
872
873Some influential environment variables:
874  CC          C compiler command
875  CFLAGS      C compiler flags
876  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
877              nonstandard directory <lib dir>
878  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
879              headers in a nonstandard directory <include dir>
880  CPP         C preprocessor
881
882Use these variables to override the choices made by `configure' or to help
883it to find libraries and programs with nonstandard names/locations.
884
885_ACEOF
886fi
887
888if test "$ac_init_help" = "recursive"; then
889  # If there are subdirs, report their specific --help.
890  ac_popdir=`pwd`
891  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892    test -d $ac_dir || continue
893    ac_builddir=.
894
895if test "$ac_dir" != .; then
896  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897  # A "../" for each directory in $ac_dir_suffix.
898  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899else
900  ac_dir_suffix= ac_top_builddir=
901fi
902
903case $srcdir in
904  .)  # No --srcdir option.  We are building in place.
905    ac_srcdir=.
906    if test -z "$ac_top_builddir"; then
907       ac_top_srcdir=.
908    else
909       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910    fi ;;
911  [\\/]* | ?:[\\/]* )  # Absolute path.
912    ac_srcdir=$srcdir$ac_dir_suffix;
913    ac_top_srcdir=$srcdir ;;
914  *) # Relative path.
915    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916    ac_top_srcdir=$ac_top_builddir$srcdir ;;
917esac
918# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
919# absolute.
920ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
921ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
922ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
923ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
924
925    cd $ac_dir
926    # Check for guested configure; otherwise get Cygnus style configure.
927    if test -f $ac_srcdir/configure.gnu; then
928      echo
929      $SHELL $ac_srcdir/configure.gnu  --help=recursive
930    elif test -f $ac_srcdir/configure; then
931      echo
932      $SHELL $ac_srcdir/configure  --help=recursive
933    elif test -f $ac_srcdir/configure.ac ||
934           test -f $ac_srcdir/configure.in; then
935      echo
936      $ac_configure --help
937    else
938      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
939    fi
940    cd $ac_popdir
941  done
942fi
943
944test -n "$ac_init_help" && exit 0
945if $ac_init_version; then
946  cat <<\_ACEOF
947
948Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
949Free Software Foundation, Inc.
950This configure script is free software; the Free Software Foundation
951gives unlimited permission to copy, distribute and modify it.
952_ACEOF
953  exit 0
954fi
955exec 5>config.log
956cat >&5 <<_ACEOF
957This file contains any messages produced by compilers while
958running configure, to aid debugging if configure makes a mistake.
959
960It was created by $as_me, which was
961generated by GNU Autoconf 2.57.  Invocation command line was
962
963  $ $0 $@
964
965_ACEOF
966{
967cat <<_ASUNAME
968## --------- ##
969## Platform. ##
970## --------- ##
971
972hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
973uname -m = `(uname -m) 2>/dev/null || echo unknown`
974uname -r = `(uname -r) 2>/dev/null || echo unknown`
975uname -s = `(uname -s) 2>/dev/null || echo unknown`
976uname -v = `(uname -v) 2>/dev/null || echo unknown`
977
978/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
979/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
980
981/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
982/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
983/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
984hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
985/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
986/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
987/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
988
989_ASUNAME
990
991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
992for as_dir in $PATH
993do
994  IFS=$as_save_IFS
995  test -z "$as_dir" && as_dir=.
996  echo "PATH: $as_dir"
997done
998
999} >&5
1000
1001cat >&5 <<_ACEOF
1002
1003
1004## ----------- ##
1005## Core tests. ##
1006## ----------- ##
1007
1008_ACEOF
1009
1010
1011# Keep a trace of the command line.
1012# Strip out --no-create and --no-recursion so they do not pile up.
1013# Strip out --silent because we don't want to record it for future runs.
1014# Also quote any args containing shell meta-characters.
1015# Make two passes to allow for proper duplicate-argument suppression.
1016ac_configure_args=
1017ac_configure_args0=
1018ac_configure_args1=
1019ac_sep=
1020ac_must_keep_next=false
1021for ac_pass in 1 2
1022do
1023  for ac_arg
1024  do
1025    case $ac_arg in
1026    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1027    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1028    | -silent | --silent | --silen | --sile | --sil)
1029      continue ;;
1030    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1031      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1032    esac
1033    case $ac_pass in
1034    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1035    2)
1036      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1037      if test $ac_must_keep_next = true; then
1038        ac_must_keep_next=false # Got value, back to normal.
1039      else
1040        case $ac_arg in
1041          *=* | --config-cache | -C | -disable-* | --disable-* \
1042          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1043          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1044          | -with-* | --with-* | -without-* | --without-* | --x)
1045            case "$ac_configure_args0 " in
1046              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1047            esac
1048            ;;
1049          -* ) ac_must_keep_next=true ;;
1050        esac
1051      fi
1052      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1053      # Get rid of the leading space.
1054      ac_sep=" "
1055      ;;
1056    esac
1057  done
1058done
1059$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1060$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1061
1062# When interrupted or exit'd, cleanup temporary files, and complete
1063# config.log.  We remove comments because anyway the quotes in there
1064# would cause problems or look ugly.
1065# WARNING: Be sure not to use single quotes in there, as some shells,
1066# such as our DU 5.0 friend, will then `close' the trap.
1067trap 'exit_status=$?
1068  # Save into config.log some information that might help in debugging.
1069  {
1070    echo
1071
1072    cat <<\_ASBOX
1073## ---------------- ##
1074## Cache variables. ##
1075## ---------------- ##
1076_ASBOX
1077    echo
1078    # The following way of writing the cache mishandles newlines in values,
1079{
1080  (set) 2>&1 |
1081    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1082    *ac_space=\ *)
1083      sed -n \
1084        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1085    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1086      ;;
1087    *)
1088      sed -n \
1089        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1090      ;;
1091    esac;
1092}
1093    echo
1094
1095    cat <<\_ASBOX
1096## ----------------- ##
1097## Output variables. ##
1098## ----------------- ##
1099_ASBOX
1100    echo
1101    for ac_var in $ac_subst_vars
1102    do
1103      eval ac_val=$`echo $ac_var`
1104      echo "$ac_var='"'"'$ac_val'"'"'"
1105    done | sort
1106    echo
1107
1108    if test -n "$ac_subst_files"; then
1109      cat <<\_ASBOX
1110## ------------- ##
1111## Output files. ##
1112## ------------- ##
1113_ASBOX
1114      echo
1115      for ac_var in $ac_subst_files
1116      do
1117	eval ac_val=$`echo $ac_var`
1118        echo "$ac_var='"'"'$ac_val'"'"'"
1119      done | sort
1120      echo
1121    fi
1122
1123    if test -s confdefs.h; then
1124      cat <<\_ASBOX
1125## ----------- ##
1126## confdefs.h. ##
1127## ----------- ##
1128_ASBOX
1129      echo
1130      sed "/^$/d" confdefs.h | sort
1131      echo
1132    fi
1133    test "$ac_signal" != 0 &&
1134      echo "$as_me: caught signal $ac_signal"
1135    echo "$as_me: exit $exit_status"
1136  } >&5
1137  rm -f core core.* *.core &&
1138  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1139    exit $exit_status
1140     ' 0
1141for ac_signal in 1 2 13 15; do
1142  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1143done
1144ac_signal=0
1145
1146# confdefs.h avoids OS command line length limits that DEFS can exceed.
1147rm -rf conftest* confdefs.h
1148# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1149echo >confdefs.h
1150
1151# Predefined preprocessor variables.
1152
1153cat >>confdefs.h <<_ACEOF
1154#define PACKAGE_NAME "$PACKAGE_NAME"
1155_ACEOF
1156
1157
1158cat >>confdefs.h <<_ACEOF
1159#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1160_ACEOF
1161
1162
1163cat >>confdefs.h <<_ACEOF
1164#define PACKAGE_VERSION "$PACKAGE_VERSION"
1165_ACEOF
1166
1167
1168cat >>confdefs.h <<_ACEOF
1169#define PACKAGE_STRING "$PACKAGE_STRING"
1170_ACEOF
1171
1172
1173cat >>confdefs.h <<_ACEOF
1174#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1175_ACEOF
1176
1177
1178# Let the site file select an alternate cache file if it wants to.
1179# Prefer explicitly selected file to automatically selected ones.
1180if test -z "$CONFIG_SITE"; then
1181  if test "x$prefix" != xNONE; then
1182    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1183  else
1184    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1185  fi
1186fi
1187for ac_site_file in $CONFIG_SITE; do
1188  if test -r "$ac_site_file"; then
1189    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1190echo "$as_me: loading site script $ac_site_file" >&6;}
1191    sed 's/^/| /' "$ac_site_file" >&5
1192    . "$ac_site_file"
1193  fi
1194done
1195
1196if test -r "$cache_file"; then
1197  # Some versions of bash will fail to source /dev/null (special
1198  # files actually), so we avoid doing that.
1199  if test -f "$cache_file"; then
1200    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1201echo "$as_me: loading cache $cache_file" >&6;}
1202    case $cache_file in
1203      [\\/]* | ?:[\\/]* ) . $cache_file;;
1204      *)                      . ./$cache_file;;
1205    esac
1206  fi
1207else
1208  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1209echo "$as_me: creating cache $cache_file" >&6;}
1210  >$cache_file
1211fi
1212
1213# Check that the precious variables saved in the cache have kept the same
1214# value.
1215ac_cache_corrupted=false
1216for ac_var in `(set) 2>&1 |
1217               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1218  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1219  eval ac_new_set=\$ac_env_${ac_var}_set
1220  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1221  eval ac_new_val="\$ac_env_${ac_var}_value"
1222  case $ac_old_set,$ac_new_set in
1223    set,)
1224      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1225echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1226      ac_cache_corrupted=: ;;
1227    ,set)
1228      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1229echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1230      ac_cache_corrupted=: ;;
1231    ,);;
1232    *)
1233      if test "x$ac_old_val" != "x$ac_new_val"; then
1234        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1235echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1236        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1237echo "$as_me:   former value:  $ac_old_val" >&2;}
1238        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1239echo "$as_me:   current value: $ac_new_val" >&2;}
1240        ac_cache_corrupted=:
1241      fi;;
1242  esac
1243  # Pass precious variables to config.status.
1244  if test "$ac_new_set" = set; then
1245    case $ac_new_val in
1246    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1248    *) ac_arg=$ac_var=$ac_new_val ;;
1249    esac
1250    case " $ac_configure_args " in
1251      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1252      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1253    esac
1254  fi
1255done
1256if $ac_cache_corrupted; then
1257  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1258echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1259  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1260echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1261   { (exit 1); exit 1; }; }
1262fi
1263
1264ac_ext=c
1265ac_cpp='$CPP $CPPFLAGS'
1266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1268ac_compiler_gnu=$ac_cv_c_compiler_gnu
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288ac_aux_dir=
1289for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1290  if test -f $ac_dir/install-sh; then
1291    ac_aux_dir=$ac_dir
1292    ac_install_sh="$ac_aux_dir/install-sh -c"
1293    break
1294  elif test -f $ac_dir/install.sh; then
1295    ac_aux_dir=$ac_dir
1296    ac_install_sh="$ac_aux_dir/install.sh -c"
1297    break
1298  elif test -f $ac_dir/shtool; then
1299    ac_aux_dir=$ac_dir
1300    ac_install_sh="$ac_aux_dir/shtool install -c"
1301    break
1302  fi
1303done
1304if test -z "$ac_aux_dir"; then
1305  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1306echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1307   { (exit 1); exit 1; }; }
1308fi
1309ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1310ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1311ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1312
1313# Make sure we can run config.sub.
1314$ac_config_sub sun4 >/dev/null 2>&1 ||
1315  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1316echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1317   { (exit 1); exit 1; }; }
1318
1319echo "$as_me:$LINENO: checking build system type" >&5
1320echo $ECHO_N "checking build system type... $ECHO_C" >&6
1321if test "${ac_cv_build+set}" = set; then
1322  echo $ECHO_N "(cached) $ECHO_C" >&6
1323else
1324  ac_cv_build_alias=$build_alias
1325test -z "$ac_cv_build_alias" &&
1326  ac_cv_build_alias=`$ac_config_guess`
1327test -z "$ac_cv_build_alias" &&
1328  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1329echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1330   { (exit 1); exit 1; }; }
1331ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1332  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1333echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1334   { (exit 1); exit 1; }; }
1335
1336fi
1337echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1338echo "${ECHO_T}$ac_cv_build" >&6
1339build=$ac_cv_build
1340build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1341build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1342build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1343
1344
1345echo "$as_me:$LINENO: checking host system type" >&5
1346echo $ECHO_N "checking host system type... $ECHO_C" >&6
1347if test "${ac_cv_host+set}" = set; then
1348  echo $ECHO_N "(cached) $ECHO_C" >&6
1349else
1350  ac_cv_host_alias=$host_alias
1351test -z "$ac_cv_host_alias" &&
1352  ac_cv_host_alias=$ac_cv_build_alias
1353ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1354  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1355echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1356   { (exit 1); exit 1; }; }
1357
1358fi
1359echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1360echo "${ECHO_T}$ac_cv_host" >&6
1361host=$ac_cv_host
1362host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1363host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1364host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1365
1366
1367echo "$as_me:$LINENO: checking target system type" >&5
1368echo $ECHO_N "checking target system type... $ECHO_C" >&6
1369if test "${ac_cv_target+set}" = set; then
1370  echo $ECHO_N "(cached) $ECHO_C" >&6
1371else
1372  ac_cv_target_alias=$target_alias
1373test "x$ac_cv_target_alias" = "x" &&
1374  ac_cv_target_alias=$ac_cv_host_alias
1375ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1376  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1377echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1378   { (exit 1); exit 1; }; }
1379
1380fi
1381echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1382echo "${ECHO_T}$ac_cv_target" >&6
1383target=$ac_cv_target
1384target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1385target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1386target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1387
1388
1389# The aliases save the names the user supplied, while $host etc.
1390# will get canonicalized.
1391test -n "$target_alias" &&
1392  test "$program_prefix$program_suffix$program_transform_name" = \
1393    NONENONEs,x,x, &&
1394  program_prefix=${target_alias}-
1395
1396am__api_version="1.7"
1397# Find a good install program.  We prefer a C program (faster),
1398# so one script is as good as another.  But avoid the broken or
1399# incompatible versions:
1400# SysV /etc/install, /usr/sbin/install
1401# SunOS /usr/etc/install
1402# IRIX /sbin/install
1403# AIX /bin/install
1404# AmigaOS /C/install, which installs bootblocks on floppy discs
1405# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1406# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1407# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1408# ./install, which can be erroneously created by make from ./install.sh.
1409echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1410echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1411if test -z "$INSTALL"; then
1412if test "${ac_cv_path_install+set}" = set; then
1413  echo $ECHO_N "(cached) $ECHO_C" >&6
1414else
1415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1416for as_dir in $PATH
1417do
1418  IFS=$as_save_IFS
1419  test -z "$as_dir" && as_dir=.
1420  # Account for people who put trailing slashes in PATH elements.
1421case $as_dir/ in
1422  ./ | .// | /cC/* | \
1423  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1424  /usr/ucb/* ) ;;
1425  *)
1426    # OSF1 and SCO ODT 3.0 have their own names for install.
1427    # Don't use installbsd from OSF since it installs stuff as root
1428    # by default.
1429    for ac_prog in ginstall scoinst install; do
1430      for ac_exec_ext in '' $ac_executable_extensions; do
1431        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1432          if test $ac_prog = install &&
1433            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1434            # AIX install.  It has an incompatible calling convention.
1435            :
1436          elif test $ac_prog = install &&
1437            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1438            # program-specific install script used by HP pwplus--don't use.
1439            :
1440          else
1441            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1442            break 3
1443          fi
1444        fi
1445      done
1446    done
1447    ;;
1448esac
1449done
1450
1451
1452fi
1453  if test "${ac_cv_path_install+set}" = set; then
1454    INSTALL=$ac_cv_path_install
1455  else
1456    # As a last resort, use the slow shell script.  We don't cache a
1457    # path for INSTALL within a source directory, because that will
1458    # break other packages using the cache if that directory is
1459    # removed, or if the path is relative.
1460    INSTALL=$ac_install_sh
1461  fi
1462fi
1463echo "$as_me:$LINENO: result: $INSTALL" >&5
1464echo "${ECHO_T}$INSTALL" >&6
1465
1466# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1467# It thinks the first close brace ends the variable substitution.
1468test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1469
1470test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1471
1472test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1473
1474echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1475echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1476# Just in case
1477sleep 1
1478echo timestamp > conftest.file
1479# Do `set' in a subshell so we don't clobber the current shell's
1480# arguments.  Must try -L first in case configure is actually a
1481# symlink; some systems play weird games with the mod time of symlinks
1482# (eg FreeBSD returns the mod time of the symlink's containing
1483# directory).
1484if (
1485   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1486   if test "$*" = "X"; then
1487      # -L didn't work.
1488      set X `ls -t $srcdir/configure conftest.file`
1489   fi
1490   rm -f conftest.file
1491   if test "$*" != "X $srcdir/configure conftest.file" \
1492      && test "$*" != "X conftest.file $srcdir/configure"; then
1493
1494      # If neither matched, then we have a broken ls.  This can happen
1495      # if, for instance, CONFIG_SHELL is bash and it inherits a
1496      # broken ls alias from the environment.  This has actually
1497      # happened.  Such a system could not be considered "sane".
1498      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1499alias in your environment" >&5
1500echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1501alias in your environment" >&2;}
1502   { (exit 1); exit 1; }; }
1503   fi
1504
1505   test "$2" = conftest.file
1506   )
1507then
1508   # Ok.
1509   :
1510else
1511   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1512Check your system clock" >&5
1513echo "$as_me: error: newly created file is older than distributed files!
1514Check your system clock" >&2;}
1515   { (exit 1); exit 1; }; }
1516fi
1517echo "$as_me:$LINENO: result: yes" >&5
1518echo "${ECHO_T}yes" >&6
1519test "$program_prefix" != NONE &&
1520  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1521# Use a double $ so make ignores it.
1522test "$program_suffix" != NONE &&
1523  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1524# Double any \ or $.  echo might interpret backslashes.
1525# By default was `s,x,x', remove it if useless.
1526cat <<\_ACEOF >conftest.sed
1527s/[\\$]/&&/g;s/;s,x,x,$//
1528_ACEOF
1529program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1530rm conftest.sed
1531
1532
1533# expand $ac_aux_dir to an absolute path
1534am_aux_dir=`cd $ac_aux_dir && pwd`
1535
1536test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1537# Use eval to expand $SHELL
1538if eval "$MISSING --run true"; then
1539  am_missing_run="$MISSING --run "
1540else
1541  am_missing_run=
1542  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1543echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1544fi
1545
1546for ac_prog in gawk mawk nawk awk
1547do
1548  # Extract the first word of "$ac_prog", so it can be a program name with args.
1549set dummy $ac_prog; ac_word=$2
1550echo "$as_me:$LINENO: checking for $ac_word" >&5
1551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552if test "${ac_cv_prog_AWK+set}" = set; then
1553  echo $ECHO_N "(cached) $ECHO_C" >&6
1554else
1555  if test -n "$AWK"; then
1556  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1557else
1558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559for as_dir in $PATH
1560do
1561  IFS=$as_save_IFS
1562  test -z "$as_dir" && as_dir=.
1563  for ac_exec_ext in '' $ac_executable_extensions; do
1564  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1565    ac_cv_prog_AWK="$ac_prog"
1566    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1567    break 2
1568  fi
1569done
1570done
1571
1572fi
1573fi
1574AWK=$ac_cv_prog_AWK
1575if test -n "$AWK"; then
1576  echo "$as_me:$LINENO: result: $AWK" >&5
1577echo "${ECHO_T}$AWK" >&6
1578else
1579  echo "$as_me:$LINENO: result: no" >&5
1580echo "${ECHO_T}no" >&6
1581fi
1582
1583  test -n "$AWK" && break
1584done
1585
1586echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1587echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1588set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1589if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1590  echo $ECHO_N "(cached) $ECHO_C" >&6
1591else
1592  cat >conftest.make <<\_ACEOF
1593all:
1594	@echo 'ac_maketemp="$(MAKE)"'
1595_ACEOF
1596# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1597eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1598if test -n "$ac_maketemp"; then
1599  eval ac_cv_prog_make_${ac_make}_set=yes
1600else
1601  eval ac_cv_prog_make_${ac_make}_set=no
1602fi
1603rm -f conftest.make
1604fi
1605if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1606  echo "$as_me:$LINENO: result: yes" >&5
1607echo "${ECHO_T}yes" >&6
1608  SET_MAKE=
1609else
1610  echo "$as_me:$LINENO: result: no" >&5
1611echo "${ECHO_T}no" >&6
1612  SET_MAKE="MAKE=${MAKE-make}"
1613fi
1614
1615 # test to see if srcdir already configured
1616if test "`cd $srcdir && pwd`" != "`pwd`" &&
1617   test -f $srcdir/config.status; then
1618  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1619echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1620   { (exit 1); exit 1; }; }
1621fi
1622
1623# test whether we have cygpath
1624if test -z "$CYGPATH_W"; then
1625  if (cygpath --version) >/dev/null 2>/dev/null; then
1626    CYGPATH_W='cygpath -w'
1627  else
1628    CYGPATH_W=echo
1629  fi
1630fi
1631
1632
1633# Define the identity of the package.
1634 PACKAGE=mt_gtk_client
1635 VERSION=0.1.98
1636
1637
1638cat >>confdefs.h <<_ACEOF
1639#define PACKAGE "$PACKAGE"
1640_ACEOF
1641
1642
1643cat >>confdefs.h <<_ACEOF
1644#define VERSION "$VERSION"
1645_ACEOF
1646
1647# Some tools Automake needs.
1648
1649ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1650
1651
1652AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1653
1654
1655AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1656
1657
1658AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1659
1660
1661MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1662
1663
1664AMTAR=${AMTAR-"${am_missing_run}tar"}
1665
1666install_sh=${install_sh-"$am_aux_dir/install-sh"}
1667
1668# Installed binaries are usually stripped using `strip' when the user
1669# run `make install-strip'.  However `strip' might not be the right
1670# tool to use in cross-compilation environments, therefore Automake
1671# will honor the `STRIP' environment variable to overrule this program.
1672if test "$cross_compiling" != no; then
1673  if test -n "$ac_tool_prefix"; then
1674  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1675set dummy ${ac_tool_prefix}strip; ac_word=$2
1676echo "$as_me:$LINENO: checking for $ac_word" >&5
1677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678if test "${ac_cv_prog_STRIP+set}" = set; then
1679  echo $ECHO_N "(cached) $ECHO_C" >&6
1680else
1681  if test -n "$STRIP"; then
1682  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1683else
1684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685for as_dir in $PATH
1686do
1687  IFS=$as_save_IFS
1688  test -z "$as_dir" && as_dir=.
1689  for ac_exec_ext in '' $ac_executable_extensions; do
1690  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1692    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693    break 2
1694  fi
1695done
1696done
1697
1698fi
1699fi
1700STRIP=$ac_cv_prog_STRIP
1701if test -n "$STRIP"; then
1702  echo "$as_me:$LINENO: result: $STRIP" >&5
1703echo "${ECHO_T}$STRIP" >&6
1704else
1705  echo "$as_me:$LINENO: result: no" >&5
1706echo "${ECHO_T}no" >&6
1707fi
1708
1709fi
1710if test -z "$ac_cv_prog_STRIP"; then
1711  ac_ct_STRIP=$STRIP
1712  # Extract the first word of "strip", so it can be a program name with args.
1713set dummy strip; ac_word=$2
1714echo "$as_me:$LINENO: checking for $ac_word" >&5
1715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1717  echo $ECHO_N "(cached) $ECHO_C" >&6
1718else
1719  if test -n "$ac_ct_STRIP"; then
1720  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1721else
1722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723for as_dir in $PATH
1724do
1725  IFS=$as_save_IFS
1726  test -z "$as_dir" && as_dir=.
1727  for ac_exec_ext in '' $ac_executable_extensions; do
1728  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729    ac_cv_prog_ac_ct_STRIP="strip"
1730    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731    break 2
1732  fi
1733done
1734done
1735
1736  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1737fi
1738fi
1739ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1740if test -n "$ac_ct_STRIP"; then
1741  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1742echo "${ECHO_T}$ac_ct_STRIP" >&6
1743else
1744  echo "$as_me:$LINENO: result: no" >&5
1745echo "${ECHO_T}no" >&6
1746fi
1747
1748  STRIP=$ac_ct_STRIP
1749else
1750  STRIP="$ac_cv_prog_STRIP"
1751fi
1752
1753fi
1754INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1755
1756# We need awk for the "check" target.  The system "awk" is bad on
1757# some platforms.
1758
1759
1760
1761          ac_config_headers="$ac_config_headers config.h"
1762
1763
1764rm -f .deps 2>/dev/null
1765mkdir .deps 2>/dev/null
1766if test -d .deps; then
1767  DEPDIR=.deps
1768else
1769  # MS-DOS does not allow filenames that begin with a dot.
1770  DEPDIR=_deps
1771fi
1772rmdir .deps 2>/dev/null
1773
1774
1775          ac_config_commands="$ac_config_commands depfiles"
1776
1777
1778am_make=${MAKE-make}
1779cat > confinc << 'END'
1780doit:
1781	@echo done
1782END
1783# If we don't find an include directive, just comment out the code.
1784echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1785echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1786am__include="#"
1787am__quote=
1788_am_result=none
1789# First try GNU make style include.
1790echo "include confinc" > confmf
1791# We grep out `Entering directory' and `Leaving directory'
1792# messages which can occur if `w' ends up in MAKEFLAGS.
1793# In particular we don't look at `^make:' because GNU make might
1794# be invoked under some other name (usually "gmake"), in which
1795# case it prints its new name instead of `make'.
1796if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1797   am__include=include
1798   am__quote=
1799   _am_result=GNU
1800fi
1801# Now try BSD make style include.
1802if test "$am__include" = "#"; then
1803   echo '.include "confinc"' > confmf
1804   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1805      am__include=.include
1806      am__quote="\""
1807      _am_result=BSD
1808   fi
1809fi
1810
1811
1812echo "$as_me:$LINENO: result: $_am_result" >&5
1813echo "${ECHO_T}$_am_result" >&6
1814rm -f confinc confmf
1815
1816# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1817if test "${enable_dependency_tracking+set}" = set; then
1818  enableval="$enable_dependency_tracking"
1819
1820fi;
1821if test "x$enable_dependency_tracking" != xno; then
1822  am_depcomp="$ac_aux_dir/depcomp"
1823  AMDEPBACKSLASH='\'
1824fi
1825
1826
1827if test "x$enable_dependency_tracking" != xno; then
1828  AMDEP_TRUE=
1829  AMDEP_FALSE='#'
1830else
1831  AMDEP_TRUE='#'
1832  AMDEP_FALSE=
1833fi
1834
1835
1836
1837ac_ext=c
1838ac_cpp='$CPP $CPPFLAGS'
1839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1841ac_compiler_gnu=$ac_cv_c_compiler_gnu
1842if test -n "$ac_tool_prefix"; then
1843  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1844set dummy ${ac_tool_prefix}gcc; ac_word=$2
1845echo "$as_me:$LINENO: checking for $ac_word" >&5
1846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847if test "${ac_cv_prog_CC+set}" = set; then
1848  echo $ECHO_N "(cached) $ECHO_C" >&6
1849else
1850  if test -n "$CC"; then
1851  ac_cv_prog_CC="$CC" # Let the user override the test.
1852else
1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854for as_dir in $PATH
1855do
1856  IFS=$as_save_IFS
1857  test -z "$as_dir" && as_dir=.
1858  for ac_exec_ext in '' $ac_executable_extensions; do
1859  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862    break 2
1863  fi
1864done
1865done
1866
1867fi
1868fi
1869CC=$ac_cv_prog_CC
1870if test -n "$CC"; then
1871  echo "$as_me:$LINENO: result: $CC" >&5
1872echo "${ECHO_T}$CC" >&6
1873else
1874  echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876fi
1877
1878fi
1879if test -z "$ac_cv_prog_CC"; then
1880  ac_ct_CC=$CC
1881  # Extract the first word of "gcc", so it can be a program name with args.
1882set dummy gcc; ac_word=$2
1883echo "$as_me:$LINENO: checking for $ac_word" >&5
1884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1886  echo $ECHO_N "(cached) $ECHO_C" >&6
1887else
1888  if test -n "$ac_ct_CC"; then
1889  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1890else
1891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892for as_dir in $PATH
1893do
1894  IFS=$as_save_IFS
1895  test -z "$as_dir" && as_dir=.
1896  for ac_exec_ext in '' $ac_executable_extensions; do
1897  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898    ac_cv_prog_ac_ct_CC="gcc"
1899    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900    break 2
1901  fi
1902done
1903done
1904
1905fi
1906fi
1907ac_ct_CC=$ac_cv_prog_ac_ct_CC
1908if test -n "$ac_ct_CC"; then
1909  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1910echo "${ECHO_T}$ac_ct_CC" >&6
1911else
1912  echo "$as_me:$LINENO: result: no" >&5
1913echo "${ECHO_T}no" >&6
1914fi
1915
1916  CC=$ac_ct_CC
1917else
1918  CC="$ac_cv_prog_CC"
1919fi
1920
1921if test -z "$CC"; then
1922  if test -n "$ac_tool_prefix"; then
1923  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1924set dummy ${ac_tool_prefix}cc; ac_word=$2
1925echo "$as_me:$LINENO: checking for $ac_word" >&5
1926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927if test "${ac_cv_prog_CC+set}" = set; then
1928  echo $ECHO_N "(cached) $ECHO_C" >&6
1929else
1930  if test -n "$CC"; then
1931  ac_cv_prog_CC="$CC" # Let the user override the test.
1932else
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936  IFS=$as_save_IFS
1937  test -z "$as_dir" && as_dir=.
1938  for ac_exec_ext in '' $ac_executable_extensions; do
1939  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940    ac_cv_prog_CC="${ac_tool_prefix}cc"
1941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942    break 2
1943  fi
1944done
1945done
1946
1947fi
1948fi
1949CC=$ac_cv_prog_CC
1950if test -n "$CC"; then
1951  echo "$as_me:$LINENO: result: $CC" >&5
1952echo "${ECHO_T}$CC" >&6
1953else
1954  echo "$as_me:$LINENO: result: no" >&5
1955echo "${ECHO_T}no" >&6
1956fi
1957
1958fi
1959if test -z "$ac_cv_prog_CC"; then
1960  ac_ct_CC=$CC
1961  # Extract the first word of "cc", so it can be a program name with args.
1962set dummy cc; ac_word=$2
1963echo "$as_me:$LINENO: checking for $ac_word" >&5
1964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1966  echo $ECHO_N "(cached) $ECHO_C" >&6
1967else
1968  if test -n "$ac_ct_CC"; then
1969  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1970else
1971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972for as_dir in $PATH
1973do
1974  IFS=$as_save_IFS
1975  test -z "$as_dir" && as_dir=.
1976  for ac_exec_ext in '' $ac_executable_extensions; do
1977  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978    ac_cv_prog_ac_ct_CC="cc"
1979    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980    break 2
1981  fi
1982done
1983done
1984
1985fi
1986fi
1987ac_ct_CC=$ac_cv_prog_ac_ct_CC
1988if test -n "$ac_ct_CC"; then
1989  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1990echo "${ECHO_T}$ac_ct_CC" >&6
1991else
1992  echo "$as_me:$LINENO: result: no" >&5
1993echo "${ECHO_T}no" >&6
1994fi
1995
1996  CC=$ac_ct_CC
1997else
1998  CC="$ac_cv_prog_CC"
1999fi
2000
2001fi
2002if test -z "$CC"; then
2003  # Extract the first word of "cc", so it can be a program name with args.
2004set dummy cc; ac_word=$2
2005echo "$as_me:$LINENO: checking for $ac_word" >&5
2006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007if test "${ac_cv_prog_CC+set}" = set; then
2008  echo $ECHO_N "(cached) $ECHO_C" >&6
2009else
2010  if test -n "$CC"; then
2011  ac_cv_prog_CC="$CC" # Let the user override the test.
2012else
2013  ac_prog_rejected=no
2014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015for as_dir in $PATH
2016do
2017  IFS=$as_save_IFS
2018  test -z "$as_dir" && as_dir=.
2019  for ac_exec_ext in '' $ac_executable_extensions; do
2020  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2022       ac_prog_rejected=yes
2023       continue
2024     fi
2025    ac_cv_prog_CC="cc"
2026    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027    break 2
2028  fi
2029done
2030done
2031
2032if test $ac_prog_rejected = yes; then
2033  # We found a bogon in the path, so make sure we never use it.
2034  set dummy $ac_cv_prog_CC
2035  shift
2036  if test $# != 0; then
2037    # We chose a different compiler from the bogus one.
2038    # However, it has the same basename, so the bogon will be chosen
2039    # first if we set CC to just the basename; use the full file name.
2040    shift
2041    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2042  fi
2043fi
2044fi
2045fi
2046CC=$ac_cv_prog_CC
2047if test -n "$CC"; then
2048  echo "$as_me:$LINENO: result: $CC" >&5
2049echo "${ECHO_T}$CC" >&6
2050else
2051  echo "$as_me:$LINENO: result: no" >&5
2052echo "${ECHO_T}no" >&6
2053fi
2054
2055fi
2056if test -z "$CC"; then
2057  if test -n "$ac_tool_prefix"; then
2058  for ac_prog in cl
2059  do
2060    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2061set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2062echo "$as_me:$LINENO: checking for $ac_word" >&5
2063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2064if test "${ac_cv_prog_CC+set}" = set; then
2065  echo $ECHO_N "(cached) $ECHO_C" >&6
2066else
2067  if test -n "$CC"; then
2068  ac_cv_prog_CC="$CC" # Let the user override the test.
2069else
2070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071for as_dir in $PATH
2072do
2073  IFS=$as_save_IFS
2074  test -z "$as_dir" && as_dir=.
2075  for ac_exec_ext in '' $ac_executable_extensions; do
2076  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2078    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079    break 2
2080  fi
2081done
2082done
2083
2084fi
2085fi
2086CC=$ac_cv_prog_CC
2087if test -n "$CC"; then
2088  echo "$as_me:$LINENO: result: $CC" >&5
2089echo "${ECHO_T}$CC" >&6
2090else
2091  echo "$as_me:$LINENO: result: no" >&5
2092echo "${ECHO_T}no" >&6
2093fi
2094
2095    test -n "$CC" && break
2096  done
2097fi
2098if test -z "$CC"; then
2099  ac_ct_CC=$CC
2100  for ac_prog in cl
2101do
2102  # Extract the first word of "$ac_prog", so it can be a program name with args.
2103set dummy $ac_prog; ac_word=$2
2104echo "$as_me:$LINENO: checking for $ac_word" >&5
2105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2106if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2107  echo $ECHO_N "(cached) $ECHO_C" >&6
2108else
2109  if test -n "$ac_ct_CC"; then
2110  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2111else
2112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113for as_dir in $PATH
2114do
2115  IFS=$as_save_IFS
2116  test -z "$as_dir" && as_dir=.
2117  for ac_exec_ext in '' $ac_executable_extensions; do
2118  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2119    ac_cv_prog_ac_ct_CC="$ac_prog"
2120    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121    break 2
2122  fi
2123done
2124done
2125
2126fi
2127fi
2128ac_ct_CC=$ac_cv_prog_ac_ct_CC
2129if test -n "$ac_ct_CC"; then
2130  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2131echo "${ECHO_T}$ac_ct_CC" >&6
2132else
2133  echo "$as_me:$LINENO: result: no" >&5
2134echo "${ECHO_T}no" >&6
2135fi
2136
2137  test -n "$ac_ct_CC" && break
2138done
2139
2140  CC=$ac_ct_CC
2141fi
2142
2143fi
2144
2145
2146test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2147See \`config.log' for more details." >&5
2148echo "$as_me: error: no acceptable C compiler found in \$PATH
2149See \`config.log' for more details." >&2;}
2150   { (exit 1); exit 1; }; }
2151
2152# Provide some information about the compiler.
2153echo "$as_me:$LINENO:" \
2154     "checking for C compiler version" >&5
2155ac_compiler=`set X $ac_compile; echo $2`
2156{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2157  (eval $ac_compiler --version </dev/null >&5) 2>&5
2158  ac_status=$?
2159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160  (exit $ac_status); }
2161{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2162  (eval $ac_compiler -v </dev/null >&5) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }
2166{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2167  (eval $ac_compiler -V </dev/null >&5) 2>&5
2168  ac_status=$?
2169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170  (exit $ac_status); }
2171
2172cat >conftest.$ac_ext <<_ACEOF
2173#line $LINENO "configure"
2174/* confdefs.h.  */
2175_ACEOF
2176cat confdefs.h >>conftest.$ac_ext
2177cat >>conftest.$ac_ext <<_ACEOF
2178/* end confdefs.h.  */
2179
2180int
2181main ()
2182{
2183
2184  ;
2185  return 0;
2186}
2187_ACEOF
2188ac_clean_files_save=$ac_clean_files
2189ac_clean_files="$ac_clean_files a.out a.exe b.out"
2190# Try to create an executable without -o first, disregard a.out.
2191# It will help us diagnose broken compilers, and finding out an intuition
2192# of exeext.
2193echo "$as_me:$LINENO: checking for C compiler default output" >&5
2194echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2195ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2196if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2197  (eval $ac_link_default) 2>&5
2198  ac_status=$?
2199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200  (exit $ac_status); }; then
2201  # Find the output, starting from the most likely.  This scheme is
2202# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2203# resort.
2204
2205# Be careful to initialize this variable, since it used to be cached.
2206# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2207ac_cv_exeext=
2208# b.out is created by i960 compilers.
2209for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2210do
2211  test -f "$ac_file" || continue
2212  case $ac_file in
2213    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2214        ;;
2215    conftest.$ac_ext )
2216        # This is the source file.
2217        ;;
2218    [ab].out )
2219        # We found the default executable, but exeext='' is most
2220        # certainly right.
2221        break;;
2222    *.* )
2223        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2224        # FIXME: I believe we export ac_cv_exeext for Libtool,
2225        # but it would be cool to find out if it's true.  Does anybody
2226        # maintain Libtool? --akim.
2227        export ac_cv_exeext
2228        break;;
2229    * )
2230        break;;
2231  esac
2232done
2233else
2234  echo "$as_me: failed program was:" >&5
2235sed 's/^/| /' conftest.$ac_ext >&5
2236
2237{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2238See \`config.log' for more details." >&5
2239echo "$as_me: error: C compiler cannot create executables
2240See \`config.log' for more details." >&2;}
2241   { (exit 77); exit 77; }; }
2242fi
2243
2244ac_exeext=$ac_cv_exeext
2245echo "$as_me:$LINENO: result: $ac_file" >&5
2246echo "${ECHO_T}$ac_file" >&6
2247
2248# Check the compiler produces executables we can run.  If not, either
2249# the compiler is broken, or we cross compile.
2250echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2251echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2252# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2253# If not cross compiling, check that we can run a simple program.
2254if test "$cross_compiling" != yes; then
2255  if { ac_try='./$ac_file'
2256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257  (eval $ac_try) 2>&5
2258  ac_status=$?
2259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260  (exit $ac_status); }; }; then
2261    cross_compiling=no
2262  else
2263    if test "$cross_compiling" = maybe; then
2264	cross_compiling=yes
2265    else
2266	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2267If you meant to cross compile, use \`--host'.
2268See \`config.log' for more details." >&5
2269echo "$as_me: error: cannot run C compiled programs.
2270If you meant to cross compile, use \`--host'.
2271See \`config.log' for more details." >&2;}
2272   { (exit 1); exit 1; }; }
2273    fi
2274  fi
2275fi
2276echo "$as_me:$LINENO: result: yes" >&5
2277echo "${ECHO_T}yes" >&6
2278
2279rm -f a.out a.exe conftest$ac_cv_exeext b.out
2280ac_clean_files=$ac_clean_files_save
2281# Check the compiler produces executables we can run.  If not, either
2282# the compiler is broken, or we cross compile.
2283echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2284echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2285echo "$as_me:$LINENO: result: $cross_compiling" >&5
2286echo "${ECHO_T}$cross_compiling" >&6
2287
2288echo "$as_me:$LINENO: checking for suffix of executables" >&5
2289echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2291  (eval $ac_link) 2>&5
2292  ac_status=$?
2293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294  (exit $ac_status); }; then
2295  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2296# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2297# work properly (i.e., refer to `conftest.exe'), while it won't with
2298# `rm'.
2299for ac_file in conftest.exe conftest conftest.*; do
2300  test -f "$ac_file" || continue
2301  case $ac_file in
2302    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2303    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2304          export ac_cv_exeext
2305          break;;
2306    * ) break;;
2307  esac
2308done
2309else
2310  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2311See \`config.log' for more details." >&5
2312echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2313See \`config.log' for more details." >&2;}
2314   { (exit 1); exit 1; }; }
2315fi
2316
2317rm -f conftest$ac_cv_exeext
2318echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2319echo "${ECHO_T}$ac_cv_exeext" >&6
2320
2321rm -f conftest.$ac_ext
2322EXEEXT=$ac_cv_exeext
2323ac_exeext=$EXEEXT
2324echo "$as_me:$LINENO: checking for suffix of object files" >&5
2325echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2326if test "${ac_cv_objext+set}" = set; then
2327  echo $ECHO_N "(cached) $ECHO_C" >&6
2328else
2329  cat >conftest.$ac_ext <<_ACEOF
2330#line $LINENO "configure"
2331/* confdefs.h.  */
2332_ACEOF
2333cat confdefs.h >>conftest.$ac_ext
2334cat >>conftest.$ac_ext <<_ACEOF
2335/* end confdefs.h.  */
2336
2337int
2338main ()
2339{
2340
2341  ;
2342  return 0;
2343}
2344_ACEOF
2345rm -f conftest.o conftest.obj
2346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347  (eval $ac_compile) 2>&5
2348  ac_status=$?
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); }; then
2351  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2352  case $ac_file in
2353    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2354    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2355       break;;
2356  esac
2357done
2358else
2359  echo "$as_me: failed program was:" >&5
2360sed 's/^/| /' conftest.$ac_ext >&5
2361
2362{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2363See \`config.log' for more details." >&5
2364echo "$as_me: error: cannot compute suffix of object files: cannot compile
2365See \`config.log' for more details." >&2;}
2366   { (exit 1); exit 1; }; }
2367fi
2368
2369rm -f conftest.$ac_cv_objext conftest.$ac_ext
2370fi
2371echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2372echo "${ECHO_T}$ac_cv_objext" >&6
2373OBJEXT=$ac_cv_objext
2374ac_objext=$OBJEXT
2375echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2376echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2377if test "${ac_cv_c_compiler_gnu+set}" = set; then
2378  echo $ECHO_N "(cached) $ECHO_C" >&6
2379else
2380  cat >conftest.$ac_ext <<_ACEOF
2381#line $LINENO "configure"
2382/* confdefs.h.  */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
2386/* end confdefs.h.  */
2387
2388int
2389main ()
2390{
2391#ifndef __GNUC__
2392       choke me
2393#endif
2394
2395  ;
2396  return 0;
2397}
2398_ACEOF
2399rm -f conftest.$ac_objext
2400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401  (eval $ac_compile) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); } &&
2405         { ac_try='test -s conftest.$ac_objext'
2406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407  (eval $ac_try) 2>&5
2408  ac_status=$?
2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410  (exit $ac_status); }; }; then
2411  ac_compiler_gnu=yes
2412else
2413  echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
2416ac_compiler_gnu=no
2417fi
2418rm -f conftest.$ac_objext conftest.$ac_ext
2419ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420
2421fi
2422echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2424GCC=`test $ac_compiler_gnu = yes && echo yes`
2425ac_test_CFLAGS=${CFLAGS+set}
2426ac_save_CFLAGS=$CFLAGS
2427CFLAGS="-g"
2428echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2429echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2430if test "${ac_cv_prog_cc_g+set}" = set; then
2431  echo $ECHO_N "(cached) $ECHO_C" >&6
2432else
2433  cat >conftest.$ac_ext <<_ACEOF
2434#line $LINENO "configure"
2435/* confdefs.h.  */
2436_ACEOF
2437cat confdefs.h >>conftest.$ac_ext
2438cat >>conftest.$ac_ext <<_ACEOF
2439/* end confdefs.h.  */
2440
2441int
2442main ()
2443{
2444
2445  ;
2446  return 0;
2447}
2448_ACEOF
2449rm -f conftest.$ac_objext
2450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451  (eval $ac_compile) 2>&5
2452  ac_status=$?
2453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454  (exit $ac_status); } &&
2455         { ac_try='test -s conftest.$ac_objext'
2456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457  (eval $ac_try) 2>&5
2458  ac_status=$?
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); }; }; then
2461  ac_cv_prog_cc_g=yes
2462else
2463  echo "$as_me: failed program was:" >&5
2464sed 's/^/| /' conftest.$ac_ext >&5
2465
2466ac_cv_prog_cc_g=no
2467fi
2468rm -f conftest.$ac_objext conftest.$ac_ext
2469fi
2470echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2471echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2472if test "$ac_test_CFLAGS" = set; then
2473  CFLAGS=$ac_save_CFLAGS
2474elif test $ac_cv_prog_cc_g = yes; then
2475  if test "$GCC" = yes; then
2476    CFLAGS="-g -O2"
2477  else
2478    CFLAGS="-g"
2479  fi
2480else
2481  if test "$GCC" = yes; then
2482    CFLAGS="-O2"
2483  else
2484    CFLAGS=
2485  fi
2486fi
2487echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2488echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2489if test "${ac_cv_prog_cc_stdc+set}" = set; then
2490  echo $ECHO_N "(cached) $ECHO_C" >&6
2491else
2492  ac_cv_prog_cc_stdc=no
2493ac_save_CC=$CC
2494cat >conftest.$ac_ext <<_ACEOF
2495#line $LINENO "configure"
2496/* confdefs.h.  */
2497_ACEOF
2498cat confdefs.h >>conftest.$ac_ext
2499cat >>conftest.$ac_ext <<_ACEOF
2500/* end confdefs.h.  */
2501#include <stdarg.h>
2502#include <stdio.h>
2503#include <sys/types.h>
2504#include <sys/stat.h>
2505/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2506struct buf { int x; };
2507FILE * (*rcsopen) (struct buf *, struct stat *, int);
2508static char *e (p, i)
2509     char **p;
2510     int i;
2511{
2512  return p[i];
2513}
2514static char *f (char * (*g) (char **, int), char **p, ...)
2515{
2516  char *s;
2517  va_list v;
2518  va_start (v,p);
2519  s = g (p, va_arg (v,int));
2520  va_end (v);
2521  return s;
2522}
2523int test (int i, double x);
2524struct s1 {int (*f) (int a);};
2525struct s2 {int (*f) (double a);};
2526int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2527int argc;
2528char **argv;
2529int
2530main ()
2531{
2532return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2533  ;
2534  return 0;
2535}
2536_ACEOF
2537# Don't try gcc -ansi; that turns off useful extensions and
2538# breaks some systems' header files.
2539# AIX			-qlanglvl=ansi
2540# Ultrix and OSF/1	-std1
2541# HP-UX 10.20 and later	-Ae
2542# HP-UX older versions	-Aa -D_HPUX_SOURCE
2543# SVR4			-Xc -D__EXTENSIONS__
2544for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2545do
2546  CC="$ac_save_CC $ac_arg"
2547  rm -f conftest.$ac_objext
2548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549  (eval $ac_compile) 2>&5
2550  ac_status=$?
2551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552  (exit $ac_status); } &&
2553         { ac_try='test -s conftest.$ac_objext'
2554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555  (eval $ac_try) 2>&5
2556  ac_status=$?
2557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558  (exit $ac_status); }; }; then
2559  ac_cv_prog_cc_stdc=$ac_arg
2560break
2561else
2562  echo "$as_me: failed program was:" >&5
2563sed 's/^/| /' conftest.$ac_ext >&5
2564
2565fi
2566rm -f conftest.$ac_objext
2567done
2568rm -f conftest.$ac_ext conftest.$ac_objext
2569CC=$ac_save_CC
2570
2571fi
2572
2573case "x$ac_cv_prog_cc_stdc" in
2574  x|xno)
2575    echo "$as_me:$LINENO: result: none needed" >&5
2576echo "${ECHO_T}none needed" >&6 ;;
2577  *)
2578    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2579echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2580    CC="$CC $ac_cv_prog_cc_stdc" ;;
2581esac
2582
2583# Some people use a C++ compiler to compile C.  Since we use `exit',
2584# in C++ we need to declare it.  In case someone uses the same compiler
2585# for both compiling C and C++ we need to have the C++ compiler decide
2586# the declaration of exit, since it's the most demanding environment.
2587cat >conftest.$ac_ext <<_ACEOF
2588#ifndef __cplusplus
2589  choke me
2590#endif
2591_ACEOF
2592rm -f conftest.$ac_objext
2593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2594  (eval $ac_compile) 2>&5
2595  ac_status=$?
2596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597  (exit $ac_status); } &&
2598         { ac_try='test -s conftest.$ac_objext'
2599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600  (eval $ac_try) 2>&5
2601  ac_status=$?
2602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603  (exit $ac_status); }; }; then
2604  for ac_declaration in \
2605   ''\
2606   '#include <stdlib.h>' \
2607   'extern "C" void std::exit (int) throw (); using std::exit;' \
2608   'extern "C" void std::exit (int); using std::exit;' \
2609   'extern "C" void exit (int) throw ();' \
2610   'extern "C" void exit (int);' \
2611   'void exit (int);'
2612do
2613  cat >conftest.$ac_ext <<_ACEOF
2614#line $LINENO "configure"
2615/* confdefs.h.  */
2616_ACEOF
2617cat confdefs.h >>conftest.$ac_ext
2618cat >>conftest.$ac_ext <<_ACEOF
2619/* end confdefs.h.  */
2620#include <stdlib.h>
2621$ac_declaration
2622int
2623main ()
2624{
2625exit (42);
2626  ;
2627  return 0;
2628}
2629_ACEOF
2630rm -f conftest.$ac_objext
2631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632  (eval $ac_compile) 2>&5
2633  ac_status=$?
2634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); } &&
2636         { ac_try='test -s conftest.$ac_objext'
2637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638  (eval $ac_try) 2>&5
2639  ac_status=$?
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); }; }; then
2642  :
2643else
2644  echo "$as_me: failed program was:" >&5
2645sed 's/^/| /' conftest.$ac_ext >&5
2646
2647continue
2648fi
2649rm -f conftest.$ac_objext conftest.$ac_ext
2650  cat >conftest.$ac_ext <<_ACEOF
2651#line $LINENO "configure"
2652/* confdefs.h.  */
2653_ACEOF
2654cat confdefs.h >>conftest.$ac_ext
2655cat >>conftest.$ac_ext <<_ACEOF
2656/* end confdefs.h.  */
2657$ac_declaration
2658int
2659main ()
2660{
2661exit (42);
2662  ;
2663  return 0;
2664}
2665_ACEOF
2666rm -f conftest.$ac_objext
2667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668  (eval $ac_compile) 2>&5
2669  ac_status=$?
2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671  (exit $ac_status); } &&
2672         { ac_try='test -s conftest.$ac_objext'
2673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674  (eval $ac_try) 2>&5
2675  ac_status=$?
2676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677  (exit $ac_status); }; }; then
2678  break
2679else
2680  echo "$as_me: failed program was:" >&5
2681sed 's/^/| /' conftest.$ac_ext >&5
2682
2683fi
2684rm -f conftest.$ac_objext conftest.$ac_ext
2685done
2686rm -f conftest*
2687if test -n "$ac_declaration"; then
2688  echo '#ifdef __cplusplus' >>confdefs.h
2689  echo $ac_declaration      >>confdefs.h
2690  echo '#endif'             >>confdefs.h
2691fi
2692
2693else
2694  echo "$as_me: failed program was:" >&5
2695sed 's/^/| /' conftest.$ac_ext >&5
2696
2697fi
2698rm -f conftest.$ac_objext conftest.$ac_ext
2699ac_ext=c
2700ac_cpp='$CPP $CPPFLAGS'
2701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704
2705depcc="$CC"   am_compiler_list=
2706
2707echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2708echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2709if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2710  echo $ECHO_N "(cached) $ECHO_C" >&6
2711else
2712  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2713  # We make a subdir and do the tests there.  Otherwise we can end up
2714  # making bogus files that we don't know about and never remove.  For
2715  # instance it was reported that on HP-UX the gcc test will end up
2716  # making a dummy file named `D' -- because `-MD' means `put the output
2717  # in D'.
2718  mkdir conftest.dir
2719  # Copy depcomp to subdir because otherwise we won't find it if we're
2720  # using a relative directory.
2721  cp "$am_depcomp" conftest.dir
2722  cd conftest.dir
2723
2724  am_cv_CC_dependencies_compiler_type=none
2725  if test "$am_compiler_list" = ""; then
2726     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2727  fi
2728  for depmode in $am_compiler_list; do
2729    # We need to recreate these files for each test, as the compiler may
2730    # overwrite some of them when testing with obscure command lines.
2731    # This happens at least with the AIX C compiler.
2732    echo '#include "conftest.h"' > conftest.c
2733    echo 'int i;' > conftest.h
2734    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2735
2736    case $depmode in
2737    nosideeffect)
2738      # after this tag, mechanisms are not by side-effect, so they'll
2739      # only be used when explicitly requested
2740      if test "x$enable_dependency_tracking" = xyes; then
2741	continue
2742      else
2743	break
2744      fi
2745      ;;
2746    none) break ;;
2747    esac
2748    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2749    # mode.  It turns out that the SunPro C++ compiler does not properly
2750    # handle `-M -o', and we need to detect this.
2751    if depmode=$depmode \
2752       source=conftest.c object=conftest.o \
2753       depfile=conftest.Po tmpdepfile=conftest.TPo \
2754       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2755       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2756       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2757      am_cv_CC_dependencies_compiler_type=$depmode
2758      break
2759    fi
2760  done
2761
2762  cd ..
2763  rm -rf conftest.dir
2764else
2765  am_cv_CC_dependencies_compiler_type=none
2766fi
2767
2768fi
2769echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2770echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2771CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2772
2773
2774
2775if
2776  test "x$enable_dependency_tracking" != xno \
2777  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2778  am__fastdepCC_TRUE=
2779  am__fastdepCC_FALSE='#'
2780else
2781  am__fastdepCC_TRUE='#'
2782  am__fastdepCC_FALSE=
2783fi
2784
2785
2786
2787
2788        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2789echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2790if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2791  echo $ECHO_N "(cached) $ECHO_C" >&6
2792else
2793  ac_check_lib_save_LIBS=$LIBS
2794LIBS="-lcposix  $LIBS"
2795cat >conftest.$ac_ext <<_ACEOF
2796#line $LINENO "configure"
2797/* confdefs.h.  */
2798_ACEOF
2799cat confdefs.h >>conftest.$ac_ext
2800cat >>conftest.$ac_ext <<_ACEOF
2801/* end confdefs.h.  */
2802
2803/* Override any gcc2 internal prototype to avoid an error.  */
2804#ifdef __cplusplus
2805extern "C"
2806#endif
2807/* We use char because int might match the return type of a gcc2
2808   builtin and then its argument prototype would still apply.  */
2809char strerror ();
2810int
2811main ()
2812{
2813strerror ();
2814  ;
2815  return 0;
2816}
2817_ACEOF
2818rm -f conftest.$ac_objext conftest$ac_exeext
2819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2820  (eval $ac_link) 2>&5
2821  ac_status=$?
2822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823  (exit $ac_status); } &&
2824         { ac_try='test -s conftest$ac_exeext'
2825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826  (eval $ac_try) 2>&5
2827  ac_status=$?
2828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829  (exit $ac_status); }; }; then
2830  ac_cv_lib_cposix_strerror=yes
2831else
2832  echo "$as_me: failed program was:" >&5
2833sed 's/^/| /' conftest.$ac_ext >&5
2834
2835ac_cv_lib_cposix_strerror=no
2836fi
2837rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2838LIBS=$ac_check_lib_save_LIBS
2839fi
2840echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2841echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2842if test $ac_cv_lib_cposix_strerror = yes; then
2843  LIBS="$LIBS -lcposix"
2844fi
2845
2846
2847
2848
2849# Checks for programs.
2850ac_ext=c
2851ac_cpp='$CPP $CPPFLAGS'
2852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2854ac_compiler_gnu=$ac_cv_c_compiler_gnu
2855if test -n "$ac_tool_prefix"; then
2856  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2857set dummy ${ac_tool_prefix}gcc; ac_word=$2
2858echo "$as_me:$LINENO: checking for $ac_word" >&5
2859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2860if test "${ac_cv_prog_CC+set}" = set; then
2861  echo $ECHO_N "(cached) $ECHO_C" >&6
2862else
2863  if test -n "$CC"; then
2864  ac_cv_prog_CC="$CC" # Let the user override the test.
2865else
2866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867for as_dir in $PATH
2868do
2869  IFS=$as_save_IFS
2870  test -z "$as_dir" && as_dir=.
2871  for ac_exec_ext in '' $ac_executable_extensions; do
2872  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2873    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2874    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875    break 2
2876  fi
2877done
2878done
2879
2880fi
2881fi
2882CC=$ac_cv_prog_CC
2883if test -n "$CC"; then
2884  echo "$as_me:$LINENO: result: $CC" >&5
2885echo "${ECHO_T}$CC" >&6
2886else
2887  echo "$as_me:$LINENO: result: no" >&5
2888echo "${ECHO_T}no" >&6
2889fi
2890
2891fi
2892if test -z "$ac_cv_prog_CC"; then
2893  ac_ct_CC=$CC
2894  # Extract the first word of "gcc", so it can be a program name with args.
2895set dummy gcc; ac_word=$2
2896echo "$as_me:$LINENO: checking for $ac_word" >&5
2897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2898if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2899  echo $ECHO_N "(cached) $ECHO_C" >&6
2900else
2901  if test -n "$ac_ct_CC"; then
2902  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2903else
2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905for as_dir in $PATH
2906do
2907  IFS=$as_save_IFS
2908  test -z "$as_dir" && as_dir=.
2909  for ac_exec_ext in '' $ac_executable_extensions; do
2910  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2911    ac_cv_prog_ac_ct_CC="gcc"
2912    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913    break 2
2914  fi
2915done
2916done
2917
2918fi
2919fi
2920ac_ct_CC=$ac_cv_prog_ac_ct_CC
2921if test -n "$ac_ct_CC"; then
2922  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2923echo "${ECHO_T}$ac_ct_CC" >&6
2924else
2925  echo "$as_me:$LINENO: result: no" >&5
2926echo "${ECHO_T}no" >&6
2927fi
2928
2929  CC=$ac_ct_CC
2930else
2931  CC="$ac_cv_prog_CC"
2932fi
2933
2934if test -z "$CC"; then
2935  if test -n "$ac_tool_prefix"; then
2936  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2937set dummy ${ac_tool_prefix}cc; ac_word=$2
2938echo "$as_me:$LINENO: checking for $ac_word" >&5
2939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2940if test "${ac_cv_prog_CC+set}" = set; then
2941  echo $ECHO_N "(cached) $ECHO_C" >&6
2942else
2943  if test -n "$CC"; then
2944  ac_cv_prog_CC="$CC" # Let the user override the test.
2945else
2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH
2948do
2949  IFS=$as_save_IFS
2950  test -z "$as_dir" && as_dir=.
2951  for ac_exec_ext in '' $ac_executable_extensions; do
2952  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953    ac_cv_prog_CC="${ac_tool_prefix}cc"
2954    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955    break 2
2956  fi
2957done
2958done
2959
2960fi
2961fi
2962CC=$ac_cv_prog_CC
2963if test -n "$CC"; then
2964  echo "$as_me:$LINENO: result: $CC" >&5
2965echo "${ECHO_T}$CC" >&6
2966else
2967  echo "$as_me:$LINENO: result: no" >&5
2968echo "${ECHO_T}no" >&6
2969fi
2970
2971fi
2972if test -z "$ac_cv_prog_CC"; then
2973  ac_ct_CC=$CC
2974  # Extract the first word of "cc", so it can be a program name with args.
2975set dummy cc; ac_word=$2
2976echo "$as_me:$LINENO: checking for $ac_word" >&5
2977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2978if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2979  echo $ECHO_N "(cached) $ECHO_C" >&6
2980else
2981  if test -n "$ac_ct_CC"; then
2982  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2983else
2984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985for as_dir in $PATH
2986do
2987  IFS=$as_save_IFS
2988  test -z "$as_dir" && as_dir=.
2989  for ac_exec_ext in '' $ac_executable_extensions; do
2990  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991    ac_cv_prog_ac_ct_CC="cc"
2992    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2993    break 2
2994  fi
2995done
2996done
2997
2998fi
2999fi
3000ac_ct_CC=$ac_cv_prog_ac_ct_CC
3001if test -n "$ac_ct_CC"; then
3002  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3003echo "${ECHO_T}$ac_ct_CC" >&6
3004else
3005  echo "$as_me:$LINENO: result: no" >&5
3006echo "${ECHO_T}no" >&6
3007fi
3008
3009  CC=$ac_ct_CC
3010else
3011  CC="$ac_cv_prog_CC"
3012fi
3013
3014fi
3015if test -z "$CC"; then
3016  # Extract the first word of "cc", so it can be a program name with args.
3017set dummy cc; ac_word=$2
3018echo "$as_me:$LINENO: checking for $ac_word" >&5
3019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3020if test "${ac_cv_prog_CC+set}" = set; then
3021  echo $ECHO_N "(cached) $ECHO_C" >&6
3022else
3023  if test -n "$CC"; then
3024  ac_cv_prog_CC="$CC" # Let the user override the test.
3025else
3026  ac_prog_rejected=no
3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028for as_dir in $PATH
3029do
3030  IFS=$as_save_IFS
3031  test -z "$as_dir" && as_dir=.
3032  for ac_exec_ext in '' $ac_executable_extensions; do
3033  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3035       ac_prog_rejected=yes
3036       continue
3037     fi
3038    ac_cv_prog_CC="cc"
3039    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3040    break 2
3041  fi
3042done
3043done
3044
3045if test $ac_prog_rejected = yes; then
3046  # We found a bogon in the path, so make sure we never use it.
3047  set dummy $ac_cv_prog_CC
3048  shift
3049  if test $# != 0; then
3050    # We chose a different compiler from the bogus one.
3051    # However, it has the same basename, so the bogon will be chosen
3052    # first if we set CC to just the basename; use the full file name.
3053    shift
3054    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3055  fi
3056fi
3057fi
3058fi
3059CC=$ac_cv_prog_CC
3060if test -n "$CC"; then
3061  echo "$as_me:$LINENO: result: $CC" >&5
3062echo "${ECHO_T}$CC" >&6
3063else
3064  echo "$as_me:$LINENO: result: no" >&5
3065echo "${ECHO_T}no" >&6
3066fi
3067
3068fi
3069if test -z "$CC"; then
3070  if test -n "$ac_tool_prefix"; then
3071  for ac_prog in cl
3072  do
3073    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3074set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3075echo "$as_me:$LINENO: checking for $ac_word" >&5
3076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3077if test "${ac_cv_prog_CC+set}" = set; then
3078  echo $ECHO_N "(cached) $ECHO_C" >&6
3079else
3080  if test -n "$CC"; then
3081  ac_cv_prog_CC="$CC" # Let the user override the test.
3082else
3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086  IFS=$as_save_IFS
3087  test -z "$as_dir" && as_dir=.
3088  for ac_exec_ext in '' $ac_executable_extensions; do
3089  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3091    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092    break 2
3093  fi
3094done
3095done
3096
3097fi
3098fi
3099CC=$ac_cv_prog_CC
3100if test -n "$CC"; then
3101  echo "$as_me:$LINENO: result: $CC" >&5
3102echo "${ECHO_T}$CC" >&6
3103else
3104  echo "$as_me:$LINENO: result: no" >&5
3105echo "${ECHO_T}no" >&6
3106fi
3107
3108    test -n "$CC" && break
3109  done
3110fi
3111if test -z "$CC"; then
3112  ac_ct_CC=$CC
3113  for ac_prog in cl
3114do
3115  # Extract the first word of "$ac_prog", so it can be a program name with args.
3116set dummy $ac_prog; ac_word=$2
3117echo "$as_me:$LINENO: checking for $ac_word" >&5
3118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3119if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3120  echo $ECHO_N "(cached) $ECHO_C" >&6
3121else
3122  if test -n "$ac_ct_CC"; then
3123  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3124else
3125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126for as_dir in $PATH
3127do
3128  IFS=$as_save_IFS
3129  test -z "$as_dir" && as_dir=.
3130  for ac_exec_ext in '' $ac_executable_extensions; do
3131  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132    ac_cv_prog_ac_ct_CC="$ac_prog"
3133    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3134    break 2
3135  fi
3136done
3137done
3138
3139fi
3140fi
3141ac_ct_CC=$ac_cv_prog_ac_ct_CC
3142if test -n "$ac_ct_CC"; then
3143  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3144echo "${ECHO_T}$ac_ct_CC" >&6
3145else
3146  echo "$as_me:$LINENO: result: no" >&5
3147echo "${ECHO_T}no" >&6
3148fi
3149
3150  test -n "$ac_ct_CC" && break
3151done
3152
3153  CC=$ac_ct_CC
3154fi
3155
3156fi
3157
3158
3159test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3160See \`config.log' for more details." >&5
3161echo "$as_me: error: no acceptable C compiler found in \$PATH
3162See \`config.log' for more details." >&2;}
3163   { (exit 1); exit 1; }; }
3164
3165# Provide some information about the compiler.
3166echo "$as_me:$LINENO:" \
3167     "checking for C compiler version" >&5
3168ac_compiler=`set X $ac_compile; echo $2`
3169{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3170  (eval $ac_compiler --version </dev/null >&5) 2>&5
3171  ac_status=$?
3172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173  (exit $ac_status); }
3174{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3175  (eval $ac_compiler -v </dev/null >&5) 2>&5
3176  ac_status=$?
3177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178  (exit $ac_status); }
3179{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3180  (eval $ac_compiler -V </dev/null >&5) 2>&5
3181  ac_status=$?
3182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183  (exit $ac_status); }
3184
3185echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3186echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3187if test "${ac_cv_c_compiler_gnu+set}" = set; then
3188  echo $ECHO_N "(cached) $ECHO_C" >&6
3189else
3190  cat >conftest.$ac_ext <<_ACEOF
3191#line $LINENO "configure"
3192/* confdefs.h.  */
3193_ACEOF
3194cat confdefs.h >>conftest.$ac_ext
3195cat >>conftest.$ac_ext <<_ACEOF
3196/* end confdefs.h.  */
3197
3198int
3199main ()
3200{
3201#ifndef __GNUC__
3202       choke me
3203#endif
3204
3205  ;
3206  return 0;
3207}
3208_ACEOF
3209rm -f conftest.$ac_objext
3210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3211  (eval $ac_compile) 2>&5
3212  ac_status=$?
3213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214  (exit $ac_status); } &&
3215         { ac_try='test -s conftest.$ac_objext'
3216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3217  (eval $ac_try) 2>&5
3218  ac_status=$?
3219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220  (exit $ac_status); }; }; then
3221  ac_compiler_gnu=yes
3222else
3223  echo "$as_me: failed program was:" >&5
3224sed 's/^/| /' conftest.$ac_ext >&5
3225
3226ac_compiler_gnu=no
3227fi
3228rm -f conftest.$ac_objext conftest.$ac_ext
3229ac_cv_c_compiler_gnu=$ac_compiler_gnu
3230
3231fi
3232echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3233echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3234GCC=`test $ac_compiler_gnu = yes && echo yes`
3235ac_test_CFLAGS=${CFLAGS+set}
3236ac_save_CFLAGS=$CFLAGS
3237CFLAGS="-g"
3238echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3239echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3240if test "${ac_cv_prog_cc_g+set}" = set; then
3241  echo $ECHO_N "(cached) $ECHO_C" >&6
3242else
3243  cat >conftest.$ac_ext <<_ACEOF
3244#line $LINENO "configure"
3245/* confdefs.h.  */
3246_ACEOF
3247cat confdefs.h >>conftest.$ac_ext
3248cat >>conftest.$ac_ext <<_ACEOF
3249/* end confdefs.h.  */
3250
3251int
3252main ()
3253{
3254
3255  ;
3256  return 0;
3257}
3258_ACEOF
3259rm -f conftest.$ac_objext
3260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3261  (eval $ac_compile) 2>&5
3262  ac_status=$?
3263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264  (exit $ac_status); } &&
3265         { ac_try='test -s conftest.$ac_objext'
3266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267  (eval $ac_try) 2>&5
3268  ac_status=$?
3269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270  (exit $ac_status); }; }; then
3271  ac_cv_prog_cc_g=yes
3272else
3273  echo "$as_me: failed program was:" >&5
3274sed 's/^/| /' conftest.$ac_ext >&5
3275
3276ac_cv_prog_cc_g=no
3277fi
3278rm -f conftest.$ac_objext conftest.$ac_ext
3279fi
3280echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3281echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3282if test "$ac_test_CFLAGS" = set; then
3283  CFLAGS=$ac_save_CFLAGS
3284elif test $ac_cv_prog_cc_g = yes; then
3285  if test "$GCC" = yes; then
3286    CFLAGS="-g -O2"
3287  else
3288    CFLAGS="-g"
3289  fi
3290else
3291  if test "$GCC" = yes; then
3292    CFLAGS="-O2"
3293  else
3294    CFLAGS=
3295  fi
3296fi
3297echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3298echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3299if test "${ac_cv_prog_cc_stdc+set}" = set; then
3300  echo $ECHO_N "(cached) $ECHO_C" >&6
3301else
3302  ac_cv_prog_cc_stdc=no
3303ac_save_CC=$CC
3304cat >conftest.$ac_ext <<_ACEOF
3305#line $LINENO "configure"
3306/* confdefs.h.  */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h.  */
3311#include <stdarg.h>
3312#include <stdio.h>
3313#include <sys/types.h>
3314#include <sys/stat.h>
3315/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3316struct buf { int x; };
3317FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318static char *e (p, i)
3319     char **p;
3320     int i;
3321{
3322  return p[i];
3323}
3324static char *f (char * (*g) (char **, int), char **p, ...)
3325{
3326  char *s;
3327  va_list v;
3328  va_start (v,p);
3329  s = g (p, va_arg (v,int));
3330  va_end (v);
3331  return s;
3332}
3333int test (int i, double x);
3334struct s1 {int (*f) (int a);};
3335struct s2 {int (*f) (double a);};
3336int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3337int argc;
3338char **argv;
3339int
3340main ()
3341{
3342return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3343  ;
3344  return 0;
3345}
3346_ACEOF
3347# Don't try gcc -ansi; that turns off useful extensions and
3348# breaks some systems' header files.
3349# AIX			-qlanglvl=ansi
3350# Ultrix and OSF/1	-std1
3351# HP-UX 10.20 and later	-Ae
3352# HP-UX older versions	-Aa -D_HPUX_SOURCE
3353# SVR4			-Xc -D__EXTENSIONS__
3354for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3355do
3356  CC="$ac_save_CC $ac_arg"
3357  rm -f conftest.$ac_objext
3358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3359  (eval $ac_compile) 2>&5
3360  ac_status=$?
3361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362  (exit $ac_status); } &&
3363         { ac_try='test -s conftest.$ac_objext'
3364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365  (eval $ac_try) 2>&5
3366  ac_status=$?
3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368  (exit $ac_status); }; }; then
3369  ac_cv_prog_cc_stdc=$ac_arg
3370break
3371else
3372  echo "$as_me: failed program was:" >&5
3373sed 's/^/| /' conftest.$ac_ext >&5
3374
3375fi
3376rm -f conftest.$ac_objext
3377done
3378rm -f conftest.$ac_ext conftest.$ac_objext
3379CC=$ac_save_CC
3380
3381fi
3382
3383case "x$ac_cv_prog_cc_stdc" in
3384  x|xno)
3385    echo "$as_me:$LINENO: result: none needed" >&5
3386echo "${ECHO_T}none needed" >&6 ;;
3387  *)
3388    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3389echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3390    CC="$CC $ac_cv_prog_cc_stdc" ;;
3391esac
3392
3393# Some people use a C++ compiler to compile C.  Since we use `exit',
3394# in C++ we need to declare it.  In case someone uses the same compiler
3395# for both compiling C and C++ we need to have the C++ compiler decide
3396# the declaration of exit, since it's the most demanding environment.
3397cat >conftest.$ac_ext <<_ACEOF
3398#ifndef __cplusplus
3399  choke me
3400#endif
3401_ACEOF
3402rm -f conftest.$ac_objext
3403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3404  (eval $ac_compile) 2>&5
3405  ac_status=$?
3406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407  (exit $ac_status); } &&
3408         { ac_try='test -s conftest.$ac_objext'
3409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410  (eval $ac_try) 2>&5
3411  ac_status=$?
3412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413  (exit $ac_status); }; }; then
3414  for ac_declaration in \
3415   ''\
3416   '#include <stdlib.h>' \
3417   'extern "C" void std::exit (int) throw (); using std::exit;' \
3418   'extern "C" void std::exit (int); using std::exit;' \
3419   'extern "C" void exit (int) throw ();' \
3420   'extern "C" void exit (int);' \
3421   'void exit (int);'
3422do
3423  cat >conftest.$ac_ext <<_ACEOF
3424#line $LINENO "configure"
3425/* confdefs.h.  */
3426_ACEOF
3427cat confdefs.h >>conftest.$ac_ext
3428cat >>conftest.$ac_ext <<_ACEOF
3429/* end confdefs.h.  */
3430#include <stdlib.h>
3431$ac_declaration
3432int
3433main ()
3434{
3435exit (42);
3436  ;
3437  return 0;
3438}
3439_ACEOF
3440rm -f conftest.$ac_objext
3441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3442  (eval $ac_compile) 2>&5
3443  ac_status=$?
3444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445  (exit $ac_status); } &&
3446         { ac_try='test -s conftest.$ac_objext'
3447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448  (eval $ac_try) 2>&5
3449  ac_status=$?
3450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451  (exit $ac_status); }; }; then
3452  :
3453else
3454  echo "$as_me: failed program was:" >&5
3455sed 's/^/| /' conftest.$ac_ext >&5
3456
3457continue
3458fi
3459rm -f conftest.$ac_objext conftest.$ac_ext
3460  cat >conftest.$ac_ext <<_ACEOF
3461#line $LINENO "configure"
3462/* confdefs.h.  */
3463_ACEOF
3464cat confdefs.h >>conftest.$ac_ext
3465cat >>conftest.$ac_ext <<_ACEOF
3466/* end confdefs.h.  */
3467$ac_declaration
3468int
3469main ()
3470{
3471exit (42);
3472  ;
3473  return 0;
3474}
3475_ACEOF
3476rm -f conftest.$ac_objext
3477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478  (eval $ac_compile) 2>&5
3479  ac_status=$?
3480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481  (exit $ac_status); } &&
3482         { ac_try='test -s conftest.$ac_objext'
3483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484  (eval $ac_try) 2>&5
3485  ac_status=$?
3486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487  (exit $ac_status); }; }; then
3488  break
3489else
3490  echo "$as_me: failed program was:" >&5
3491sed 's/^/| /' conftest.$ac_ext >&5
3492
3493fi
3494rm -f conftest.$ac_objext conftest.$ac_ext
3495done
3496rm -f conftest*
3497if test -n "$ac_declaration"; then
3498  echo '#ifdef __cplusplus' >>confdefs.h
3499  echo $ac_declaration      >>confdefs.h
3500  echo '#endif'             >>confdefs.h
3501fi
3502
3503else
3504  echo "$as_me: failed program was:" >&5
3505sed 's/^/| /' conftest.$ac_ext >&5
3506
3507fi
3508rm -f conftest.$ac_objext conftest.$ac_ext
3509ac_ext=c
3510ac_cpp='$CPP $CPPFLAGS'
3511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514
3515depcc="$CC"   am_compiler_list=
3516
3517echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3518echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3519if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3520  echo $ECHO_N "(cached) $ECHO_C" >&6
3521else
3522  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3523  # We make a subdir and do the tests there.  Otherwise we can end up
3524  # making bogus files that we don't know about and never remove.  For
3525  # instance it was reported that on HP-UX the gcc test will end up
3526  # making a dummy file named `D' -- because `-MD' means `put the output
3527  # in D'.
3528  mkdir conftest.dir
3529  # Copy depcomp to subdir because otherwise we won't find it if we're
3530  # using a relative directory.
3531  cp "$am_depcomp" conftest.dir
3532  cd conftest.dir
3533
3534  am_cv_CC_dependencies_compiler_type=none
3535  if test "$am_compiler_list" = ""; then
3536     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3537  fi
3538  for depmode in $am_compiler_list; do
3539    # We need to recreate these files for each test, as the compiler may
3540    # overwrite some of them when testing with obscure command lines.
3541    # This happens at least with the AIX C compiler.
3542    echo '#include "conftest.h"' > conftest.c
3543    echo 'int i;' > conftest.h
3544    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3545
3546    case $depmode in
3547    nosideeffect)
3548      # after this tag, mechanisms are not by side-effect, so they'll
3549      # only be used when explicitly requested
3550      if test "x$enable_dependency_tracking" = xyes; then
3551	continue
3552      else
3553	break
3554      fi
3555      ;;
3556    none) break ;;
3557    esac
3558    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3559    # mode.  It turns out that the SunPro C++ compiler does not properly
3560    # handle `-M -o', and we need to detect this.
3561    if depmode=$depmode \
3562       source=conftest.c object=conftest.o \
3563       depfile=conftest.Po tmpdepfile=conftest.TPo \
3564       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
3565       grep conftest.h conftest.Po > /dev/null 2>&1 &&
3566       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3567      am_cv_CC_dependencies_compiler_type=$depmode
3568      break
3569    fi
3570  done
3571
3572  cd ..
3573  rm -rf conftest.dir
3574else
3575  am_cv_CC_dependencies_compiler_type=none
3576fi
3577
3578fi
3579echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3580echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3581CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3582
3583
3584
3585if
3586  test "x$enable_dependency_tracking" != xno \
3587  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3588  am__fastdepCC_TRUE=
3589  am__fastdepCC_FALSE='#'
3590else
3591  am__fastdepCC_TRUE='#'
3592  am__fastdepCC_FALSE=
3593fi
3594
3595
3596
3597        MKINSTALLDIRS=
3598  if test -n "$ac_aux_dir"; then
3599    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3600  fi
3601  if test -z "$MKINSTALLDIRS"; then
3602    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3603  fi
3604
3605
3606
3607
3608
3609        # Extract the first word of "msgfmt", so it can be a program name with args.
3610set dummy msgfmt; ac_word=$2
3611echo "$as_me:$LINENO: checking for $ac_word" >&5
3612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613if test "${ac_cv_path_MSGFMT+set}" = set; then
3614  echo $ECHO_N "(cached) $ECHO_C" >&6
3615else
3616  case "$MSGFMT" in
3617  /*)
3618  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3619  ;;
3620  *)
3621  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3622  for ac_dir in $PATH; do
3623    test -z "$ac_dir" && ac_dir=.
3624    if test -f $ac_dir/$ac_word; then
3625      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3626     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3627	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3628	break
3629      fi
3630    fi
3631  done
3632  IFS="$ac_save_ifs"
3633  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3634  ;;
3635esac
3636fi
3637MSGFMT="$ac_cv_path_MSGFMT"
3638if test "$MSGFMT" != ":"; then
3639  echo "$as_me:$LINENO: result: $MSGFMT" >&5
3640echo "${ECHO_T}$MSGFMT" >&6
3641else
3642  echo "$as_me:$LINENO: result: no" >&5
3643echo "${ECHO_T}no" >&6
3644fi
3645
3646  # Extract the first word of "gmsgfmt", so it can be a program name with args.
3647set dummy gmsgfmt; ac_word=$2
3648echo "$as_me:$LINENO: checking for $ac_word" >&5
3649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3650if test "${ac_cv_path_GMSGFMT+set}" = set; then
3651  echo $ECHO_N "(cached) $ECHO_C" >&6
3652else
3653  case $GMSGFMT in
3654  [\\/]* | ?:[\\/]*)
3655  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3656  ;;
3657  *)
3658  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659for as_dir in $PATH
3660do
3661  IFS=$as_save_IFS
3662  test -z "$as_dir" && as_dir=.
3663  for ac_exec_ext in '' $ac_executable_extensions; do
3664  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3665    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3666    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3667    break 2
3668  fi
3669done
3670done
3671
3672  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3673  ;;
3674esac
3675fi
3676GMSGFMT=$ac_cv_path_GMSGFMT
3677
3678if test -n "$GMSGFMT"; then
3679  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3680echo "${ECHO_T}$GMSGFMT" >&6
3681else
3682  echo "$as_me:$LINENO: result: no" >&5
3683echo "${ECHO_T}no" >&6
3684fi
3685
3686
3687        # Extract the first word of "xgettext", so it can be a program name with args.
3688set dummy xgettext; ac_word=$2
3689echo "$as_me:$LINENO: checking for $ac_word" >&5
3690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3691if test "${ac_cv_path_XGETTEXT+set}" = set; then
3692  echo $ECHO_N "(cached) $ECHO_C" >&6
3693else
3694  case "$XGETTEXT" in
3695  /*)
3696  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3697  ;;
3698  *)
3699  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3700  for ac_dir in $PATH; do
3701    test -z "$ac_dir" && ac_dir=.
3702    if test -f $ac_dir/$ac_word; then
3703      if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3704     (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3705	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3706	break
3707      fi
3708    fi
3709  done
3710  IFS="$ac_save_ifs"
3711  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3712  ;;
3713esac
3714fi
3715XGETTEXT="$ac_cv_path_XGETTEXT"
3716if test "$XGETTEXT" != ":"; then
3717  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3718echo "${ECHO_T}$XGETTEXT" >&6
3719else
3720  echo "$as_me:$LINENO: result: no" >&5
3721echo "${ECHO_T}no" >&6
3722fi
3723
3724    rm -f messages.po
3725
3726    # Extract the first word of "msgmerge", so it can be a program name with args.
3727set dummy msgmerge; ac_word=$2
3728echo "$as_me:$LINENO: checking for $ac_word" >&5
3729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3730if test "${ac_cv_path_MSGMERGE+set}" = set; then
3731  echo $ECHO_N "(cached) $ECHO_C" >&6
3732else
3733  case "$MSGMERGE" in
3734  /*)
3735  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3736  ;;
3737  *)
3738  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3739  for ac_dir in $PATH; do
3740    test -z "$ac_dir" && ac_dir=.
3741    if test -f $ac_dir/$ac_word; then
3742      if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3743	ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
3744	break
3745      fi
3746    fi
3747  done
3748  IFS="$ac_save_ifs"
3749  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3750  ;;
3751esac
3752fi
3753MSGMERGE="$ac_cv_path_MSGMERGE"
3754if test "$MSGMERGE" != ":"; then
3755  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3756echo "${ECHO_T}$MSGMERGE" >&6
3757else
3758  echo "$as_me:$LINENO: result: no" >&5
3759echo "${ECHO_T}no" >&6
3760fi
3761
3762
3763      if test "$GMSGFMT" != ":"; then
3764            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3765       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3766      : ;
3767    else
3768      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3769      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3770echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3771      GMSGFMT=":"
3772    fi
3773  fi
3774
3775      if test "$XGETTEXT" != ":"; then
3776            if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3777       (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3778      : ;
3779    else
3780      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3781echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3782      XGETTEXT=":"
3783    fi
3784        rm -f messages.po
3785  fi
3786
3787            ac_config_commands="$ac_config_commands default-1"
3788
3789
3790
3791      if test "X$prefix" = "XNONE"; then
3792    acl_final_prefix="$ac_default_prefix"
3793  else
3794    acl_final_prefix="$prefix"
3795  fi
3796  if test "X$exec_prefix" = "XNONE"; then
3797    acl_final_exec_prefix='${prefix}'
3798  else
3799    acl_final_exec_prefix="$exec_prefix"
3800  fi
3801  acl_save_prefix="$prefix"
3802  prefix="$acl_final_prefix"
3803  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3804  prefix="$acl_save_prefix"
3805
3806
3807# Check whether --with-gnu-ld or --without-gnu-ld was given.
3808if test "${with_gnu_ld+set}" = set; then
3809  withval="$with_gnu_ld"
3810  test "$withval" = no || with_gnu_ld=yes
3811else
3812  with_gnu_ld=no
3813fi;
3814ac_prog=ld
3815if test "$GCC" = yes; then
3816  # Check if gcc -print-prog-name=ld gives a path.
3817  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3818echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3819  case $host in
3820  *-*-mingw*)
3821    # gcc leaves a trailing carriage return which upsets mingw
3822    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3823  *)
3824    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3825  esac
3826  case $ac_prog in
3827    # Accept absolute paths.
3828    [\\/]* | [A-Za-z]:[\\/]*)
3829      re_direlt='/[^/][^/]*/\.\./'
3830      # Canonicalize the path of ld
3831      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3832      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3833	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3834      done
3835      test -z "$LD" && LD="$ac_prog"
3836      ;;
3837  "")
3838    # If it fails, then pretend we aren't using GCC.
3839    ac_prog=ld
3840    ;;
3841  *)
3842    # If it is relative, then search for the first ld in PATH.
3843    with_gnu_ld=unknown
3844    ;;
3845  esac
3846elif test "$with_gnu_ld" = yes; then
3847  echo "$as_me:$LINENO: checking for GNU ld" >&5
3848echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3849else
3850  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3851echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3852fi
3853if test "${acl_cv_path_LD+set}" = set; then
3854  echo $ECHO_N "(cached) $ECHO_C" >&6
3855else
3856  if test -z "$LD"; then
3857  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3858  for ac_dir in $PATH; do
3859    test -z "$ac_dir" && ac_dir=.
3860    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3861      acl_cv_path_LD="$ac_dir/$ac_prog"
3862      # Check to see if the program is GNU ld.  I'd rather use --version,
3863      # but apparently some GNU ld's only accept -v.
3864      # Break only if it was the GNU/non-GNU ld that we prefer.
3865      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3866	test "$with_gnu_ld" != no && break
3867      else
3868	test "$with_gnu_ld" != yes && break
3869      fi
3870    fi
3871  done
3872  IFS="$ac_save_ifs"
3873else
3874  acl_cv_path_LD="$LD" # Let the user override the test with a path.
3875fi
3876fi
3877
3878LD="$acl_cv_path_LD"
3879if test -n "$LD"; then
3880  echo "$as_me:$LINENO: result: $LD" >&5
3881echo "${ECHO_T}$LD" >&6
3882else
3883  echo "$as_me:$LINENO: result: no" >&5
3884echo "${ECHO_T}no" >&6
3885fi
3886test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3887echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3888   { (exit 1); exit 1; }; }
3889echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3890echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3891if test "${acl_cv_prog_gnu_ld+set}" = set; then
3892  echo $ECHO_N "(cached) $ECHO_C" >&6
3893else
3894  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3895if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3896  acl_cv_prog_gnu_ld=yes
3897else
3898  acl_cv_prog_gnu_ld=no
3899fi
3900fi
3901echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
3902echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
3903with_gnu_ld=$acl_cv_prog_gnu_ld
3904
3905
3906
3907                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
3908echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
3909if test "${acl_cv_rpath+set}" = set; then
3910  echo $ECHO_N "(cached) $ECHO_C" >&6
3911else
3912
3913    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3914    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3915    . ./conftest.sh
3916    rm -f ./conftest.sh
3917    acl_cv_rpath=done
3918
3919fi
3920echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
3921echo "${ECHO_T}$acl_cv_rpath" >&6
3922  wl="$acl_cv_wl"
3923  libext="$acl_cv_libext"
3924  shlibext="$acl_cv_shlibext"
3925  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3926  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3927  hardcode_direct="$acl_cv_hardcode_direct"
3928  hardcode_minus_L="$acl_cv_hardcode_minus_L"
3929  sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
3930  sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3944echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3945    # Check whether --enable-nls or --disable-nls was given.
3946if test "${enable_nls+set}" = set; then
3947  enableval="$enable_nls"
3948  USE_NLS=$enableval
3949else
3950  USE_NLS=yes
3951fi;
3952  echo "$as_me:$LINENO: result: $USE_NLS" >&5
3953echo "${ECHO_T}$USE_NLS" >&6
3954
3955
3956
3957  LIBINTL=
3958  LTLIBINTL=
3959  POSUB=
3960
3961    if test "$USE_NLS" = "yes"; then
3962    gt_use_preinstalled_gnugettext=no
3963
3964
3965
3966
3967
3968
3969        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
3970echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
3971if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
3972  echo $ECHO_N "(cached) $ECHO_C" >&6
3973else
3974  cat >conftest.$ac_ext <<_ACEOF
3975#line $LINENO "configure"
3976/* confdefs.h.  */
3977_ACEOF
3978cat confdefs.h >>conftest.$ac_ext
3979cat >>conftest.$ac_ext <<_ACEOF
3980/* end confdefs.h.  */
3981#include <libintl.h>
3982extern int _nl_msg_cat_cntr;
3983extern int *_nl_domain_bindings;
3984int
3985main ()
3986{
3987bindtextdomain ("", "");
3988return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
3989  ;
3990  return 0;
3991}
3992_ACEOF
3993rm -f conftest.$ac_objext conftest$ac_exeext
3994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3995  (eval $ac_link) 2>&5
3996  ac_status=$?
3997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998  (exit $ac_status); } &&
3999         { ac_try='test -s conftest$ac_exeext'
4000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001  (eval $ac_try) 2>&5
4002  ac_status=$?
4003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004  (exit $ac_status); }; }; then
4005  gt_cv_func_gnugettext1_libc=yes
4006else
4007  echo "$as_me: failed program was:" >&5
4008sed 's/^/| /' conftest.$ac_ext >&5
4009
4010gt_cv_func_gnugettext1_libc=no
4011fi
4012rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4013fi
4014echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
4015echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
4016
4017        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4018
4019
4020
4021
4022
4023
4024
4025
4026    use_additional=yes
4027
4028  acl_save_prefix="$prefix"
4029  prefix="$acl_final_prefix"
4030  acl_save_exec_prefix="$exec_prefix"
4031  exec_prefix="$acl_final_exec_prefix"
4032
4033    eval additional_includedir=\"$includedir\"
4034    eval additional_libdir=\"$libdir\"
4035
4036  exec_prefix="$acl_save_exec_prefix"
4037  prefix="$acl_save_prefix"
4038
4039
4040# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4041if test "${with_libiconv_prefix+set}" = set; then
4042  withval="$with_libiconv_prefix"
4043
4044    if test "X$withval" = "Xno"; then
4045      use_additional=no
4046    else
4047      if test "X$withval" = "X"; then
4048
4049  acl_save_prefix="$prefix"
4050  prefix="$acl_final_prefix"
4051  acl_save_exec_prefix="$exec_prefix"
4052  exec_prefix="$acl_final_exec_prefix"
4053
4054          eval additional_includedir=\"$includedir\"
4055          eval additional_libdir=\"$libdir\"
4056
4057  exec_prefix="$acl_save_exec_prefix"
4058  prefix="$acl_save_prefix"
4059
4060      else
4061        additional_includedir="$withval/include"
4062        additional_libdir="$withval/lib"
4063      fi
4064    fi
4065
4066fi;
4067      LIBICONV=
4068  LTLIBICONV=
4069  INCICONV=
4070  rpathdirs=
4071  ltrpathdirs=
4072  names_already_handled=
4073  names_next_round='iconv '
4074  while test -n "$names_next_round"; do
4075    names_this_round="$names_next_round"
4076    names_next_round=
4077    for name in $names_this_round; do
4078      already_handled=
4079      for n in $names_already_handled; do
4080        if test "$n" = "$name"; then
4081          already_handled=yes
4082          break
4083        fi
4084      done
4085      if test -z "$already_handled"; then
4086        names_already_handled="$names_already_handled $name"
4087                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4088        eval value=\"\$HAVE_LIB$uppername\"
4089        if test -n "$value"; then
4090          if test "$value" = yes; then
4091            eval value=\"\$LIB$uppername\"
4092            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4093            eval value=\"\$LTLIB$uppername\"
4094            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4095          else
4096                                    :
4097          fi
4098        else
4099                              found_dir=
4100          found_la=
4101          found_so=
4102          found_a=
4103          if test $use_additional = yes; then
4104            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4105              found_dir="$additional_libdir"
4106              found_so="$additional_libdir/lib$name.$shlibext"
4107              if test -f "$additional_libdir/lib$name.la"; then
4108                found_la="$additional_libdir/lib$name.la"
4109              fi
4110            else
4111              if test -f "$additional_libdir/lib$name.$libext"; then
4112                found_dir="$additional_libdir"
4113                found_a="$additional_libdir/lib$name.$libext"
4114                if test -f "$additional_libdir/lib$name.la"; then
4115                  found_la="$additional_libdir/lib$name.la"
4116                fi
4117              fi
4118            fi
4119          fi
4120          if test "X$found_dir" = "X"; then
4121            for x in $LDFLAGS $LTLIBICONV; do
4122
4123  acl_save_prefix="$prefix"
4124  prefix="$acl_final_prefix"
4125  acl_save_exec_prefix="$exec_prefix"
4126  exec_prefix="$acl_final_exec_prefix"
4127  eval x=\"$x\"
4128  exec_prefix="$acl_save_exec_prefix"
4129  prefix="$acl_save_prefix"
4130
4131              case "$x" in
4132                -L*)
4133                  dir=`echo "X$x" | sed -e 's/^X-L//'`
4134                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4135                    found_dir="$dir"
4136                    found_so="$dir/lib$name.$shlibext"
4137                    if test -f "$dir/lib$name.la"; then
4138                      found_la="$dir/lib$name.la"
4139                    fi
4140                  else
4141                    if test -f "$dir/lib$name.$libext"; then
4142                      found_dir="$dir"
4143                      found_a="$dir/lib$name.$libext"
4144                      if test -f "$dir/lib$name.la"; then
4145                        found_la="$dir/lib$name.la"
4146                      fi
4147                    fi
4148                  fi
4149                  ;;
4150              esac
4151              if test "X$found_dir" != "X"; then
4152                break
4153              fi
4154            done
4155          fi
4156          if test "X$found_dir" != "X"; then
4157                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4158            if test "X$found_so" != "X"; then
4159                                                        if test "X$found_dir" = "X/usr/lib"; then
4160                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4161              else
4162                                                                                haveit=
4163                for x in $ltrpathdirs; do
4164                  if test "X$x" = "X$found_dir"; then
4165                    haveit=yes
4166                    break
4167                  fi
4168                done
4169                if test -z "$haveit"; then
4170                  ltrpathdirs="$ltrpathdirs $found_dir"
4171                fi
4172                                if test "$hardcode_direct" = yes; then
4173                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4174                else
4175                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4176                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4177                                                            haveit=
4178                    for x in $rpathdirs; do
4179                      if test "X$x" = "X$found_dir"; then
4180                        haveit=yes
4181                        break
4182                      fi
4183                    done
4184                    if test -z "$haveit"; then
4185                      rpathdirs="$rpathdirs $found_dir"
4186                    fi
4187                  else
4188                                                                                haveit=
4189                    for x in $LDFLAGS $LIBICONV; do
4190
4191  acl_save_prefix="$prefix"
4192  prefix="$acl_final_prefix"
4193  acl_save_exec_prefix="$exec_prefix"
4194  exec_prefix="$acl_final_exec_prefix"
4195  eval x=\"$x\"
4196  exec_prefix="$acl_save_exec_prefix"
4197  prefix="$acl_save_prefix"
4198
4199                      if test "X$x" = "X-L$found_dir"; then
4200                        haveit=yes
4201                        break
4202                      fi
4203                    done
4204                    if test -z "$haveit"; then
4205                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4206                    fi
4207                    if test "$hardcode_minus_L" != no; then
4208                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4209                    else
4210                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4211                    fi
4212                  fi
4213                fi
4214              fi
4215            else
4216              if test "X$found_a" != "X"; then
4217                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4218              else
4219                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4220              fi
4221            fi
4222                        additional_includedir=
4223            case "$found_dir" in
4224              */lib | */lib/)
4225                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4226                additional_includedir="$basedir/include"
4227                ;;
4228            esac
4229            if test "X$additional_includedir" != "X"; then
4230                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
4231                haveit=
4232                if test "X$additional_includedir" = "X/usr/local/include"; then
4233                  if test -n "$GCC"; then
4234                    case $host_os in
4235                      linux*) haveit=yes;;
4236                    esac
4237                  fi
4238                fi
4239                if test -z "$haveit"; then
4240                  for x in $CPPFLAGS $INCICONV; do
4241
4242  acl_save_prefix="$prefix"
4243  prefix="$acl_final_prefix"
4244  acl_save_exec_prefix="$exec_prefix"
4245  exec_prefix="$acl_final_exec_prefix"
4246  eval x=\"$x\"
4247  exec_prefix="$acl_save_exec_prefix"
4248  prefix="$acl_save_prefix"
4249
4250                    if test "X$x" = "X-I$additional_includedir"; then
4251                      haveit=yes
4252                      break
4253                    fi
4254                  done
4255                  if test -z "$haveit"; then
4256                    if test -d "$additional_includedir"; then
4257                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4258                    fi
4259                  fi
4260                fi
4261              fi
4262            fi
4263                        if test -n "$found_la"; then
4264                                                        save_libdir="$libdir"
4265              case "$found_la" in
4266                */* | *\\*) . "$found_la" ;;
4267                *) . "./$found_la" ;;
4268              esac
4269              libdir="$save_libdir"
4270                            for dep in $dependency_libs; do
4271                case "$dep" in
4272                  -L*)
4273                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4274                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
4275                      haveit=
4276                      if test "X$additional_libdir" = "X/usr/local/lib"; then
4277                        if test -n "$GCC"; then
4278                          case $host_os in
4279                            linux*) haveit=yes;;
4280                          esac
4281                        fi
4282                      fi
4283                      if test -z "$haveit"; then
4284                        haveit=
4285                        for x in $LDFLAGS $LIBICONV; do
4286
4287  acl_save_prefix="$prefix"
4288  prefix="$acl_final_prefix"
4289  acl_save_exec_prefix="$exec_prefix"
4290  exec_prefix="$acl_final_exec_prefix"
4291  eval x=\"$x\"
4292  exec_prefix="$acl_save_exec_prefix"
4293  prefix="$acl_save_prefix"
4294
4295                          if test "X$x" = "X-L$additional_libdir"; then
4296                            haveit=yes
4297                            break
4298                          fi
4299                        done
4300                        if test -z "$haveit"; then
4301                          if test -d "$additional_libdir"; then
4302                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4303                          fi
4304                        fi
4305                        haveit=
4306                        for x in $LDFLAGS $LTLIBICONV; do
4307
4308  acl_save_prefix="$prefix"
4309  prefix="$acl_final_prefix"
4310  acl_save_exec_prefix="$exec_prefix"
4311  exec_prefix="$acl_final_exec_prefix"
4312  eval x=\"$x\"
4313  exec_prefix="$acl_save_exec_prefix"
4314  prefix="$acl_save_prefix"
4315
4316                          if test "X$x" = "X-L$additional_libdir"; then
4317                            haveit=yes
4318                            break
4319                          fi
4320                        done
4321                        if test -z "$haveit"; then
4322                          if test -d "$additional_libdir"; then
4323                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4324                          fi
4325                        fi
4326                      fi
4327                    fi
4328                    ;;
4329                  -R*)
4330                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
4331                                                            haveit=
4332                    for x in $rpathdirs; do
4333                      if test "X$x" = "X$dir"; then
4334                        haveit=yes
4335                        break
4336                      fi
4337                    done
4338                    if test -z "$haveit"; then
4339                      rpathdirs="$rpathdirs $dir"
4340                    fi
4341                                                            haveit=
4342                    for x in $ltrpathdirs; do
4343                      if test "X$x" = "X$dir"; then
4344                        haveit=yes
4345                        break
4346                      fi
4347                    done
4348                    if test -z "$haveit"; then
4349                      ltrpathdirs="$ltrpathdirs $dir"
4350                    fi
4351                    ;;
4352                  -l*)
4353                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4354                    ;;
4355                  *.la)
4356                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4357                    ;;
4358                  *)
4359                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4360                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4361                    ;;
4362                esac
4363              done
4364            fi
4365          else
4366                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4367            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4368          fi
4369        fi
4370      fi
4371    done
4372  done
4373  if test "X$rpathdirs" != "X"; then
4374    if test -n "$hardcode_libdir_separator"; then
4375                        alldirs=
4376      for found_dir in $rpathdirs; do
4377        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4378      done
4379            acl_save_libdir="$libdir"
4380      libdir="$alldirs"
4381      eval flag=\"$hardcode_libdir_flag_spec\"
4382      libdir="$acl_save_libdir"
4383      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4384    else
4385            for found_dir in $rpathdirs; do
4386        acl_save_libdir="$libdir"
4387        libdir="$found_dir"
4388        eval flag=\"$hardcode_libdir_flag_spec\"
4389        libdir="$acl_save_libdir"
4390        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4391      done
4392    fi
4393  fi
4394  if test "X$ltrpathdirs" != "X"; then
4395            for found_dir in $ltrpathdirs; do
4396      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4397    done
4398  fi
4399
4400
4401          am_save_CPPFLAGS="$CPPFLAGS"
4402
4403  for element in $INCICONV; do
4404    haveit=
4405    for x in $CPPFLAGS; 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$element"; then
4416        haveit=yes
4417        break
4418      fi
4419    done
4420    if test -z "$haveit"; then
4421      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4422    fi
4423  done
4424
4425
4426  echo "$as_me:$LINENO: checking for iconv" >&5
4427echo $ECHO_N "checking for iconv... $ECHO_C" >&6
4428if test "${am_cv_func_iconv+set}" = set; then
4429  echo $ECHO_N "(cached) $ECHO_C" >&6
4430else
4431
4432    am_cv_func_iconv="no, consider installing GNU libiconv"
4433    am_cv_lib_iconv=no
4434    cat >conftest.$ac_ext <<_ACEOF
4435#line $LINENO "configure"
4436/* confdefs.h.  */
4437_ACEOF
4438cat confdefs.h >>conftest.$ac_ext
4439cat >>conftest.$ac_ext <<_ACEOF
4440/* end confdefs.h.  */
4441#include <stdlib.h>
4442#include <iconv.h>
4443int
4444main ()
4445{
4446iconv_t cd = iconv_open("","");
4447       iconv(cd,NULL,NULL,NULL,NULL);
4448       iconv_close(cd);
4449  ;
4450  return 0;
4451}
4452_ACEOF
4453rm -f conftest.$ac_objext conftest$ac_exeext
4454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4455  (eval $ac_link) 2>&5
4456  ac_status=$?
4457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458  (exit $ac_status); } &&
4459         { ac_try='test -s conftest$ac_exeext'
4460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461  (eval $ac_try) 2>&5
4462  ac_status=$?
4463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464  (exit $ac_status); }; }; then
4465  am_cv_func_iconv=yes
4466else
4467  echo "$as_me: failed program was:" >&5
4468sed 's/^/| /' conftest.$ac_ext >&5
4469
4470fi
4471rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4472    if test "$am_cv_func_iconv" != yes; then
4473      am_save_LIBS="$LIBS"
4474      LIBS="$LIBS $LIBICONV"
4475      cat >conftest.$ac_ext <<_ACEOF
4476#line $LINENO "configure"
4477/* confdefs.h.  */
4478_ACEOF
4479cat confdefs.h >>conftest.$ac_ext
4480cat >>conftest.$ac_ext <<_ACEOF
4481/* end confdefs.h.  */
4482#include <stdlib.h>
4483#include <iconv.h>
4484int
4485main ()
4486{
4487iconv_t cd = iconv_open("","");
4488         iconv(cd,NULL,NULL,NULL,NULL);
4489         iconv_close(cd);
4490  ;
4491  return 0;
4492}
4493_ACEOF
4494rm -f conftest.$ac_objext conftest$ac_exeext
4495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4496  (eval $ac_link) 2>&5
4497  ac_status=$?
4498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499  (exit $ac_status); } &&
4500         { ac_try='test -s conftest$ac_exeext'
4501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502  (eval $ac_try) 2>&5
4503  ac_status=$?
4504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505  (exit $ac_status); }; }; then
4506  am_cv_lib_iconv=yes
4507        am_cv_func_iconv=yes
4508else
4509  echo "$as_me: failed program was:" >&5
4510sed 's/^/| /' conftest.$ac_ext >&5
4511
4512fi
4513rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4514      LIBS="$am_save_LIBS"
4515    fi
4516
4517fi
4518echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4519echo "${ECHO_T}$am_cv_func_iconv" >&6
4520  if test "$am_cv_func_iconv" = yes; then
4521
4522cat >>confdefs.h <<\_ACEOF
4523#define HAVE_ICONV 1
4524_ACEOF
4525
4526  fi
4527  if test "$am_cv_lib_iconv" = yes; then
4528    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
4529echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
4530    echo "$as_me:$LINENO: result: $LIBICONV" >&5
4531echo "${ECHO_T}$LIBICONV" >&6
4532  else
4533            CPPFLAGS="$am_save_CPPFLAGS"
4534    LIBICONV=
4535    LTLIBICONV=
4536  fi
4537
4538
4539
4540
4541
4542
4543    use_additional=yes
4544
4545  acl_save_prefix="$prefix"
4546  prefix="$acl_final_prefix"
4547  acl_save_exec_prefix="$exec_prefix"
4548  exec_prefix="$acl_final_exec_prefix"
4549
4550    eval additional_includedir=\"$includedir\"
4551    eval additional_libdir=\"$libdir\"
4552
4553  exec_prefix="$acl_save_exec_prefix"
4554  prefix="$acl_save_prefix"
4555
4556
4557# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
4558if test "${with_libintl_prefix+set}" = set; then
4559  withval="$with_libintl_prefix"
4560
4561    if test "X$withval" = "Xno"; then
4562      use_additional=no
4563    else
4564      if test "X$withval" = "X"; then
4565
4566  acl_save_prefix="$prefix"
4567  prefix="$acl_final_prefix"
4568  acl_save_exec_prefix="$exec_prefix"
4569  exec_prefix="$acl_final_exec_prefix"
4570
4571          eval additional_includedir=\"$includedir\"
4572          eval additional_libdir=\"$libdir\"
4573
4574  exec_prefix="$acl_save_exec_prefix"
4575  prefix="$acl_save_prefix"
4576
4577      else
4578        additional_includedir="$withval/include"
4579        additional_libdir="$withval/lib"
4580      fi
4581    fi
4582
4583fi;
4584      LIBINTL=
4585  LTLIBINTL=
4586  INCINTL=
4587  rpathdirs=
4588  ltrpathdirs=
4589  names_already_handled=
4590  names_next_round='intl '
4591  while test -n "$names_next_round"; do
4592    names_this_round="$names_next_round"
4593    names_next_round=
4594    for name in $names_this_round; do
4595      already_handled=
4596      for n in $names_already_handled; do
4597        if test "$n" = "$name"; then
4598          already_handled=yes
4599          break
4600        fi
4601      done
4602      if test -z "$already_handled"; then
4603        names_already_handled="$names_already_handled $name"
4604                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4605        eval value=\"\$HAVE_LIB$uppername\"
4606        if test -n "$value"; then
4607          if test "$value" = yes; then
4608            eval value=\"\$LIB$uppername\"
4609            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4610            eval value=\"\$LTLIB$uppername\"
4611            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4612          else
4613                                    :
4614          fi
4615        else
4616                              found_dir=
4617          found_la=
4618          found_so=
4619          found_a=
4620          if test $use_additional = yes; then
4621            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4622              found_dir="$additional_libdir"
4623              found_so="$additional_libdir/lib$name.$shlibext"
4624              if test -f "$additional_libdir/lib$name.la"; then
4625                found_la="$additional_libdir/lib$name.la"
4626              fi
4627            else
4628              if test -f "$additional_libdir/lib$name.$libext"; then
4629                found_dir="$additional_libdir"
4630                found_a="$additional_libdir/lib$name.$libext"
4631                if test -f "$additional_libdir/lib$name.la"; then
4632                  found_la="$additional_libdir/lib$name.la"
4633                fi
4634              fi
4635            fi
4636          fi
4637          if test "X$found_dir" = "X"; then
4638            for x in $LDFLAGS $LTLIBINTL; do
4639
4640  acl_save_prefix="$prefix"
4641  prefix="$acl_final_prefix"
4642  acl_save_exec_prefix="$exec_prefix"
4643  exec_prefix="$acl_final_exec_prefix"
4644  eval x=\"$x\"
4645  exec_prefix="$acl_save_exec_prefix"
4646  prefix="$acl_save_prefix"
4647
4648              case "$x" in
4649                -L*)
4650                  dir=`echo "X$x" | sed -e 's/^X-L//'`
4651                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4652                    found_dir="$dir"
4653                    found_so="$dir/lib$name.$shlibext"
4654                    if test -f "$dir/lib$name.la"; then
4655                      found_la="$dir/lib$name.la"
4656                    fi
4657                  else
4658                    if test -f "$dir/lib$name.$libext"; then
4659                      found_dir="$dir"
4660                      found_a="$dir/lib$name.$libext"
4661                      if test -f "$dir/lib$name.la"; then
4662                        found_la="$dir/lib$name.la"
4663                      fi
4664                    fi
4665                  fi
4666                  ;;
4667              esac
4668              if test "X$found_dir" != "X"; then
4669                break
4670              fi
4671            done
4672          fi
4673          if test "X$found_dir" != "X"; then
4674                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4675            if test "X$found_so" != "X"; then
4676                                                        if test "X$found_dir" = "X/usr/lib"; then
4677                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4678              else
4679                                                                                haveit=
4680                for x in $ltrpathdirs; do
4681                  if test "X$x" = "X$found_dir"; then
4682                    haveit=yes
4683                    break
4684                  fi
4685                done
4686                if test -z "$haveit"; then
4687                  ltrpathdirs="$ltrpathdirs $found_dir"
4688                fi
4689                                if test "$hardcode_direct" = yes; then
4690                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4691                else
4692                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4693                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4694                                                            haveit=
4695                    for x in $rpathdirs; do
4696                      if test "X$x" = "X$found_dir"; then
4697                        haveit=yes
4698                        break
4699                      fi
4700                    done
4701                    if test -z "$haveit"; then
4702                      rpathdirs="$rpathdirs $found_dir"
4703                    fi
4704                  else
4705                                                                                haveit=
4706                    for x in $LDFLAGS $LIBINTL; do
4707
4708  acl_save_prefix="$prefix"
4709  prefix="$acl_final_prefix"
4710  acl_save_exec_prefix="$exec_prefix"
4711  exec_prefix="$acl_final_exec_prefix"
4712  eval x=\"$x\"
4713  exec_prefix="$acl_save_exec_prefix"
4714  prefix="$acl_save_prefix"
4715
4716                      if test "X$x" = "X-L$found_dir"; then
4717                        haveit=yes
4718                        break
4719                      fi
4720                    done
4721                    if test -z "$haveit"; then
4722                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4723                    fi
4724                    if test "$hardcode_minus_L" != no; then
4725                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4726                    else
4727                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4728                    fi
4729                  fi
4730                fi
4731              fi
4732            else
4733              if test "X$found_a" != "X"; then
4734                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
4735              else
4736                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
4737              fi
4738            fi
4739                        additional_includedir=
4740            case "$found_dir" in
4741              */lib | */lib/)
4742                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4743                additional_includedir="$basedir/include"
4744                ;;
4745            esac
4746            if test "X$additional_includedir" != "X"; then
4747                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
4748                haveit=
4749                if test "X$additional_includedir" = "X/usr/local/include"; then
4750                  if test -n "$GCC"; then
4751                    case $host_os in
4752                      linux*) haveit=yes;;
4753                    esac
4754                  fi
4755                fi
4756                if test -z "$haveit"; then
4757                  for x in $CPPFLAGS $INCINTL; do
4758
4759  acl_save_prefix="$prefix"
4760  prefix="$acl_final_prefix"
4761  acl_save_exec_prefix="$exec_prefix"
4762  exec_prefix="$acl_final_exec_prefix"
4763  eval x=\"$x\"
4764  exec_prefix="$acl_save_exec_prefix"
4765  prefix="$acl_save_prefix"
4766
4767                    if test "X$x" = "X-I$additional_includedir"; then
4768                      haveit=yes
4769                      break
4770                    fi
4771                  done
4772                  if test -z "$haveit"; then
4773                    if test -d "$additional_includedir"; then
4774                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
4775                    fi
4776                  fi
4777                fi
4778              fi
4779            fi
4780                        if test -n "$found_la"; then
4781                                                        save_libdir="$libdir"
4782              case "$found_la" in
4783                */* | *\\*) . "$found_la" ;;
4784                *) . "./$found_la" ;;
4785              esac
4786              libdir="$save_libdir"
4787                            for dep in $dependency_libs; do
4788                case "$dep" in
4789                  -L*)
4790                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4791                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
4792                      haveit=
4793                      if test "X$additional_libdir" = "X/usr/local/lib"; then
4794                        if test -n "$GCC"; then
4795                          case $host_os in
4796                            linux*) haveit=yes;;
4797                          esac
4798                        fi
4799                      fi
4800                      if test -z "$haveit"; then
4801                        haveit=
4802                        for x in $LDFLAGS $LIBINTL; do
4803
4804  acl_save_prefix="$prefix"
4805  prefix="$acl_final_prefix"
4806  acl_save_exec_prefix="$exec_prefix"
4807  exec_prefix="$acl_final_exec_prefix"
4808  eval x=\"$x\"
4809  exec_prefix="$acl_save_exec_prefix"
4810  prefix="$acl_save_prefix"
4811
4812                          if test "X$x" = "X-L$additional_libdir"; then
4813                            haveit=yes
4814                            break
4815                          fi
4816                        done
4817                        if test -z "$haveit"; then
4818                          if test -d "$additional_libdir"; then
4819                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
4820                          fi
4821                        fi
4822                        haveit=
4823                        for x in $LDFLAGS $LTLIBINTL; do
4824
4825  acl_save_prefix="$prefix"
4826  prefix="$acl_final_prefix"
4827  acl_save_exec_prefix="$exec_prefix"
4828  exec_prefix="$acl_final_exec_prefix"
4829  eval x=\"$x\"
4830  exec_prefix="$acl_save_exec_prefix"
4831  prefix="$acl_save_prefix"
4832
4833                          if test "X$x" = "X-L$additional_libdir"; then
4834                            haveit=yes
4835                            break
4836                          fi
4837                        done
4838                        if test -z "$haveit"; then
4839                          if test -d "$additional_libdir"; then
4840                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
4841                          fi
4842                        fi
4843                      fi
4844                    fi
4845                    ;;
4846                  -R*)
4847                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
4848                                                            haveit=
4849                    for x in $rpathdirs; do
4850                      if test "X$x" = "X$dir"; then
4851                        haveit=yes
4852                        break
4853                      fi
4854                    done
4855                    if test -z "$haveit"; then
4856                      rpathdirs="$rpathdirs $dir"
4857                    fi
4858                                                            haveit=
4859                    for x in $ltrpathdirs; do
4860                      if test "X$x" = "X$dir"; then
4861                        haveit=yes
4862                        break
4863                      fi
4864                    done
4865                    if test -z "$haveit"; then
4866                      ltrpathdirs="$ltrpathdirs $dir"
4867                    fi
4868                    ;;
4869                  -l*)
4870                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4871                    ;;
4872                  *.la)
4873                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4874                    ;;
4875                  *)
4876                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
4877                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
4878                    ;;
4879                esac
4880              done
4881            fi
4882          else
4883                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4884            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
4885          fi
4886        fi
4887      fi
4888    done
4889  done
4890  if test "X$rpathdirs" != "X"; then
4891    if test -n "$hardcode_libdir_separator"; then
4892                        alldirs=
4893      for found_dir in $rpathdirs; do
4894        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4895      done
4896            acl_save_libdir="$libdir"
4897      libdir="$alldirs"
4898      eval flag=\"$hardcode_libdir_flag_spec\"
4899      libdir="$acl_save_libdir"
4900      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4901    else
4902            for found_dir in $rpathdirs; do
4903        acl_save_libdir="$libdir"
4904        libdir="$found_dir"
4905        eval flag=\"$hardcode_libdir_flag_spec\"
4906        libdir="$acl_save_libdir"
4907        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4908      done
4909    fi
4910  fi
4911  if test "X$ltrpathdirs" != "X"; then
4912            for found_dir in $ltrpathdirs; do
4913      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
4914    done
4915  fi
4916
4917          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
4918echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
4919if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
4920  echo $ECHO_N "(cached) $ECHO_C" >&6
4921else
4922  gt_save_CPPFLAGS="$CPPFLAGS"
4923            CPPFLAGS="$CPPFLAGS $INCINTL"
4924            gt_save_LIBS="$LIBS"
4925            LIBS="$LIBS $LIBINTL"
4926                        cat >conftest.$ac_ext <<_ACEOF
4927#line $LINENO "configure"
4928/* confdefs.h.  */
4929_ACEOF
4930cat confdefs.h >>conftest.$ac_ext
4931cat >>conftest.$ac_ext <<_ACEOF
4932/* end confdefs.h.  */
4933#include <libintl.h>
4934extern int _nl_msg_cat_cntr;
4935extern
4936#ifdef __cplusplus
4937"C"
4938#endif
4939const char *_nl_expand_alias ();
4940int
4941main ()
4942{
4943bindtextdomain ("", "");
4944return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4945  ;
4946  return 0;
4947}
4948_ACEOF
4949rm -f conftest.$ac_objext conftest$ac_exeext
4950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4951  (eval $ac_link) 2>&5
4952  ac_status=$?
4953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954  (exit $ac_status); } &&
4955         { ac_try='test -s conftest$ac_exeext'
4956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957  (eval $ac_try) 2>&5
4958  ac_status=$?
4959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960  (exit $ac_status); }; }; then
4961  gt_cv_func_gnugettext1_libintl=yes
4962else
4963  echo "$as_me: failed program was:" >&5
4964sed 's/^/| /' conftest.$ac_ext >&5
4965
4966gt_cv_func_gnugettext1_libintl=no
4967fi
4968rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4969                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
4970              LIBS="$LIBS $LIBICONV"
4971              cat >conftest.$ac_ext <<_ACEOF
4972#line $LINENO "configure"
4973/* confdefs.h.  */
4974_ACEOF
4975cat confdefs.h >>conftest.$ac_ext
4976cat >>conftest.$ac_ext <<_ACEOF
4977/* end confdefs.h.  */
4978#include <libintl.h>
4979extern int _nl_msg_cat_cntr;
4980extern
4981#ifdef __cplusplus
4982"C"
4983#endif
4984const char *_nl_expand_alias ();
4985int
4986main ()
4987{
4988bindtextdomain ("", "");
4989return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4990  ;
4991  return 0;
4992}
4993_ACEOF
4994rm -f conftest.$ac_objext conftest$ac_exeext
4995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4996  (eval $ac_link) 2>&5
4997  ac_status=$?
4998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999  (exit $ac_status); } &&
5000         { ac_try='test -s conftest$ac_exeext'
5001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002  (eval $ac_try) 2>&5
5003  ac_status=$?
5004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005  (exit $ac_status); }; }; then
5006  LIBINTL="$LIBINTL $LIBICONV"
5007                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5008                gt_cv_func_gnugettext1_libintl=yes
5009
5010else
5011  echo "$as_me: failed program was:" >&5
5012sed 's/^/| /' conftest.$ac_ext >&5
5013
5014fi
5015rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5016            fi
5017            CPPFLAGS="$gt_save_CPPFLAGS"
5018            LIBS="$gt_save_LIBS"
5019fi
5020echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
5021echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
5022        fi
5023
5024                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5025           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5026                && test "$PACKAGE" != gettext; }; then
5027          gt_use_preinstalled_gnugettext=yes
5028        else
5029                    LIBINTL=
5030          LTLIBINTL=
5031          INCINTL=
5032        fi
5033
5034
5035
5036    if test "$gt_use_preinstalled_gnugettext" = "yes" \
5037       || test "$nls_cv_use_gnu_gettext" = "yes"; then
5038
5039cat >>confdefs.h <<\_ACEOF
5040#define ENABLE_NLS 1
5041_ACEOF
5042
5043    else
5044      USE_NLS=no
5045    fi
5046  fi
5047
5048  if test "$USE_NLS" = "yes"; then
5049
5050    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5051      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5052        echo "$as_me:$LINENO: checking how to link with libintl" >&5
5053echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
5054        echo "$as_me:$LINENO: result: $LIBINTL" >&5
5055echo "${ECHO_T}$LIBINTL" >&6
5056
5057  for element in $INCINTL; do
5058    haveit=
5059    for x in $CPPFLAGS; do
5060
5061  acl_save_prefix="$prefix"
5062  prefix="$acl_final_prefix"
5063  acl_save_exec_prefix="$exec_prefix"
5064  exec_prefix="$acl_final_exec_prefix"
5065  eval x=\"$x\"
5066  exec_prefix="$acl_save_exec_prefix"
5067  prefix="$acl_save_prefix"
5068
5069      if test "X$x" = "X$element"; then
5070        haveit=yes
5071        break
5072      fi
5073    done
5074    if test -z "$haveit"; then
5075      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5076    fi
5077  done
5078
5079      fi
5080
5081
5082cat >>confdefs.h <<\_ACEOF
5083#define HAVE_GETTEXT 1
5084_ACEOF
5085
5086
5087cat >>confdefs.h <<\_ACEOF
5088#define HAVE_DCGETTEXT 1
5089_ACEOF
5090
5091    fi
5092
5093        POSUB=po
5094  fi
5095
5096
5097
5098    INTLLIBS="$LIBINTL"
5099
5100
5101
5102
5103
5104
5105
5106# Check whether --enable-gnome2 or --disable-gnome2 was given.
5107if test "${enable_gnome2+set}" = set; then
5108  enableval="$enable_gnome2"
5109   GNOME2=yes
5110fi;
5111
5112# Checks for libraries.
5113if test "x$GNOME2" = "xyes"; then
5114
5115  succeeded=no
5116
5117  if test -z "$PKG_CONFIG"; then
5118    # Extract the first word of "pkg-config", so it can be a program name with args.
5119set dummy pkg-config; ac_word=$2
5120echo "$as_me:$LINENO: checking for $ac_word" >&5
5121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5122if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5123  echo $ECHO_N "(cached) $ECHO_C" >&6
5124else
5125  case $PKG_CONFIG in
5126  [\\/]* | ?:[\\/]*)
5127  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5128  ;;
5129  *)
5130  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131for as_dir in $PATH
5132do
5133  IFS=$as_save_IFS
5134  test -z "$as_dir" && as_dir=.
5135  for ac_exec_ext in '' $ac_executable_extensions; do
5136  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5138    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139    break 2
5140  fi
5141done
5142done
5143
5144  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5145  ;;
5146esac
5147fi
5148PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5149
5150if test -n "$PKG_CONFIG"; then
5151  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5152echo "${ECHO_T}$PKG_CONFIG" >&6
5153else
5154  echo "$as_me:$LINENO: result: no" >&5
5155echo "${ECHO_T}no" >&6
5156fi
5157
5158  fi
5159
5160  if test "$PKG_CONFIG" = "no" ; then
5161     echo "*** The pkg-config script could not be found. Make sure it is"
5162     echo "*** in your path, or set the PKG_CONFIG environment variable"
5163     echo "*** to the full path to pkg-config."
5164     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
5165  else
5166     PKG_CONFIG_MIN_VERSION=0.9.0
5167     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5168        echo "$as_me:$LINENO: checking for libgnomeui-2.0 >= 2.0 glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 gtk+-2.0 >= 2.0  libxml-2.0 >= 2.0" >&5
5169echo $ECHO_N "checking for libgnomeui-2.0 >= 2.0 glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 gtk+-2.0 >= 2.0  libxml-2.0 >= 2.0... $ECHO_C" >&6
5170
5171        if $PKG_CONFIG --exists "libgnomeui-2.0 >= 2.0 glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 gtk+-2.0 >= 2.0  libxml-2.0 >= 2.0" ; then
5172            echo "$as_me:$LINENO: result: yes" >&5
5173echo "${ECHO_T}yes" >&6
5174            succeeded=yes
5175
5176            echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
5177echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
5178            GLIB_CFLAGS=`$PKG_CONFIG --cflags "libgnomeui-2.0 >= 2.0 glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 gtk+-2.0 >= 2.0  libxml-2.0 >= 2.0"`
5179            echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
5180echo "${ECHO_T}$GLIB_CFLAGS" >&6
5181
5182            echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
5183echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
5184            GLIB_LIBS=`$PKG_CONFIG --libs "libgnomeui-2.0 >= 2.0 glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 gtk+-2.0 >= 2.0  libxml-2.0 >= 2.0"`
5185            echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
5186echo "${ECHO_T}$GLIB_LIBS" >&6
5187        else
5188            GLIB_CFLAGS=""
5189            GLIB_LIBS=""
5190            ## If we have a custom action on failure, don't print errors, but
5191            ## do set a variable so people can do so.
5192            GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeui-2.0 >= 2.0 glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 gtk+-2.0 >= 2.0  libxml-2.0 >= 2.0"`
5193            echo $GLIB_PKG_ERRORS
5194        fi
5195
5196
5197
5198     else
5199        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5200        echo "*** See http://www.freedesktop.org/software/pkgconfig"
5201     fi
5202  fi
5203
5204  if test $succeeded = yes; then
5205     :
5206  else
5207     { { echo "$as_me:$LINENO: error: Library requirements (libgnomeui-2.0 >= 2.0 glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 gtk+-2.0 >= 2.0  libxml-2.0 >= 2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
5208echo "$as_me: error: Library requirements (libgnomeui-2.0 >= 2.0 glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 gtk+-2.0 >= 2.0  libxml-2.0 >= 2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
5209   { (exit 1); exit 1; }; }
5210  fi
5211
5212
5213
5214
5215cat >>confdefs.h <<_ACEOF
5216#define GNOME2 "yes"
5217_ACEOF
5218
5219else
5220
5221  succeeded=no
5222
5223  if test -z "$PKG_CONFIG"; then
5224    # Extract the first word of "pkg-config", so it can be a program name with args.
5225set dummy pkg-config; ac_word=$2
5226echo "$as_me:$LINENO: checking for $ac_word" >&5
5227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5229  echo $ECHO_N "(cached) $ECHO_C" >&6
5230else
5231  case $PKG_CONFIG in
5232  [\\/]* | ?:[\\/]*)
5233  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5234  ;;
5235  *)
5236  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237for as_dir in $PATH
5238do
5239  IFS=$as_save_IFS
5240  test -z "$as_dir" && as_dir=.
5241  for ac_exec_ext in '' $ac_executable_extensions; do
5242  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5244    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245    break 2
5246  fi
5247done
5248done
5249
5250  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5251  ;;
5252esac
5253fi
5254PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5255
5256if test -n "$PKG_CONFIG"; then
5257  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5258echo "${ECHO_T}$PKG_CONFIG" >&6
5259else
5260  echo "$as_me:$LINENO: result: no" >&5
5261echo "${ECHO_T}no" >&6
5262fi
5263
5264  fi
5265
5266  if test "$PKG_CONFIG" = "no" ; then
5267     echo "*** The pkg-config script could not be found. Make sure it is"
5268     echo "*** in your path, or set the PKG_CONFIG environment variable"
5269     echo "*** to the full path to pkg-config."
5270     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
5271  else
5272     PKG_CONFIG_MIN_VERSION=0.9.0
5273     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5274        echo "$as_me:$LINENO: checking for $LIBGNOMEUI glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 gtk+-2.0 >= 2.0 libxml-2.0 >= 2.0" >&5
5275echo $ECHO_N "checking for $LIBGNOMEUI glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 gtk+-2.0 >= 2.0 libxml-2.0 >= 2.0... $ECHO_C" >&6
5276
5277        if $PKG_CONFIG --exists "$LIBGNOMEUI glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 gtk+-2.0 >= 2.0 libxml-2.0 >= 2.0" ; then
5278            echo "$as_me:$LINENO: result: yes" >&5
5279echo "${ECHO_T}yes" >&6
5280            succeeded=yes
5281
5282            echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
5283echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
5284            GLIB_CFLAGS=`$PKG_CONFIG --cflags "$LIBGNOMEUI glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 gtk+-2.0 >= 2.0 libxml-2.0 >= 2.0"`
5285            echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
5286echo "${ECHO_T}$GLIB_CFLAGS" >&6
5287
5288            echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
5289echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
5290            GLIB_LIBS=`$PKG_CONFIG --libs "$LIBGNOMEUI glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 gtk+-2.0 >= 2.0 libxml-2.0 >= 2.0"`
5291            echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
5292echo "${ECHO_T}$GLIB_LIBS" >&6
5293        else
5294            GLIB_CFLAGS=""
5295            GLIB_LIBS=""
5296            ## If we have a custom action on failure, don't print errors, but
5297            ## do set a variable so people can do so.
5298            GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$LIBGNOMEUI glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 gtk+-2.0 >= 2.0 libxml-2.0 >= 2.0"`
5299            echo $GLIB_PKG_ERRORS
5300        fi
5301
5302
5303
5304     else
5305        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5306        echo "*** See http://www.freedesktop.org/software/pkgconfig"
5307     fi
5308  fi
5309
5310  if test $succeeded = yes; then
5311     :
5312  else
5313     { { echo "$as_me:$LINENO: error: Library requirements ($LIBGNOMEUI glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 gtk+-2.0 >= 2.0 libxml-2.0 >= 2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
5314echo "$as_me: error: Library requirements ($LIBGNOMEUI glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 gtk+-2.0 >= 2.0 libxml-2.0 >= 2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
5315   { (exit 1); exit 1; }; }
5316  fi
5317
5318
5319
5320fi
5321
5322ac_ext=c
5323ac_cpp='$CPP $CPPFLAGS'
5324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5326ac_compiler_gnu=$ac_cv_c_compiler_gnu
5327echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5328echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5329# On Suns, sometimes $CPP names a directory.
5330if test -n "$CPP" && test -d "$CPP"; then
5331  CPP=
5332fi
5333if test -z "$CPP"; then
5334  if test "${ac_cv_prog_CPP+set}" = set; then
5335  echo $ECHO_N "(cached) $ECHO_C" >&6
5336else
5337      # Double quotes because CPP needs to be expanded
5338    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5339    do
5340      ac_preproc_ok=false
5341for ac_c_preproc_warn_flag in '' yes
5342do
5343  # Use a header file that comes with gcc, so configuring glibc
5344  # with a fresh cross-compiler works.
5345  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5346  # <limits.h> exists even on freestanding compilers.
5347  # On the NeXT, cc -E runs the code through the compiler's parser,
5348  # not just through cpp. "Syntax error" is here to catch this case.
5349  cat >conftest.$ac_ext <<_ACEOF
5350#line $LINENO "configure"
5351/* confdefs.h.  */
5352_ACEOF
5353cat confdefs.h >>conftest.$ac_ext
5354cat >>conftest.$ac_ext <<_ACEOF
5355/* end confdefs.h.  */
5356#ifdef __STDC__
5357# include <limits.h>
5358#else
5359# include <assert.h>
5360#endif
5361                     Syntax error
5362_ACEOF
5363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5364  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5365  ac_status=$?
5366  grep -v '^ *+' conftest.er1 >conftest.err
5367  rm -f conftest.er1
5368  cat conftest.err >&5
5369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370  (exit $ac_status); } >/dev/null; then
5371  if test -s conftest.err; then
5372    ac_cpp_err=$ac_c_preproc_warn_flag
5373  else
5374    ac_cpp_err=
5375  fi
5376else
5377  ac_cpp_err=yes
5378fi
5379if test -z "$ac_cpp_err"; then
5380  :
5381else
5382  echo "$as_me: failed program was:" >&5
5383sed 's/^/| /' conftest.$ac_ext >&5
5384
5385  # Broken: fails on valid input.
5386continue
5387fi
5388rm -f conftest.err conftest.$ac_ext
5389
5390  # OK, works on sane cases.  Now check whether non-existent headers
5391  # can be detected and how.
5392  cat >conftest.$ac_ext <<_ACEOF
5393#line $LINENO "configure"
5394/* confdefs.h.  */
5395_ACEOF
5396cat confdefs.h >>conftest.$ac_ext
5397cat >>conftest.$ac_ext <<_ACEOF
5398/* end confdefs.h.  */
5399#include <ac_nonexistent.h>
5400_ACEOF
5401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5402  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5403  ac_status=$?
5404  grep -v '^ *+' conftest.er1 >conftest.err
5405  rm -f conftest.er1
5406  cat conftest.err >&5
5407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408  (exit $ac_status); } >/dev/null; then
5409  if test -s conftest.err; then
5410    ac_cpp_err=$ac_c_preproc_warn_flag
5411  else
5412    ac_cpp_err=
5413  fi
5414else
5415  ac_cpp_err=yes
5416fi
5417if test -z "$ac_cpp_err"; then
5418  # Broken: success on invalid input.
5419continue
5420else
5421  echo "$as_me: failed program was:" >&5
5422sed 's/^/| /' conftest.$ac_ext >&5
5423
5424  # Passes both tests.
5425ac_preproc_ok=:
5426break
5427fi
5428rm -f conftest.err conftest.$ac_ext
5429
5430done
5431# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5432rm -f conftest.err conftest.$ac_ext
5433if $ac_preproc_ok; then
5434  break
5435fi
5436
5437    done
5438    ac_cv_prog_CPP=$CPP
5439
5440fi
5441  CPP=$ac_cv_prog_CPP
5442else
5443  ac_cv_prog_CPP=$CPP
5444fi
5445echo "$as_me:$LINENO: result: $CPP" >&5
5446echo "${ECHO_T}$CPP" >&6
5447ac_preproc_ok=false
5448for ac_c_preproc_warn_flag in '' yes
5449do
5450  # Use a header file that comes with gcc, so configuring glibc
5451  # with a fresh cross-compiler works.
5452  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5453  # <limits.h> exists even on freestanding compilers.
5454  # On the NeXT, cc -E runs the code through the compiler's parser,
5455  # not just through cpp. "Syntax error" is here to catch this case.
5456  cat >conftest.$ac_ext <<_ACEOF
5457#line $LINENO "configure"
5458/* confdefs.h.  */
5459_ACEOF
5460cat confdefs.h >>conftest.$ac_ext
5461cat >>conftest.$ac_ext <<_ACEOF
5462/* end confdefs.h.  */
5463#ifdef __STDC__
5464# include <limits.h>
5465#else
5466# include <assert.h>
5467#endif
5468                     Syntax error
5469_ACEOF
5470if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5471  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5472  ac_status=$?
5473  grep -v '^ *+' conftest.er1 >conftest.err
5474  rm -f conftest.er1
5475  cat conftest.err >&5
5476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477  (exit $ac_status); } >/dev/null; then
5478  if test -s conftest.err; then
5479    ac_cpp_err=$ac_c_preproc_warn_flag
5480  else
5481    ac_cpp_err=
5482  fi
5483else
5484  ac_cpp_err=yes
5485fi
5486if test -z "$ac_cpp_err"; then
5487  :
5488else
5489  echo "$as_me: failed program was:" >&5
5490sed 's/^/| /' conftest.$ac_ext >&5
5491
5492  # Broken: fails on valid input.
5493continue
5494fi
5495rm -f conftest.err conftest.$ac_ext
5496
5497  # OK, works on sane cases.  Now check whether non-existent headers
5498  # can be detected and how.
5499  cat >conftest.$ac_ext <<_ACEOF
5500#line $LINENO "configure"
5501/* confdefs.h.  */
5502_ACEOF
5503cat confdefs.h >>conftest.$ac_ext
5504cat >>conftest.$ac_ext <<_ACEOF
5505/* end confdefs.h.  */
5506#include <ac_nonexistent.h>
5507_ACEOF
5508if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5509  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5510  ac_status=$?
5511  grep -v '^ *+' conftest.er1 >conftest.err
5512  rm -f conftest.er1
5513  cat conftest.err >&5
5514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515  (exit $ac_status); } >/dev/null; then
5516  if test -s conftest.err; then
5517    ac_cpp_err=$ac_c_preproc_warn_flag
5518  else
5519    ac_cpp_err=
5520  fi
5521else
5522  ac_cpp_err=yes
5523fi
5524if test -z "$ac_cpp_err"; then
5525  # Broken: success on invalid input.
5526continue
5527else
5528  echo "$as_me: failed program was:" >&5
5529sed 's/^/| /' conftest.$ac_ext >&5
5530
5531  # Passes both tests.
5532ac_preproc_ok=:
5533break
5534fi
5535rm -f conftest.err conftest.$ac_ext
5536
5537done
5538# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5539rm -f conftest.err conftest.$ac_ext
5540if $ac_preproc_ok; then
5541  :
5542else
5543  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5544See \`config.log' for more details." >&5
5545echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5546See \`config.log' for more details." >&2;}
5547   { (exit 1); exit 1; }; }
5548fi
5549
5550ac_ext=c
5551ac_cpp='$CPP $CPPFLAGS'
5552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554ac_compiler_gnu=$ac_cv_c_compiler_gnu
5555
5556
5557echo "$as_me:$LINENO: checking for egrep" >&5
5558echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5559if test "${ac_cv_prog_egrep+set}" = set; then
5560  echo $ECHO_N "(cached) $ECHO_C" >&6
5561else
5562  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5563    then ac_cv_prog_egrep='grep -E'
5564    else ac_cv_prog_egrep='egrep'
5565    fi
5566fi
5567echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5568echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5569 EGREP=$ac_cv_prog_egrep
5570
5571
5572echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5573echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5574if test "${ac_cv_header_stdc+set}" = set; then
5575  echo $ECHO_N "(cached) $ECHO_C" >&6
5576else
5577  cat >conftest.$ac_ext <<_ACEOF
5578#line $LINENO "configure"
5579/* confdefs.h.  */
5580_ACEOF
5581cat confdefs.h >>conftest.$ac_ext
5582cat >>conftest.$ac_ext <<_ACEOF
5583/* end confdefs.h.  */
5584#include <stdlib.h>
5585#include <stdarg.h>
5586#include <string.h>
5587#include <float.h>
5588
5589int
5590main ()
5591{
5592
5593  ;
5594  return 0;
5595}
5596_ACEOF
5597rm -f conftest.$ac_objext
5598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5599  (eval $ac_compile) 2>&5
5600  ac_status=$?
5601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602  (exit $ac_status); } &&
5603         { ac_try='test -s conftest.$ac_objext'
5604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605  (eval $ac_try) 2>&5
5606  ac_status=$?
5607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608  (exit $ac_status); }; }; then
5609  ac_cv_header_stdc=yes
5610else
5611  echo "$as_me: failed program was:" >&5
5612sed 's/^/| /' conftest.$ac_ext >&5
5613
5614ac_cv_header_stdc=no
5615fi
5616rm -f conftest.$ac_objext conftest.$ac_ext
5617
5618if test $ac_cv_header_stdc = yes; then
5619  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5620  cat >conftest.$ac_ext <<_ACEOF
5621#line $LINENO "configure"
5622/* confdefs.h.  */
5623_ACEOF
5624cat confdefs.h >>conftest.$ac_ext
5625cat >>conftest.$ac_ext <<_ACEOF
5626/* end confdefs.h.  */
5627#include <string.h>
5628
5629_ACEOF
5630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5631  $EGREP "memchr" >/dev/null 2>&1; then
5632  :
5633else
5634  ac_cv_header_stdc=no
5635fi
5636rm -f conftest*
5637
5638fi
5639
5640if test $ac_cv_header_stdc = yes; then
5641  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5642  cat >conftest.$ac_ext <<_ACEOF
5643#line $LINENO "configure"
5644/* confdefs.h.  */
5645_ACEOF
5646cat confdefs.h >>conftest.$ac_ext
5647cat >>conftest.$ac_ext <<_ACEOF
5648/* end confdefs.h.  */
5649#include <stdlib.h>
5650
5651_ACEOF
5652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653  $EGREP "free" >/dev/null 2>&1; then
5654  :
5655else
5656  ac_cv_header_stdc=no
5657fi
5658rm -f conftest*
5659
5660fi
5661
5662if test $ac_cv_header_stdc = yes; then
5663  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5664  if test "$cross_compiling" = yes; then
5665  :
5666else
5667  cat >conftest.$ac_ext <<_ACEOF
5668#line $LINENO "configure"
5669/* confdefs.h.  */
5670_ACEOF
5671cat confdefs.h >>conftest.$ac_ext
5672cat >>conftest.$ac_ext <<_ACEOF
5673/* end confdefs.h.  */
5674#include <ctype.h>
5675#if ((' ' & 0x0FF) == 0x020)
5676# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5677# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5678#else
5679# define ISLOWER(c) \
5680                   (('a' <= (c) && (c) <= 'i') \
5681                     || ('j' <= (c) && (c) <= 'r') \
5682                     || ('s' <= (c) && (c) <= 'z'))
5683# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5684#endif
5685
5686#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5687int
5688main ()
5689{
5690  int i;
5691  for (i = 0; i < 256; i++)
5692    if (XOR (islower (i), ISLOWER (i))
5693        || toupper (i) != TOUPPER (i))
5694      exit(2);
5695  exit (0);
5696}
5697_ACEOF
5698rm -f conftest$ac_exeext
5699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700  (eval $ac_link) 2>&5
5701  ac_status=$?
5702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705  (eval $ac_try) 2>&5
5706  ac_status=$?
5707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708  (exit $ac_status); }; }; then
5709  :
5710else
5711  echo "$as_me: program exited with status $ac_status" >&5
5712echo "$as_me: failed program was:" >&5
5713sed 's/^/| /' conftest.$ac_ext >&5
5714
5715( exit $ac_status )
5716ac_cv_header_stdc=no
5717fi
5718rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5719fi
5720fi
5721fi
5722echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5723echo "${ECHO_T}$ac_cv_header_stdc" >&6
5724if test $ac_cv_header_stdc = yes; then
5725
5726cat >>confdefs.h <<\_ACEOF
5727#define STDC_HEADERS 1
5728_ACEOF
5729
5730fi
5731
5732# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5743                  inttypes.h stdint.h unistd.h
5744do
5745as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5746echo "$as_me:$LINENO: checking for $ac_header" >&5
5747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5748if eval "test \"\${$as_ac_Header+set}\" = set"; then
5749  echo $ECHO_N "(cached) $ECHO_C" >&6
5750else
5751  cat >conftest.$ac_ext <<_ACEOF
5752#line $LINENO "configure"
5753/* confdefs.h.  */
5754_ACEOF
5755cat confdefs.h >>conftest.$ac_ext
5756cat >>conftest.$ac_ext <<_ACEOF
5757/* end confdefs.h.  */
5758$ac_includes_default
5759
5760#include <$ac_header>
5761_ACEOF
5762rm -f conftest.$ac_objext
5763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764  (eval $ac_compile) 2>&5
5765  ac_status=$?
5766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767  (exit $ac_status); } &&
5768         { ac_try='test -s conftest.$ac_objext'
5769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770  (eval $ac_try) 2>&5
5771  ac_status=$?
5772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773  (exit $ac_status); }; }; then
5774  eval "$as_ac_Header=yes"
5775else
5776  echo "$as_me: failed program was:" >&5
5777sed 's/^/| /' conftest.$ac_ext >&5
5778
5779eval "$as_ac_Header=no"
5780fi
5781rm -f conftest.$ac_objext conftest.$ac_ext
5782fi
5783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5785if test `eval echo '${'$as_ac_Header'}'` = yes; then
5786  cat >>confdefs.h <<_ACEOF
5787#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5788_ACEOF
5789
5790fi
5791
5792done
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803for ac_header in stdio.h stdlib.h sys/socket.h sys/types.h unistd.h netdb.h string.h netinet/in.h
5804do
5805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5806if eval "test \"\${$as_ac_Header+set}\" = set"; then
5807  echo "$as_me:$LINENO: checking for $ac_header" >&5
5808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5809if eval "test \"\${$as_ac_Header+set}\" = set"; then
5810  echo $ECHO_N "(cached) $ECHO_C" >&6
5811fi
5812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5814else
5815  # Is the header compilable?
5816echo "$as_me:$LINENO: checking $ac_header usability" >&5
5817echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5818cat >conftest.$ac_ext <<_ACEOF
5819#line $LINENO "configure"
5820/* confdefs.h.  */
5821_ACEOF
5822cat confdefs.h >>conftest.$ac_ext
5823cat >>conftest.$ac_ext <<_ACEOF
5824/* end confdefs.h.  */
5825$ac_includes_default
5826#include <$ac_header>
5827_ACEOF
5828rm -f conftest.$ac_objext
5829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5830  (eval $ac_compile) 2>&5
5831  ac_status=$?
5832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833  (exit $ac_status); } &&
5834         { ac_try='test -s conftest.$ac_objext'
5835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836  (eval $ac_try) 2>&5
5837  ac_status=$?
5838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839  (exit $ac_status); }; }; then
5840  ac_header_compiler=yes
5841else
5842  echo "$as_me: failed program was:" >&5
5843sed 's/^/| /' conftest.$ac_ext >&5
5844
5845ac_header_compiler=no
5846fi
5847rm -f conftest.$ac_objext conftest.$ac_ext
5848echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5849echo "${ECHO_T}$ac_header_compiler" >&6
5850
5851# Is the header present?
5852echo "$as_me:$LINENO: checking $ac_header presence" >&5
5853echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5854cat >conftest.$ac_ext <<_ACEOF
5855#line $LINENO "configure"
5856/* confdefs.h.  */
5857_ACEOF
5858cat confdefs.h >>conftest.$ac_ext
5859cat >>conftest.$ac_ext <<_ACEOF
5860/* end confdefs.h.  */
5861#include <$ac_header>
5862_ACEOF
5863if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5864  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5865  ac_status=$?
5866  grep -v '^ *+' conftest.er1 >conftest.err
5867  rm -f conftest.er1
5868  cat conftest.err >&5
5869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870  (exit $ac_status); } >/dev/null; then
5871  if test -s conftest.err; then
5872    ac_cpp_err=$ac_c_preproc_warn_flag
5873  else
5874    ac_cpp_err=
5875  fi
5876else
5877  ac_cpp_err=yes
5878fi
5879if test -z "$ac_cpp_err"; then
5880  ac_header_preproc=yes
5881else
5882  echo "$as_me: failed program was:" >&5
5883sed 's/^/| /' conftest.$ac_ext >&5
5884
5885  ac_header_preproc=no
5886fi
5887rm -f conftest.err conftest.$ac_ext
5888echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5889echo "${ECHO_T}$ac_header_preproc" >&6
5890
5891# So?  What about this header?
5892case $ac_header_compiler:$ac_header_preproc in
5893  yes:no )
5894    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5895echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5896    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5897echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5898    (
5899      cat <<\_ASBOX
5900## ------------------------------------ ##
5901## Report this to bug-autoconf@gnu.org. ##
5902## ------------------------------------ ##
5903_ASBOX
5904    ) |
5905      sed "s/^/$as_me: WARNING:     /" >&2
5906    ;;
5907  no:yes )
5908    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5909echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5910    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5911echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5912    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5913echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5914    (
5915      cat <<\_ASBOX
5916## ------------------------------------ ##
5917## Report this to bug-autoconf@gnu.org. ##
5918## ------------------------------------ ##
5919_ASBOX
5920    ) |
5921      sed "s/^/$as_me: WARNING:     /" >&2
5922    ;;
5923esac
5924echo "$as_me:$LINENO: checking for $ac_header" >&5
5925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5926if eval "test \"\${$as_ac_Header+set}\" = set"; then
5927  echo $ECHO_N "(cached) $ECHO_C" >&6
5928else
5929  eval "$as_ac_Header=$ac_header_preproc"
5930fi
5931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5932echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5933
5934fi
5935if test `eval echo '${'$as_ac_Header'}'` = yes; then
5936  cat >>confdefs.h <<_ACEOF
5937#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5938_ACEOF
5939
5940fi
5941
5942done
5943
5944
5945for ac_func in alarm
5946do
5947as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5948echo "$as_me:$LINENO: checking for $ac_func" >&5
5949echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5950if eval "test \"\${$as_ac_var+set}\" = set"; then
5951  echo $ECHO_N "(cached) $ECHO_C" >&6
5952else
5953  cat >conftest.$ac_ext <<_ACEOF
5954#line $LINENO "configure"
5955/* confdefs.h.  */
5956_ACEOF
5957cat confdefs.h >>conftest.$ac_ext
5958cat >>conftest.$ac_ext <<_ACEOF
5959/* end confdefs.h.  */
5960/* System header to define __stub macros and hopefully few prototypes,
5961    which can conflict with char $ac_func (); below.
5962    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5963    <limits.h> exists even on freestanding compilers.  */
5964#ifdef __STDC__
5965# include <limits.h>
5966#else
5967# include <assert.h>
5968#endif
5969/* Override any gcc2 internal prototype to avoid an error.  */
5970#ifdef __cplusplus
5971extern "C"
5972{
5973#endif
5974/* We use char because int might match the return type of a gcc2
5975   builtin and then its argument prototype would still apply.  */
5976char $ac_func ();
5977/* The GNU C library defines this for functions which it implements
5978    to always fail with ENOSYS.  Some functions are actually named
5979    something starting with __ and the normal name is an alias.  */
5980#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5981choke me
5982#else
5983char (*f) () = $ac_func;
5984#endif
5985#ifdef __cplusplus
5986}
5987#endif
5988
5989int
5990main ()
5991{
5992return f != $ac_func;
5993  ;
5994  return 0;
5995}
5996_ACEOF
5997rm -f conftest.$ac_objext conftest$ac_exeext
5998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999  (eval $ac_link) 2>&5
6000  ac_status=$?
6001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002  (exit $ac_status); } &&
6003         { ac_try='test -s conftest$ac_exeext'
6004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005  (eval $ac_try) 2>&5
6006  ac_status=$?
6007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008  (exit $ac_status); }; }; then
6009  eval "$as_ac_var=yes"
6010else
6011  echo "$as_me: failed program was:" >&5
6012sed 's/^/| /' conftest.$ac_ext >&5
6013
6014eval "$as_ac_var=no"
6015fi
6016rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6017fi
6018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6019echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6020if test `eval echo '${'$as_ac_var'}'` = yes; then
6021  cat >>confdefs.h <<_ACEOF
6022#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6023_ACEOF
6024
6025fi
6026done
6027
6028 LIBMT_LIBS=" -lmaitretarot "
6029
6030# Check whether --with-libmaitretarot or --without-libmaitretarot was given.
6031if test "${with_libmaitretarot+set}" = set; then
6032  withval="$with_libmaitretarot"
6033
6034      	LIBMT_CFLAGS="-I${withval}/include"
6035      	LIBMT_LIBS="-L${withval}/lib -lmaitretarot"
6036
6037else
6038
6039      	LIBMT_CFLAGS="-I/usr/local/include -I/usr/include"
6040      	LIBMT_LIBS="-L/usr/local/lib -L/usr/lib -lmaitretarot"
6041
6042fi;
6043 ac_save_CPPFLAGS="$CPPFLAGS"
6044 ac_save_CFLAGS="$CFLAGS"
6045 ac_save_LIBS="$LIBS"
6046 CFLAGS="$CFLAGS $LIBMT_CFLAGS $GLIB_CFLAGS"
6047 CPPFLAGS="$CPPFLAGS $LIBMT_CFLAGS $GLIB_CFLAGS"
6048 LIBS="$LIBS $LIBMT_LIBS $GLIB_LIBS"
6049 echo "$as_me:$LINENO: checking for maitretarot.h" >&5
6050echo $ECHO_N "checking for maitretarot.h... $ECHO_C" >&6
6051 cat >conftest.$ac_ext <<_ACEOF
6052#line $LINENO "configure"
6053/* confdefs.h.  */
6054_ACEOF
6055cat confdefs.h >>conftest.$ac_ext
6056cat >>conftest.$ac_ext <<_ACEOF
6057/* end confdefs.h.  */
6058#include <maitretarot.h>
6059_ACEOF
6060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6061  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6062  ac_status=$?
6063  grep -v '^ *+' conftest.er1 >conftest.err
6064  rm -f conftest.er1
6065  cat conftest.err >&5
6066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067  (exit $ac_status); } >/dev/null; then
6068  if test -s conftest.err; then
6069    ac_cpp_err=$ac_c_preproc_warn_flag
6070  else
6071    ac_cpp_err=
6072  fi
6073else
6074  ac_cpp_err=yes
6075fi
6076if test -z "$ac_cpp_err"; then
6077
6078   echo "$as_me:$LINENO: result: yes" >&5
6079echo "${ECHO_T}yes" >&6
6080   echo "$as_me:$LINENO: checking for libmaitretarot" >&5
6081echo $ECHO_N "checking for libmaitretarot... $ECHO_C" >&6
6082if test "${am_cv_lib_maitretarot+set}" = set; then
6083  echo $ECHO_N "(cached) $ECHO_C" >&6
6084else
6085
6086    if test "$cross_compiling" = yes; then
6087  am_cv_lib_maitretarot=no
6088else
6089  cat >conftest.$ac_ext <<_ACEOF
6090#line $LINENO "configure"
6091/* confdefs.h.  */
6092_ACEOF
6093cat confdefs.h >>conftest.$ac_ext
6094cat >>conftest.$ac_ext <<_ACEOF
6095/* end confdefs.h.  */
6096/* Test program from Yves Mettier (ymettier@libertysurf.fr).  */
6097
6098#include <maitretarot.h>
6099
6100int
6101main ()
6102{
6103  if (libmt_check_version (0, 0, 0))
6104    exit (0);
6105  exit (1);
6106}
6107
6108_ACEOF
6109rm -f conftest$ac_exeext
6110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6111  (eval $ac_link) 2>&5
6112  ac_status=$?
6113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116  (eval $ac_try) 2>&5
6117  ac_status=$?
6118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119  (exit $ac_status); }; }; then
6120
6121	     am_cv_lib_maitretarot=yes
6122else
6123  echo "$as_me: program exited with status $ac_status" >&5
6124echo "$as_me: failed program was:" >&5
6125sed 's/^/| /' conftest.$ac_ext >&5
6126
6127( exit $ac_status )
6128am_cv_lib_maitretarot=no
6129fi
6130rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6131fi
6132
6133fi
6134echo "$as_me:$LINENO: result: $am_cv_lib_maitretarot" >&5
6135echo "${ECHO_T}$am_cv_lib_maitretarot" >&6
6136else
6137  echo "$as_me: failed program was:" >&5
6138sed 's/^/| /' conftest.$ac_ext >&5
6139
6140
6141      am_cv_lib_maitretarot=no
6142      echo "$as_me:$LINENO: result: no" >&5
6143echo "${ECHO_T}no" >&6
6144      { { echo "$as_me:$LINENO: error: Could not find maitretarot.h. This file comes with libmaitretarot" >&5
6145echo "$as_me: error: Could not find maitretarot.h. This file comes with libmaitretarot" >&2;}
6146   { (exit 1); exit 1; }; }
6147
6148
6149fi
6150rm -f conftest.err conftest.$ac_ext
6151  if test "x${am_cv_lib_maitretarot}" = "xno"; then
6152       CFLAGS="$ac_save_CFLAGS"
6153       LIBS="$ac_save_LIBS"
6154       { { echo "$as_me:$LINENO: error: Could not find libmaitretarot" >&5
6155echo "$as_me: error: Could not find libmaitretarot" >&2;}
6156   { (exit 1); exit 1; }; }
6157  fi
6158  CPPFLAGS="$ac_save_CPPFLAGS"
6159
6160  succeeded=no
6161
6162  if test -z "$PKG_CONFIG"; then
6163    # Extract the first word of "pkg-config", so it can be a program name with args.
6164set dummy pkg-config; ac_word=$2
6165echo "$as_me:$LINENO: checking for $ac_word" >&5
6166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6167if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6168  echo $ECHO_N "(cached) $ECHO_C" >&6
6169else
6170  case $PKG_CONFIG in
6171  [\\/]* | ?:[\\/]*)
6172  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6173  ;;
6174  *)
6175  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176for as_dir in $PATH
6177do
6178  IFS=$as_save_IFS
6179  test -z "$as_dir" && as_dir=.
6180  for ac_exec_ext in '' $ac_executable_extensions; do
6181  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6182    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6183    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6184    break 2
6185  fi
6186done
6187done
6188
6189  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6190  ;;
6191esac
6192fi
6193PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6194
6195if test -n "$PKG_CONFIG"; then
6196  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6197echo "${ECHO_T}$PKG_CONFIG" >&6
6198else
6199  echo "$as_me:$LINENO: result: no" >&5
6200echo "${ECHO_T}no" >&6
6201fi
6202
6203  fi
6204
6205  if test "$PKG_CONFIG" = "no" ; then
6206     echo "*** The pkg-config script could not be found. Make sure it is"
6207     echo "*** in your path, or set the PKG_CONFIG environment variable"
6208     echo "*** to the full path to pkg-config."
6209     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6210  else
6211     PKG_CONFIG_MIN_VERSION=0.9.0
6212     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6213        echo "$as_me:$LINENO: checking for glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0" >&5
6214echo $ECHO_N "checking for glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0... $ECHO_C" >&6
6215
6216        if $PKG_CONFIG --exists "glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0" ; then
6217            echo "$as_me:$LINENO: result: yes" >&5
6218echo "${ECHO_T}yes" >&6
6219            succeeded=yes
6220
6221            echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
6222echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
6223            GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0"`
6224            echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
6225echo "${ECHO_T}$GLIB_CFLAGS" >&6
6226
6227            echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
6228echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
6229            GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0"`
6230            echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
6231echo "${ECHO_T}$GLIB_LIBS" >&6
6232        else
6233            GLIB_CFLAGS=""
6234            GLIB_LIBS=""
6235            ## If we have a custom action on failure, don't print errors, but
6236            ## do set a variable so people can do so.
6237            GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0"`
6238            echo $GLIB_PKG_ERRORS
6239        fi
6240
6241
6242
6243     else
6244        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6245        echo "*** See http://www.freedesktop.org/software/pkgconfig"
6246     fi
6247  fi
6248
6249  if test $succeeded = yes; then
6250     :
6251  else
6252     { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
6253echo "$as_me: error: Library requirements (glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
6254   { (exit 1); exit 1; }; }
6255  fi
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269for ac_header in stdio.h stdlib.h sys/socket.h sys/types.h unistd.h netdb.h string.h netinet/in.h
6270do
6271as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6272if eval "test \"\${$as_ac_Header+set}\" = set"; then
6273  echo "$as_me:$LINENO: checking for $ac_header" >&5
6274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6275if eval "test \"\${$as_ac_Header+set}\" = set"; then
6276  echo $ECHO_N "(cached) $ECHO_C" >&6
6277fi
6278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6279echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6280else
6281  # Is the header compilable?
6282echo "$as_me:$LINENO: checking $ac_header usability" >&5
6283echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6284cat >conftest.$ac_ext <<_ACEOF
6285#line $LINENO "configure"
6286/* confdefs.h.  */
6287_ACEOF
6288cat confdefs.h >>conftest.$ac_ext
6289cat >>conftest.$ac_ext <<_ACEOF
6290/* end confdefs.h.  */
6291$ac_includes_default
6292#include <$ac_header>
6293_ACEOF
6294rm -f conftest.$ac_objext
6295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296  (eval $ac_compile) 2>&5
6297  ac_status=$?
6298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299  (exit $ac_status); } &&
6300         { ac_try='test -s conftest.$ac_objext'
6301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302  (eval $ac_try) 2>&5
6303  ac_status=$?
6304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305  (exit $ac_status); }; }; then
6306  ac_header_compiler=yes
6307else
6308  echo "$as_me: failed program was:" >&5
6309sed 's/^/| /' conftest.$ac_ext >&5
6310
6311ac_header_compiler=no
6312fi
6313rm -f conftest.$ac_objext conftest.$ac_ext
6314echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6315echo "${ECHO_T}$ac_header_compiler" >&6
6316
6317# Is the header present?
6318echo "$as_me:$LINENO: checking $ac_header presence" >&5
6319echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6320cat >conftest.$ac_ext <<_ACEOF
6321#line $LINENO "configure"
6322/* confdefs.h.  */
6323_ACEOF
6324cat confdefs.h >>conftest.$ac_ext
6325cat >>conftest.$ac_ext <<_ACEOF
6326/* end confdefs.h.  */
6327#include <$ac_header>
6328_ACEOF
6329if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6330  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6331  ac_status=$?
6332  grep -v '^ *+' conftest.er1 >conftest.err
6333  rm -f conftest.er1
6334  cat conftest.err >&5
6335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336  (exit $ac_status); } >/dev/null; then
6337  if test -s conftest.err; then
6338    ac_cpp_err=$ac_c_preproc_warn_flag
6339  else
6340    ac_cpp_err=
6341  fi
6342else
6343  ac_cpp_err=yes
6344fi
6345if test -z "$ac_cpp_err"; then
6346  ac_header_preproc=yes
6347else
6348  echo "$as_me: failed program was:" >&5
6349sed 's/^/| /' conftest.$ac_ext >&5
6350
6351  ac_header_preproc=no
6352fi
6353rm -f conftest.err conftest.$ac_ext
6354echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6355echo "${ECHO_T}$ac_header_preproc" >&6
6356
6357# So?  What about this header?
6358case $ac_header_compiler:$ac_header_preproc in
6359  yes:no )
6360    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6361echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6362    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6363echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6364    (
6365      cat <<\_ASBOX
6366## ------------------------------------ ##
6367## Report this to bug-autoconf@gnu.org. ##
6368## ------------------------------------ ##
6369_ASBOX
6370    ) |
6371      sed "s/^/$as_me: WARNING:     /" >&2
6372    ;;
6373  no:yes )
6374    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6375echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6376    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6377echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6378    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6379echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6380    (
6381      cat <<\_ASBOX
6382## ------------------------------------ ##
6383## Report this to bug-autoconf@gnu.org. ##
6384## ------------------------------------ ##
6385_ASBOX
6386    ) |
6387      sed "s/^/$as_me: WARNING:     /" >&2
6388    ;;
6389esac
6390echo "$as_me:$LINENO: checking for $ac_header" >&5
6391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6392if eval "test \"\${$as_ac_Header+set}\" = set"; then
6393  echo $ECHO_N "(cached) $ECHO_C" >&6
6394else
6395  eval "$as_ac_Header=$ac_header_preproc"
6396fi
6397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6398echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6399
6400fi
6401if test `eval echo '${'$as_ac_Header'}'` = yes; then
6402  cat >>confdefs.h <<_ACEOF
6403#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6404_ACEOF
6405
6406fi
6407
6408done
6409
6410
6411for ac_func in alarm
6412do
6413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6414echo "$as_me:$LINENO: checking for $ac_func" >&5
6415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6416if eval "test \"\${$as_ac_var+set}\" = set"; then
6417  echo $ECHO_N "(cached) $ECHO_C" >&6
6418else
6419  cat >conftest.$ac_ext <<_ACEOF
6420#line $LINENO "configure"
6421/* confdefs.h.  */
6422_ACEOF
6423cat confdefs.h >>conftest.$ac_ext
6424cat >>conftest.$ac_ext <<_ACEOF
6425/* end confdefs.h.  */
6426/* System header to define __stub macros and hopefully few prototypes,
6427    which can conflict with char $ac_func (); below.
6428    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6429    <limits.h> exists even on freestanding compilers.  */
6430#ifdef __STDC__
6431# include <limits.h>
6432#else
6433# include <assert.h>
6434#endif
6435/* Override any gcc2 internal prototype to avoid an error.  */
6436#ifdef __cplusplus
6437extern "C"
6438{
6439#endif
6440/* We use char because int might match the return type of a gcc2
6441   builtin and then its argument prototype would still apply.  */
6442char $ac_func ();
6443/* The GNU C library defines this for functions which it implements
6444    to always fail with ENOSYS.  Some functions are actually named
6445    something starting with __ and the normal name is an alias.  */
6446#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6447choke me
6448#else
6449char (*f) () = $ac_func;
6450#endif
6451#ifdef __cplusplus
6452}
6453#endif
6454
6455int
6456main ()
6457{
6458return f != $ac_func;
6459  ;
6460  return 0;
6461}
6462_ACEOF
6463rm -f conftest.$ac_objext conftest$ac_exeext
6464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6465  (eval $ac_link) 2>&5
6466  ac_status=$?
6467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468  (exit $ac_status); } &&
6469         { ac_try='test -s conftest$ac_exeext'
6470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471  (eval $ac_try) 2>&5
6472  ac_status=$?
6473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474  (exit $ac_status); }; }; then
6475  eval "$as_ac_var=yes"
6476else
6477  echo "$as_me: failed program was:" >&5
6478sed 's/^/| /' conftest.$ac_ext >&5
6479
6480eval "$as_ac_var=no"
6481fi
6482rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6483fi
6484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6485echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6486if test `eval echo '${'$as_ac_var'}'` = yes; then
6487  cat >>confdefs.h <<_ACEOF
6488#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6489_ACEOF
6490
6491fi
6492done
6493
6494 LIBMT_LIBS=" -lmt_client "
6495
6496# Check whether --with-libmt_client or --without-libmt_client was given.
6497if test "${with_libmt_client+set}" = set; then
6498  withval="$with_libmt_client"
6499
6500      	LIBMT_CFLAGS="-I${withval}/include"
6501      	LIBMT_LIBS="-L${withval}/lib -lmt_client"
6502
6503else
6504
6505      	LIBMT_CFLAGS="-I/usr/local/include -I/usr/include"
6506      	LIBMT_LIBS="-L/usr/local/lib -L/usr/lib -lmt_client"
6507
6508fi;
6509 ac_save_CPPFLAGS="$CPPFLAGS"
6510 ac_save_CFLAGS="$CFLAGS"
6511 ac_save_LIBS="$LIBS"
6512 CFLAGS="$CFLAGS $LIBMT_CFLAGS $GLIB_CFLAGS"
6513 CPPFLAGS="$CPPFLAGS $LIBMT_CFLAGS $GLIB_CFLAGS"
6514 LIBS="$LIBS $LIBMT_LIBS $GLIB_LIBS"
6515 echo "$as_me:$LINENO: checking for mt_client.h" >&5
6516echo $ECHO_N "checking for mt_client.h... $ECHO_C" >&6
6517 cat >conftest.$ac_ext <<_ACEOF
6518#line $LINENO "configure"
6519/* confdefs.h.  */
6520_ACEOF
6521cat confdefs.h >>conftest.$ac_ext
6522cat >>conftest.$ac_ext <<_ACEOF
6523/* end confdefs.h.  */
6524#include <mt_client.h>
6525_ACEOF
6526if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6527  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6528  ac_status=$?
6529  grep -v '^ *+' conftest.er1 >conftest.err
6530  rm -f conftest.er1
6531  cat conftest.err >&5
6532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533  (exit $ac_status); } >/dev/null; then
6534  if test -s conftest.err; then
6535    ac_cpp_err=$ac_c_preproc_warn_flag
6536  else
6537    ac_cpp_err=
6538  fi
6539else
6540  ac_cpp_err=yes
6541fi
6542if test -z "$ac_cpp_err"; then
6543
6544   echo "$as_me:$LINENO: result: yes" >&5
6545echo "${ECHO_T}yes" >&6
6546   echo "$as_me:$LINENO: checking for libmt_client" >&5
6547echo $ECHO_N "checking for libmt_client... $ECHO_C" >&6
6548if test "${am_cv_lib_mt_client+set}" = set; then
6549  echo $ECHO_N "(cached) $ECHO_C" >&6
6550else
6551
6552    if test "$cross_compiling" = yes; then
6553  am_cv_lib_mt_client=no
6554else
6555  cat >conftest.$ac_ext <<_ACEOF
6556#line $LINENO "configure"
6557/* confdefs.h.  */
6558_ACEOF
6559cat confdefs.h >>conftest.$ac_ext
6560cat >>conftest.$ac_ext <<_ACEOF
6561/* end confdefs.h.  */
6562/* Test program from Yves Mettier (ymettier@libertysurf.fr).  */
6563
6564#include <mt_client.h>
6565
6566int
6567main ()
6568{
6569  if (libmt_client_check_version (0, 0, 0))
6570    exit (0);
6571  exit (1);
6572}
6573
6574_ACEOF
6575rm -f conftest$ac_exeext
6576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6577  (eval $ac_link) 2>&5
6578  ac_status=$?
6579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582  (eval $ac_try) 2>&5
6583  ac_status=$?
6584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585  (exit $ac_status); }; }; then
6586
6587	     am_cv_lib_mt_client=yes
6588else
6589  echo "$as_me: program exited with status $ac_status" >&5
6590echo "$as_me: failed program was:" >&5
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
6593( exit $ac_status )
6594am_cv_lib_mt_client=no
6595fi
6596rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6597fi
6598
6599fi
6600echo "$as_me:$LINENO: result: $am_cv_lib_mt_client" >&5
6601echo "${ECHO_T}$am_cv_lib_mt_client" >&6
6602else
6603  echo "$as_me: failed program was:" >&5
6604sed 's/^/| /' conftest.$ac_ext >&5
6605
6606
6607      am_cv_lib_mt_client=no
6608      echo "$as_me:$LINENO: result: no" >&5
6609echo "${ECHO_T}no" >&6
6610      { { echo "$as_me:$LINENO: error: Could not find mt_client.h. This file comes with libmt_client" >&5
6611echo "$as_me: error: Could not find mt_client.h. This file comes with libmt_client" >&2;}
6612   { (exit 1); exit 1; }; }
6613
6614
6615fi
6616rm -f conftest.err conftest.$ac_ext
6617  if test "x${am_cv_lib_mt_client}" = "xno"; then
6618       CFLAGS="$ac_save_CFLAGS"
6619       LIBS="$ac_save_LIBS"
6620       { { echo "$as_me:$LINENO: error: Could not find libmt_client" >&5
6621echo "$as_me: error: Could not find libmt_client" >&2;}
6622   { (exit 1); exit 1; }; }
6623  fi
6624  CPPFLAGS="$ac_save_CPPFLAGS"
6625
6626  succeeded=no
6627
6628  if test -z "$PKG_CONFIG"; then
6629    # Extract the first word of "pkg-config", so it can be a program name with args.
6630set dummy pkg-config; ac_word=$2
6631echo "$as_me:$LINENO: checking for $ac_word" >&5
6632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6633if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6634  echo $ECHO_N "(cached) $ECHO_C" >&6
6635else
6636  case $PKG_CONFIG in
6637  [\\/]* | ?:[\\/]*)
6638  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6639  ;;
6640  *)
6641  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH
6643do
6644  IFS=$as_save_IFS
6645  test -z "$as_dir" && as_dir=.
6646  for ac_exec_ext in '' $ac_executable_extensions; do
6647  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6648    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6649    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650    break 2
6651  fi
6652done
6653done
6654
6655  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6656  ;;
6657esac
6658fi
6659PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6660
6661if test -n "$PKG_CONFIG"; then
6662  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6663echo "${ECHO_T}$PKG_CONFIG" >&6
6664else
6665  echo "$as_me:$LINENO: result: no" >&5
6666echo "${ECHO_T}no" >&6
6667fi
6668
6669  fi
6670
6671  if test "$PKG_CONFIG" = "no" ; then
6672     echo "*** The pkg-config script could not be found. Make sure it is"
6673     echo "*** in your path, or set the PKG_CONFIG environment variable"
6674     echo "*** to the full path to pkg-config."
6675     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6676  else
6677     PKG_CONFIG_MIN_VERSION=0.9.0
6678     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6679        echo "$as_me:$LINENO: checking for glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0" >&5
6680echo $ECHO_N "checking for glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0... $ECHO_C" >&6
6681
6682        if $PKG_CONFIG --exists "glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0" ; then
6683            echo "$as_me:$LINENO: result: yes" >&5
6684echo "${ECHO_T}yes" >&6
6685            succeeded=yes
6686
6687            echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
6688echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
6689            GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0"`
6690            echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
6691echo "${ECHO_T}$GLIB_CFLAGS" >&6
6692
6693            echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
6694echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
6695            GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0"`
6696            echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
6697echo "${ECHO_T}$GLIB_LIBS" >&6
6698        else
6699            GLIB_CFLAGS=""
6700            GLIB_LIBS=""
6701            ## If we have a custom action on failure, don't print errors, but
6702            ## do set a variable so people can do so.
6703            GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0"`
6704            echo $GLIB_PKG_ERRORS
6705        fi
6706
6707
6708
6709     else
6710        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6711        echo "*** See http://www.freedesktop.org/software/pkgconfig"
6712     fi
6713  fi
6714
6715  if test $succeeded = yes; then
6716     :
6717  else
6718     { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
6719echo "$as_me: error: Library requirements (glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
6720   { (exit 1); exit 1; }; }
6721  fi
6722
6723
6724
6725
6726
6727# Checks for header files.
6728echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6729echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6730if test "${ac_cv_header_stdc+set}" = set; then
6731  echo $ECHO_N "(cached) $ECHO_C" >&6
6732else
6733  cat >conftest.$ac_ext <<_ACEOF
6734#line $LINENO "configure"
6735/* confdefs.h.  */
6736_ACEOF
6737cat confdefs.h >>conftest.$ac_ext
6738cat >>conftest.$ac_ext <<_ACEOF
6739/* end confdefs.h.  */
6740#include <stdlib.h>
6741#include <stdarg.h>
6742#include <string.h>
6743#include <float.h>
6744
6745int
6746main ()
6747{
6748
6749  ;
6750  return 0;
6751}
6752_ACEOF
6753rm -f conftest.$ac_objext
6754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6755  (eval $ac_compile) 2>&5
6756  ac_status=$?
6757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758  (exit $ac_status); } &&
6759         { ac_try='test -s conftest.$ac_objext'
6760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761  (eval $ac_try) 2>&5
6762  ac_status=$?
6763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764  (exit $ac_status); }; }; then
6765  ac_cv_header_stdc=yes
6766else
6767  echo "$as_me: failed program was:" >&5
6768sed 's/^/| /' conftest.$ac_ext >&5
6769
6770ac_cv_header_stdc=no
6771fi
6772rm -f conftest.$ac_objext conftest.$ac_ext
6773
6774if test $ac_cv_header_stdc = yes; then
6775  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6776  cat >conftest.$ac_ext <<_ACEOF
6777#line $LINENO "configure"
6778/* confdefs.h.  */
6779_ACEOF
6780cat confdefs.h >>conftest.$ac_ext
6781cat >>conftest.$ac_ext <<_ACEOF
6782/* end confdefs.h.  */
6783#include <string.h>
6784
6785_ACEOF
6786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6787  $EGREP "memchr" >/dev/null 2>&1; then
6788  :
6789else
6790  ac_cv_header_stdc=no
6791fi
6792rm -f conftest*
6793
6794fi
6795
6796if test $ac_cv_header_stdc = yes; then
6797  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6798  cat >conftest.$ac_ext <<_ACEOF
6799#line $LINENO "configure"
6800/* confdefs.h.  */
6801_ACEOF
6802cat confdefs.h >>conftest.$ac_ext
6803cat >>conftest.$ac_ext <<_ACEOF
6804/* end confdefs.h.  */
6805#include <stdlib.h>
6806
6807_ACEOF
6808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6809  $EGREP "free" >/dev/null 2>&1; then
6810  :
6811else
6812  ac_cv_header_stdc=no
6813fi
6814rm -f conftest*
6815
6816fi
6817
6818if test $ac_cv_header_stdc = yes; then
6819  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6820  if test "$cross_compiling" = yes; then
6821  :
6822else
6823  cat >conftest.$ac_ext <<_ACEOF
6824#line $LINENO "configure"
6825/* confdefs.h.  */
6826_ACEOF
6827cat confdefs.h >>conftest.$ac_ext
6828cat >>conftest.$ac_ext <<_ACEOF
6829/* end confdefs.h.  */
6830#include <ctype.h>
6831#if ((' ' & 0x0FF) == 0x020)
6832# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6833# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6834#else
6835# define ISLOWER(c) \
6836                   (('a' <= (c) && (c) <= 'i') \
6837                     || ('j' <= (c) && (c) <= 'r') \
6838                     || ('s' <= (c) && (c) <= 'z'))
6839# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6840#endif
6841
6842#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6843int
6844main ()
6845{
6846  int i;
6847  for (i = 0; i < 256; i++)
6848    if (XOR (islower (i), ISLOWER (i))
6849        || toupper (i) != TOUPPER (i))
6850      exit(2);
6851  exit (0);
6852}
6853_ACEOF
6854rm -f conftest$ac_exeext
6855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6856  (eval $ac_link) 2>&5
6857  ac_status=$?
6858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861  (eval $ac_try) 2>&5
6862  ac_status=$?
6863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864  (exit $ac_status); }; }; then
6865  :
6866else
6867  echo "$as_me: program exited with status $ac_status" >&5
6868echo "$as_me: failed program was:" >&5
6869sed 's/^/| /' conftest.$ac_ext >&5
6870
6871( exit $ac_status )
6872ac_cv_header_stdc=no
6873fi
6874rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6875fi
6876fi
6877fi
6878echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6879echo "${ECHO_T}$ac_cv_header_stdc" >&6
6880if test $ac_cv_header_stdc = yes; then
6881
6882cat >>confdefs.h <<\_ACEOF
6883#define STDC_HEADERS 1
6884_ACEOF
6885
6886fi
6887
6888
6889
6890
6891
6892
6893
6894
6895for ac_header in netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h
6896do
6897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6898if eval "test \"\${$as_ac_Header+set}\" = set"; then
6899  echo "$as_me:$LINENO: checking for $ac_header" >&5
6900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6901if eval "test \"\${$as_ac_Header+set}\" = set"; then
6902  echo $ECHO_N "(cached) $ECHO_C" >&6
6903fi
6904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6906else
6907  # Is the header compilable?
6908echo "$as_me:$LINENO: checking $ac_header usability" >&5
6909echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6910cat >conftest.$ac_ext <<_ACEOF
6911#line $LINENO "configure"
6912/* confdefs.h.  */
6913_ACEOF
6914cat confdefs.h >>conftest.$ac_ext
6915cat >>conftest.$ac_ext <<_ACEOF
6916/* end confdefs.h.  */
6917$ac_includes_default
6918#include <$ac_header>
6919_ACEOF
6920rm -f conftest.$ac_objext
6921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6922  (eval $ac_compile) 2>&5
6923  ac_status=$?
6924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925  (exit $ac_status); } &&
6926         { ac_try='test -s conftest.$ac_objext'
6927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928  (eval $ac_try) 2>&5
6929  ac_status=$?
6930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931  (exit $ac_status); }; }; then
6932  ac_header_compiler=yes
6933else
6934  echo "$as_me: failed program was:" >&5
6935sed 's/^/| /' conftest.$ac_ext >&5
6936
6937ac_header_compiler=no
6938fi
6939rm -f conftest.$ac_objext conftest.$ac_ext
6940echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6941echo "${ECHO_T}$ac_header_compiler" >&6
6942
6943# Is the header present?
6944echo "$as_me:$LINENO: checking $ac_header presence" >&5
6945echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6946cat >conftest.$ac_ext <<_ACEOF
6947#line $LINENO "configure"
6948/* confdefs.h.  */
6949_ACEOF
6950cat confdefs.h >>conftest.$ac_ext
6951cat >>conftest.$ac_ext <<_ACEOF
6952/* end confdefs.h.  */
6953#include <$ac_header>
6954_ACEOF
6955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6956  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6957  ac_status=$?
6958  grep -v '^ *+' conftest.er1 >conftest.err
6959  rm -f conftest.er1
6960  cat conftest.err >&5
6961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962  (exit $ac_status); } >/dev/null; then
6963  if test -s conftest.err; then
6964    ac_cpp_err=$ac_c_preproc_warn_flag
6965  else
6966    ac_cpp_err=
6967  fi
6968else
6969  ac_cpp_err=yes
6970fi
6971if test -z "$ac_cpp_err"; then
6972  ac_header_preproc=yes
6973else
6974  echo "$as_me: failed program was:" >&5
6975sed 's/^/| /' conftest.$ac_ext >&5
6976
6977  ac_header_preproc=no
6978fi
6979rm -f conftest.err conftest.$ac_ext
6980echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6981echo "${ECHO_T}$ac_header_preproc" >&6
6982
6983# So?  What about this header?
6984case $ac_header_compiler:$ac_header_preproc in
6985  yes:no )
6986    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6987echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6988    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6989echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6990    (
6991      cat <<\_ASBOX
6992## ------------------------------------ ##
6993## Report this to bug-autoconf@gnu.org. ##
6994## ------------------------------------ ##
6995_ASBOX
6996    ) |
6997      sed "s/^/$as_me: WARNING:     /" >&2
6998    ;;
6999  no:yes )
7000    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7001echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7002    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7003echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7004    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7005echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7006    (
7007      cat <<\_ASBOX
7008## ------------------------------------ ##
7009## Report this to bug-autoconf@gnu.org. ##
7010## ------------------------------------ ##
7011_ASBOX
7012    ) |
7013      sed "s/^/$as_me: WARNING:     /" >&2
7014    ;;
7015esac
7016echo "$as_me:$LINENO: checking for $ac_header" >&5
7017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7018if eval "test \"\${$as_ac_Header+set}\" = set"; then
7019  echo $ECHO_N "(cached) $ECHO_C" >&6
7020else
7021  eval "$as_ac_Header=$ac_header_preproc"
7022fi
7023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7024echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7025
7026fi
7027if test `eval echo '${'$as_ac_Header'}'` = yes; then
7028  cat >>confdefs.h <<_ACEOF
7029#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7030_ACEOF
7031
7032fi
7033
7034done
7035
7036
7037# Checks for typedefs, structures, and compiler characteristics.
7038echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7039echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7040if test "${ac_cv_header_time+set}" = set; then
7041  echo $ECHO_N "(cached) $ECHO_C" >&6
7042else
7043  cat >conftest.$ac_ext <<_ACEOF
7044#line $LINENO "configure"
7045/* confdefs.h.  */
7046_ACEOF
7047cat confdefs.h >>conftest.$ac_ext
7048cat >>conftest.$ac_ext <<_ACEOF
7049/* end confdefs.h.  */
7050#include <sys/types.h>
7051#include <sys/time.h>
7052#include <time.h>
7053
7054int
7055main ()
7056{
7057if ((struct tm *) 0)
7058return 0;
7059  ;
7060  return 0;
7061}
7062_ACEOF
7063rm -f conftest.$ac_objext
7064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065  (eval $ac_compile) 2>&5
7066  ac_status=$?
7067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068  (exit $ac_status); } &&
7069         { ac_try='test -s conftest.$ac_objext'
7070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071  (eval $ac_try) 2>&5
7072  ac_status=$?
7073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074  (exit $ac_status); }; }; then
7075  ac_cv_header_time=yes
7076else
7077  echo "$as_me: failed program was:" >&5
7078sed 's/^/| /' conftest.$ac_ext >&5
7079
7080ac_cv_header_time=no
7081fi
7082rm -f conftest.$ac_objext conftest.$ac_ext
7083fi
7084echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7085echo "${ECHO_T}$ac_cv_header_time" >&6
7086if test $ac_cv_header_time = yes; then
7087
7088cat >>confdefs.h <<\_ACEOF
7089#define TIME_WITH_SYS_TIME 1
7090_ACEOF
7091
7092fi
7093
7094echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7095echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7096if test "${ac_cv_c_const+set}" = set; then
7097  echo $ECHO_N "(cached) $ECHO_C" >&6
7098else
7099  cat >conftest.$ac_ext <<_ACEOF
7100#line $LINENO "configure"
7101/* confdefs.h.  */
7102_ACEOF
7103cat confdefs.h >>conftest.$ac_ext
7104cat >>conftest.$ac_ext <<_ACEOF
7105/* end confdefs.h.  */
7106
7107int
7108main ()
7109{
7110/* FIXME: Include the comments suggested by Paul. */
7111#ifndef __cplusplus
7112  /* Ultrix mips cc rejects this.  */
7113  typedef int charset[2];
7114  const charset x;
7115  /* SunOS 4.1.1 cc rejects this.  */
7116  char const *const *ccp;
7117  char **p;
7118  /* NEC SVR4.0.2 mips cc rejects this.  */
7119  struct point {int x, y;};
7120  static struct point const zero = {0,0};
7121  /* AIX XL C 1.02.0.0 rejects this.
7122     It does not let you subtract one const X* pointer from another in
7123     an arm of an if-expression whose if-part is not a constant
7124     expression */
7125  const char *g = "string";
7126  ccp = &g + (g ? g-g : 0);
7127  /* HPUX 7.0 cc rejects these. */
7128  ++ccp;
7129  p = (char**) ccp;
7130  ccp = (char const *const *) p;
7131  { /* SCO 3.2v4 cc rejects this.  */
7132    char *t;
7133    char const *s = 0 ? (char *) 0 : (char const *) 0;
7134
7135    *t++ = 0;
7136  }
7137  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7138    int x[] = {25, 17};
7139    const int *foo = &x[0];
7140    ++foo;
7141  }
7142  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7143    typedef const int *iptr;
7144    iptr p = 0;
7145    ++p;
7146  }
7147  { /* AIX XL C 1.02.0.0 rejects this saying
7148       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7149    struct s { int j; const int *ap[3]; };
7150    struct s *b; b->j = 5;
7151  }
7152  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7153    const int foo = 10;
7154  }
7155#endif
7156
7157  ;
7158  return 0;
7159}
7160_ACEOF
7161rm -f conftest.$ac_objext
7162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7163  (eval $ac_compile) 2>&5
7164  ac_status=$?
7165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166  (exit $ac_status); } &&
7167         { ac_try='test -s conftest.$ac_objext'
7168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169  (eval $ac_try) 2>&5
7170  ac_status=$?
7171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172  (exit $ac_status); }; }; then
7173  ac_cv_c_const=yes
7174else
7175  echo "$as_me: failed program was:" >&5
7176sed 's/^/| /' conftest.$ac_ext >&5
7177
7178ac_cv_c_const=no
7179fi
7180rm -f conftest.$ac_objext conftest.$ac_ext
7181fi
7182echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7183echo "${ECHO_T}$ac_cv_c_const" >&6
7184if test $ac_cv_c_const = no; then
7185
7186cat >>confdefs.h <<\_ACEOF
7187#define const
7188_ACEOF
7189
7190fi
7191
7192
7193# Checks for library functions.
7194
7195
7196
7197
7198for ac_func in bzero gethostbyname gethostname socket
7199do
7200as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7201echo "$as_me:$LINENO: checking for $ac_func" >&5
7202echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7203if eval "test \"\${$as_ac_var+set}\" = set"; then
7204  echo $ECHO_N "(cached) $ECHO_C" >&6
7205else
7206  cat >conftest.$ac_ext <<_ACEOF
7207#line $LINENO "configure"
7208/* confdefs.h.  */
7209_ACEOF
7210cat confdefs.h >>conftest.$ac_ext
7211cat >>conftest.$ac_ext <<_ACEOF
7212/* end confdefs.h.  */
7213/* System header to define __stub macros and hopefully few prototypes,
7214    which can conflict with char $ac_func (); below.
7215    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7216    <limits.h> exists even on freestanding compilers.  */
7217#ifdef __STDC__
7218# include <limits.h>
7219#else
7220# include <assert.h>
7221#endif
7222/* Override any gcc2 internal prototype to avoid an error.  */
7223#ifdef __cplusplus
7224extern "C"
7225{
7226#endif
7227/* We use char because int might match the return type of a gcc2
7228   builtin and then its argument prototype would still apply.  */
7229char $ac_func ();
7230/* The GNU C library defines this for functions which it implements
7231    to always fail with ENOSYS.  Some functions are actually named
7232    something starting with __ and the normal name is an alias.  */
7233#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7234choke me
7235#else
7236char (*f) () = $ac_func;
7237#endif
7238#ifdef __cplusplus
7239}
7240#endif
7241
7242int
7243main ()
7244{
7245return f != $ac_func;
7246  ;
7247  return 0;
7248}
7249_ACEOF
7250rm -f conftest.$ac_objext conftest$ac_exeext
7251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7252  (eval $ac_link) 2>&5
7253  ac_status=$?
7254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255  (exit $ac_status); } &&
7256         { ac_try='test -s conftest$ac_exeext'
7257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258  (eval $ac_try) 2>&5
7259  ac_status=$?
7260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261  (exit $ac_status); }; }; then
7262  eval "$as_ac_var=yes"
7263else
7264  echo "$as_me: failed program was:" >&5
7265sed 's/^/| /' conftest.$ac_ext >&5
7266
7267eval "$as_ac_var=no"
7268fi
7269rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7270fi
7271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7272echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7273if test `eval echo '${'$as_ac_var'}'` = yes; then
7274  cat >>confdefs.h <<_ACEOF
7275#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7276_ACEOF
7277
7278fi
7279done
7280
7281
7282GETTEXT_PACKAGE=mtgtkclient
7283
7284
7285cat >>confdefs.h <<_ACEOF
7286#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7287_ACEOF
7288
7289
7290ALL_LINGUAS="fr"
7291if test -n "$ac_tool_prefix"; then
7292  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7293set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7294echo "$as_me:$LINENO: checking for $ac_word" >&5
7295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7296if test "${ac_cv_prog_RANLIB+set}" = set; then
7297  echo $ECHO_N "(cached) $ECHO_C" >&6
7298else
7299  if test -n "$RANLIB"; then
7300  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7301else
7302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303for as_dir in $PATH
7304do
7305  IFS=$as_save_IFS
7306  test -z "$as_dir" && as_dir=.
7307  for ac_exec_ext in '' $ac_executable_extensions; do
7308  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7309    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7310    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311    break 2
7312  fi
7313done
7314done
7315
7316fi
7317fi
7318RANLIB=$ac_cv_prog_RANLIB
7319if test -n "$RANLIB"; then
7320  echo "$as_me:$LINENO: result: $RANLIB" >&5
7321echo "${ECHO_T}$RANLIB" >&6
7322else
7323  echo "$as_me:$LINENO: result: yes" >&5
7324echo "${ECHO_T}yes" >&6
7325fi
7326
7327fi
7328if test -z "$ac_cv_prog_RANLIB"; then
7329  ac_ct_RANLIB=$RANLIB
7330  # Extract the first word of "ranlib", so it can be a program name with args.
7331set dummy ranlib; ac_word=$2
7332echo "$as_me:$LINENO: checking for $ac_word" >&5
7333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7334if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7335  echo $ECHO_N "(cached) $ECHO_C" >&6
7336else
7337  if test -n "$ac_ct_RANLIB"; then
7338  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7339else
7340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341for as_dir in $PATH
7342do
7343  IFS=$as_save_IFS
7344  test -z "$as_dir" && as_dir=.
7345  for ac_exec_ext in '' $ac_executable_extensions; do
7346  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347    ac_cv_prog_ac_ct_RANLIB="ranlib"
7348    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349    break 2
7350  fi
7351done
7352done
7353
7354  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7355fi
7356fi
7357ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7358if test -n "$ac_ct_RANLIB"; then
7359  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7360echo "${ECHO_T}$ac_ct_RANLIB" >&6
7361else
7362  echo "$as_me:$LINENO: result: yes" >&5
7363echo "${ECHO_T}yes" >&6
7364fi
7365
7366  RANLIB=$ac_ct_RANLIB
7367else
7368  RANLIB="$ac_cv_prog_RANLIB"
7369fi
7370
7371echo "$as_me:$LINENO: checking for inline" >&5
7372echo $ECHO_N "checking for inline... $ECHO_C" >&6
7373if test "${ac_cv_c_inline+set}" = set; then
7374  echo $ECHO_N "(cached) $ECHO_C" >&6
7375else
7376  ac_cv_c_inline=yes
7377for ac_kw in inline __inline__ __inline; do
7378  cat >conftest.$ac_ext <<_ACEOF
7379#line $LINENO "configure"
7380/* confdefs.h.  */
7381_ACEOF
7382cat confdefs.h >>conftest.$ac_ext
7383cat >>conftest.$ac_ext <<_ACEOF
7384/* end confdefs.h.  */
7385#ifndef __cplusplus
7386typedef int foo_t;
7387static $ac_kw foo_t static_foo () {return 0; }
7388$ac_kw foo_t foo () {return 0; }
7389#endif
7390
7391_ACEOF
7392rm -f conftest.$ac_objext
7393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7394  (eval $ac_compile) 2>&5
7395  ac_status=$?
7396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397  (exit $ac_status); } &&
7398         { ac_try='test -s conftest.$ac_objext'
7399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400  (eval $ac_try) 2>&5
7401  ac_status=$?
7402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403  (exit $ac_status); }; }; then
7404  ac_cv_c_inline=$ac_kw; break
7405else
7406  echo "$as_me: failed program was:" >&5
7407sed 's/^/| /' conftest.$ac_ext >&5
7408
7409fi
7410rm -f conftest.$ac_objext conftest.$ac_ext
7411done
7412
7413fi
7414echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7415echo "${ECHO_T}$ac_cv_c_inline" >&6
7416case $ac_cv_c_inline in
7417  inline | yes) ;;
7418  yes)
7419cat >>confdefs.h <<\_ACEOF
7420#define inline
7421_ACEOF
7422 ;;
7423  *)  cat >>confdefs.h <<_ACEOF
7424#define inline $ac_cv_c_inline
7425_ACEOF
7426 ;;
7427esac
7428
7429echo "$as_me:$LINENO: checking for off_t" >&5
7430echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7431if test "${ac_cv_type_off_t+set}" = set; then
7432  echo $ECHO_N "(cached) $ECHO_C" >&6
7433else
7434  cat >conftest.$ac_ext <<_ACEOF
7435#line $LINENO "configure"
7436/* confdefs.h.  */
7437_ACEOF
7438cat confdefs.h >>conftest.$ac_ext
7439cat >>conftest.$ac_ext <<_ACEOF
7440/* end confdefs.h.  */
7441$ac_includes_default
7442int
7443main ()
7444{
7445if ((off_t *) 0)
7446  return 0;
7447if (sizeof (off_t))
7448  return 0;
7449  ;
7450  return 0;
7451}
7452_ACEOF
7453rm -f conftest.$ac_objext
7454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7455  (eval $ac_compile) 2>&5
7456  ac_status=$?
7457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458  (exit $ac_status); } &&
7459         { ac_try='test -s conftest.$ac_objext'
7460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461  (eval $ac_try) 2>&5
7462  ac_status=$?
7463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464  (exit $ac_status); }; }; then
7465  ac_cv_type_off_t=yes
7466else
7467  echo "$as_me: failed program was:" >&5
7468sed 's/^/| /' conftest.$ac_ext >&5
7469
7470ac_cv_type_off_t=yes
7471fi
7472rm -f conftest.$ac_objext conftest.$ac_ext
7473fi
7474echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7475echo "${ECHO_T}$ac_cv_type_off_t" >&6
7476if test $ac_cv_type_off_t = yes; then
7477  :
7478else
7479
7480cat >>confdefs.h <<_ACEOF
7481#define off_t long
7482_ACEOF
7483
7484fi
7485
7486echo "$as_me:$LINENO: checking for size_t" >&5
7487echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7488if test "${ac_cv_type_size_t+set}" = set; then
7489  echo $ECHO_N "(cached) $ECHO_C" >&6
7490else
7491  cat >conftest.$ac_ext <<_ACEOF
7492#line $LINENO "configure"
7493/* confdefs.h.  */
7494_ACEOF
7495cat confdefs.h >>conftest.$ac_ext
7496cat >>conftest.$ac_ext <<_ACEOF
7497/* end confdefs.h.  */
7498$ac_includes_default
7499int
7500main ()
7501{
7502if ((size_t *) 0)
7503  return 0;
7504if (sizeof (size_t))
7505  return 0;
7506  ;
7507  return 0;
7508}
7509_ACEOF
7510rm -f conftest.$ac_objext
7511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7512  (eval $ac_compile) 2>&5
7513  ac_status=$?
7514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515  (exit $ac_status); } &&
7516         { ac_try='test -s conftest.$ac_objext'
7517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518  (eval $ac_try) 2>&5
7519  ac_status=$?
7520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521  (exit $ac_status); }; }; then
7522  ac_cv_type_size_t=yes
7523else
7524  echo "$as_me: failed program was:" >&5
7525sed 's/^/| /' conftest.$ac_ext >&5
7526
7527ac_cv_type_size_t=yes
7528fi
7529rm -f conftest.$ac_objext conftest.$ac_ext
7530fi
7531echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7532echo "${ECHO_T}$ac_cv_type_size_t" >&6
7533if test $ac_cv_type_size_t = yes; then
7534  :
7535else
7536
7537cat >>confdefs.h <<_ACEOF
7538#define size_t unsigned
7539_ACEOF
7540
7541fi
7542
7543# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7544# for constant arguments.  Useless!
7545echo "$as_me:$LINENO: checking for working alloca.h" >&5
7546echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7547if test "${ac_cv_working_alloca_h+set}" = set; then
7548  echo $ECHO_N "(cached) $ECHO_C" >&6
7549else
7550  cat >conftest.$ac_ext <<_ACEOF
7551#line $LINENO "configure"
7552/* confdefs.h.  */
7553_ACEOF
7554cat confdefs.h >>conftest.$ac_ext
7555cat >>conftest.$ac_ext <<_ACEOF
7556/* end confdefs.h.  */
7557#include <alloca.h>
7558int
7559main ()
7560{
7561char *p = (char *) alloca (2 * sizeof (int));
7562  ;
7563  return 0;
7564}
7565_ACEOF
7566rm -f conftest.$ac_objext conftest$ac_exeext
7567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7568  (eval $ac_link) 2>&5
7569  ac_status=$?
7570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571  (exit $ac_status); } &&
7572         { ac_try='test -s conftest$ac_exeext'
7573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574  (eval $ac_try) 2>&5
7575  ac_status=$?
7576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577  (exit $ac_status); }; }; then
7578  ac_cv_working_alloca_h=yes
7579else
7580  echo "$as_me: failed program was:" >&5
7581sed 's/^/| /' conftest.$ac_ext >&5
7582
7583ac_cv_working_alloca_h=yes
7584fi
7585rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7586fi
7587echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7588echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7589if test $ac_cv_working_alloca_h = yes; then
7590
7591cat >>confdefs.h <<\_ACEOF
7592#define HAVE_ALLOCA_H 1
7593_ACEOF
7594
7595fi
7596
7597echo "$as_me:$LINENO: checking for alloca" >&5
7598echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7599if test "${ac_cv_func_alloca_works+set}" = set; then
7600  echo $ECHO_N "(cached) $ECHO_C" >&6
7601else
7602  cat >conftest.$ac_ext <<_ACEOF
7603#line $LINENO "configure"
7604/* confdefs.h.  */
7605_ACEOF
7606cat confdefs.h >>conftest.$ac_ext
7607cat >>conftest.$ac_ext <<_ACEOF
7608/* end confdefs.h.  */
7609#ifdef __GNUC__
7610# define alloca __builtin_alloca
7611#else
7612# ifdef _MSC_VER
7613#  include <malloc.h>
7614#  define alloca _alloca
7615# else
7616#  if HAVE_ALLOCA_H
7617#   include <alloca.h>
7618#  else
7619#   ifdef _AIX
7620 #pragma alloca
7621#   else
7622#    ifndef alloca /* predefined by HP cc +Olibcalls */
7623char *alloca ();
7624#    endif
7625#   endif
7626#  endif
7627# endif
7628#endif
7629
7630int
7631main ()
7632{
7633char *p = (char *) alloca (1);
7634  ;
7635  return 0;
7636}
7637_ACEOF
7638rm -f conftest.$ac_objext conftest$ac_exeext
7639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7640  (eval $ac_link) 2>&5
7641  ac_status=$?
7642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643  (exit $ac_status); } &&
7644         { ac_try='test -s conftest$ac_exeext'
7645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646  (eval $ac_try) 2>&5
7647  ac_status=$?
7648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649  (exit $ac_status); }; }; then
7650  ac_cv_func_alloca_works=yes
7651else
7652  echo "$as_me: failed program was:" >&5
7653sed 's/^/| /' conftest.$ac_ext >&5
7654
7655ac_cv_func_alloca_works=yes
7656fi
7657rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7658fi
7659echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7660echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7661
7662if test $ac_cv_func_alloca_works = yes; then
7663
7664cat >>confdefs.h <<\_ACEOF
7665#define HAVE_ALLOCA 1
7666_ACEOF
7667
7668else
7669  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7670# that cause trouble.  Some versions do not even contain alloca or
7671# contain a buggy version.  If you still want to use their alloca,
7672# use ar to extract alloca.o from them instead of compiling alloca.c.
7673
7674ALLOCA=alloca.$ac_objext
7675
7676cat >>confdefs.h <<\_ACEOF
7677#define C_ALLOCA 1
7678_ACEOF
7679
7680
7681echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7682echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7683if test "${ac_cv_os_cray+set}" = set; then
7684  echo $ECHO_N "(cached) $ECHO_C" >&6
7685else
7686  cat >conftest.$ac_ext <<_ACEOF
7687#line $LINENO "configure"
7688/* confdefs.h.  */
7689_ACEOF
7690cat confdefs.h >>conftest.$ac_ext
7691cat >>conftest.$ac_ext <<_ACEOF
7692/* end confdefs.h.  */
7693#if defined(CRAY) && ! defined(CRAY2)
7694webecray
7695#else
7696wenotbecray
7697#endif
7698
7699_ACEOF
7700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7701  $EGREP "webecray" >/dev/null 2>&1; then
7702  ac_cv_os_cray=yes
7703else
7704  ac_cv_os_cray=yes
7705fi
7706rm -f conftest*
7707
7708fi
7709echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7710echo "${ECHO_T}$ac_cv_os_cray" >&6
7711if test $ac_cv_os_cray = yes; then
7712  for ac_func in _getb67 GETB67 getb67; do
7713    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7714echo "$as_me:$LINENO: checking for $ac_func" >&5
7715echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7716if eval "test \"\${$as_ac_var+set}\" = set"; then
7717  echo $ECHO_N "(cached) $ECHO_C" >&6
7718else
7719  cat >conftest.$ac_ext <<_ACEOF
7720#line $LINENO "configure"
7721/* confdefs.h.  */
7722_ACEOF
7723cat confdefs.h >>conftest.$ac_ext
7724cat >>conftest.$ac_ext <<_ACEOF
7725/* end confdefs.h.  */
7726/* System header to define __stub macros and hopefully few prototypes,
7727    which can conflict with char $ac_func (); below.
7728    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7729    <limits.h> exists even on freestanding compilers.  */
7730#ifdef __STDC__
7731# include <limits.h>
7732#else
7733# include <assert.h>
7734#endif
7735/* Override any gcc2 internal prototype to avoid an error.  */
7736#ifdef __cplusplus
7737extern "C"
7738{
7739#endif
7740/* We use char because int might match the return type of a gcc2
7741   builtin and then its argument prototype would still apply.  */
7742char $ac_func ();
7743/* The GNU C library defines this for functions which it implements
7744    to always fail with ENOSYS.  Some functions are actually named
7745    something starting with __ and the normal name is an alias.  */
7746#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7747choke me
7748#else
7749char (*f) () = $ac_func;
7750#endif
7751#ifdef __cplusplus
7752}
7753#endif
7754
7755int
7756main ()
7757{
7758return f != $ac_func;
7759  ;
7760  return 0;
7761}
7762_ACEOF
7763rm -f conftest.$ac_objext conftest$ac_exeext
7764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7765  (eval $ac_link) 2>&5
7766  ac_status=$?
7767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768  (exit $ac_status); } &&
7769         { ac_try='test -s conftest$ac_exeext'
7770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771  (eval $ac_try) 2>&5
7772  ac_status=$?
7773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774  (exit $ac_status); }; }; then
7775  eval "$as_ac_var=yes"
7776else
7777  echo "$as_me: failed program was:" >&5
7778sed 's/^/| /' conftest.$ac_ext >&5
7779
7780eval "$as_ac_var=yes"
7781fi
7782rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7783fi
7784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7785echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7786if test `eval echo '${'$as_ac_var'}'` = yes; then
7787
7788cat >>confdefs.h <<_ACEOF
7789#define CRAY_STACKSEG_END $ac_func
7790_ACEOF
7791
7792    break
7793fi
7794
7795  done
7796fi
7797
7798echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7799echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7800if test "${ac_cv_c_stack_direction+set}" = set; then
7801  echo $ECHO_N "(cached) $ECHO_C" >&6
7802else
7803  if test "$cross_compiling" = yes; then
7804  ac_cv_c_stack_direction=0
7805else
7806  cat >conftest.$ac_ext <<_ACEOF
7807#line $LINENO "configure"
7808/* confdefs.h.  */
7809_ACEOF
7810cat confdefs.h >>conftest.$ac_ext
7811cat >>conftest.$ac_ext <<_ACEOF
7812/* end confdefs.h.  */
7813int
7814find_stack_direction ()
7815{
7816  static char *addr = 0;
7817  auto char dummy;
7818  if (addr == 0)
7819    {
7820      addr = &dummy;
7821      return find_stack_direction ();
7822    }
7823  else
7824    return (&dummy > addr) ? 1 : -1;
7825}
7826
7827int
7828main ()
7829{
7830  exit (find_stack_direction () < 0);
7831}
7832_ACEOF
7833rm -f conftest$ac_exeext
7834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7835  (eval $ac_link) 2>&5
7836  ac_status=$?
7837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840  (eval $ac_try) 2>&5
7841  ac_status=$?
7842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843  (exit $ac_status); }; }; then
7844  ac_cv_c_stack_direction=1
7845else
7846  echo "$as_me: program exited with status $ac_status" >&5
7847echo "$as_me: failed program was:" >&5
7848sed 's/^/| /' conftest.$ac_ext >&5
7849
7850( exit $ac_status )
7851ac_cv_c_stack_direction=-1
7852fi
7853rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7854fi
7855fi
7856echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7857echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7858
7859cat >>confdefs.h <<_ACEOF
7860#define STACK_DIRECTION $ac_cv_c_stack_direction
7861_ACEOF
7862
7863
7864fi
7865
7866
7867
7868for ac_header in stdlib.h unistd.h
7869do
7870as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7871if eval "test \"\${$as_ac_Header+set}\" = set"; then
7872  echo "$as_me:$LINENO: checking for $ac_header" >&5
7873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7874if eval "test \"\${$as_ac_Header+set}\" = set"; then
7875  echo $ECHO_N "(cached) $ECHO_C" >&6
7876fi
7877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7878echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7879else
7880  # Is the header compilable?
7881echo "$as_me:$LINENO: checking $ac_header usability" >&5
7882echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7883cat >conftest.$ac_ext <<_ACEOF
7884#line $LINENO "configure"
7885/* confdefs.h.  */
7886_ACEOF
7887cat confdefs.h >>conftest.$ac_ext
7888cat >>conftest.$ac_ext <<_ACEOF
7889/* end confdefs.h.  */
7890$ac_includes_default
7891#include <$ac_header>
7892_ACEOF
7893rm -f conftest.$ac_objext
7894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895  (eval $ac_compile) 2>&5
7896  ac_status=$?
7897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898  (exit $ac_status); } &&
7899         { ac_try='test -s conftest.$ac_objext'
7900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901  (eval $ac_try) 2>&5
7902  ac_status=$?
7903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904  (exit $ac_status); }; }; then
7905  ac_header_compiler=yes
7906else
7907  echo "$as_me: failed program was:" >&5
7908sed 's/^/| /' conftest.$ac_ext >&5
7909
7910ac_header_compiler=yes
7911fi
7912rm -f conftest.$ac_objext conftest.$ac_ext
7913echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7914echo "${ECHO_T}$ac_header_compiler" >&6
7915
7916# Is the header present?
7917echo "$as_me:$LINENO: checking $ac_header presence" >&5
7918echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7919cat >conftest.$ac_ext <<_ACEOF
7920#line $LINENO "configure"
7921/* confdefs.h.  */
7922_ACEOF
7923cat confdefs.h >>conftest.$ac_ext
7924cat >>conftest.$ac_ext <<_ACEOF
7925/* end confdefs.h.  */
7926#include <$ac_header>
7927_ACEOF
7928if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7929  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7930  ac_status=$?
7931  grep -v '^ *+' conftest.er1 >conftest.err
7932  rm -f conftest.er1
7933  cat conftest.err >&5
7934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935  (exit $ac_status); } >/dev/null; then
7936  if test -s conftest.err; then
7937    ac_cpp_err=$ac_c_preproc_warn_flag
7938  else
7939    ac_cpp_err=
7940  fi
7941else
7942  ac_cpp_err=yes
7943fi
7944if test -z "$ac_cpp_err"; then
7945  ac_header_preproc=yes
7946else
7947  echo "$as_me: failed program was:" >&5
7948sed 's/^/| /' conftest.$ac_ext >&5
7949
7950  ac_header_preproc=yes
7951fi
7952rm -f conftest.err conftest.$ac_ext
7953echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7954echo "${ECHO_T}$ac_header_preproc" >&6
7955
7956# So?  What about this header?
7957case $ac_header_compiler:$ac_header_preproc in
7958  yes:yes )
7959    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7960echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7961    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7962echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7963    (
7964      cat <<\_ASBOX
7965## ------------------------------------ ##
7966## Report this to bug-autoconf@gnu.org. ##
7967## ------------------------------------ ##
7968_ASBOX
7969    ) |
7970      sed "s/^/$as_me: WARNING:     /" >&2
7971    ;;
7972  yes:yes )
7973    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7974echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7975    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7976echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7977    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7978echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7979    (
7980      cat <<\_ASBOX
7981## ------------------------------------ ##
7982## Report this to bug-autoconf@gnu.org. ##
7983## ------------------------------------ ##
7984_ASBOX
7985    ) |
7986      sed "s/^/$as_me: WARNING:     /" >&2
7987    ;;
7988esac
7989echo "$as_me:$LINENO: checking for $ac_header" >&5
7990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7991if eval "test \"\${$as_ac_Header+set}\" = set"; then
7992  echo $ECHO_N "(cached) $ECHO_C" >&6
7993else
7994  eval "$as_ac_Header=$ac_header_preproc"
7995fi
7996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7998
7999fi
8000if test `eval echo '${'$as_ac_Header'}'` = yes; then
8001  cat >>confdefs.h <<_ACEOF
8002#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8003_ACEOF
8004
8005fi
8006
8007done
8008
8009
8010for ac_func in getpagesize
8011do
8012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8013echo "$as_me:$LINENO: checking for $ac_func" >&5
8014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8015if eval "test \"\${$as_ac_var+set}\" = set"; then
8016  echo $ECHO_N "(cached) $ECHO_C" >&6
8017else
8018  cat >conftest.$ac_ext <<_ACEOF
8019#line $LINENO "configure"
8020/* confdefs.h.  */
8021_ACEOF
8022cat confdefs.h >>conftest.$ac_ext
8023cat >>conftest.$ac_ext <<_ACEOF
8024/* end confdefs.h.  */
8025/* System header to define __stub macros and hopefully few prototypes,
8026    which can conflict with char $ac_func (); below.
8027    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8028    <limits.h> exists even on freestanding compilers.  */
8029#ifdef __STDC__
8030# include <limits.h>
8031#else
8032# include <assert.h>
8033#endif
8034/* Override any gcc2 internal prototype to avoid an error.  */
8035#ifdef __cplusplus
8036extern "C"
8037{
8038#endif
8039/* We use char because int might match the return type of a gcc2
8040   builtin and then its argument prototype would still apply.  */
8041char $ac_func ();
8042/* The GNU C library defines this for functions which it implements
8043    to always fail with ENOSYS.  Some functions are actually named
8044    something starting with __ and the normal name is an alias.  */
8045#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8046choke me
8047#else
8048char (*f) () = $ac_func;
8049#endif
8050#ifdef __cplusplus
8051}
8052#endif
8053
8054int
8055main ()
8056{
8057return f != $ac_func;
8058  ;
8059  return 0;
8060}
8061_ACEOF
8062rm -f conftest.$ac_objext conftest$ac_exeext
8063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8064  (eval $ac_link) 2>&5
8065  ac_status=$?
8066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067  (exit $ac_status); } &&
8068         { ac_try='test -s conftest$ac_exeext'
8069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070  (eval $ac_try) 2>&5
8071  ac_status=$?
8072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073  (exit $ac_status); }; }; then
8074  eval "$as_ac_var=yes"
8075else
8076  echo "$as_me: failed program was:" >&5
8077sed 's/^/| /' conftest.$ac_ext >&5
8078
8079eval "$as_ac_var=yes"
8080fi
8081rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8082fi
8083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8084echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8085if test `eval echo '${'$as_ac_var'}'` = yes; then
8086  cat >>confdefs.h <<_ACEOF
8087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8088_ACEOF
8089
8090fi
8091done
8092
8093echo "$as_me:$LINENO: checking for working mmap" >&5
8094echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8095if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8096  echo $ECHO_N "(cached) $ECHO_C" >&6
8097else
8098  if test "$cross_compiling" = yes; then
8099  ac_cv_func_mmap_fixed_mapped=yes
8100else
8101  cat >conftest.$ac_ext <<_ACEOF
8102#line $LINENO "configure"
8103/* confdefs.h.  */
8104_ACEOF
8105cat confdefs.h >>conftest.$ac_ext
8106cat >>conftest.$ac_ext <<_ACEOF
8107/* end confdefs.h.  */
8108$ac_includes_default
8109/* malloc might have been renamed as rpl_malloc. */
8110#undef malloc
8111
8112/* Thanks to Mike Haertel and Jim Avera for this test.
8113   Here is a matrix of mmap possibilities:
8114	mmap private not fixed
8115	mmap private fixed at somewhere currently unmapped
8116	mmap private fixed at somewhere already mapped
8117	mmap shared not fixed
8118	mmap shared fixed at somewhere currently unmapped
8119	mmap shared fixed at somewhere already mapped
8120   For private mappings, we should verify that changes cannot be read()
8121   back from the file, nor mmap's back from the file at a different
8122   address.  (There have been systems where private was not correctly
8123   implemented like the infamous i386 svr4.0, and systems where the
8124   VM page cache was not coherent with the file system buffer cache
8125   like early versions of FreeBSD and possibly contemporary NetBSD.)
8126   For shared mappings, we should conversely verify that changes get
8127   propagated back to all the places they're supposed to be.
8128
8129   Grep wants private fixed already mapped.
8130   The main things grep needs to know about mmap are:
8131   * does it exist and is it safe to write into the mmap'd area
8132   * how to use it (BSD variants)  */
8133
8134#include <fcntl.h>
8135#include <sys/mman.h>
8136
8137#if !STDC_HEADERS && !HAVE_STDLIB_H
8138char *malloc ();
8139#endif
8140
8141/* This mess was copied from the GNU getpagesize.h.  */
8142#if !HAVE_GETPAGESIZE
8143/* Assume that all systems that can run configure have sys/param.h.  */
8144# if !HAVE_SYS_PARAM_H
8145#  define HAVE_SYS_PARAM_H 1
8146# endif
8147
8148# ifdef _SC_PAGESIZE
8149#  define getpagesize() sysconf(_SC_PAGESIZE)
8150# else /* no _SC_PAGESIZE */
8151#  if HAVE_SYS_PARAM_H
8152#   include <sys/param.h>
8153#   ifdef EXEC_PAGESIZE
8154#    define getpagesize() EXEC_PAGESIZE
8155#   else /* no EXEC_PAGESIZE */
8156#    ifdef NBPG
8157#     define getpagesize() NBPG * CLSIZE
8158#     ifndef CLSIZE
8159#      define CLSIZE 1
8160#     endif /* no CLSIZE */
8161#    else /* no NBPG */
8162#     ifdef NBPC
8163#      define getpagesize() NBPC
8164#     else /* no NBPC */
8165#      ifdef PAGESIZE
8166#       define getpagesize() PAGESIZE
8167#      endif /* PAGESIZE */
8168#     endif /* no NBPC */
8169#    endif /* no NBPG */
8170#   endif /* no EXEC_PAGESIZE */
8171#  else /* no HAVE_SYS_PARAM_H */
8172#   define getpagesize() 8192	/* punt totally */
8173#  endif /* no HAVE_SYS_PARAM_H */
8174# endif /* no _SC_PAGESIZE */
8175
8176#endif /* no HAVE_GETPAGESIZE */
8177
8178int
8179main ()
8180{
8181  char *data, *data2, *data3;
8182  int i, pagesize;
8183  int fd;
8184
8185  pagesize = getpagesize ();
8186
8187  /* First, make a file with some known garbage in it. */
8188  data = (char *) malloc (pagesize);
8189  if (!data)
8190    exit (1);
8191  for (i = 0; i < pagesize; ++i)
8192    *(data + i) = rand ();
8193  umask (0);
8194  fd = creat ("conftest.mmap", 0600);
8195  if (fd < 0)
8196    exit (1);
8197  if (write (fd, data, pagesize) != pagesize)
8198    exit (1);
8199  close (fd);
8200
8201  /* Next, try to mmap the file at a fixed address which already has
8202     something else allocated at it.  If we can, also make sure that
8203     we see the same garbage.  */
8204  fd = open ("conftest.mmap", O_RDWR);
8205  if (fd < 0)
8206    exit (1);
8207  data2 = (char *) malloc (2 * pagesize);
8208  if (!data2)
8209    exit (1);
8210  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8211  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8212                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
8213    exit (1);
8214  for (i = 0; i < pagesize; ++i)
8215    if (*(data + i) != *(data2 + i))
8216      exit (1);
8217
8218  /* Finally, make sure that changes to the mapped area do not
8219     percolate back to the file as seen by read().  (This is a bug on
8220     some variants of i386 svr4.0.)  */
8221  for (i = 0; i < pagesize; ++i)
8222    *(data2 + i) = *(data2 + i) + 1;
8223  data3 = (char *) malloc (pagesize);
8224  if (!data3)
8225    exit (1);
8226  if (read (fd, data3, pagesize) != pagesize)
8227    exit (1);
8228  for (i = 0; i < pagesize; ++i)
8229    if (*(data + i) != *(data3 + i))
8230      exit (1);
8231  close (fd);
8232  exit (0);
8233}
8234_ACEOF
8235rm -f conftest$ac_exeext
8236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8237  (eval $ac_link) 2>&5
8238  ac_status=$?
8239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242  (eval $ac_try) 2>&5
8243  ac_status=$?
8244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245  (exit $ac_status); }; }; then
8246  ac_cv_func_mmap_fixed_mapped=yes
8247else
8248  echo "$as_me: program exited with status $ac_status" >&5
8249echo "$as_me: failed program was:" >&5
8250sed 's/^/| /' conftest.$ac_ext >&5
8251
8252( exit $ac_status )
8253ac_cv_func_mmap_fixed_mapped=yes
8254fi
8255rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8256fi
8257fi
8258echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8259echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8260if test $ac_cv_func_mmap_fixed_mapped = yes; then
8261
8262cat >>confdefs.h <<\_ACEOF
8263#define HAVE_MMAP 1
8264_ACEOF
8265
8266fi
8267rm -f conftest.mmap
8268
8269
8270    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8271echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8272if test "${ac_cv_gnu_library_2_1+set}" = set; then
8273  echo $ECHO_N "(cached) $ECHO_C" >&6
8274else
8275  cat >conftest.$ac_ext <<_ACEOF
8276#line $LINENO "configure"
8277/* confdefs.h.  */
8278_ACEOF
8279cat confdefs.h >>conftest.$ac_ext
8280cat >>conftest.$ac_ext <<_ACEOF
8281/* end confdefs.h.  */
8282
8283#include <features.h>
8284#ifdef __GNU_LIBRARY__
8285 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8286  Lucky GNU user
8287 #endif
8288#endif
8289
8290_ACEOF
8291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8292  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8293  ac_cv_gnu_library_2_1=yes
8294else
8295  ac_cv_gnu_library_2_1=yes
8296fi
8297rm -f conftest*
8298
8299
8300
8301fi
8302echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8303echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8304
8305    GLIBC21="$ac_cv_gnu_library_2_1"
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8321stdlib.h string.h unistd.h sys/param.h
8322do
8323as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8324if eval "test \"\${$as_ac_Header+set}\" = set"; then
8325  echo "$as_me:$LINENO: checking for $ac_header" >&5
8326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8327if eval "test \"\${$as_ac_Header+set}\" = set"; then
8328  echo $ECHO_N "(cached) $ECHO_C" >&6
8329fi
8330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8331echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8332else
8333  # Is the header compilable?
8334echo "$as_me:$LINENO: checking $ac_header usability" >&5
8335echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8336cat >conftest.$ac_ext <<_ACEOF
8337#line $LINENO "configure"
8338/* confdefs.h.  */
8339_ACEOF
8340cat confdefs.h >>conftest.$ac_ext
8341cat >>conftest.$ac_ext <<_ACEOF
8342/* end confdefs.h.  */
8343$ac_includes_default
8344#include <$ac_header>
8345_ACEOF
8346rm -f conftest.$ac_objext
8347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8348  (eval $ac_compile) 2>&5
8349  ac_status=$?
8350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351  (exit $ac_status); } &&
8352         { ac_try='test -s conftest.$ac_objext'
8353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354  (eval $ac_try) 2>&5
8355  ac_status=$?
8356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357  (exit $ac_status); }; }; then
8358  ac_header_compiler=yes
8359else
8360  echo "$as_me: failed program was:" >&5
8361sed 's/^/| /' conftest.$ac_ext >&5
8362
8363ac_header_compiler=yes
8364fi
8365rm -f conftest.$ac_objext conftest.$ac_ext
8366echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8367echo "${ECHO_T}$ac_header_compiler" >&6
8368
8369# Is the header present?
8370echo "$as_me:$LINENO: checking $ac_header presence" >&5
8371echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8372cat >conftest.$ac_ext <<_ACEOF
8373#line $LINENO "configure"
8374/* confdefs.h.  */
8375_ACEOF
8376cat confdefs.h >>conftest.$ac_ext
8377cat >>conftest.$ac_ext <<_ACEOF
8378/* end confdefs.h.  */
8379#include <$ac_header>
8380_ACEOF
8381if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8382  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8383  ac_status=$?
8384  grep -v '^ *+' conftest.er1 >conftest.err
8385  rm -f conftest.er1
8386  cat conftest.err >&5
8387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388  (exit $ac_status); } >/dev/null; then
8389  if test -s conftest.err; then
8390    ac_cpp_err=$ac_c_preproc_warn_flag
8391  else
8392    ac_cpp_err=
8393  fi
8394else
8395  ac_cpp_err=yes
8396fi
8397if test -z "$ac_cpp_err"; then
8398  ac_header_preproc=yes
8399else
8400  echo "$as_me: failed program was:" >&5
8401sed 's/^/| /' conftest.$ac_ext >&5
8402
8403  ac_header_preproc=yes
8404fi
8405rm -f conftest.err conftest.$ac_ext
8406echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8407echo "${ECHO_T}$ac_header_preproc" >&6
8408
8409# So?  What about this header?
8410case $ac_header_compiler:$ac_header_preproc in
8411  yes:yes )
8412    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8413echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8414    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8415echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8416    (
8417      cat <<\_ASBOX
8418## ------------------------------------ ##
8419## Report this to bug-autoconf@gnu.org. ##
8420## ------------------------------------ ##
8421_ASBOX
8422    ) |
8423      sed "s/^/$as_me: WARNING:     /" >&2
8424    ;;
8425  yes:yes )
8426    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8427echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8428    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8429echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8430    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8431echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8432    (
8433      cat <<\_ASBOX
8434## ------------------------------------ ##
8435## Report this to bug-autoconf@gnu.org. ##
8436## ------------------------------------ ##
8437_ASBOX
8438    ) |
8439      sed "s/^/$as_me: WARNING:     /" >&2
8440    ;;
8441esac
8442echo "$as_me:$LINENO: checking for $ac_header" >&5
8443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8444if eval "test \"\${$as_ac_Header+set}\" = set"; then
8445  echo $ECHO_N "(cached) $ECHO_C" >&6
8446else
8447  eval "$as_ac_Header=$ac_header_preproc"
8448fi
8449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8451
8452fi
8453if test `eval echo '${'$as_ac_Header'}'` = yes; then
8454  cat >>confdefs.h <<_ACEOF
8455#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8456_ACEOF
8457
8458fi
8459
8460done
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
8484geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
8485strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
8486do
8487as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8488echo "$as_me:$LINENO: checking for $ac_func" >&5
8489echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8490if eval "test \"\${$as_ac_var+set}\" = set"; then
8491  echo $ECHO_N "(cached) $ECHO_C" >&6
8492else
8493  cat >conftest.$ac_ext <<_ACEOF
8494#line $LINENO "configure"
8495/* confdefs.h.  */
8496_ACEOF
8497cat confdefs.h >>conftest.$ac_ext
8498cat >>conftest.$ac_ext <<_ACEOF
8499/* end confdefs.h.  */
8500/* System header to define __stub macros and hopefully few prototypes,
8501    which can conflict with char $ac_func (); below.
8502    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8503    <limits.h> exists even on freestanding compilers.  */
8504#ifdef __STDC__
8505# include <limits.h>
8506#else
8507# include <assert.h>
8508#endif
8509/* Override any gcc2 internal prototype to avoid an error.  */
8510#ifdef __cplusplus
8511extern "C"
8512{
8513#endif
8514/* We use char because int might match the return type of a gcc2
8515   builtin and then its argument prototype would still apply.  */
8516char $ac_func ();
8517/* The GNU C library defines this for functions which it implements
8518    to always fail with ENOSYS.  Some functions are actually named
8519    something starting with __ and the normal name is an alias.  */
8520#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8521choke me
8522#else
8523char (*f) () = $ac_func;
8524#endif
8525#ifdef __cplusplus
8526}
8527#endif
8528
8529int
8530main ()
8531{
8532return f != $ac_func;
8533  ;
8534  return 0;
8535}
8536_ACEOF
8537rm -f conftest.$ac_objext conftest$ac_exeext
8538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8539  (eval $ac_link) 2>&5
8540  ac_status=$?
8541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542  (exit $ac_status); } &&
8543         { ac_try='test -s conftest$ac_exeext'
8544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545  (eval $ac_try) 2>&5
8546  ac_status=$?
8547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548  (exit $ac_status); }; }; then
8549  eval "$as_ac_var=yes"
8550else
8551  echo "$as_me: failed program was:" >&5
8552sed 's/^/| /' conftest.$ac_ext >&5
8553
8554eval "$as_ac_var=yes"
8555fi
8556rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8557fi
8558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8559echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8560if test `eval echo '${'$as_ac_var'}'` = yes; then
8561  cat >>confdefs.h <<_ACEOF
8562#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8563_ACEOF
8564
8565fi
8566done
8567
8568
8569
8570
8571  if test "$am_cv_func_iconv" = yes; then
8572    echo "$as_me:$LINENO: checking for iconv declaration" >&5
8573echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8574    if test "${am_cv_proto_iconv+set}" = set; then
8575  echo $ECHO_N "(cached) $ECHO_C" >&6
8576else
8577
8578      cat >conftest.$ac_ext <<_ACEOF
8579#line $LINENO "configure"
8580/* confdefs.h.  */
8581_ACEOF
8582cat confdefs.h >>conftest.$ac_ext
8583cat >>conftest.$ac_ext <<_ACEOF
8584/* end confdefs.h.  */
8585
8586#include <stdlib.h>
8587#include <iconv.h>
8588extern
8589#ifdef __cplusplus
8590"C"
8591#endif
8592#if defined(__STDC__) || defined(__cplusplus)
8593size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8594#else
8595size_t iconv();
8596#endif
8597
8598int
8599main ()
8600{
8601
8602  ;
8603  return 0;
8604}
8605_ACEOF
8606rm -f conftest.$ac_objext
8607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8608  (eval $ac_compile) 2>&5
8609  ac_status=$?
8610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611  (exit $ac_status); } &&
8612         { ac_try='test -s conftest.$ac_objext'
8613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614  (eval $ac_try) 2>&5
8615  ac_status=$?
8616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617  (exit $ac_status); }; }; then
8618  am_cv_proto_iconv_arg1=""
8619else
8620  echo "$as_me: failed program was:" >&5
8621sed 's/^/| /' conftest.$ac_ext >&5
8622
8623am_cv_proto_iconv_arg1="const"
8624fi
8625rm -f conftest.$ac_objext conftest.$ac_ext
8626      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8627fi
8628
8629    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8630    echo "$as_me:$LINENO: result: ${ac_t:-
8631         }$am_cv_proto_iconv" >&5
8632echo "${ECHO_T}${ac_t:-
8633         }$am_cv_proto_iconv" >&6
8634
8635cat >>confdefs.h <<_ACEOF
8636#define ICONV_CONST $am_cv_proto_iconv_arg1
8637_ACEOF
8638
8639  fi
8640
8641
8642  echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8643echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8644if test "${am_cv_langinfo_codeset+set}" = set; then
8645  echo $ECHO_N "(cached) $ECHO_C" >&6
8646else
8647  cat >conftest.$ac_ext <<_ACEOF
8648#line $LINENO "configure"
8649/* confdefs.h.  */
8650_ACEOF
8651cat confdefs.h >>conftest.$ac_ext
8652cat >>conftest.$ac_ext <<_ACEOF
8653/* end confdefs.h.  */
8654#include <langinfo.h>
8655int
8656main ()
8657{
8658char* cs = nl_langinfo(CODESET);
8659  ;
8660  return 0;
8661}
8662_ACEOF
8663rm -f conftest.$ac_objext conftest$ac_exeext
8664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8665  (eval $ac_link) 2>&5
8666  ac_status=$?
8667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668  (exit $ac_status); } &&
8669         { ac_try='test -s conftest$ac_exeext'
8670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671  (eval $ac_try) 2>&5
8672  ac_status=$?
8673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674  (exit $ac_status); }; }; then
8675  am_cv_langinfo_codeset=yes
8676else
8677  echo "$as_me: failed program was:" >&5
8678sed 's/^/| /' conftest.$ac_ext >&5
8679
8680am_cv_langinfo_codeset=yes
8681fi
8682rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8683
8684fi
8685echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
8686echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8687  if test $am_cv_langinfo_codeset = yes; then
8688
8689cat >>confdefs.h <<\_ACEOF
8690#define HAVE_LANGINFO_CODESET 1
8691_ACEOF
8692
8693  fi
8694
8695  if test $ac_cv_header_locale_h = yes; then
8696    echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8697echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8698if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8699  echo $ECHO_N "(cached) $ECHO_C" >&6
8700else
8701  cat >conftest.$ac_ext <<_ACEOF
8702#line $LINENO "configure"
8703/* confdefs.h.  */
8704_ACEOF
8705cat confdefs.h >>conftest.$ac_ext
8706cat >>conftest.$ac_ext <<_ACEOF
8707/* end confdefs.h.  */
8708#include <locale.h>
8709int
8710main ()
8711{
8712return LC_MESSAGES
8713  ;
8714  return 0;
8715}
8716_ACEOF
8717rm -f conftest.$ac_objext conftest$ac_exeext
8718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8719  (eval $ac_link) 2>&5
8720  ac_status=$?
8721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722  (exit $ac_status); } &&
8723         { ac_try='test -s conftest$ac_exeext'
8724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725  (eval $ac_try) 2>&5
8726  ac_status=$?
8727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728  (exit $ac_status); }; }; then
8729  am_cv_val_LC_MESSAGES=yes
8730else
8731  echo "$as_me: failed program was:" >&5
8732sed 's/^/| /' conftest.$ac_ext >&5
8733
8734am_cv_val_LC_MESSAGES=yes
8735fi
8736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8737fi
8738echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8739echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8740    if test $am_cv_val_LC_MESSAGES = yes; then
8741
8742cat >>confdefs.h <<\_ACEOF
8743#define HAVE_LC_MESSAGES 1
8744_ACEOF
8745
8746    fi
8747  fi
8748
8749                      for ac_prog in bison
8750do
8751  # Extract the first word of "$ac_prog", so it can be a program name with args.
8752set dummy $ac_prog; ac_word=$2
8753echo "$as_me:$LINENO: checking for $ac_word" >&5
8754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8755if test "${ac_cv_prog_INTLBISON+set}" = set; then
8756  echo $ECHO_N "(cached) $ECHO_C" >&6
8757else
8758  if test -n "$INTLBISON"; then
8759  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8760else
8761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762for as_dir in $PATH
8763do
8764  IFS=$as_save_IFS
8765  test -z "$as_dir" && as_dir=.
8766  for ac_exec_ext in '' $ac_executable_extensions; do
8767  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8768    ac_cv_prog_INTLBISON="$ac_prog"
8769    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8770    break 2
8771  fi
8772done
8773done
8774
8775fi
8776fi
8777INTLBISON=$ac_cv_prog_INTLBISON
8778if test -n "$INTLBISON"; then
8779  echo "$as_me:$LINENO: result: $INTLBISON" >&5
8780echo "${ECHO_T}$INTLBISON" >&6
8781else
8782  echo "$as_me:$LINENO: result: yes" >&5
8783echo "${ECHO_T}yes" >&6
8784fi
8785
8786  test -n "$INTLBISON" && break
8787done
8788
8789  if test -z "$INTLBISON"; then
8790    ac_verc_fail=yes
8791  else
8792        echo "$as_me:$LINENO: checking version of bison" >&5
8793echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8794    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8795    case $ac_prog_version in
8796      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8797      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8798         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=yes;;
8799      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8800    esac
8801    echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8802echo "${ECHO_T}$ac_prog_version" >&6
8803  fi
8804  if test $ac_verc_fail = yes; then
8805    INTLBISON=:
8806  fi
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8821echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8822    # Check whether --enable-nls or --disable-nls was given.
8823if test "${enable_nls+set}" = set; then
8824  enableval="$enable_nls"
8825  USE_NLS=$enableval
8826else
8827  USE_NLS=yes
8828fi;
8829  echo "$as_me:$LINENO: result: $USE_NLS" >&5
8830echo "${ECHO_T}$USE_NLS" >&6
8831
8832
8833
8834    BUILD_INCLUDED_LIBINTL=yes
8835    USE_INCLUDED_LIBINTL=yes
8836
8837  LIBINTL=
8838  LTLIBINTL=
8839  POSUB=
8840
8841    if test "$USE_NLS" = "yes"; then
8842    gt_use_preinstalled_gnugettext=yes
8843
8844      echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8845echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8846
8847# Check whether --with-included-gettext or --without-included-gettext was given.
8848if test "${with_included_gettext+set}" = set; then
8849  withval="$with_included_gettext"
8850  nls_cv_force_use_gnu_gettext=$withval
8851else
8852  nls_cv_force_use_gnu_gettext=yes
8853fi;
8854      echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8855echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8856
8857      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8858      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8859
8860
8861
8862
8863
8864
8865        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8866echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8867if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
8868  echo $ECHO_N "(cached) $ECHO_C" >&6
8869else
8870  cat >conftest.$ac_ext <<_ACEOF
8871#line $LINENO "configure"
8872/* confdefs.h.  */
8873_ACEOF
8874cat confdefs.h >>conftest.$ac_ext
8875cat >>conftest.$ac_ext <<_ACEOF
8876/* end confdefs.h.  */
8877#include <libintl.h>
8878extern int _nl_msg_cat_cntr;
8879extern int *_nl_domain_bindings;
8880int
8881main ()
8882{
8883bindtextdomain ("", "");
8884return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8885  ;
8886  return 0;
8887}
8888_ACEOF
8889rm -f conftest.$ac_objext conftest$ac_exeext
8890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8891  (eval $ac_link) 2>&5
8892  ac_status=$?
8893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894  (exit $ac_status); } &&
8895         { ac_try='test -s conftest$ac_exeext'
8896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897  (eval $ac_try) 2>&5
8898  ac_status=$?
8899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900  (exit $ac_status); }; }; then
8901  gt_cv_func_gnugettext1_libc=yes
8902else
8903  echo "$as_me: failed program was:" >&5
8904sed 's/^/| /' conftest.$ac_ext >&5
8905
8906gt_cv_func_gnugettext1_libc=yes
8907fi
8908rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8909fi
8910echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
8911echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
8912
8913        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8914
8915
8916
8917    use_additional=yes
8918
8919  acl_save_prefix="$prefix"
8920  prefix="$acl_final_prefix"
8921  acl_save_exec_prefix="$exec_prefix"
8922  exec_prefix="$acl_final_exec_prefix"
8923
8924    eval additional_includedir=\"$includedir\"
8925    eval additional_libdir=\"$libdir\"
8926
8927  exec_prefix="$acl_save_exec_prefix"
8928  prefix="$acl_save_prefix"
8929
8930
8931# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
8932if test "${with_libintl_prefix+set}" = set; then
8933  withval="$with_libintl_prefix"
8934
8935    if test "X$withval" = "Xno"; then
8936      use_additional=yes
8937    else
8938      if test "X$withval" = "X"; then
8939
8940  acl_save_prefix="$prefix"
8941  prefix="$acl_final_prefix"
8942  acl_save_exec_prefix="$exec_prefix"
8943  exec_prefix="$acl_final_exec_prefix"
8944
8945          eval additional_includedir=\"$includedir\"
8946          eval additional_libdir=\"$libdir\"
8947
8948  exec_prefix="$acl_save_exec_prefix"
8949  prefix="$acl_save_prefix"
8950
8951      else
8952        additional_includedir="$withval/include"
8953        additional_libdir="$withval/lib"
8954      fi
8955    fi
8956
8957fi;
8958      LIBINTL=
8959  LTLIBINTL=
8960  INCINTL=
8961  rpathdirs=
8962  ltrpathdirs=
8963  names_already_handled=
8964  names_next_round='intl '
8965  while test -n "$names_next_round"; do
8966    names_this_round="$names_next_round"
8967    names_next_round=
8968    for name in $names_this_round; do
8969      already_handled=
8970      for n in $names_already_handled; do
8971        if test "$n" = "$name"; then
8972          already_handled=yes
8973          break
8974        fi
8975      done
8976      if test -z "$already_handled"; then
8977        names_already_handled="$names_already_handled $name"
8978                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8979        eval value=\"\$HAVE_LIB$uppername\"
8980        if test -n "$value"; then
8981          if test "$value" = yes; then
8982            eval value=\"\$LIB$uppername\"
8983            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8984            eval value=\"\$LTLIB$uppername\"
8985            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8986          else
8987                                    :
8988          fi
8989        else
8990                              found_dir=
8991          found_la=
8992          found_so=
8993          found_a=
8994          if test $use_additional = yes; then
8995            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8996              found_dir="$additional_libdir"
8997              found_so="$additional_libdir/lib$name.$shlibext"
8998              if test -f "$additional_libdir/lib$name.la"; then
8999                found_la="$additional_libdir/lib$name.la"
9000              fi
9001            else
9002              if test -f "$additional_libdir/lib$name.$libext"; then
9003                found_dir="$additional_libdir"
9004                found_a="$additional_libdir/lib$name.$libext"
9005                if test -f "$additional_libdir/lib$name.la"; then
9006                  found_la="$additional_libdir/lib$name.la"
9007                fi
9008              fi
9009            fi
9010          fi
9011          if test "X$found_dir" = "X"; then
9012            for x in $LDFLAGS $LTLIBINTL; do
9013
9014  acl_save_prefix="$prefix"
9015  prefix="$acl_final_prefix"
9016  acl_save_exec_prefix="$exec_prefix"
9017  exec_prefix="$acl_final_exec_prefix"
9018  eval x=\"$x\"
9019  exec_prefix="$acl_save_exec_prefix"
9020  prefix="$acl_save_prefix"
9021
9022              case "$x" in
9023                -L*)
9024                  dir=`echo "X$x" | sed -e 's/^X-L//'`
9025                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9026                    found_dir="$dir"
9027                    found_so="$dir/lib$name.$shlibext"
9028                    if test -f "$dir/lib$name.la"; then
9029                      found_la="$dir/lib$name.la"
9030                    fi
9031                  else
9032                    if test -f "$dir/lib$name.$libext"; then
9033                      found_dir="$dir"
9034                      found_a="$dir/lib$name.$libext"
9035                      if test -f "$dir/lib$name.la"; then
9036                        found_la="$dir/lib$name.la"
9037                      fi
9038                    fi
9039                  fi
9040                  ;;
9041              esac
9042              if test "X$found_dir" != "X"; then
9043                break
9044              fi
9045            done
9046          fi
9047          if test "X$found_dir" != "X"; then
9048                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9049            if test "X$found_so" != "X"; then
9050                                                        if test "X$found_dir" = "X/usr/lib"; then
9051                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9052              else
9053                                                                                haveit=
9054                for x in $ltrpathdirs; do
9055                  if test "X$x" = "X$found_dir"; then
9056                    haveit=yes
9057                    break
9058                  fi
9059                done
9060                if test -z "$haveit"; then
9061                  ltrpathdirs="$ltrpathdirs $found_dir"
9062                fi
9063                                if test "$hardcode_direct" = yes; then
9064                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9065                else
9066                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = yes; then
9067                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9068                                                            haveit=
9069                    for x in $rpathdirs; do
9070                      if test "X$x" = "X$found_dir"; then
9071                        haveit=yes
9072                        break
9073                      fi
9074                    done
9075                    if test -z "$haveit"; then
9076                      rpathdirs="$rpathdirs $found_dir"
9077                    fi
9078                  else
9079                                                                                haveit=
9080                    for x in $LDFLAGS $LIBINTL; do
9081
9082  acl_save_prefix="$prefix"
9083  prefix="$acl_final_prefix"
9084  acl_save_exec_prefix="$exec_prefix"
9085  exec_prefix="$acl_final_exec_prefix"
9086  eval x=\"$x\"
9087  exec_prefix="$acl_save_exec_prefix"
9088  prefix="$acl_save_prefix"
9089
9090                      if test "X$x" = "X-L$found_dir"; then
9091                        haveit=yes
9092                        break
9093                      fi
9094                    done
9095                    if test -z "$haveit"; then
9096                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9097                    fi
9098                    if test "$hardcode_minus_L" != yes; then
9099                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9100                    else
9101                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9102                    fi
9103                  fi
9104                fi
9105              fi
9106            else
9107              if test "X$found_a" != "X"; then
9108                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9109              else
9110                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9111              fi
9112            fi
9113                        additional_includedir=
9114            case "$found_dir" in
9115              */lib | */lib/)
9116                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9117                additional_includedir="$basedir/include"
9118                ;;
9119            esac
9120            if test "X$additional_includedir" != "X"; then
9121                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
9122                haveit=
9123                if test "X$additional_includedir" = "X/usr/local/include"; then
9124                  if test -n "$GCC"; then
9125                    case $host_os in
9126                      linux*) haveit=yes;;
9127                    esac
9128                  fi
9129                fi
9130                if test -z "$haveit"; then
9131                  for x in $CPPFLAGS $INCINTL; do
9132
9133  acl_save_prefix="$prefix"
9134  prefix="$acl_final_prefix"
9135  acl_save_exec_prefix="$exec_prefix"
9136  exec_prefix="$acl_final_exec_prefix"
9137  eval x=\"$x\"
9138  exec_prefix="$acl_save_exec_prefix"
9139  prefix="$acl_save_prefix"
9140
9141                    if test "X$x" = "X-I$additional_includedir"; then
9142                      haveit=yes
9143                      break
9144                    fi
9145                  done
9146                  if test -z "$haveit"; then
9147                    if test -d "$additional_includedir"; then
9148                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9149                    fi
9150                  fi
9151                fi
9152              fi
9153            fi
9154                        if test -n "$found_la"; then
9155                                                        save_libdir="$libdir"
9156              case "$found_la" in
9157                */* | *\\*) . "$found_la" ;;
9158                *) . "./$found_la" ;;
9159              esac
9160              libdir="$save_libdir"
9161                            for dep in $dependency_libs; do
9162                case "$dep" in
9163                  -L*)
9164                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9165                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
9166                      haveit=
9167                      if test "X$additional_libdir" = "X/usr/local/lib"; then
9168                        if test -n "$GCC"; then
9169                          case $host_os in
9170                            linux*) haveit=yes;;
9171                          esac
9172                        fi
9173                      fi
9174                      if test -z "$haveit"; then
9175                        haveit=
9176                        for x in $LDFLAGS $LIBINTL; do
9177
9178  acl_save_prefix="$prefix"
9179  prefix="$acl_final_prefix"
9180  acl_save_exec_prefix="$exec_prefix"
9181  exec_prefix="$acl_final_exec_prefix"
9182  eval x=\"$x\"
9183  exec_prefix="$acl_save_exec_prefix"
9184  prefix="$acl_save_prefix"
9185
9186                          if test "X$x" = "X-L$additional_libdir"; then
9187                            haveit=yes
9188                            break
9189                          fi
9190                        done
9191                        if test -z "$haveit"; then
9192                          if test -d "$additional_libdir"; then
9193                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9194                          fi
9195                        fi
9196                        haveit=
9197                        for x in $LDFLAGS $LTLIBINTL; do
9198
9199  acl_save_prefix="$prefix"
9200  prefix="$acl_final_prefix"
9201  acl_save_exec_prefix="$exec_prefix"
9202  exec_prefix="$acl_final_exec_prefix"
9203  eval x=\"$x\"
9204  exec_prefix="$acl_save_exec_prefix"
9205  prefix="$acl_save_prefix"
9206
9207                          if test "X$x" = "X-L$additional_libdir"; then
9208                            haveit=yes
9209                            break
9210                          fi
9211                        done
9212                        if test -z "$haveit"; then
9213                          if test -d "$additional_libdir"; then
9214                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9215                          fi
9216                        fi
9217                      fi
9218                    fi
9219                    ;;
9220                  -R*)
9221                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
9222                                                            haveit=
9223                    for x in $rpathdirs; do
9224                      if test "X$x" = "X$dir"; then
9225                        haveit=yes
9226                        break
9227                      fi
9228                    done
9229                    if test -z "$haveit"; then
9230                      rpathdirs="$rpathdirs $dir"
9231                    fi
9232                                                            haveit=
9233                    for x in $ltrpathdirs; do
9234                      if test "X$x" = "X$dir"; then
9235                        haveit=yes
9236                        break
9237                      fi
9238                    done
9239                    if test -z "$haveit"; then
9240                      ltrpathdirs="$ltrpathdirs $dir"
9241                    fi
9242                    ;;
9243                  -l*)
9244                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9245                    ;;
9246                  *.la)
9247                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9248                    ;;
9249                  *)
9250                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9251                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9252                    ;;
9253                esac
9254              done
9255            fi
9256          else
9257                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9258            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9259          fi
9260        fi
9261      fi
9262    done
9263  done
9264  if test "X$rpathdirs" != "X"; then
9265    if test -n "$hardcode_libdir_separator"; then
9266                        alldirs=
9267      for found_dir in $rpathdirs; do
9268        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9269      done
9270            acl_save_libdir="$libdir"
9271      libdir="$alldirs"
9272      eval flag=\"$hardcode_libdir_flag_spec\"
9273      libdir="$acl_save_libdir"
9274      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9275    else
9276            for found_dir in $rpathdirs; do
9277        acl_save_libdir="$libdir"
9278        libdir="$found_dir"
9279        eval flag=\"$hardcode_libdir_flag_spec\"
9280        libdir="$acl_save_libdir"
9281        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9282      done
9283    fi
9284  fi
9285  if test "X$ltrpathdirs" != "X"; then
9286            for found_dir in $ltrpathdirs; do
9287      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9288    done
9289  fi
9290
9291          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9292echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9293if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9294  echo $ECHO_N "(cached) $ECHO_C" >&6
9295else
9296  gt_save_CPPFLAGS="$CPPFLAGS"
9297            CPPFLAGS="$CPPFLAGS $INCINTL"
9298            gt_save_LIBS="$LIBS"
9299            LIBS="$LIBS $LIBINTL"
9300                        cat >conftest.$ac_ext <<_ACEOF
9301#line $LINENO "configure"
9302/* confdefs.h.  */
9303_ACEOF
9304cat confdefs.h >>conftest.$ac_ext
9305cat >>conftest.$ac_ext <<_ACEOF
9306/* end confdefs.h.  */
9307#include <libintl.h>
9308extern int _nl_msg_cat_cntr;
9309extern
9310#ifdef __cplusplus
9311"C"
9312#endif
9313const char *_nl_expand_alias ();
9314int
9315main ()
9316{
9317bindtextdomain ("", "");
9318return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9319  ;
9320  return 0;
9321}
9322_ACEOF
9323rm -f conftest.$ac_objext conftest$ac_exeext
9324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9325  (eval $ac_link) 2>&5
9326  ac_status=$?
9327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328  (exit $ac_status); } &&
9329         { ac_try='test -s conftest$ac_exeext'
9330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9331  (eval $ac_try) 2>&5
9332  ac_status=$?
9333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334  (exit $ac_status); }; }; then
9335  gt_cv_func_gnugettext1_libintl=yes
9336else
9337  echo "$as_me: failed program was:" >&5
9338sed 's/^/| /' conftest.$ac_ext >&5
9339
9340gt_cv_func_gnugettext1_libintl=yes
9341fi
9342rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9343                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9344              LIBS="$LIBS $LIBICONV"
9345              cat >conftest.$ac_ext <<_ACEOF
9346#line $LINENO "configure"
9347/* confdefs.h.  */
9348_ACEOF
9349cat confdefs.h >>conftest.$ac_ext
9350cat >>conftest.$ac_ext <<_ACEOF
9351/* end confdefs.h.  */
9352#include <libintl.h>
9353extern int _nl_msg_cat_cntr;
9354extern
9355#ifdef __cplusplus
9356"C"
9357#endif
9358const char *_nl_expand_alias ();
9359int
9360main ()
9361{
9362bindtextdomain ("", "");
9363return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9364  ;
9365  return 0;
9366}
9367_ACEOF
9368rm -f conftest.$ac_objext conftest$ac_exeext
9369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9370  (eval $ac_link) 2>&5
9371  ac_status=$?
9372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373  (exit $ac_status); } &&
9374         { ac_try='test -s conftest$ac_exeext'
9375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9376  (eval $ac_try) 2>&5
9377  ac_status=$?
9378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379  (exit $ac_status); }; }; then
9380  LIBINTL="$LIBINTL $LIBICONV"
9381                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9382                gt_cv_func_gnugettext1_libintl=yes
9383
9384else
9385  echo "$as_me: failed program was:" >&5
9386sed 's/^/| /' conftest.$ac_ext >&5
9387
9388fi
9389rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9390            fi
9391            CPPFLAGS="$gt_save_CPPFLAGS"
9392            LIBS="$gt_save_LIBS"
9393fi
9394echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9395echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
9396        fi
9397
9398                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9399           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9400                && test "$PACKAGE" != gettext; }; then
9401          gt_use_preinstalled_gnugettext=yes
9402        else
9403                    LIBINTL=
9404          LTLIBINTL=
9405          INCINTL=
9406        fi
9407
9408
9409        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9410                              nls_cv_use_gnu_gettext=yes
9411        fi
9412      fi
9413
9414      if test "$nls_cv_use_gnu_gettext" = "yes"; then
9415                INTLOBJS="\$(GETTOBJS)"
9416        BUILD_INCLUDED_LIBINTL=yes
9417        USE_INCLUDED_LIBINTL=yes
9418        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9419        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9420        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9421      fi
9422
9423      if test "$gt_use_preinstalled_gnugettext" = "yes" \
9424         || test "$nls_cv_use_gnu_gettext" = "yes"; then
9425                CATOBJEXT=.gmo
9426      fi
9427
9428
9429    if test "$gt_use_preinstalled_gnugettext" = "yes" \
9430       || test "$nls_cv_use_gnu_gettext" = "yes"; then
9431
9432cat >>confdefs.h <<\_ACEOF
9433#define ENABLE_NLS 1
9434_ACEOF
9435
9436    else
9437      USE_NLS=yes
9438    fi
9439  fi
9440
9441  if test "$USE_NLS" = "yes"; then
9442
9443    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9444      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9445        echo "$as_me:$LINENO: checking how to link with libintl" >&5
9446echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9447        echo "$as_me:$LINENO: result: $LIBINTL" >&5
9448echo "${ECHO_T}$LIBINTL" >&6
9449
9450  for element in $INCINTL; do
9451    haveit=
9452    for x in $CPPFLAGS; do
9453
9454  acl_save_prefix="$prefix"
9455  prefix="$acl_final_prefix"
9456  acl_save_exec_prefix="$exec_prefix"
9457  exec_prefix="$acl_final_exec_prefix"
9458  eval x=\"$x\"
9459  exec_prefix="$acl_save_exec_prefix"
9460  prefix="$acl_save_prefix"
9461
9462      if test "X$x" = "X$element"; then
9463        haveit=yes
9464        break
9465      fi
9466    done
9467    if test -z "$haveit"; then
9468      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9469    fi
9470  done
9471
9472      fi
9473
9474
9475cat >>confdefs.h <<\_ACEOF
9476#define HAVE_GETTEXT 1
9477_ACEOF
9478
9479
9480cat >>confdefs.h <<\_ACEOF
9481#define HAVE_DCGETTEXT 1
9482_ACEOF
9483
9484    fi
9485
9486        POSUB=po
9487  fi
9488
9489
9490            if test "$PACKAGE" = gettext; then
9491      BUILD_INCLUDED_LIBINTL=yes
9492    fi
9493
9494
9495
9496
9497
9498
9499        nls_cv_header_intl=
9500    nls_cv_header_libgt=
9501
9502        DATADIRNAME=share
9503
9504
9505        INSTOBJEXT=.mo
9506
9507
9508        GENCAT=gencat
9509
9510
9511        INTL_LIBTOOL_SUFFIX_PREFIX=
9512
9513
9514
9515    INTLLIBS="$LIBINTL"
9516
9517
9518
9519
9520
9521
9522
9523if test "x$GCC" = "xyes"; then
9524  case " $CFLAGS " in
9525  *[\ \	]-Wall[\ \	]*) ;;
9526  *) CFLAGS="$CFLAGS -Wall" ;;
9527  esac
9528fi
9529
9530cardpics_dir=$datadir/cardpics/images
9531cardpics_flag="-DCARDPICS_DIR=\\\"$cardpics_dir/\\\""
9532
9533
9534# Check whether --with-cardpics-dir or --without-cardpics-dir was given.
9535if test "${with_cardpics_dir+set}" = set; then
9536  withval="$with_cardpics_dir"
9537  cardpics_dir=${withval}; cardpics_flag="-DCARDPICS_DIR=\\\"${withval}\\\""
9538fi;
9539
9540
9541
9542
9543
9544mt_gtk_client_dir=$datadir/mt_gtk_client
9545mt_gtk_client_flag="-DDATA_DIR=\\\"$mt_gtk_client_dir/\\\""
9546
9547# Check whether --enable-install or --disable-install was given.
9548if test "${enable_install+set}" = set; then
9549  enableval="$enable_install"
9550  mt_gtk_client_dir=../data; mt_gtk_client_flag="-DDATA_DIR=\\\"../\\\""
9551fi;
9552
9553
9554
9555
9556
9557                                                            ac_config_files="$ac_config_files po/Makefile.in m4/Makefile Makefile src/Makefile data/Makefile mt_gtk_client.spec"
9558cat >confcache <<\_ACEOF
9559# This file is a shell script that caches the results of configure
9560# tests run on this system so they can be shared between configure
9561# scripts and configure runs, see configure's option --config-cache.
9562# It is not useful on other systems.  If it contains results you don't
9563# want to keep, you may remove or edit it.
9564#
9565# config.status only pays attention to the cache file if you give it
9566# the --recheck option to rerun configure.
9567#
9568# `ac_cv_env_foo' variables (set or unset) will be overridden when
9569# loading this file, other *unset* `ac_cv_foo' will be assigned the
9570# following values.
9571
9572_ACEOF
9573
9574# The following way of writing the cache mishandles newlines in values,
9575# but we know of no workaround that is simple, portable, and efficient.
9576# So, don't put newlines in cache variables' values.
9577# Ultrix sh set writes to stderr and can't be redirected directly,
9578# and sets the high bit in the cache file unless we assign to the vars.
9579{
9580  (set) 2>&1 |
9581    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9582    *ac_space=\ *)
9583      # `set' does not quote correctly, so add quotes (double-quote
9584      # substitution turns \\\\ into \\, and sed turns \\ into \).
9585      sed -n \
9586        "s/'/'\\\\''/g;
9587    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9588      ;;
9589    *)
9590      # `set' quotes correctly as required by POSIX, so do not add quotes.
9591      sed -n \
9592        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9593      ;;
9594    esac;
9595} |
9596  sed '
9597     t clear
9598     : clear
9599     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9600     t end
9601     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9602     : end' >>confcache
9603if diff $cache_file confcache >/dev/null 2>&1; then :; else
9604  if test -w $cache_file; then
9605    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9606    cat confcache >$cache_file
9607  else
9608    echo "not updating unwritable cache $cache_file"
9609  fi
9610fi
9611rm -f confcache
9612
9613test "x$prefix" = xNONE && prefix=$ac_default_prefix
9614# Let make expand exec_prefix.
9615test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9616
9617# VPATH may cause trouble with some makes, so we remove $(srcdir),
9618# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9619# trailing colons and then remove the whole line if VPATH becomes empty
9620# (actually we leave an empty line to preserve line numbers).
9621if test "x$srcdir" = x.; then
9622  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
9623s/:*\$(srcdir):*/:/;
9624s/:*\${srcdir}:*/:/;
9625s/:*@srcdir@:*/:/;
9626s/^\([^=]*=[ 	]*\):*/\1/;
9627s/:*$//;
9628s/^[^=]*=[ 	]*$//;
9629}'
9630fi
9631
9632DEFS=-DHAVE_CONFIG_H
9633
9634ac_libobjs=
9635ac_ltlibobjs=
9636for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9637  # 1. Remove the extension, and $U if already installed.
9638  ac_i=`echo "$ac_i" |
9639         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9640  # 2. Add them.
9641  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9642  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9643done
9644LIBOBJS=$ac_libobjs
9645
9646LTLIBOBJS=$ac_ltlibobjs
9647
9648
9649if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9650  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9651Usually this means the macro was only invoked conditionally." >&5
9652echo "$as_me: error: conditional \"AMDEP\" was never defined.
9653Usually this means the macro was only invoked conditionally." >&2;}
9654   { (exit 1); exit 1; }; }
9655fi
9656if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9657  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9658Usually this means the macro was only invoked conditionally." >&5
9659echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9660Usually this means the macro was only invoked conditionally." >&2;}
9661   { (exit 1); exit 1; }; }
9662fi
9663if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9664  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9665Usually this means the macro was only invoked conditionally." >&5
9666echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9667Usually this means the macro was only invoked conditionally." >&2;}
9668   { (exit 1); exit 1; }; }
9669fi
9670
9671: ${CONFIG_STATUS=./config.status}
9672ac_clean_files_save=$ac_clean_files
9673ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9674{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9675echo "$as_me: creating $CONFIG_STATUS" >&6;}
9676cat >$CONFIG_STATUS <<_ACEOF
9677#! $SHELL
9678# Generated by $as_me.
9679# Run this file to recreate the current configuration.
9680# Compiler output produced by configure, useful for debugging
9681# configure, is in config.log if it exists.
9682
9683debug=false
9684ac_cs_recheck=false
9685ac_cs_silent=false
9686SHELL=\${CONFIG_SHELL-$SHELL}
9687_ACEOF
9688
9689cat >>$CONFIG_STATUS <<\_ACEOF
9690## --------------------- ##
9691## M4sh Initialization.  ##
9692## --------------------- ##
9693
9694# Be Bourne compatible
9695if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9696  emulate sh
9697  NULLCMD=:
9698  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9699  # is contrary to our usage.  Disable this feature.
9700  alias -g '${1+"$@"}'='"$@"'
9701elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9702  set -o posix
9703fi
9704
9705# Support unset when possible.
9706if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9707  as_unset=unset
9708else
9709  as_unset=false
9710fi
9711
9712
9713# Work around bugs in pre-3.0 UWIN ksh.
9714$as_unset ENV MAIL MAILPATH
9715PS1='$ '
9716PS2='> '
9717PS4='+ '
9718
9719# NLS nuisances.
9720for as_var in \
9721  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9722  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9723  LC_TELEPHONE LC_TIME
9724do
9725  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9726    eval $as_var=C; export $as_var
9727  else
9728    $as_unset $as_var
9729  fi
9730done
9731
9732# Required to use basename.
9733if expr a : '\(a\)' >/dev/null 2>&1; then
9734  as_expr=expr
9735else
9736  as_expr=false
9737fi
9738
9739if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9740  as_basename=basename
9741else
9742  as_basename=false
9743fi
9744
9745
9746# Name of the executable.
9747as_me=`$as_basename "$0" ||
9748$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9749	 X"$0" : 'X\(//\)$' \| \
9750	 X"$0" : 'X\(/\)$' \| \
9751	 .     : '\(.\)' 2>/dev/null ||
9752echo X/"$0" |
9753    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9754  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
9755  	  /^X\/\(\/\).*/{ s//\1/; q; }
9756  	  s/.*/./; q'`
9757
9758
9759# PATH needs CR, and LINENO needs CR and PATH.
9760# Avoid depending upon Character Ranges.
9761as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9762as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9763as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9764as_cr_digits='0123456789'
9765as_cr_alnum=$as_cr_Letters$as_cr_digits
9766
9767# The user is always right.
9768if test "${PATH_SEPARATOR+set}" != set; then
9769  echo "#! /bin/sh" >conf$$.sh
9770  echo  "exit 0"   >>conf$$.sh
9771  chmod +x conf$$.sh
9772  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9773    PATH_SEPARATOR=';'
9774  else
9775    PATH_SEPARATOR=:
9776  fi
9777  rm -f conf$$.sh
9778fi
9779
9780
9781  as_lineno_1=$LINENO
9782  as_lineno_2=$LINENO
9783  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9784  test "x$as_lineno_1" != "x$as_lineno_2" &&
9785  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9786  # Find who we are.  Look in the path if we contain no path at all
9787  # relative or not.
9788  case $0 in
9789    *[\\/]* ) as_myself=$0 ;;
9790    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9791for as_dir in $PATH
9792do
9793  IFS=$as_save_IFS
9794  test -z "$as_dir" && as_dir=.
9795  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9796done
9797
9798       ;;
9799  esac
9800  # We did not find ourselves, most probably we were run as `sh COMMAND'
9801  # in which case we are not to be found in the path.
9802  if test "x$as_myself" = x; then
9803    as_myself=$0
9804  fi
9805  if test ! -f "$as_myself"; then
9806    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9807echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9808   { (exit 1); exit 1; }; }
9809  fi
9810  case $CONFIG_SHELL in
9811  '')
9812    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9814do
9815  IFS=$as_save_IFS
9816  test -z "$as_dir" && as_dir=.
9817  for as_base in sh bash ksh sh5; do
9818	 case $as_dir in
9819	 /*)
9820	   if ("$as_dir/$as_base" -c '
9821  as_lineno_1=$LINENO
9822  as_lineno_2=$LINENO
9823  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9824  test "x$as_lineno_1" != "x$as_lineno_2" &&
9825  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9826	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9827	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9828	     CONFIG_SHELL=$as_dir/$as_base
9829	     export CONFIG_SHELL
9830	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9831	   fi;;
9832	 esac
9833       done
9834done
9835;;
9836  esac
9837
9838  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9839  # uniformly replaced by the line number.  The first 'sed' inserts a
9840  # line-number line before each line; the second 'sed' does the real
9841  # work.  The second script uses 'N' to pair each line-number line
9842  # with the numbered line, and appends trailing '-' during
9843  # substitution so that $LINENO is not a special case at line end.
9844  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9845  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9846  sed '=' <$as_myself |
9847    sed '
9848      N
9849      s,$,-,
9850      : loop
9851      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9852      t loop
9853      s,-$,,
9854      s,^['$as_cr_digits']*\n,,
9855    ' >$as_me.lineno &&
9856  chmod +x $as_me.lineno ||
9857    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9858echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9859   { (exit 1); exit 1; }; }
9860
9861  # Don't try to exec as it changes $[0], causing all sort of problems
9862  # (the dirname of $[0] is not the place where we might find the
9863  # original and so on.  Autoconf is especially sensible to this).
9864  . ./$as_me.lineno
9865  # Exit status is that of the last command.
9866  exit
9867}
9868
9869
9870case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9871  *c*,-n*) ECHO_N= ECHO_C='
9872' ECHO_T='	' ;;
9873  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9874  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9875esac
9876
9877if expr a : '\(a\)' >/dev/null 2>&1; then
9878  as_expr=expr
9879else
9880  as_expr=false
9881fi
9882
9883rm -f conf$$ conf$$.exe conf$$.file
9884echo >conf$$.file
9885if ln -s conf$$.file conf$$ 2>/dev/null; then
9886  # We could just check for DJGPP; but this test a) works b) is more generic
9887  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9888  if test -f conf$$.exe; then
9889    # Don't use ln at all; we don't have any links
9890    as_ln_s='cp -p'
9891  else
9892    as_ln_s='ln -s'
9893  fi
9894elif ln conf$$.file conf$$ 2>/dev/null; then
9895  as_ln_s=ln
9896else
9897  as_ln_s='cp -p'
9898fi
9899rm -f conf$$ conf$$.exe conf$$.file
9900
9901if mkdir -p . 2>/dev/null; then
9902  as_mkdir_p=:
9903else
9904  as_mkdir_p=false
9905fi
9906
9907as_executable_p="test -f"
9908
9909# Sed expression to map a string onto a valid CPP name.
9910as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9911
9912# Sed expression to map a string onto a valid variable name.
9913as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9914
9915
9916# IFS
9917# We need space, tab and new line, in precisely that order.
9918as_nl='
9919'
9920IFS=" 	$as_nl"
9921
9922# CDPATH.
9923$as_unset CDPATH
9924
9925exec 6>&1
9926
9927# Open the log real soon, to keep \$[0] and so on meaningful, and to
9928# report actual input values of CONFIG_FILES etc. instead of their
9929# values after options handling.  Logging --version etc. is OK.
9930exec 5>>config.log
9931{
9932  echo
9933  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9934## Running $as_me. ##
9935_ASBOX
9936} >&5
9937cat >&5 <<_CSEOF
9938
9939This file was extended by $as_me, which was
9940generated by GNU Autoconf 2.57.  Invocation command line was
9941
9942  CONFIG_FILES    = $CONFIG_FILES
9943  CONFIG_HEADERS  = $CONFIG_HEADERS
9944  CONFIG_LINKS    = $CONFIG_LINKS
9945  CONFIG_COMMANDS = $CONFIG_COMMANDS
9946  $ $0 $@
9947
9948_CSEOF
9949echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9950echo >&5
9951_ACEOF
9952
9953# Files that config.status was made for.
9954if test -n "$ac_config_files"; then
9955  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9956fi
9957
9958if test -n "$ac_config_headers"; then
9959  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9960fi
9961
9962if test -n "$ac_config_links"; then
9963  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9964fi
9965
9966if test -n "$ac_config_commands"; then
9967  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9968fi
9969
9970cat >>$CONFIG_STATUS <<\_ACEOF
9971
9972ac_cs_usage="\
9973\`$as_me' instantiates files from templates according to the
9974current configuration.
9975
9976Usage: $0 [OPTIONS] [FILE]...
9977
9978  -h, --help       print this help, then exit
9979  -V, --version    print version number, then exit
9980  -q, --quiet      do not print progress messages
9981  -d, --debug      don't remove temporary files
9982      --recheck    update $as_me by reconfiguring in the same conditions
9983  --file=FILE[:TEMPLATE]
9984                   instantiate the configuration file FILE
9985  --header=FILE[:TEMPLATE]
9986                   instantiate the configuration header FILE
9987
9988Configuration files:
9989$config_files
9990
9991Configuration headers:
9992$config_headers
9993
9994Configuration commands:
9995$config_commands
9996
9997Report bugs to <bug-autoconf@gnu.org>."
9998_ACEOF
9999
10000cat >>$CONFIG_STATUS <<_ACEOF
10001ac_cs_version="\\
10002config.status
10003configured by $0, generated by GNU Autoconf 2.57,
10004  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10005
10006Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10007Free Software Foundation, Inc.
10008This config.status script is free software; the Free Software Foundation
10009gives unlimited permission to copy, distribute and modify it."
10010srcdir=$srcdir
10011INSTALL="$INSTALL"
10012_ACEOF
10013
10014cat >>$CONFIG_STATUS <<\_ACEOF
10015# If no file are specified by the user, then we need to provide default
10016# value.  By we need to know if files were specified by the user.
10017ac_need_defaults=:
10018while test $# != 0
10019do
10020  case $1 in
10021  --*=*)
10022    ac_option=`expr "x$1" : 'x\([^=]*\)='`
10023    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10024    ac_shift=:
10025    ;;
10026  -*)
10027    ac_option=$1
10028    ac_optarg=$2
10029    ac_shift=shift
10030    ;;
10031  *) # This is not an option, so the user has probably given explicit
10032     # arguments.
10033     ac_option=$1
10034     ac_need_defaults=false;;
10035  esac
10036
10037  case $ac_option in
10038  # Handling of the options.
10039_ACEOF
10040cat >>$CONFIG_STATUS <<\_ACEOF
10041  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10042    ac_cs_recheck=: ;;
10043  --version | --vers* | -V )
10044    echo "$ac_cs_version"; exit 0 ;;
10045  --he | --h)
10046    # Conflict between --help and --header
10047    { { echo "$as_me:$LINENO: error: ambiguous option: $1
10048Try \`$0 --help' for more information." >&5
10049echo "$as_me: error: ambiguous option: $1
10050Try \`$0 --help' for more information." >&2;}
10051   { (exit 1); exit 1; }; };;
10052  --help | --hel | -h )
10053    echo "$ac_cs_usage"; exit 0 ;;
10054  --debug | --d* | -d )
10055    debug=: ;;
10056  --file | --fil | --fi | --f )
10057    $ac_shift
10058    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10059    ac_need_defaults=false;;
10060  --header | --heade | --head | --hea )
10061    $ac_shift
10062    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10063    ac_need_defaults=false;;
10064  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10065  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10066    ac_cs_silent=: ;;
10067
10068  # This is an error.
10069  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10070Try \`$0 --help' for more information." >&5
10071echo "$as_me: error: unrecognized option: $1
10072Try \`$0 --help' for more information." >&2;}
10073   { (exit 1); exit 1; }; } ;;
10074
10075  *) ac_config_targets="$ac_config_targets $1" ;;
10076
10077  esac
10078  shift
10079done
10080
10081ac_configure_extra_args=
10082
10083if $ac_cs_silent; then
10084  exec 6>/dev/null
10085  ac_configure_extra_args="$ac_configure_extra_args --silent"
10086fi
10087
10088_ACEOF
10089cat >>$CONFIG_STATUS <<_ACEOF
10090if \$ac_cs_recheck; then
10091  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --yes-create --yes-recursion" >&6
10092  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --yes-create --yes-recursion
10093fi
10094
10095_ACEOF
10096
10097cat >>$CONFIG_STATUS <<_ACEOF
10098#
10099# INIT-COMMANDS section.
10100#
10101
10102AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10103# Capture the value of obsolete $ALL_LINGUAS because we need it to compute
10104    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
10105    # from automake.
10106    eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
10107    # Capture the value of LINGUAS because we need it to compute CATALOGS.
10108    LINGUAS="${LINGUAS-%UNSET%}"
10109
10110
10111_ACEOF
10112
10113
10114
10115cat >>$CONFIG_STATUS <<\_ACEOF
10116for ac_config_target in $ac_config_targets
10117do
10118  case "$ac_config_target" in
10119  # Handling of arguments.
10120  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10121  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
10122  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10123  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10124  "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
10125  "mt_gtk_client.spec" ) CONFIG_FILES="$CONFIG_FILES mt_gtk_client.spec" ;;
10126  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10127  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10128  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10129  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10130echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10131   { (exit 1); exit 1; }; };;
10132  esac
10133done
10134
10135# If the user did not use the arguments to specify the items to instantiate,
10136# then the envvar interface is used.  Set only those that are not.
10137# We use the long form for the default assignment because of an extremely
10138# bizarre bug on SunOS 4.1.3.
10139if $ac_need_defaults; then
10140  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10141  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10142  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10143fi
10144
10145# Have a temporary directory for convenience.  Make it in the build tree
10146# simply because there is no reason to put it here, and in addition,
10147# creating and moving files from /tmp can sometimes cause problems.
10148# Create a temporary directory, and hook for its removal unless debugging.
10149$debug ||
10150{
10151  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10152  trap '{ (exit 1); exit 1; }' 1 2 13 15
10153}
10154
10155# Create a (secure) tmp directory for tmp files.
10156
10157{
10158  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10159  test -n "$tmp" && test -d "$tmp"
10160}  ||
10161{
10162  tmp=./confstat$$-$RANDOM
10163  (umask 077 && mkdir $tmp)
10164} ||
10165{
10166   echo "$me: cannot create a temporary directory in ." >&2
10167   { (exit 1); exit 1; }
10168}
10169
10170_ACEOF
10171
10172cat >>$CONFIG_STATUS <<_ACEOF
10173
10174#
10175# CONFIG_FILES section.
10176#
10177
10178# No need to generate the scripts if there are no CONFIG_FILES.
10179# This happens for instance when ./config.status config.h
10180if test -n "\$CONFIG_FILES"; then
10181  # Protect against being on the right side of a sed subst in config.status.
10182  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10183   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10184s,@SHELL@,$SHELL,;t t
10185s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10186s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10187s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10188s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10189s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10190s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10191s,@exec_prefix@,$exec_prefix,;t t
10192s,@prefix@,$prefix,;t t
10193s,@program_transform_name@,$program_transform_name,;t t
10194s,@bindir@,$bindir,;t t
10195s,@sbindir@,$sbindir,;t t
10196s,@libexecdir@,$libexecdir,;t t
10197s,@datadir@,$datadir,;t t
10198s,@sysconfdir@,$sysconfdir,;t t
10199s,@sharedstatedir@,$sharedstatedir,;t t
10200s,@localstatedir@,$localstatedir,;t t
10201s,@libdir@,$libdir,;t t
10202s,@includedir@,$includedir,;t t
10203s,@oldincludedir@,$oldincludedir,;t t
10204s,@infodir@,$infodir,;t t
10205s,@mandir@,$mandir,;t t
10206s,@build_alias@,$build_alias,;t t
10207s,@host_alias@,$host_alias,;t t
10208s,@target_alias@,$target_alias,;t t
10209s,@DEFS@,$DEFS,;t t
10210s,@ECHO_C@,$ECHO_C,;t t
10211s,@ECHO_N@,$ECHO_N,;t t
10212s,@ECHO_T@,$ECHO_T,;t t
10213s,@LIBS@,$LIBS,;t t
10214s,@build@,$build,;t t
10215s,@build_cpu@,$build_cpu,;t t
10216s,@build_vendor@,$build_vendor,;t t
10217s,@build_os@,$build_os,;t t
10218s,@host@,$host,;t t
10219s,@host_cpu@,$host_cpu,;t t
10220s,@host_vendor@,$host_vendor,;t t
10221s,@host_os@,$host_os,;t t
10222s,@target@,$target,;t t
10223s,@target_cpu@,$target_cpu,;t t
10224s,@target_vendor@,$target_vendor,;t t
10225s,@target_os@,$target_os,;t t
10226s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10227s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10228s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10229s,@CYGPATH_W@,$CYGPATH_W,;t t
10230s,@PACKAGE@,$PACKAGE,;t t
10231s,@VERSION@,$VERSION,;t t
10232s,@ACLOCAL@,$ACLOCAL,;t t
10233s,@AUTOCONF@,$AUTOCONF,;t t
10234s,@AUTOMAKE@,$AUTOMAKE,;t t
10235s,@AUTOHEADER@,$AUTOHEADER,;t t
10236s,@MAKEINFO@,$MAKEINFO,;t t
10237s,@AMTAR@,$AMTAR,;t t
10238s,@install_sh@,$install_sh,;t t
10239s,@STRIP@,$STRIP,;t t
10240s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10241s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10242s,@AWK@,$AWK,;t t
10243s,@SET_MAKE@,$SET_MAKE,;t t
10244s,@CC@,$CC,;t t
10245s,@CFLAGS@,$CFLAGS,;t t
10246s,@LDFLAGS@,$LDFLAGS,;t t
10247s,@CPPFLAGS@,$CPPFLAGS,;t t
10248s,@ac_ct_CC@,$ac_ct_CC,;t t
10249s,@EXEEXT@,$EXEEXT,;t t
10250s,@OBJEXT@,$OBJEXT,;t t
10251s,@DEPDIR@,$DEPDIR,;t t
10252s,@am__include@,$am__include,;t t
10253s,@am__quote@,$am__quote,;t t
10254s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10255s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10256s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10257s,@CCDEPMODE@,$CCDEPMODE,;t t
10258s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10259s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10260s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10261s,@MSGFMT@,$MSGFMT,;t t
10262s,@GMSGFMT@,$GMSGFMT,;t t
10263s,@XGETTEXT@,$XGETTEXT,;t t
10264s,@MSGMERGE@,$MSGMERGE,;t t
10265s,@USE_NLS@,$USE_NLS,;t t
10266s,@LIBICONV@,$LIBICONV,;t t
10267s,@LTLIBICONV@,$LTLIBICONV,;t t
10268s,@INTLLIBS@,$INTLLIBS,;t t
10269s,@LIBINTL@,$LIBINTL,;t t
10270s,@LTLIBINTL@,$LTLIBINTL,;t t
10271s,@POSUB@,$POSUB,;t t
10272s,@PKG_CONFIG@,$PKG_CONFIG,;t t
10273s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
10274s,@GLIB_LIBS@,$GLIB_LIBS,;t t
10275s,@CPP@,$CPP,;t t
10276s,@EGREP@,$EGREP,;t t
10277s,@LIBMT_CFLAGS@,$LIBMT_CFLAGS,;t t
10278s,@LIBMT_LIBS@,$LIBMT_LIBS,;t t
10279s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
10280s,@RANLIB@,$RANLIB,;t t
10281s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10282s,@ALLOCA@,$ALLOCA,;t t
10283s,@GLIBC21@,$GLIBC21,;t t
10284s,@INTLBISON@,$INTLBISON,;t t
10285s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
10286s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10287s,@CATOBJEXT@,$CATOBJEXT,;t t
10288s,@INTLOBJS@,$INTLOBJS,;t t
10289s,@DATADIRNAME@,$DATADIRNAME,;t t
10290s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10291s,@GENCAT@,$GENCAT,;t t
10292s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
10293s,@cardpics_flag@,$cardpics_flag,;t t
10294s,@cardpics_dir@,$cardpics_dir,;t t
10295s,@mt_gtk_client_flag@,$mt_gtk_client_flag,;t t
10296s,@mt_gtk_client_dir@,$mt_gtk_client_dir,;t t
10297s,@LIBOBJS@,$LIBOBJS,;t t
10298s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10299CEOF
10300
10301_ACEOF
10302
10303  cat >>$CONFIG_STATUS <<\_ACEOF
10304  # Split the substitutions into bite-sized pieces for seds with
10305  # small command number limits, like on Digital OSF/1 and HP-UX.
10306  ac_max_sed_lines=48
10307  ac_sed_frag=1 # Number of current file.
10308  ac_beg=1 # First line for current file.
10309  ac_end=$ac_max_sed_lines # Line after last line for current file.
10310  ac_more_lines=:
10311  ac_sed_cmds=
10312  while $ac_more_lines; do
10313    if test $ac_beg -gt 1; then
10314      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10315    else
10316      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10317    fi
10318    if test ! -s $tmp/subs.frag; then
10319      ac_more_lines=false
10320    else
10321      # The purpose of the label and of the branching condition is to
10322      # speed up the sed processing (if there are no `@' at all, there
10323      # is no need to browse any of the substitutions).
10324      # These are the two extra sed commands mentioned above.
10325      (echo ':t
10326  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10327      if test -z "$ac_sed_cmds"; then
10328  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10329      else
10330  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10331      fi
10332      ac_sed_frag=`expr $ac_sed_frag + 1`
10333      ac_beg=$ac_end
10334      ac_end=`expr $ac_end + $ac_max_sed_lines`
10335    fi
10336  done
10337  if test -z "$ac_sed_cmds"; then
10338    ac_sed_cmds=cat
10339  fi
10340fi # test -n "$CONFIG_FILES"
10341
10342_ACEOF
10343cat >>$CONFIG_STATUS <<\_ACEOF
10344for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10345  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10346  case $ac_file in
10347  - | *:- | *:-:* ) # input from stdin
10348        cat >$tmp/stdin
10349        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10350        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10351  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10352        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10353  * )   ac_file_in=$ac_file.in ;;
10354  esac
10355
10356  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10357  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10358$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10359         X"$ac_file" : 'X\(//\)[^/]' \| \
10360         X"$ac_file" : 'X\(//\)$' \| \
10361         X"$ac_file" : 'X\(/\)' \| \
10362         .     : '\(.\)' 2>/dev/null ||
10363echo X"$ac_file" |
10364    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10365  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10366  	  /^X\(\/\/\)$/{ s//\1/; q; }
10367  	  /^X\(\/\).*/{ s//\1/; q; }
10368  	  s/.*/./; q'`
10369  { if $as_mkdir_p; then
10370    mkdir -p "$ac_dir"
10371  else
10372    as_dir="$ac_dir"
10373    as_dirs=
10374    while test ! -d "$as_dir"; do
10375      as_dirs="$as_dir $as_dirs"
10376      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10377$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10378         X"$as_dir" : 'X\(//\)[^/]' \| \
10379         X"$as_dir" : 'X\(//\)$' \| \
10380         X"$as_dir" : 'X\(/\)' \| \
10381         .     : '\(.\)' 2>/dev/null ||
10382echo X"$as_dir" |
10383    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10384  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10385  	  /^X\(\/\/\)$/{ s//\1/; q; }
10386  	  /^X\(\/\).*/{ s//\1/; q; }
10387  	  s/.*/./; q'`
10388    done
10389    test ! -n "$as_dirs" || mkdir $as_dirs
10390  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10391echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10392   { (exit 1); exit 1; }; }; }
10393
10394  ac_builddir=.
10395
10396if test "$ac_dir" != .; then
10397  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10398  # A "../" for each directory in $ac_dir_suffix.
10399  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10400else
10401  ac_dir_suffix= ac_top_builddir=
10402fi
10403
10404case $srcdir in
10405  .)  # No --srcdir option.  We are building in place.
10406    ac_srcdir=.
10407    if test -z "$ac_top_builddir"; then
10408       ac_top_srcdir=.
10409    else
10410       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10411    fi ;;
10412  [\\/]* | ?:[\\/]* )  # Absolute path.
10413    ac_srcdir=$srcdir$ac_dir_suffix;
10414    ac_top_srcdir=$srcdir ;;
10415  *) # Relative path.
10416    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10417    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10418esac
10419# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10420# absolute.
10421ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10422ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10423ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10424ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10425
10426
10427  case $INSTALL in
10428  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10429  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10430  esac
10431
10432  if test x"$ac_file" != x-; then
10433    { echo "$as_me:$LINENO: creating $ac_file" >&5
10434echo "$as_me: creating $ac_file" >&6;}
10435    rm -f "$ac_file"
10436  fi
10437  # Let's still pretend it is `configure' which instantiates (i.e., don't
10438  # use $as_me), people would be surprised to read:
10439  #    /* config.h.  Generated by config.status.  */
10440  if test x"$ac_file" = x-; then
10441    configure_input=
10442  else
10443    configure_input="$ac_file.  "
10444  fi
10445  configure_input=$configure_input"Generated from `echo $ac_file_in |
10446                                     sed 's,.*/,,'` by configure."
10447
10448  # First look for the input files in the build tree, otherwise in the
10449  # src tree.
10450  ac_file_inputs=`IFS=:
10451    for f in $ac_file_in; do
10452      case $f in
10453      -) echo $tmp/stdin ;;
10454      [\\/$]*)
10455         # Absolute (can't be DOS-style, as IFS=:)
10456         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10457echo "$as_me: error: cannot find input file: $f" >&2;}
10458   { (exit 1); exit 1; }; }
10459         echo $f;;
10460      *) # Relative
10461         if test -f "$f"; then
10462           # Build tree
10463           echo $f
10464         elif test -f "$srcdir/$f"; then
10465           # Source tree
10466           echo $srcdir/$f
10467         else
10468           # /dev/null tree
10469           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10470echo "$as_me: error: cannot find input file: $f" >&2;}
10471   { (exit 1); exit 1; }; }
10472         fi;;
10473      esac
10474    done` || { (exit 1); exit 1; }
10475_ACEOF
10476cat >>$CONFIG_STATUS <<_ACEOF
10477  sed "$ac_vpsub
10478$extrasub
10479_ACEOF
10480cat >>$CONFIG_STATUS <<\_ACEOF
10481:t
10482/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10483s,@configure_input@,$configure_input,;t t
10484s,@srcdir@,$ac_srcdir,;t t
10485s,@abs_srcdir@,$ac_abs_srcdir,;t t
10486s,@top_srcdir@,$ac_top_srcdir,;t t
10487s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10488s,@builddir@,$ac_builddir,;t t
10489s,@abs_builddir@,$ac_abs_builddir,;t t
10490s,@top_builddir@,$ac_top_builddir,;t t
10491s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10492s,@INSTALL@,$ac_INSTALL,;t t
10493" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10494  rm -f $tmp/stdin
10495  if test x"$ac_file" != x-; then
10496    mv $tmp/out $ac_file
10497  else
10498    cat $tmp/out
10499    rm -f $tmp/out
10500  fi
10501
10502done
10503_ACEOF
10504cat >>$CONFIG_STATUS <<\_ACEOF
10505
10506#
10507# CONFIG_HEADER section.
10508#
10509
10510# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10511# NAME is the cpp macro being defined and VALUE is the value it is being given.
10512#
10513# ac_d sets the value in "#define NAME VALUE" lines.
10514ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
10515ac_dB='[ 	].*$,\1#\2'
10516ac_dC=' '
10517ac_dD=',;t'
10518# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10519ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
10520ac_uB='$,\1#\2define\3'
10521ac_uC=' '
10522ac_uD=',;t'
10523
10524for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10525  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10526  case $ac_file in
10527  - | *:- | *:-:* ) # input from stdin
10528        cat >$tmp/stdin
10529        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10530        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10531  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10532        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10533  * )   ac_file_in=$ac_file.in ;;
10534  esac
10535
10536  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10537echo "$as_me: creating $ac_file" >&6;}
10538
10539  # First look for the input files in the build tree, otherwise in the
10540  # src tree.
10541  ac_file_inputs=`IFS=:
10542    for f in $ac_file_in; do
10543      case $f in
10544      -) echo $tmp/stdin ;;
10545      [\\/$]*)
10546         # Absolute (can't be DOS-style, as IFS=:)
10547         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10548echo "$as_me: error: cannot find input file: $f" >&2;}
10549   { (exit 1); exit 1; }; }
10550         echo $f;;
10551      *) # Relative
10552         if test -f "$f"; then
10553           # Build tree
10554           echo $f
10555         elif test -f "$srcdir/$f"; then
10556           # Source tree
10557           echo $srcdir/$f
10558         else
10559           # /dev/null tree
10560           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10561echo "$as_me: error: cannot find input file: $f" >&2;}
10562   { (exit 1); exit 1; }; }
10563         fi;;
10564      esac
10565    done` || { (exit 1); exit 1; }
10566  # Remove the trailing spaces.
10567  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
10568
10569_ACEOF
10570
10571# Transform confdefs.h into two sed scripts, `conftest.defines' and
10572# `conftest.undefs', that substitutes the proper values into
10573# config.h.in to produce config.h.  The first handles `#define'
10574# templates, and the second `#undef' templates.
10575# And first: Protect against being on the right side of a sed subst in
10576# config.status.  Protect against being in an unquoted here document
10577# in config.status.
10578rm -f conftest.defines conftest.undefs
10579# Using a here document instead of a string reduces the quoting nightmare.
10580# Putting comments in sed scripts is not portable.
10581#
10582# `end' is used to avoid that the second main sed command (meant for
10583# 0-ary CPP macros) applies to n-ary macro definitions.
10584# See the Autoconf documentation for `clear'.
10585cat >confdef2sed.sed <<\_ACEOF
10586s/[\\&,]/\\&/g
10587s,[\\$`],\\&,g
10588t clear
10589: clear
10590s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10591t end
10592s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10593: end
10594_ACEOF
10595# If some macros were called several times there might be several times
10596# the same #defines, which is useless.  Nevertheless, we may not want to
10597# sort them, since we want the *last* AC-DEFINE to be honored.
10598uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10599sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10600rm -f confdef2sed.sed
10601
10602# This sed command replaces #undef with comments.  This is necessary, for
10603# example, in the case of _POSIX_SOURCE, which is predefined and required
10604# on some systems where configure will not decide to define it.
10605cat >>conftest.undefs <<\_ACEOF
10606s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10607_ACEOF
10608
10609# Break up conftest.defines because some shells have a limit on the size
10610# of here documents, and old seds have small limits too (100 cmds).
10611echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10612echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10613echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10614echo '  :' >>$CONFIG_STATUS
10615rm -f conftest.tail
10616while grep . conftest.defines >/dev/null
10617do
10618  # Write a limited-size here document to $tmp/defines.sed.
10619  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10620  # Speed up: don't consider the non `#define' lines.
10621  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
10622  # Work around the forget-to-reset-the-flag bug.
10623  echo 't clr' >>$CONFIG_STATUS
10624  echo ': clr' >>$CONFIG_STATUS
10625  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10626  echo 'CEOF
10627  sed -f $tmp/defines.sed $tmp/in >$tmp/out
10628  rm -f $tmp/in
10629  mv $tmp/out $tmp/in
10630' >>$CONFIG_STATUS
10631  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10632  rm -f conftest.defines
10633  mv conftest.tail conftest.defines
10634done
10635rm -f conftest.defines
10636echo '  fi # grep' >>$CONFIG_STATUS
10637echo >>$CONFIG_STATUS
10638
10639# Break up conftest.undefs because some shells have a limit on the size
10640# of here documents, and old seds have small limits too (100 cmds).
10641echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10642rm -f conftest.tail
10643while grep . conftest.undefs >/dev/null
10644do
10645  # Write a limited-size here document to $tmp/undefs.sed.
10646  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10647  # Speed up: don't consider the non `#undef'
10648  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
10649  # Work around the forget-to-reset-the-flag bug.
10650  echo 't clr' >>$CONFIG_STATUS
10651  echo ': clr' >>$CONFIG_STATUS
10652  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10653  echo 'CEOF
10654  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10655  rm -f $tmp/in
10656  mv $tmp/out $tmp/in
10657' >>$CONFIG_STATUS
10658  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10659  rm -f conftest.undefs
10660  mv conftest.tail conftest.undefs
10661done
10662rm -f conftest.undefs
10663
10664cat >>$CONFIG_STATUS <<\_ACEOF
10665  # Let's still pretend it is `configure' which instantiates (i.e., don't
10666  # use $as_me), people would be surprised to read:
10667  #    /* config.h.  Generated by config.status.  */
10668  if test x"$ac_file" = x-; then
10669    echo "/* Generated by configure.  */" >$tmp/config.h
10670  else
10671    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10672  fi
10673  cat $tmp/in >>$tmp/config.h
10674  rm -f $tmp/in
10675  if test x"$ac_file" != x-; then
10676    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10677      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10678echo "$as_me: $ac_file is unchanged" >&6;}
10679    else
10680      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10681$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10682         X"$ac_file" : 'X\(//\)[^/]' \| \
10683         X"$ac_file" : 'X\(//\)$' \| \
10684         X"$ac_file" : 'X\(/\)' \| \
10685         .     : '\(.\)' 2>/dev/null ||
10686echo X"$ac_file" |
10687    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10688  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10689  	  /^X\(\/\/\)$/{ s//\1/; q; }
10690  	  /^X\(\/\).*/{ s//\1/; q; }
10691  	  s/.*/./; q'`
10692      { if $as_mkdir_p; then
10693    mkdir -p "$ac_dir"
10694  else
10695    as_dir="$ac_dir"
10696    as_dirs=
10697    while test ! -d "$as_dir"; do
10698      as_dirs="$as_dir $as_dirs"
10699      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10700$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10701         X"$as_dir" : 'X\(//\)[^/]' \| \
10702         X"$as_dir" : 'X\(//\)$' \| \
10703         X"$as_dir" : 'X\(/\)' \| \
10704         .     : '\(.\)' 2>/dev/null ||
10705echo X"$as_dir" |
10706    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10707  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10708  	  /^X\(\/\/\)$/{ s//\1/; q; }
10709  	  /^X\(\/\).*/{ s//\1/; q; }
10710  	  s/.*/./; q'`
10711    done
10712    test ! -n "$as_dirs" || mkdir $as_dirs
10713  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10714echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10715   { (exit 1); exit 1; }; }; }
10716
10717      rm -f $ac_file
10718      mv $tmp/config.h $ac_file
10719    fi
10720  else
10721    cat $tmp/config.h
10722    rm -f $tmp/config.h
10723  fi
10724_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
10725echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10726$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10727         X$ac_file : 'X\(//\)[^/]' \| \
10728         X$ac_file : 'X\(//\)$' \| \
10729         X$ac_file : 'X\(/\)' \| \
10730         .     : '\(.\)' 2>/dev/null ||
10731echo X$ac_file |
10732    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10733  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10734  	  /^X\(\/\/\)$/{ s//\1/; q; }
10735  	  /^X\(\/\).*/{ s//\1/; q; }
10736  	  s/.*/./; q'`/stamp-h$_am_stamp_count
10737done
10738_ACEOF
10739cat >>$CONFIG_STATUS <<\_ACEOF
10740
10741#
10742# CONFIG_COMMANDS section.
10743#
10744for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10745  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10746  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10747  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10748$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10749         X"$ac_dest" : 'X\(//\)[^/]' \| \
10750         X"$ac_dest" : 'X\(//\)$' \| \
10751         X"$ac_dest" : 'X\(/\)' \| \
10752         .     : '\(.\)' 2>/dev/null ||
10753echo X"$ac_dest" |
10754    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10755  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10756  	  /^X\(\/\/\)$/{ s//\1/; q; }
10757  	  /^X\(\/\).*/{ s//\1/; q; }
10758  	  s/.*/./; q'`
10759  ac_builddir=.
10760
10761if test "$ac_dir" != .; then
10762  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10763  # A "../" for each directory in $ac_dir_suffix.
10764  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10765else
10766  ac_dir_suffix= ac_top_builddir=
10767fi
10768
10769case $srcdir in
10770  .)  # No --srcdir option.  We are building in place.
10771    ac_srcdir=.
10772    if test -z "$ac_top_builddir"; then
10773       ac_top_srcdir=.
10774    else
10775       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10776    fi ;;
10777  [\\/]* | ?:[\\/]* )  # Absolute path.
10778    ac_srcdir=$srcdir$ac_dir_suffix;
10779    ac_top_srcdir=$srcdir ;;
10780  *) # Relative path.
10781    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10782    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10783esac
10784# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10785# absolute.
10786ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10787ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10788ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10789ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10790
10791
10792  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10793echo "$as_me: executing $ac_dest commands" >&6;}
10794  case $ac_dest in
10795    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10796  # Strip MF so we end up with the name of the file.
10797  mf=`echo "$mf" | sed -e 's/:.*$//'`
10798  # Check whether this is an Automake generated Makefile or not.
10799  # We used to match only the files named `Makefile.in', but
10800  # some people rename them; so instead we look at the file content.
10801  # Grep'ing the first line is not enough: some people post-process
10802  # each Makefile.in and add a new line on top of each file to say so.
10803  # So let's grep whole file.
10804  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10805    dirpart=`(dirname "$mf") 2>/dev/null ||
10806$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10807         X"$mf" : 'X\(//\)[^/]' \| \
10808         X"$mf" : 'X\(//\)$' \| \
10809         X"$mf" : 'X\(/\)' \| \
10810         .     : '\(.\)' 2>/dev/null ||
10811echo X"$mf" |
10812    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10813  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10814  	  /^X\(\/\/\)$/{ s//\1/; q; }
10815  	  /^X\(\/\).*/{ s//\1/; q; }
10816  	  s/.*/./; q'`
10817  else
10818    continue
10819  fi
10820  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10821  # Extract the definition of DEP_FILES from the Makefile without
10822  # running `make'.
10823  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10824  test -z "$DEPDIR" && continue
10825  # When using ansi2knr, U may be empty or an underscore; expand it
10826  U=`sed -n -e '/^U = / s///p' < "$mf"`
10827  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10828  # We invoke sed twice because it is the simplest approach to
10829  # changing $(DEPDIR) to its actual value in the expansion.
10830  for file in `sed -n -e '
10831    /^DEP_FILES = .*\\\\$/ {
10832      s/^DEP_FILES = //
10833      :loop
10834	s/\\\\$//
10835	p
10836	n
10837	/\\\\$/ b loop
10838      p
10839    }
10840    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10841       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10842    # Make sure the directory exists.
10843    test -f "$dirpart/$file" && continue
10844    fdir=`(dirname "$file") 2>/dev/null ||
10845$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10846         X"$file" : 'X\(//\)[^/]' \| \
10847         X"$file" : 'X\(//\)$' \| \
10848         X"$file" : 'X\(/\)' \| \
10849         .     : '\(.\)' 2>/dev/null ||
10850echo X"$file" |
10851    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10852  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10853  	  /^X\(\/\/\)$/{ s//\1/; q; }
10854  	  /^X\(\/\).*/{ s//\1/; q; }
10855  	  s/.*/./; q'`
10856    { if $as_mkdir_p; then
10857    mkdir -p $dirpart/$fdir
10858  else
10859    as_dir=$dirpart/$fdir
10860    as_dirs=
10861    while test ! -d "$as_dir"; do
10862      as_dirs="$as_dir $as_dirs"
10863      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10864$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10865         X"$as_dir" : 'X\(//\)[^/]' \| \
10866         X"$as_dir" : 'X\(//\)$' \| \
10867         X"$as_dir" : 'X\(/\)' \| \
10868         .     : '\(.\)' 2>/dev/null ||
10869echo X"$as_dir" |
10870    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10871  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10872  	  /^X\(\/\/\)$/{ s//\1/; q; }
10873  	  /^X\(\/\).*/{ s//\1/; q; }
10874  	  s/.*/./; q'`
10875    done
10876    test ! -n "$as_dirs" || mkdir $as_dirs
10877  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10878echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10879   { (exit 1); exit 1; }; }; }
10880
10881    # echo "creating $dirpart/$file"
10882    echo '# dummy' > "$dirpart/$file"
10883  done
10884done
10885 ;;
10886    default-1 )
10887    for ac_file in $CONFIG_FILES; do
10888      # Support "outfile[:infile[:infile...]]"
10889      case "$ac_file" in
10890        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10891      esac
10892      # PO directories have a Makefile.in generated from Makefile.in.in.
10893      case "$ac_file" in */Makefile.in)
10894        # Adjust a relative srcdir.
10895        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10896        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10897        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10898        # In autoconf-2.13 it is called $ac_given_srcdir.
10899        # In autoconf-2.50 it is called $srcdir.
10900        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10901        case "$ac_given_srcdir" in
10902          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10903          /*) top_srcdir="$ac_given_srcdir" ;;
10904          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
10905        esac
10906        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10907          rm -f "$ac_dir/POTFILES"
10908          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10909          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10910          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10911          # on $ac_dir but don't depend on user-specified configuration
10912          # parameters.
10913          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10914            # The LINGUAS file contains the set of available languages.
10915            if test -n "$ALL_LINGUAS"; then
10916              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10917            fi
10918            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10919            # Hide the ALL_LINGUAS assigment from automake.
10920            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10921          fi
10922          case "$ac_given_srcdir" in
10923            .) srcdirpre= ;;
10924            *) srcdirpre='$(srcdir)/' ;;
10925          esac
10926          POFILES=
10927          GMOFILES=
10928          UPDATEPOFILES=
10929          DUMMYPOFILES=
10930          for lang in $ALL_LINGUAS; do
10931            POFILES="$POFILES $srcdirpre$lang.po"
10932            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10933            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10934            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10935          done
10936          # CATALOGS depends on both $ac_dir and the user's LINGUAS
10937          # environment variable.
10938          INST_LINGUAS=
10939          if test -n "$ALL_LINGUAS"; then
10940            for presentlang in $ALL_LINGUAS; do
10941              useit=no
10942              if test "%UNSET%" != "$LINGUAS"; then
10943                desiredlanguages="$LINGUAS"
10944              else
10945                desiredlanguages="$ALL_LINGUAS"
10946              fi
10947              for desiredlang in $desiredlanguages; do
10948                # Use the presentlang catalog if desiredlang is
10949                #   a. equal to presentlang, or
10950                #   b. a variant of presentlang (because in this case,
10951                #      presentlang can be used as a fallback for messages
10952                #      which are not translated in the desiredlang catalog).
10953                case "$desiredlang" in
10954                  "$presentlang"*) useit=yes;;
10955                esac
10956              done
10957              if test $useit = yes; then
10958                INST_LINGUAS="$INST_LINGUAS $presentlang"
10959              fi
10960            done
10961          fi
10962          CATALOGS=
10963          if test -n "$INST_LINGUAS"; then
10964            for lang in $INST_LINGUAS; do
10965              CATALOGS="$CATALOGS $lang.gmo"
10966            done
10967          fi
10968          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10969          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10970          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10971            if test -f "$f"; then
10972              case "$f" in
10973                *.orig | *.bak | *~) ;;
10974                *) cat "$f" >> "$ac_dir/Makefile" ;;
10975              esac
10976            fi
10977          done
10978        fi
10979        ;;
10980      esac
10981    done ;;
10982  esac
10983done
10984_ACEOF
10985
10986cat >>$CONFIG_STATUS <<\_ACEOF
10987
10988{ (exit 0); exit 0; }
10989_ACEOF
10990chmod +x $CONFIG_STATUS
10991ac_clean_files=$ac_clean_files_save
10992
10993
10994# configure is writing to config.log, and then calls config.status.
10995# config.status does its own redirection, appending to config.log.
10996# Unfortunately, on DOS this fails, as config.log is still kept open
10997# by configure, so config.status won't be able to write to it; its
10998# output is simply discarded.  So we exec the FD to /dev/null,
10999# effectively closing config.log, so it can be properly (re)opened and
11000# appended to by config.status.  When coming back to configure, we
11001# need to make the FD available again.
11002if test "$no_create" != yes; then
11003  ac_cs_success=:
11004  ac_config_status_args=
11005  test "$silent" = yes &&
11006    ac_config_status_args="$ac_config_status_args --quiet"
11007  exec 5>/dev/null
11008  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11009  exec 5>>config.log
11010  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11011  # would make configure fail if this is the last instruction.
11012  $ac_cs_success || { (exit 1); exit 1; }
11013fi
11014
11015