source: trunk/third/gnome-system-monitor/configure @ 18394

Revision 18394, 209.4 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18393, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.53.
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
10if expr a : '\(a\)' >/dev/null 2>&1; then
11  as_expr=expr
12else
13  as_expr=false
14fi
15
16
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26  set -o posix
27fi
28
29# NLS nuisances.
30# Support unset when possible.
31if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32  as_unset=unset
33else
34  as_unset=false
35fi
36
37(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38    { $as_unset LANG || test "${LANG+set}" != set; } ||
39      { LANG=C; export LANG; }
40(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42      { LC_ALL=C; export LC_ALL; }
43(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45      { LC_TIME=C; export LC_TIME; }
46(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48      { LC_CTYPE=C; export LC_CTYPE; }
49(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51      { LANGUAGE=C; export LANGUAGE; }
52(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54      { LC_COLLATE=C; export LC_COLLATE; }
55(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57      { LC_NUMERIC=C; export LC_NUMERIC; }
58(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60      { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63# Name of the executable.
64as_me=`(basename "$0") 2>/dev/null ||
65$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66         X"$0" : 'X\(//\)$' \| \
67         X"$0" : 'X\(/\)$' \| \
68         .     : '\(.\)' 2>/dev/null ||
69echo X/"$0" |
70    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71          /^X\/\(\/\/\)$/{ s//\1/; q; }
72          /^X\/\(\/\).*/{ s//\1/; q; }
73          s/.*/./; q'`
74
75# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if test "${PATH_SEPARATOR+set}" != set; then
85  echo "#! /bin/sh" >conftest.sh
86  echo  "exit 0"   >>conftest.sh
87  chmod +x conftest.sh
88  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89    PATH_SEPARATOR=';'
90  else
91    PATH_SEPARATOR=:
92  fi
93  rm -f conftest.sh
94fi
95
96
97  as_lineno_1=$LINENO
98  as_lineno_2=$LINENO
99  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100  test "x$as_lineno_1" != "x$as_lineno_2" &&
101  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102  # Find who we are.  Look in the path if we contain no path at all
103  # relative or not.
104  case $0 in
105    *[\\/]* ) as_myself=$0 ;;
106    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107for as_dir in $PATH
108do
109  IFS=$as_save_IFS
110  test -z "$as_dir" && as_dir=.
111  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114       ;;
115  esac
116  # We did not find ourselves, most probably we were run as `sh COMMAND'
117  # in which case we are not to be found in the path.
118  if test "x$as_myself" = x; then
119    as_myself=$0
120  fi
121  if test ! -f "$as_myself"; then
122    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123   { (exit 1); exit 1; }; }
124  fi
125  case $CONFIG_SHELL in
126  '')
127    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
130  IFS=$as_save_IFS
131  test -z "$as_dir" && as_dir=.
132  for as_base in sh bash ksh sh5; do
133         case $as_dir in
134         /*)
135           if ("$as_dir/$as_base" -c '
136  as_lineno_1=$LINENO
137  as_lineno_2=$LINENO
138  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139  test "x$as_lineno_1" != "x$as_lineno_2" &&
140  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141             CONFIG_SHELL=$as_dir/$as_base
142             export CONFIG_SHELL
143             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144           fi;;
145         esac
146       done
147done
148;;
149  esac
150
151  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152  # uniformly replaced by the line number.  The first 'sed' inserts a
153  # line-number line before each line; the second 'sed' does the real
154  # work.  The second script uses 'N' to pair each line-number line
155  # with the numbered line, and appends trailing '-' during
156  # substitution so that $LINENO is not a special case at line end.
157  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159  sed '=' <$as_myself |
160    sed '
161      N
162      s,$,-,
163      : loop
164      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165      t loop
166      s,-$,,
167      s,^['$as_cr_digits']*\n,,
168    ' >$as_me.lineno &&
169  chmod +x $as_me.lineno ||
170    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171   { (exit 1); exit 1; }; }
172
173  # Don't try to exec as it changes $[0], causing all sort of problems
174  # (the dirname of $[0] is not the place where we might find the
175  # original and so on.  Autoconf is especially sensible to this).
176  . ./$as_me.lineno
177  # Exit status is that of the last command.
178  exit
179}
180
181
182case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183  *c*,-n*) ECHO_N= ECHO_C='
184' ECHO_T='      ' ;;
185  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187esac
188
189if expr a : '\(a\)' >/dev/null 2>&1; then
190  as_expr=expr
191else
192  as_expr=false
193fi
194
195rm -f conf$$ conf$$.exe conf$$.file
196echo >conf$$.file
197if ln -s conf$$.file conf$$ 2>/dev/null; then
198  # We could just check for DJGPP; but this test a) works b) is more generic
199  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200  if test -f conf$$.exe; then
201    # Don't use ln at all; we don't have any links
202    as_ln_s='cp -p'
203  else
204    as_ln_s='ln -s'
205  fi
206elif ln conf$$.file conf$$ 2>/dev/null; then
207  as_ln_s=ln
208else
209  as_ln_s='cp -p'
210fi
211rm -f conf$$ conf$$.exe conf$$.file
212
213as_executable_p="test -f"
214
215# Sed expression to map a string onto a valid CPP name.
216as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218# Sed expression to map a string onto a valid variable name.
219as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222# IFS
223# We need space, tab and new line, in precisely that order.
224as_nl='
225'
226IFS="   $as_nl"
227
228# CDPATH.
229$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232# Name of the host.
233# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234# so uname gets run too.
235ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237exec 6>&1
238
239#
240# Initializations.
241#
242ac_default_prefix=/usr/local
243cross_compiling=no
244subdirs=
245MFLAGS=
246MAKEFLAGS=
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249# Maximum number of lines to put in a shell here document.
250# This variable seems obsolete.  It should probably be removed, and
251# only ac_max_sed_lines should be used.
252: ${ac_max_here_lines=38}
253
254# Identity of this package.
255PACKAGE_NAME=
256PACKAGE_TARNAME=
257PACKAGE_VERSION=
258PACKAGE_STRING=
259PACKAGE_BUGREPORT=
260
261ac_unique_file="configure.in"
262# Factoring default headers for most tests.
263ac_includes_default="\
264#include <stdio.h>
265#if HAVE_SYS_TYPES_H
266# include <sys/types.h>
267#endif
268#if HAVE_SYS_STAT_H
269# include <sys/stat.h>
270#endif
271#if STDC_HEADERS
272# include <stdlib.h>
273# include <stddef.h>
274#else
275# if HAVE_STDLIB_H
276#  include <stdlib.h>
277# endif
278#endif
279#if HAVE_STRING_H
280# if !STDC_HEADERS && HAVE_MEMORY_H
281#  include <memory.h>
282# endif
283# include <string.h>
284#endif
285#if HAVE_STRINGS_H
286# include <strings.h>
287#endif
288#if HAVE_INTTYPES_H
289# include <inttypes.h>
290#else
291# if HAVE_STDINT_H
292#  include <stdint.h>
293# endif
294#endif
295#if HAVE_UNISTD_H
296# include <unistd.h>
297#endif"
298
299
300# Initialize some variables set by options.
301ac_init_help=
302ac_init_version=false
303# The variables have the same names as the options, with
304# dashes changed to underlines.
305cache_file=/dev/null
306exec_prefix=NONE
307no_create=
308no_recursion=
309prefix=NONE
310program_prefix=NONE
311program_suffix=NONE
312program_transform_name=s,x,x,
313silent=
314site=
315srcdir=
316verbose=
317x_includes=NONE
318x_libraries=NONE
319
320# Installation directory options.
321# These are left unexpanded so users can "make install exec_prefix=/foo"
322# and all the variables that are supposed to be based on exec_prefix
323# by default will actually change.
324# Use braces instead of parens because sh, perl, etc. also accept them.
325bindir='${exec_prefix}/bin'
326sbindir='${exec_prefix}/sbin'
327libexecdir='${exec_prefix}/libexec'
328datadir='${prefix}/share'
329sysconfdir='${prefix}/etc'
330sharedstatedir='${prefix}/com'
331localstatedir='${prefix}/var'
332libdir='${exec_prefix}/lib'
333includedir='${prefix}/include'
334oldincludedir='/usr/include'
335infodir='${prefix}/info'
336mandir='${prefix}/man'
337
338ac_prev=
339for ac_option
340do
341  # If the previous option needs an argument, assign it.
342  if test -n "$ac_prev"; then
343    eval "$ac_prev=\$ac_option"
344    ac_prev=
345    continue
346  fi
347
348  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350  # Accept the important Cygnus configure options, so we can diagnose typos.
351
352  case $ac_option in
353
354  -bindir | --bindir | --bindi | --bind | --bin | --bi)
355    ac_prev=bindir ;;
356  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357    bindir=$ac_optarg ;;
358
359  -build | --build | --buil | --bui | --bu)
360    ac_prev=build_alias ;;
361  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362    build_alias=$ac_optarg ;;
363
364  -cache-file | --cache-file | --cache-fil | --cache-fi \
365  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366    ac_prev=cache_file ;;
367  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369    cache_file=$ac_optarg ;;
370
371  --config-cache | -C)
372    cache_file=config.cache ;;
373
374  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375    ac_prev=datadir ;;
376  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377  | --da=*)
378    datadir=$ac_optarg ;;
379
380  -disable-* | --disable-*)
381    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382    # Reject names that are not valid shell variable names.
383    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385   { (exit 1); exit 1; }; }
386    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387    eval "enable_$ac_feature=no" ;;
388
389  -enable-* | --enable-*)
390    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391    # Reject names that are not valid shell variable names.
392    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394   { (exit 1); exit 1; }; }
395    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396    case $ac_option in
397      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398      *) ac_optarg=yes ;;
399    esac
400    eval "enable_$ac_feature='$ac_optarg'" ;;
401
402  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404  | --exec | --exe | --ex)
405    ac_prev=exec_prefix ;;
406  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408  | --exec=* | --exe=* | --ex=*)
409    exec_prefix=$ac_optarg ;;
410
411  -gas | --gas | --ga | --g)
412    # Obsolete; use --with-gas.
413    with_gas=yes ;;
414
415  -help | --help | --hel | --he | -h)
416    ac_init_help=long ;;
417  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418    ac_init_help=recursive ;;
419  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420    ac_init_help=short ;;
421
422  -host | --host | --hos | --ho)
423    ac_prev=host_alias ;;
424  -host=* | --host=* | --hos=* | --ho=*)
425    host_alias=$ac_optarg ;;
426
427  -includedir | --includedir | --includedi | --included | --include \
428  | --includ | --inclu | --incl | --inc)
429    ac_prev=includedir ;;
430  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431  | --includ=* | --inclu=* | --incl=* | --inc=*)
432    includedir=$ac_optarg ;;
433
434  -infodir | --infodir | --infodi | --infod | --info | --inf)
435    ac_prev=infodir ;;
436  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437    infodir=$ac_optarg ;;
438
439  -libdir | --libdir | --libdi | --libd)
440    ac_prev=libdir ;;
441  -libdir=* | --libdir=* | --libdi=* | --libd=*)
442    libdir=$ac_optarg ;;
443
444  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445  | --libexe | --libex | --libe)
446    ac_prev=libexecdir ;;
447  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448  | --libexe=* | --libex=* | --libe=*)
449    libexecdir=$ac_optarg ;;
450
451  -localstatedir | --localstatedir | --localstatedi | --localstated \
452  | --localstate | --localstat | --localsta | --localst \
453  | --locals | --local | --loca | --loc | --lo)
454    ac_prev=localstatedir ;;
455  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458    localstatedir=$ac_optarg ;;
459
460  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461    ac_prev=mandir ;;
462  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463    mandir=$ac_optarg ;;
464
465  -nfp | --nfp | --nf)
466    # Obsolete; use --without-fp.
467    with_fp=no ;;
468
469  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470  | --no-cr | --no-c | -n)
471    no_create=yes ;;
472
473  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475    no_recursion=yes ;;
476
477  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479  | --oldin | --oldi | --old | --ol | --o)
480    ac_prev=oldincludedir ;;
481  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484    oldincludedir=$ac_optarg ;;
485
486  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487    ac_prev=prefix ;;
488  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489    prefix=$ac_optarg ;;
490
491  -program-prefix | --program-prefix | --program-prefi | --program-pref \
492  | --program-pre | --program-pr | --program-p)
493    ac_prev=program_prefix ;;
494  -program-prefix=* | --program-prefix=* | --program-prefi=* \
495  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496    program_prefix=$ac_optarg ;;
497
498  -program-suffix | --program-suffix | --program-suffi | --program-suff \
499  | --program-suf | --program-su | --program-s)
500    ac_prev=program_suffix ;;
501  -program-suffix=* | --program-suffix=* | --program-suffi=* \
502  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503    program_suffix=$ac_optarg ;;
504
505  -program-transform-name | --program-transform-name \
506  | --program-transform-nam | --program-transform-na \
507  | --program-transform-n | --program-transform- \
508  | --program-transform | --program-transfor \
509  | --program-transfo | --program-transf \
510  | --program-trans | --program-tran \
511  | --progr-tra | --program-tr | --program-t)
512    ac_prev=program_transform_name ;;
513  -program-transform-name=* | --program-transform-name=* \
514  | --program-transform-nam=* | --program-transform-na=* \
515  | --program-transform-n=* | --program-transform-=* \
516  | --program-transform=* | --program-transfor=* \
517  | --program-transfo=* | --program-transf=* \
518  | --program-trans=* | --program-tran=* \
519  | --progr-tra=* | --program-tr=* | --program-t=*)
520    program_transform_name=$ac_optarg ;;
521
522  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523  | -silent | --silent | --silen | --sile | --sil)
524    silent=yes ;;
525
526  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527    ac_prev=sbindir ;;
528  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529  | --sbi=* | --sb=*)
530    sbindir=$ac_optarg ;;
531
532  -sharedstatedir | --sharedstatedir | --sharedstatedi \
533  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534  | --sharedst | --shareds | --shared | --share | --shar \
535  | --sha | --sh)
536    ac_prev=sharedstatedir ;;
537  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540  | --sha=* | --sh=*)
541    sharedstatedir=$ac_optarg ;;
542
543  -site | --site | --sit)
544    ac_prev=site ;;
545  -site=* | --site=* | --sit=*)
546    site=$ac_optarg ;;
547
548  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549    ac_prev=srcdir ;;
550  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551    srcdir=$ac_optarg ;;
552
553  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554  | --syscon | --sysco | --sysc | --sys | --sy)
555    ac_prev=sysconfdir ;;
556  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558    sysconfdir=$ac_optarg ;;
559
560  -target | --target | --targe | --targ | --tar | --ta | --t)
561    ac_prev=target_alias ;;
562  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563    target_alias=$ac_optarg ;;
564
565  -v | -verbose | --verbose | --verbos | --verbo | --verb)
566    verbose=yes ;;
567
568  -version | --version | --versio | --versi | --vers | -V)
569    ac_init_version=: ;;
570
571  -with-* | --with-*)
572    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573    # Reject names that are not valid shell variable names.
574    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575      { echo "$as_me: error: invalid package name: $ac_package" >&2
576   { (exit 1); exit 1; }; }
577    ac_package=`echo $ac_package| sed 's/-/_/g'`
578    case $ac_option in
579      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580      *) ac_optarg=yes ;;
581    esac
582    eval "with_$ac_package='$ac_optarg'" ;;
583
584  -without-* | --without-*)
585    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586    # Reject names that are not valid shell variable names.
587    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588      { echo "$as_me: error: invalid package name: $ac_package" >&2
589   { (exit 1); exit 1; }; }
590    ac_package=`echo $ac_package | sed 's/-/_/g'`
591    eval "with_$ac_package=no" ;;
592
593  --x)
594    # Obsolete; use --with-x.
595    with_x=yes ;;
596
597  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598  | --x-incl | --x-inc | --x-in | --x-i)
599    ac_prev=x_includes ;;
600  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602    x_includes=$ac_optarg ;;
603
604  -x-libraries | --x-libraries | --x-librarie | --x-librari \
605  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606    ac_prev=x_libraries ;;
607  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609    x_libraries=$ac_optarg ;;
610
611  -*) { echo "$as_me: error: unrecognized option: $ac_option
612Try \`$0 --help' for more information." >&2
613   { (exit 1); exit 1; }; }
614    ;;
615
616  *=*)
617    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618    # Reject names that are not valid shell variable names.
619    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621   { (exit 1); exit 1; }; }
622    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623    eval "$ac_envvar='$ac_optarg'"
624    export $ac_envvar ;;
625
626  *)
627    # FIXME: should be removed in autoconf 3.0.
628    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632    ;;
633
634  esac
635done
636
637if test -n "$ac_prev"; then
638  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639  { echo "$as_me: error: missing argument to $ac_option" >&2
640   { (exit 1); exit 1; }; }
641fi
642
643# Be sure to have absolute paths.
644for ac_var in exec_prefix prefix
645do
646  eval ac_val=$`echo $ac_var`
647  case $ac_val in
648    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650   { (exit 1); exit 1; }; };;
651  esac
652done
653
654# Be sure to have absolute paths.
655for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656              localstatedir libdir includedir oldincludedir infodir mandir
657do
658  eval ac_val=$`echo $ac_var`
659  case $ac_val in
660    [\\/$]* | ?:[\\/]* ) ;;
661    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662   { (exit 1); exit 1; }; };;
663  esac
664done
665
666# There might be people who depend on the old broken behavior: `$host'
667# used to hold the argument of --host etc.
668# FIXME: To remove some day.
669build=$build_alias
670host=$host_alias
671target=$target_alias
672
673# FIXME: To remove some day.
674if test "x$host_alias" != x; then
675  if test "x$build_alias" = x; then
676    cross_compiling=maybe
677    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678    If a cross compiler is detected then cross compile mode will be used." >&2
679  elif test "x$build_alias" != "x$host_alias"; then
680    cross_compiling=yes
681  fi
682fi
683
684ac_tool_prefix=
685test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687test "$silent" = yes && exec 6>/dev/null
688
689
690# Find the source files, if location was not specified.
691if test -z "$srcdir"; then
692  ac_srcdir_defaulted=yes
693  # Try the directory containing this script, then its parent.
694  ac_confdir=`(dirname "$0") 2>/dev/null ||
695$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696         X"$0" : 'X\(//\)[^/]' \| \
697         X"$0" : 'X\(//\)$' \| \
698         X"$0" : 'X\(/\)' \| \
699         .     : '\(.\)' 2>/dev/null ||
700echo X"$0" |
701    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703          /^X\(\/\/\)$/{ s//\1/; q; }
704          /^X\(\/\).*/{ s//\1/; q; }
705          s/.*/./; q'`
706  srcdir=$ac_confdir
707  if test ! -r $srcdir/$ac_unique_file; then
708    srcdir=..
709  fi
710else
711  ac_srcdir_defaulted=no
712fi
713if test ! -r $srcdir/$ac_unique_file; then
714  if test "$ac_srcdir_defaulted" = yes; then
715    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716   { (exit 1); exit 1; }; }
717  else
718    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719   { (exit 1); exit 1; }; }
720  fi
721fi
722srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723ac_env_build_alias_set=${build_alias+set}
724ac_env_build_alias_value=$build_alias
725ac_cv_env_build_alias_set=${build_alias+set}
726ac_cv_env_build_alias_value=$build_alias
727ac_env_host_alias_set=${host_alias+set}
728ac_env_host_alias_value=$host_alias
729ac_cv_env_host_alias_set=${host_alias+set}
730ac_cv_env_host_alias_value=$host_alias
731ac_env_target_alias_set=${target_alias+set}
732ac_env_target_alias_value=$target_alias
733ac_cv_env_target_alias_set=${target_alias+set}
734ac_cv_env_target_alias_value=$target_alias
735ac_env_CC_set=${CC+set}
736ac_env_CC_value=$CC
737ac_cv_env_CC_set=${CC+set}
738ac_cv_env_CC_value=$CC
739ac_env_CFLAGS_set=${CFLAGS+set}
740ac_env_CFLAGS_value=$CFLAGS
741ac_cv_env_CFLAGS_set=${CFLAGS+set}
742ac_cv_env_CFLAGS_value=$CFLAGS
743ac_env_LDFLAGS_set=${LDFLAGS+set}
744ac_env_LDFLAGS_value=$LDFLAGS
745ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746ac_cv_env_LDFLAGS_value=$LDFLAGS
747ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748ac_env_CPPFLAGS_value=$CPPFLAGS
749ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751ac_env_CPP_set=${CPP+set}
752ac_env_CPP_value=$CPP
753ac_cv_env_CPP_set=${CPP+set}
754ac_cv_env_CPP_value=$CPP
755
756#
757# Report the --help message.
758#
759if test "$ac_init_help" = "long"; then
760  # Omit some internal or obsolete options to make the list less imposing.
761  # This message is too long to be a string in the A/UX 3.1 sh.
762  cat <<_ACEOF
763\`configure' configures this package to adapt to many kinds of systems.
764
765Usage: $0 [OPTION]... [VAR=VALUE]...
766
767To assign environment variables (e.g., CC, CFLAGS...), specify them as
768VAR=VALUE.  See below for descriptions of some of the useful variables.
769
770Defaults for the options are specified in brackets.
771
772Configuration:
773  -h, --help              display this help and exit
774      --help=short        display options specific to this package
775      --help=recursive    display the short help of all the included packages
776  -V, --version           display version information and exit
777  -q, --quiet, --silent   do not print \`checking...' messages
778      --cache-file=FILE   cache test results in FILE [disabled]
779  -C, --config-cache      alias for \`--cache-file=config.cache'
780  -n, --no-create         do not create output files
781      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
782
783_ACEOF
784
785  cat <<_ACEOF
786Installation directories:
787  --prefix=PREFIX         install architecture-independent files in PREFIX
788                          [$ac_default_prefix]
789  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
790                          [PREFIX]
791
792By default, \`make install' will install all the files in
793\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
794an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795for instance \`--prefix=\$HOME'.
796
797For better control, use the options below.
798
799Fine tuning of the installation directories:
800  --bindir=DIR           user executables [EPREFIX/bin]
801  --sbindir=DIR          system admin executables [EPREFIX/sbin]
802  --libexecdir=DIR       program executables [EPREFIX/libexec]
803  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
804  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
805  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
806  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
807  --libdir=DIR           object code libraries [EPREFIX/lib]
808  --includedir=DIR       C header files [PREFIX/include]
809  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
810  --infodir=DIR          info documentation [PREFIX/info]
811  --mandir=DIR           man documentation [PREFIX/man]
812_ACEOF
813
814  cat <<\_ACEOF
815
816Program names:
817  --program-prefix=PREFIX            prepend PREFIX to installed program names
818  --program-suffix=SUFFIX            append SUFFIX to installed program names
819  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
820_ACEOF
821fi
822
823if test -n "$ac_init_help"; then
824
825  cat <<\_ACEOF
826
827Optional Features:
828  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
829  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
830  --enable-compile-warnings=no/minimum/yes/maximum/error        Turn on compiler warnings.
831  --enable-iso-c          Try to warn if code is not ISO C
832
833Optional Packages:
834  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
835  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
836  --with-gconf-source=sourceaddress      Config database for installing schema files.
837  --with-gconf-schema-file-dir=dir        Directory for installing schema files.
838
839Some influential environment variables:
840  CC          C compiler command
841  CFLAGS      C compiler flags
842  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
843              nonstandard directory <lib dir>
844  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
845              headers in a nonstandard directory <include dir>
846  CPP         C preprocessor
847
848Use these variables to override the choices made by `configure' or to help
849it to find libraries and programs with nonstandard names/locations.
850
851_ACEOF
852fi
853
854if test "$ac_init_help" = "recursive"; then
855  # If there are subdirs, report their specific --help.
856  ac_popdir=`pwd`
857  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
858    test -d $ac_dir || continue
859    ac_builddir=.
860
861if test "$ac_dir" != .; then
862  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
863  # A "../" for each directory in $ac_dir_suffix.
864  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
865else
866  ac_dir_suffix= ac_top_builddir=
867fi
868
869case $srcdir in
870  .)  # No --srcdir option.  We are building in place.
871    ac_srcdir=.
872    if test -z "$ac_top_builddir"; then
873       ac_top_srcdir=.
874    else
875       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
876    fi ;;
877  [\\/]* | ?:[\\/]* )  # Absolute path.
878    ac_srcdir=$srcdir$ac_dir_suffix;
879    ac_top_srcdir=$srcdir ;;
880  *) # Relative path.
881    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
882    ac_top_srcdir=$ac_top_builddir$srcdir ;;
883esac
884# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
885# absolute.
886ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
887ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
888ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
889ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
890
891    cd $ac_dir
892    # Check for guested configure; otherwise get Cygnus style configure.
893    if test -f $ac_srcdir/configure.gnu; then
894      echo
895      $SHELL $ac_srcdir/configure.gnu  --help=recursive
896    elif test -f $ac_srcdir/configure; then
897      echo
898      $SHELL $ac_srcdir/configure  --help=recursive
899    elif test -f $ac_srcdir/configure.ac ||
900           test -f $ac_srcdir/configure.in; then
901      echo
902      $ac_configure --help
903    else
904      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
905    fi
906    cd $ac_popdir
907  done
908fi
909
910test -n "$ac_init_help" && exit 0
911if $ac_init_version; then
912  cat <<\_ACEOF
913
914Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
915Free Software Foundation, Inc.
916This configure script is free software; the Free Software Foundation
917gives unlimited permission to copy, distribute and modify it.
918_ACEOF
919  exit 0
920fi
921exec 5>config.log
922cat >&5 <<_ACEOF
923This file contains any messages produced by compilers while
924running configure, to aid debugging if configure makes a mistake.
925
926It was created by $as_me, which was
927generated by GNU Autoconf 2.53.  Invocation command line was
928
929  $ $0 $@
930
931_ACEOF
932{
933cat <<_ASUNAME
934## --------- ##
935## Platform. ##
936## --------- ##
937
938hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
939uname -m = `(uname -m) 2>/dev/null || echo unknown`
940uname -r = `(uname -r) 2>/dev/null || echo unknown`
941uname -s = `(uname -s) 2>/dev/null || echo unknown`
942uname -v = `(uname -v) 2>/dev/null || echo unknown`
943
944/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
945/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
946
947/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
948/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
949/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
950hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
951/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
952/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
953/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
954
955_ASUNAME
956
957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
958for as_dir in $PATH
959do
960  IFS=$as_save_IFS
961  test -z "$as_dir" && as_dir=.
962  echo "PATH: $as_dir"
963done
964
965} >&5
966
967cat >&5 <<_ACEOF
968
969
970## ----------- ##
971## Core tests. ##
972## ----------- ##
973
974_ACEOF
975
976
977# Keep a trace of the command line.
978# Strip out --no-create and --no-recursion so they do not pile up.
979# Also quote any args containing shell meta-characters.
980ac_configure_args=
981ac_sep=
982for ac_arg
983do
984  case $ac_arg in
985  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986  | --no-cr | --no-c | -n ) continue ;;
987  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989    continue ;;
990  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
991    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
992  esac
993  case " $ac_configure_args " in
994    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
995    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
996       ac_sep=" " ;;
997  esac
998  # Get rid of the leading space.
999done
1000
1001# When interrupted or exit'd, cleanup temporary files, and complete
1002# config.log.  We remove comments because anyway the quotes in there
1003# would cause problems or look ugly.
1004# WARNING: Be sure not to use single quotes in there, as some shells,
1005# such as our DU 5.0 friend, will then `close' the trap.
1006trap 'exit_status=$?
1007  # Save into config.log some information that might help in debugging.
1008  {
1009    echo
1010    cat <<\_ASBOX
1011## ---------------- ##
1012## Cache variables. ##
1013## ---------------- ##
1014_ASBOX
1015    echo
1016    # The following way of writing the cache mishandles newlines in values,
1017{
1018  (set) 2>&1 |
1019    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1020    *ac_space=\ *)
1021      sed -n \
1022        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1023          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1024      ;;
1025    *)
1026      sed -n \
1027        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1028      ;;
1029    esac;
1030}
1031    echo
1032    if test -s confdefs.h; then
1033      cat <<\_ASBOX
1034## ----------- ##
1035## confdefs.h. ##
1036## ----------- ##
1037_ASBOX
1038      echo
1039      sed "/^$/d" confdefs.h
1040      echo
1041    fi
1042    test "$ac_signal" != 0 &&
1043      echo "$as_me: caught signal $ac_signal"
1044    echo "$as_me: exit $exit_status"
1045  } >&5
1046  rm -f core core.* *.core &&
1047  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1048    exit $exit_status
1049     ' 0
1050for ac_signal in 1 2 13 15; do
1051  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1052done
1053ac_signal=0
1054
1055# confdefs.h avoids OS command line length limits that DEFS can exceed.
1056rm -rf conftest* confdefs.h
1057# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1058echo >confdefs.h
1059
1060# Predefined preprocessor variables.
1061
1062cat >>confdefs.h <<_ACEOF
1063#define PACKAGE_NAME "$PACKAGE_NAME"
1064_ACEOF
1065
1066
1067cat >>confdefs.h <<_ACEOF
1068#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1069_ACEOF
1070
1071
1072cat >>confdefs.h <<_ACEOF
1073#define PACKAGE_VERSION "$PACKAGE_VERSION"
1074_ACEOF
1075
1076
1077cat >>confdefs.h <<_ACEOF
1078#define PACKAGE_STRING "$PACKAGE_STRING"
1079_ACEOF
1080
1081
1082cat >>confdefs.h <<_ACEOF
1083#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1084_ACEOF
1085
1086
1087# Let the site file select an alternate cache file if it wants to.
1088# Prefer explicitly selected file to automatically selected ones.
1089if test -z "$CONFIG_SITE"; then
1090  if test "x$prefix" != xNONE; then
1091    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1092  else
1093    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1094  fi
1095fi
1096for ac_site_file in $CONFIG_SITE; do
1097  if test -r "$ac_site_file"; then
1098    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1099echo "$as_me: loading site script $ac_site_file" >&6;}
1100    sed 's/^/| /' "$ac_site_file" >&5
1101    . "$ac_site_file"
1102  fi
1103done
1104
1105if test -r "$cache_file"; then
1106  # Some versions of bash will fail to source /dev/null (special
1107  # files actually), so we avoid doing that.
1108  if test -f "$cache_file"; then
1109    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1110echo "$as_me: loading cache $cache_file" >&6;}
1111    case $cache_file in
1112      [\\/]* | ?:[\\/]* ) . $cache_file;;
1113      *)                      . ./$cache_file;;
1114    esac
1115  fi
1116else
1117  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1118echo "$as_me: creating cache $cache_file" >&6;}
1119  >$cache_file
1120fi
1121
1122# Check that the precious variables saved in the cache have kept the same
1123# value.
1124ac_cache_corrupted=false
1125for ac_var in `(set) 2>&1 |
1126               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1127  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1128  eval ac_new_set=\$ac_env_${ac_var}_set
1129  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1130  eval ac_new_val="\$ac_env_${ac_var}_value"
1131  case $ac_old_set,$ac_new_set in
1132    set,)
1133      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1134echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1135      ac_cache_corrupted=: ;;
1136    ,set)
1137      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1138echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1139      ac_cache_corrupted=: ;;
1140    ,);;
1141    *)
1142      if test "x$ac_old_val" != "x$ac_new_val"; then
1143        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1144echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1145        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1146echo "$as_me:   former value:  $ac_old_val" >&2;}
1147        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1148echo "$as_me:   current value: $ac_new_val" >&2;}
1149        ac_cache_corrupted=:
1150      fi;;
1151  esac
1152  # Pass precious variables to config.status.
1153  if test "$ac_new_set" = set; then
1154    case $ac_new_val in
1155    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1156      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1157    *) ac_arg=$ac_var=$ac_new_val ;;
1158    esac
1159    case " $ac_configure_args " in
1160      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1161      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1162    esac
1163  fi
1164done
1165if $ac_cache_corrupted; then
1166  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1167echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1168  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1169echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1170   { (exit 1); exit 1; }; }
1171fi
1172
1173ac_ext=c
1174ac_cpp='$CPP $CPPFLAGS'
1175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1177ac_compiler_gnu=$ac_cv_c_compiler_gnu
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196am__api_version="1.4"
1197ac_aux_dir=
1198for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1199  if test -f $ac_dir/install-sh; then
1200    ac_aux_dir=$ac_dir
1201    ac_install_sh="$ac_aux_dir/install-sh -c"
1202    break
1203  elif test -f $ac_dir/install.sh; then
1204    ac_aux_dir=$ac_dir
1205    ac_install_sh="$ac_aux_dir/install.sh -c"
1206    break
1207  elif test -f $ac_dir/shtool; then
1208    ac_aux_dir=$ac_dir
1209    ac_install_sh="$ac_aux_dir/shtool install -c"
1210    break
1211  fi
1212done
1213if test -z "$ac_aux_dir"; then
1214  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1215echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1216   { (exit 1); exit 1; }; }
1217fi
1218ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1219ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1220ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1221
1222# Find a good install program.  We prefer a C program (faster),
1223# so one script is as good as another.  But avoid the broken or
1224# incompatible versions:
1225# SysV /etc/install, /usr/sbin/install
1226# SunOS /usr/etc/install
1227# IRIX /sbin/install
1228# AIX /bin/install
1229# AmigaOS /C/install, which installs bootblocks on floppy discs
1230# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1231# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1232# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1233# ./install, which can be erroneously created by make from ./install.sh.
1234echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1235echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1236if test -z "$INSTALL"; then
1237if test "${ac_cv_path_install+set}" = set; then
1238  echo $ECHO_N "(cached) $ECHO_C" >&6
1239else
1240  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1241for as_dir in $PATH
1242do
1243  IFS=$as_save_IFS
1244  test -z "$as_dir" && as_dir=.
1245  # Account for people who put trailing slashes in PATH elements.
1246case $as_dir/ in
1247  ./ | .// | /cC/* | \
1248  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1249  /usr/ucb/* ) ;;
1250  *)
1251    # OSF1 and SCO ODT 3.0 have their own names for install.
1252    # Don't use installbsd from OSF since it installs stuff as root
1253    # by default.
1254    for ac_prog in ginstall scoinst install; do
1255      for ac_exec_ext in '' $ac_executable_extensions; do
1256        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1257          if test $ac_prog = install &&
1258            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1259            # AIX install.  It has an incompatible calling convention.
1260            :
1261          elif test $ac_prog = install &&
1262            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1263            # program-specific install script used by HP pwplus--don't use.
1264            :
1265          else
1266            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1267            break 3
1268          fi
1269        fi
1270      done
1271    done
1272    ;;
1273esac
1274done
1275
1276
1277fi
1278  if test "${ac_cv_path_install+set}" = set; then
1279    INSTALL=$ac_cv_path_install
1280  else
1281    # As a last resort, use the slow shell script.  We don't cache a
1282    # path for INSTALL within a source directory, because that will
1283    # break other packages using the cache if that directory is
1284    # removed, or if the path is relative.
1285    INSTALL=$ac_install_sh
1286  fi
1287fi
1288echo "$as_me:$LINENO: result: $INSTALL" >&5
1289echo "${ECHO_T}$INSTALL" >&6
1290
1291# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1292# It thinks the first close brace ends the variable substitution.
1293test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1294
1295test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1296
1297test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1298
1299echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1300echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1301# Just in case
1302sleep 1
1303echo timestamp > conftestfile
1304# Do `set' in a subshell so we don't clobber the current shell's
1305# arguments.  Must try -L first in case configure is actually a
1306# symlink; some systems play weird games with the mod time of symlinks
1307# (eg FreeBSD returns the mod time of the symlink's containing
1308# directory).
1309if (
1310   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1311   if test "$*" = "X"; then
1312      # -L didn't work.
1313      set X `ls -t $srcdir/configure conftestfile`
1314   fi
1315   if test "$*" != "X $srcdir/configure conftestfile" \
1316      && test "$*" != "X conftestfile $srcdir/configure"; then
1317
1318      # If neither matched, then we have a broken ls.  This can happen
1319      # if, for instance, CONFIG_SHELL is bash and it inherits a
1320      # broken ls alias from the environment.  This has actually
1321      # happened.  Such a system could not be considered "sane".
1322      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1323alias in your environment" >&5
1324echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1325alias in your environment" >&2;}
1326   { (exit 1); exit 1; }; }
1327   fi
1328
1329   test "$2" = conftestfile
1330   )
1331then
1332   # Ok.
1333   :
1334else
1335   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1336Check your system clock" >&5
1337echo "$as_me: error: newly created file is older than distributed files!
1338Check your system clock" >&2;}
1339   { (exit 1); exit 1; }; }
1340fi
1341rm -f conftest*
1342echo "$as_me:$LINENO: result: yes" >&5
1343echo "${ECHO_T}yes" >&6
1344test "$program_prefix" != NONE &&
1345  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1346# Use a double $ so make ignores it.
1347test "$program_suffix" != NONE &&
1348  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1349# Double any \ or $.  echo might interpret backslashes.
1350# By default was `s,x,x', remove it if useless.
1351cat <<\_ACEOF >conftest.sed
1352s/[\\$]/&&/g;s/;s,x,x,$//
1353_ACEOF
1354program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1355rm conftest.sed
1356
1357echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1358echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1359set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1360if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1361  echo $ECHO_N "(cached) $ECHO_C" >&6
1362else
1363  cat >conftest.make <<\_ACEOF
1364all:
1365        @echo 'ac_maketemp="${MAKE}"'
1366_ACEOF
1367# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1368eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1369if test -n "$ac_maketemp"; then
1370  eval ac_cv_prog_make_${ac_make}_set=yes
1371else
1372  eval ac_cv_prog_make_${ac_make}_set=no
1373fi
1374rm -f conftest.make
1375fi
1376if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1377  echo "$as_me:$LINENO: result: yes" >&5
1378echo "${ECHO_T}yes" >&6
1379  SET_MAKE=
1380else
1381  echo "$as_me:$LINENO: result: no" >&5
1382echo "${ECHO_T}no" >&6
1383  SET_MAKE="MAKE=${MAKE-make}"
1384fi
1385
1386
1387PACKAGE=gnome-system-monitor
1388
1389VERSION=2.0.3
1390
1391if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1392  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1393echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1394   { (exit 1); exit 1; }; }
1395fi
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE "$PACKAGE"
1399_ACEOF
1400
1401
1402cat >>confdefs.h <<_ACEOF
1403#define VERSION "$VERSION"
1404_ACEOF
1405
1406
1407
1408missing_dir=`cd $ac_aux_dir && pwd`
1409echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1410echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1411# Run test in a subshell; some versions of sh will print an error if
1412# an executable is not found, even if stderr is redirected.
1413# Redirect stdin to placate older versions of autoconf.  Sigh.
1414if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1415   ACLOCAL=aclocal-${am__api_version}
1416   echo "$as_me:$LINENO: result: found" >&5
1417echo "${ECHO_T}found" >&6
1418else
1419   ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1420   echo "$as_me:$LINENO: result: missing" >&5
1421echo "${ECHO_T}missing" >&6
1422fi
1423
1424echo "$as_me:$LINENO: checking for working autoconf" >&5
1425echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1426# Run test in a subshell; some versions of sh will print an error if
1427# an executable is not found, even if stderr is redirected.
1428# Redirect stdin to placate older versions of autoconf.  Sigh.
1429if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1430   AUTOCONF=autoconf
1431   echo "$as_me:$LINENO: result: found" >&5
1432echo "${ECHO_T}found" >&6
1433else
1434   AUTOCONF="$missing_dir/missing autoconf"
1435   echo "$as_me:$LINENO: result: missing" >&5
1436echo "${ECHO_T}missing" >&6
1437fi
1438
1439echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1440echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1441# Run test in a subshell; some versions of sh will print an error if
1442# an executable is not found, even if stderr is redirected.
1443# Redirect stdin to placate older versions of autoconf.  Sigh.
1444if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1445   AUTOMAKE=automake-${am__api_version}
1446   echo "$as_me:$LINENO: result: found" >&5
1447echo "${ECHO_T}found" >&6
1448else
1449   AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1450   echo "$as_me:$LINENO: result: missing" >&5
1451echo "${ECHO_T}missing" >&6
1452fi
1453
1454echo "$as_me:$LINENO: checking for working autoheader" >&5
1455echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1456# Run test in a subshell; some versions of sh will print an error if
1457# an executable is not found, even if stderr is redirected.
1458# Redirect stdin to placate older versions of autoconf.  Sigh.
1459if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1460   AUTOHEADER=autoheader
1461   echo "$as_me:$LINENO: result: found" >&5
1462echo "${ECHO_T}found" >&6
1463else
1464   AUTOHEADER="$missing_dir/missing autoheader"
1465   echo "$as_me:$LINENO: result: missing" >&5
1466echo "${ECHO_T}missing" >&6
1467fi
1468
1469echo "$as_me:$LINENO: checking for working makeinfo" >&5
1470echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1471# Run test in a subshell; some versions of sh will print an error if
1472# an executable is not found, even if stderr is redirected.
1473# Redirect stdin to placate older versions of autoconf.  Sigh.
1474if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1475   MAKEINFO=makeinfo
1476   echo "$as_me:$LINENO: result: found" >&5
1477echo "${ECHO_T}found" >&6
1478else
1479   MAKEINFO="$missing_dir/missing makeinfo"
1480   echo "$as_me:$LINENO: result: missing" >&5
1481echo "${ECHO_T}missing" >&6
1482fi
1483
1484
1485
1486ac_config_headers="$ac_config_headers config.h"
1487
1488ac_config_commands="$ac_config_commands default-1"
1489
1490
1491
1492
1493if test -n ""; then
1494    echo "$as_me:$LINENO: checking for intltool >= " >&5
1495echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
1496
1497    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo  | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
1498    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }'  < ${srcdir}/intltool-update.in`
1499
1500    INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${srcdir}/intltool-update.in`
1501
1502
1503    if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
1504        echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
1505echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
1506    else
1507        echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool  or later." >&5
1508echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool  or later." >&6
1509        exit 1
1510    fi
1511fi
1512
1513  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
1514INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
1515     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -k -u -c $(top_builddir)/po/.intltool-merge-cache'
1516     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
1517      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
1518     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
1519   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -u -c $(top_builddir)/po/.intltool-merge-cache'
1520    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
1521INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
1522       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
1523      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
1524    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
1525  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -s -u -c $(top_builddir)/po/.intltool-merge-cache'
1526    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543# Use the tools built into the package, not the ones that are installed.
1544
1545INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
1546INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
1547INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
1548
1549
1550
1551
1552
1553# Extract the first word of "perl", so it can be a program name with args.
1554set dummy perl; ac_word=$2
1555echo "$as_me:$LINENO: checking for $ac_word" >&5
1556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
1558  echo $ECHO_N "(cached) $ECHO_C" >&6
1559else
1560  case $INTLTOOL_PERL in
1561  [\\/]* | ?:[\\/]*)
1562  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
1563  ;;
1564  *)
1565  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566for as_dir in $PATH
1567do
1568  IFS=$as_save_IFS
1569  test -z "$as_dir" && as_dir=.
1570  for ac_exec_ext in '' $ac_executable_extensions; do
1571  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
1573    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574    break 2
1575  fi
1576done
1577done
1578
1579  ;;
1580esac
1581fi
1582INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
1583
1584if test -n "$INTLTOOL_PERL"; then
1585  echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
1586echo "${ECHO_T}$INTLTOOL_PERL" >&6
1587else
1588  echo "$as_me:$LINENO: result: no" >&5
1589echo "${ECHO_T}no" >&6
1590fi
1591
1592if test -z "$INTLTOOL_PERL"; then
1593   { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
1594echo "$as_me: error: perl not found; required for intltool" >&2;}
1595   { (exit 1); exit 1; }; }
1596fi
1597if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
1598   { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
1599echo "$as_me: error: perl 5.x required for intltool" >&2;}
1600   { (exit 1); exit 1; }; }
1601fi
1602
1603# Remove file type tags (using []) from po/POTFILES.
1604
1605
1606
1607
1608
1609
1610
1611# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
1612
1613ac_config_commands="$ac_config_commands default-2"
1614
1615
1616
1617
1618ac_ext=c
1619ac_cpp='$CPP $CPPFLAGS'
1620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1622ac_compiler_gnu=$ac_cv_c_compiler_gnu
1623if test -n "$ac_tool_prefix"; then
1624  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1625set dummy ${ac_tool_prefix}gcc; ac_word=$2
1626echo "$as_me:$LINENO: checking for $ac_word" >&5
1627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628if test "${ac_cv_prog_CC+set}" = set; then
1629  echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631  if test -n "$CC"; then
1632  ac_cv_prog_CC="$CC" # Let the user override the test.
1633else
1634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635for as_dir in $PATH
1636do
1637  IFS=$as_save_IFS
1638  test -z "$as_dir" && as_dir=.
1639  for ac_exec_ext in '' $ac_executable_extensions; do
1640  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1642    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643    break 2
1644  fi
1645done
1646done
1647
1648fi
1649fi
1650CC=$ac_cv_prog_CC
1651if test -n "$CC"; then
1652  echo "$as_me:$LINENO: result: $CC" >&5
1653echo "${ECHO_T}$CC" >&6
1654else
1655  echo "$as_me:$LINENO: result: no" >&5
1656echo "${ECHO_T}no" >&6
1657fi
1658
1659fi
1660if test -z "$ac_cv_prog_CC"; then
1661  ac_ct_CC=$CC
1662  # Extract the first word of "gcc", so it can be a program name with args.
1663set dummy gcc; ac_word=$2
1664echo "$as_me:$LINENO: checking for $ac_word" >&5
1665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1667  echo $ECHO_N "(cached) $ECHO_C" >&6
1668else
1669  if test -n "$ac_ct_CC"; then
1670  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1671else
1672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673for as_dir in $PATH
1674do
1675  IFS=$as_save_IFS
1676  test -z "$as_dir" && as_dir=.
1677  for ac_exec_ext in '' $ac_executable_extensions; do
1678  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679    ac_cv_prog_ac_ct_CC="gcc"
1680    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681    break 2
1682  fi
1683done
1684done
1685
1686fi
1687fi
1688ac_ct_CC=$ac_cv_prog_ac_ct_CC
1689if test -n "$ac_ct_CC"; then
1690  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1691echo "${ECHO_T}$ac_ct_CC" >&6
1692else
1693  echo "$as_me:$LINENO: result: no" >&5
1694echo "${ECHO_T}no" >&6
1695fi
1696
1697  CC=$ac_ct_CC
1698else
1699  CC="$ac_cv_prog_CC"
1700fi
1701
1702if test -z "$CC"; then
1703  if test -n "$ac_tool_prefix"; then
1704  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1705set dummy ${ac_tool_prefix}cc; ac_word=$2
1706echo "$as_me:$LINENO: checking for $ac_word" >&5
1707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708if test "${ac_cv_prog_CC+set}" = set; then
1709  echo $ECHO_N "(cached) $ECHO_C" >&6
1710else
1711  if test -n "$CC"; then
1712  ac_cv_prog_CC="$CC" # Let the user override the test.
1713else
1714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715for as_dir in $PATH
1716do
1717  IFS=$as_save_IFS
1718  test -z "$as_dir" && as_dir=.
1719  for ac_exec_ext in '' $ac_executable_extensions; do
1720  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721    ac_cv_prog_CC="${ac_tool_prefix}cc"
1722    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723    break 2
1724  fi
1725done
1726done
1727
1728fi
1729fi
1730CC=$ac_cv_prog_CC
1731if test -n "$CC"; then
1732  echo "$as_me:$LINENO: result: $CC" >&5
1733echo "${ECHO_T}$CC" >&6
1734else
1735  echo "$as_me:$LINENO: result: no" >&5
1736echo "${ECHO_T}no" >&6
1737fi
1738
1739fi
1740if test -z "$ac_cv_prog_CC"; then
1741  ac_ct_CC=$CC
1742  # Extract the first word of "cc", so it can be a program name with args.
1743set dummy cc; ac_word=$2
1744echo "$as_me:$LINENO: checking for $ac_word" >&5
1745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1747  echo $ECHO_N "(cached) $ECHO_C" >&6
1748else
1749  if test -n "$ac_ct_CC"; then
1750  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1751else
1752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753for as_dir in $PATH
1754do
1755  IFS=$as_save_IFS
1756  test -z "$as_dir" && as_dir=.
1757  for ac_exec_ext in '' $ac_executable_extensions; do
1758  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759    ac_cv_prog_ac_ct_CC="cc"
1760    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761    break 2
1762  fi
1763done
1764done
1765
1766fi
1767fi
1768ac_ct_CC=$ac_cv_prog_ac_ct_CC
1769if test -n "$ac_ct_CC"; then
1770  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1771echo "${ECHO_T}$ac_ct_CC" >&6
1772else
1773  echo "$as_me:$LINENO: result: no" >&5
1774echo "${ECHO_T}no" >&6
1775fi
1776
1777  CC=$ac_ct_CC
1778else
1779  CC="$ac_cv_prog_CC"
1780fi
1781
1782fi
1783if test -z "$CC"; then
1784  # Extract the first word of "cc", so it can be a program name with args.
1785set dummy cc; ac_word=$2
1786echo "$as_me:$LINENO: checking for $ac_word" >&5
1787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788if test "${ac_cv_prog_CC+set}" = set; then
1789  echo $ECHO_N "(cached) $ECHO_C" >&6
1790else
1791  if test -n "$CC"; then
1792  ac_cv_prog_CC="$CC" # Let the user override the test.
1793else
1794  ac_prog_rejected=no
1795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796for as_dir in $PATH
1797do
1798  IFS=$as_save_IFS
1799  test -z "$as_dir" && as_dir=.
1800  for ac_exec_ext in '' $ac_executable_extensions; do
1801  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1803       ac_prog_rejected=yes
1804       continue
1805     fi
1806    ac_cv_prog_CC="cc"
1807    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1808    break 2
1809  fi
1810done
1811done
1812
1813if test $ac_prog_rejected = yes; then
1814  # We found a bogon in the path, so make sure we never use it.
1815  set dummy $ac_cv_prog_CC
1816  shift
1817  if test $# != 0; then
1818    # We chose a different compiler from the bogus one.
1819    # However, it has the same basename, so the bogon will be chosen
1820    # first if we set CC to just the basename; use the full file name.
1821    shift
1822    set dummy "$as_dir/$ac_word" ${1+"$@"}
1823    shift
1824    ac_cv_prog_CC="$@"
1825  fi
1826fi
1827fi
1828fi
1829CC=$ac_cv_prog_CC
1830if test -n "$CC"; then
1831  echo "$as_me:$LINENO: result: $CC" >&5
1832echo "${ECHO_T}$CC" >&6
1833else
1834  echo "$as_me:$LINENO: result: no" >&5
1835echo "${ECHO_T}no" >&6
1836fi
1837
1838fi
1839if test -z "$CC"; then
1840  if test -n "$ac_tool_prefix"; then
1841  for ac_prog in cl
1842  do
1843    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1844set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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
1878    test -n "$CC" && break
1879  done
1880fi
1881if test -z "$CC"; then
1882  ac_ct_CC=$CC
1883  for ac_prog in cl
1884do
1885  # Extract the first word of "$ac_prog", so it can be a program name with args.
1886set dummy $ac_prog; ac_word=$2
1887echo "$as_me:$LINENO: checking for $ac_word" >&5
1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1890  echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
1892  if test -n "$ac_ct_CC"; then
1893  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1894else
1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896for as_dir in $PATH
1897do
1898  IFS=$as_save_IFS
1899  test -z "$as_dir" && as_dir=.
1900  for ac_exec_ext in '' $ac_executable_extensions; do
1901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902    ac_cv_prog_ac_ct_CC="$ac_prog"
1903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904    break 2
1905  fi
1906done
1907done
1908
1909fi
1910fi
1911ac_ct_CC=$ac_cv_prog_ac_ct_CC
1912if test -n "$ac_ct_CC"; then
1913  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1914echo "${ECHO_T}$ac_ct_CC" >&6
1915else
1916  echo "$as_me:$LINENO: result: no" >&5
1917echo "${ECHO_T}no" >&6
1918fi
1919
1920  test -n "$ac_ct_CC" && break
1921done
1922
1923  CC=$ac_ct_CC
1924fi
1925
1926fi
1927
1928
1929test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1930echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1931   { (exit 1); exit 1; }; }
1932
1933# Provide some information about the compiler.
1934echo "$as_me:$LINENO:" \
1935     "checking for C compiler version" >&5
1936ac_compiler=`set X $ac_compile; echo $2`
1937{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1938  (eval $ac_compiler --version </dev/null >&5) 2>&5
1939  ac_status=$?
1940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941  (exit $ac_status); }
1942{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1943  (eval $ac_compiler -v </dev/null >&5) 2>&5
1944  ac_status=$?
1945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946  (exit $ac_status); }
1947{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1948  (eval $ac_compiler -V </dev/null >&5) 2>&5
1949  ac_status=$?
1950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951  (exit $ac_status); }
1952
1953cat >conftest.$ac_ext <<_ACEOF
1954#line $LINENO "configure"
1955#include "confdefs.h"
1956
1957#ifdef F77_DUMMY_MAIN
1958#  ifdef __cplusplus
1959     extern "C"
1960#  endif
1961   int F77_DUMMY_MAIN() { return 1; }
1962#endif
1963int
1964main ()
1965{
1966
1967  ;
1968  return 0;
1969}
1970_ACEOF
1971ac_clean_files_save=$ac_clean_files
1972ac_clean_files="$ac_clean_files a.out a.exe"
1973# Try to create an executable without -o first, disregard a.out.
1974# It will help us diagnose broken compilers, and finding out an intuition
1975# of exeext.
1976echo "$as_me:$LINENO: checking for C compiler default output" >&5
1977echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1978ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1979if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1980  (eval $ac_link_default) 2>&5
1981  ac_status=$?
1982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983  (exit $ac_status); }; then
1984  # Find the output, starting from the most likely.  This scheme is
1985# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1986# resort.
1987
1988# Be careful to initialize this variable, since it used to be cached.
1989# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1990ac_cv_exeext=
1991for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1992                ls a.out conftest 2>/dev/null;
1993                ls a.* conftest.* 2>/dev/null`; do
1994  case $ac_file in
1995    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1996    a.out ) # We found the default executable, but exeext='' is most
1997            # certainly right.
1998            break;;
1999    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2000          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2001          export ac_cv_exeext
2002          break;;
2003    * ) break;;
2004  esac
2005done
2006else
2007  echo "$as_me: failed program was:" >&5
2008cat conftest.$ac_ext >&5
2009{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2010echo "$as_me: error: C compiler cannot create executables" >&2;}
2011   { (exit 77); exit 77; }; }
2012fi
2013
2014ac_exeext=$ac_cv_exeext
2015echo "$as_me:$LINENO: result: $ac_file" >&5
2016echo "${ECHO_T}$ac_file" >&6
2017
2018# Check the compiler produces executables we can run.  If not, either
2019# the compiler is broken, or we cross compile.
2020echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2021echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2022# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2023# If not cross compiling, check that we can run a simple program.
2024if test "$cross_compiling" != yes; then
2025  if { ac_try='./$ac_file'
2026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2027  (eval $ac_try) 2>&5
2028  ac_status=$?
2029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030  (exit $ac_status); }; }; then
2031    cross_compiling=no
2032  else
2033    if test "$cross_compiling" = maybe; then
2034        cross_compiling=yes
2035    else
2036        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2037If you meant to cross compile, use \`--host'." >&5
2038echo "$as_me: error: cannot run C compiled programs.
2039If you meant to cross compile, use \`--host'." >&2;}
2040   { (exit 1); exit 1; }; }
2041    fi
2042  fi
2043fi
2044echo "$as_me:$LINENO: result: yes" >&5
2045echo "${ECHO_T}yes" >&6
2046
2047rm -f a.out a.exe conftest$ac_cv_exeext
2048ac_clean_files=$ac_clean_files_save
2049# Check the compiler produces executables we can run.  If not, either
2050# the compiler is broken, or we cross compile.
2051echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2052echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2053echo "$as_me:$LINENO: result: $cross_compiling" >&5
2054echo "${ECHO_T}$cross_compiling" >&6
2055
2056echo "$as_me:$LINENO: checking for suffix of executables" >&5
2057echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2059  (eval $ac_link) 2>&5
2060  ac_status=$?
2061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062  (exit $ac_status); }; then
2063  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2064# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2065# work properly (i.e., refer to `conftest.exe'), while it won't with
2066# `rm'.
2067for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2068  case $ac_file in
2069    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2070    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2071          export ac_cv_exeext
2072          break;;
2073    * ) break;;
2074  esac
2075done
2076else
2077  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2078echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2079   { (exit 1); exit 1; }; }
2080fi
2081
2082rm -f conftest$ac_cv_exeext
2083echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2084echo "${ECHO_T}$ac_cv_exeext" >&6
2085
2086rm -f conftest.$ac_ext
2087EXEEXT=$ac_cv_exeext
2088ac_exeext=$EXEEXT
2089echo "$as_me:$LINENO: checking for suffix of object files" >&5
2090echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2091if test "${ac_cv_objext+set}" = set; then
2092  echo $ECHO_N "(cached) $ECHO_C" >&6
2093else
2094  cat >conftest.$ac_ext <<_ACEOF
2095#line $LINENO "configure"
2096#include "confdefs.h"
2097
2098#ifdef F77_DUMMY_MAIN
2099#  ifdef __cplusplus
2100     extern "C"
2101#  endif
2102   int F77_DUMMY_MAIN() { return 1; }
2103#endif
2104int
2105main ()
2106{
2107
2108  ;
2109  return 0;
2110}
2111_ACEOF
2112rm -f conftest.o conftest.obj
2113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2114  (eval $ac_compile) 2>&5
2115  ac_status=$?
2116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117  (exit $ac_status); }; then
2118  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2119  case $ac_file in
2120    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2121    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2122       break;;
2123  esac
2124done
2125else
2126  echo "$as_me: failed program was:" >&5
2127cat conftest.$ac_ext >&5
2128{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2129echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2130   { (exit 1); exit 1; }; }
2131fi
2132
2133rm -f conftest.$ac_cv_objext conftest.$ac_ext
2134fi
2135echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2136echo "${ECHO_T}$ac_cv_objext" >&6
2137OBJEXT=$ac_cv_objext
2138ac_objext=$OBJEXT
2139echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2140echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2141if test "${ac_cv_c_compiler_gnu+set}" = set; then
2142  echo $ECHO_N "(cached) $ECHO_C" >&6
2143else
2144  cat >conftest.$ac_ext <<_ACEOF
2145#line $LINENO "configure"
2146#include "confdefs.h"
2147
2148#ifdef F77_DUMMY_MAIN
2149#  ifdef __cplusplus
2150     extern "C"
2151#  endif
2152   int F77_DUMMY_MAIN() { return 1; }
2153#endif
2154int
2155main ()
2156{
2157#ifndef __GNUC__
2158       choke me
2159#endif
2160
2161  ;
2162  return 0;
2163}
2164_ACEOF
2165rm -f conftest.$ac_objext
2166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167  (eval $ac_compile) 2>&5
2168  ac_status=$?
2169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170  (exit $ac_status); } &&
2171         { ac_try='test -s conftest.$ac_objext'
2172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173  (eval $ac_try) 2>&5
2174  ac_status=$?
2175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176  (exit $ac_status); }; }; then
2177  ac_compiler_gnu=yes
2178else
2179  echo "$as_me: failed program was:" >&5
2180cat conftest.$ac_ext >&5
2181ac_compiler_gnu=no
2182fi
2183rm -f conftest.$ac_objext conftest.$ac_ext
2184ac_cv_c_compiler_gnu=$ac_compiler_gnu
2185
2186fi
2187echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2188echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2189GCC=`test $ac_compiler_gnu = yes && echo yes`
2190ac_test_CFLAGS=${CFLAGS+set}
2191ac_save_CFLAGS=$CFLAGS
2192CFLAGS="-g"
2193echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2194echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2195if test "${ac_cv_prog_cc_g+set}" = set; then
2196  echo $ECHO_N "(cached) $ECHO_C" >&6
2197else
2198  cat >conftest.$ac_ext <<_ACEOF
2199#line $LINENO "configure"
2200#include "confdefs.h"
2201
2202#ifdef F77_DUMMY_MAIN
2203#  ifdef __cplusplus
2204     extern "C"
2205#  endif
2206   int F77_DUMMY_MAIN() { return 1; }
2207#endif
2208int
2209main ()
2210{
2211
2212  ;
2213  return 0;
2214}
2215_ACEOF
2216rm -f conftest.$ac_objext
2217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218  (eval $ac_compile) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); } &&
2222         { ac_try='test -s conftest.$ac_objext'
2223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224  (eval $ac_try) 2>&5
2225  ac_status=$?
2226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227  (exit $ac_status); }; }; then
2228  ac_cv_prog_cc_g=yes
2229else
2230  echo "$as_me: failed program was:" >&5
2231cat conftest.$ac_ext >&5
2232ac_cv_prog_cc_g=no
2233fi
2234rm -f conftest.$ac_objext conftest.$ac_ext
2235fi
2236echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2237echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2238if test "$ac_test_CFLAGS" = set; then
2239  CFLAGS=$ac_save_CFLAGS
2240elif test $ac_cv_prog_cc_g = yes; then
2241  if test "$GCC" = yes; then
2242    CFLAGS="-g -O2"
2243  else
2244    CFLAGS="-g"
2245  fi
2246else
2247  if test "$GCC" = yes; then
2248    CFLAGS="-O2"
2249  else
2250    CFLAGS=
2251  fi
2252fi
2253# Some people use a C++ compiler to compile C.  Since we use `exit',
2254# in C++ we need to declare it.  In case someone uses the same compiler
2255# for both compiling C and C++ we need to have the C++ compiler decide
2256# the declaration of exit, since it's the most demanding environment.
2257cat >conftest.$ac_ext <<_ACEOF
2258#ifndef __cplusplus
2259  choke me
2260#endif
2261_ACEOF
2262rm -f conftest.$ac_objext
2263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264  (eval $ac_compile) 2>&5
2265  ac_status=$?
2266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267  (exit $ac_status); } &&
2268         { ac_try='test -s conftest.$ac_objext'
2269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270  (eval $ac_try) 2>&5
2271  ac_status=$?
2272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273  (exit $ac_status); }; }; then
2274  for ac_declaration in \
2275   ''\
2276   '#include <stdlib.h>' \
2277   'extern "C" void std::exit (int) throw (); using std::exit;' \
2278   'extern "C" void std::exit (int); using std::exit;' \
2279   'extern "C" void exit (int) throw ();' \
2280   'extern "C" void exit (int);' \
2281   'void exit (int);'
2282do
2283  cat >conftest.$ac_ext <<_ACEOF
2284#line $LINENO "configure"
2285#include "confdefs.h"
2286#include <stdlib.h>
2287$ac_declaration
2288#ifdef F77_DUMMY_MAIN
2289#  ifdef __cplusplus
2290     extern "C"
2291#  endif
2292   int F77_DUMMY_MAIN() { return 1; }
2293#endif
2294int
2295main ()
2296{
2297exit (42);
2298  ;
2299  return 0;
2300}
2301_ACEOF
2302rm -f conftest.$ac_objext
2303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304  (eval $ac_compile) 2>&5
2305  ac_status=$?
2306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307  (exit $ac_status); } &&
2308         { ac_try='test -s conftest.$ac_objext'
2309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310  (eval $ac_try) 2>&5
2311  ac_status=$?
2312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313  (exit $ac_status); }; }; then
2314  :
2315else
2316  echo "$as_me: failed program was:" >&5
2317cat conftest.$ac_ext >&5
2318continue
2319fi
2320rm -f conftest.$ac_objext conftest.$ac_ext
2321  cat >conftest.$ac_ext <<_ACEOF
2322#line $LINENO "configure"
2323#include "confdefs.h"
2324$ac_declaration
2325#ifdef F77_DUMMY_MAIN
2326#  ifdef __cplusplus
2327     extern "C"
2328#  endif
2329   int F77_DUMMY_MAIN() { return 1; }
2330#endif
2331int
2332main ()
2333{
2334exit (42);
2335  ;
2336  return 0;
2337}
2338_ACEOF
2339rm -f conftest.$ac_objext
2340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341  (eval $ac_compile) 2>&5
2342  ac_status=$?
2343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344  (exit $ac_status); } &&
2345         { ac_try='test -s conftest.$ac_objext'
2346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347  (eval $ac_try) 2>&5
2348  ac_status=$?
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); }; }; then
2351  break
2352else
2353  echo "$as_me: failed program was:" >&5
2354cat conftest.$ac_ext >&5
2355fi
2356rm -f conftest.$ac_objext conftest.$ac_ext
2357done
2358rm -f conftest*
2359if test -n "$ac_declaration"; then
2360  echo '#ifdef __cplusplus' >>confdefs.h
2361  echo $ac_declaration      >>confdefs.h
2362  echo '#endif'             >>confdefs.h
2363fi
2364
2365else
2366  echo "$as_me: failed program was:" >&5
2367cat conftest.$ac_ext >&5
2368fi
2369rm -f conftest.$ac_objext conftest.$ac_ext
2370ac_ext=c
2371ac_cpp='$CPP $CPPFLAGS'
2372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374ac_compiler_gnu=$ac_cv_c_compiler_gnu
2375
2376
2377
2378        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2379echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2380if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2381  echo $ECHO_N "(cached) $ECHO_C" >&6
2382else
2383  ac_check_lib_save_LIBS=$LIBS
2384LIBS="-lcposix  $LIBS"
2385cat >conftest.$ac_ext <<_ACEOF
2386#line $LINENO "configure"
2387#include "confdefs.h"
2388
2389/* Override any gcc2 internal prototype to avoid an error.  */
2390#ifdef __cplusplus
2391extern "C"
2392#endif
2393/* We use char because int might match the return type of a gcc2
2394   builtin and then its argument prototype would still apply.  */
2395char strerror ();
2396#ifdef F77_DUMMY_MAIN
2397#  ifdef __cplusplus
2398     extern "C"
2399#  endif
2400   int F77_DUMMY_MAIN() { return 1; }
2401#endif
2402int
2403main ()
2404{
2405strerror ();
2406  ;
2407  return 0;
2408}
2409_ACEOF
2410rm -f conftest.$ac_objext conftest$ac_exeext
2411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2412  (eval $ac_link) 2>&5
2413  ac_status=$?
2414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415  (exit $ac_status); } &&
2416         { ac_try='test -s conftest$ac_exeext'
2417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418  (eval $ac_try) 2>&5
2419  ac_status=$?
2420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421  (exit $ac_status); }; }; then
2422  ac_cv_lib_cposix_strerror=yes
2423else
2424  echo "$as_me: failed program was:" >&5
2425cat conftest.$ac_ext >&5
2426ac_cv_lib_cposix_strerror=no
2427fi
2428rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2429LIBS=$ac_check_lib_save_LIBS
2430fi
2431echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2432echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2433if test $ac_cv_lib_cposix_strerror = yes; then
2434  LIBS="$LIBS -lcposix"
2435fi
2436
2437
2438
2439ac_ext=c
2440ac_cpp='$CPP $CPPFLAGS'
2441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444if test -n "$ac_tool_prefix"; then
2445  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2446set dummy ${ac_tool_prefix}gcc; ac_word=$2
2447echo "$as_me:$LINENO: checking for $ac_word" >&5
2448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2449if test "${ac_cv_prog_CC+set}" = set; then
2450  echo $ECHO_N "(cached) $ECHO_C" >&6
2451else
2452  if test -n "$CC"; then
2453  ac_cv_prog_CC="$CC" # Let the user override the test.
2454else
2455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456for as_dir in $PATH
2457do
2458  IFS=$as_save_IFS
2459  test -z "$as_dir" && as_dir=.
2460  for ac_exec_ext in '' $ac_executable_extensions; do
2461  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2462    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2463    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464    break 2
2465  fi
2466done
2467done
2468
2469fi
2470fi
2471CC=$ac_cv_prog_CC
2472if test -n "$CC"; then
2473  echo "$as_me:$LINENO: result: $CC" >&5
2474echo "${ECHO_T}$CC" >&6
2475else
2476  echo "$as_me:$LINENO: result: no" >&5
2477echo "${ECHO_T}no" >&6
2478fi
2479
2480fi
2481if test -z "$ac_cv_prog_CC"; then
2482  ac_ct_CC=$CC
2483  # Extract the first word of "gcc", so it can be a program name with args.
2484set dummy gcc; ac_word=$2
2485echo "$as_me:$LINENO: checking for $ac_word" >&5
2486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2487if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2488  echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490  if test -n "$ac_ct_CC"; then
2491  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2492else
2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494for as_dir in $PATH
2495do
2496  IFS=$as_save_IFS
2497  test -z "$as_dir" && as_dir=.
2498  for ac_exec_ext in '' $ac_executable_extensions; do
2499  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500    ac_cv_prog_ac_ct_CC="gcc"
2501    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502    break 2
2503  fi
2504done
2505done
2506
2507fi
2508fi
2509ac_ct_CC=$ac_cv_prog_ac_ct_CC
2510if test -n "$ac_ct_CC"; then
2511  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2512echo "${ECHO_T}$ac_ct_CC" >&6
2513else
2514  echo "$as_me:$LINENO: result: no" >&5
2515echo "${ECHO_T}no" >&6
2516fi
2517
2518  CC=$ac_ct_CC
2519else
2520  CC="$ac_cv_prog_CC"
2521fi
2522
2523if test -z "$CC"; then
2524  if test -n "$ac_tool_prefix"; then
2525  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2526set dummy ${ac_tool_prefix}cc; ac_word=$2
2527echo "$as_me:$LINENO: checking for $ac_word" >&5
2528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2529if test "${ac_cv_prog_CC+set}" = set; then
2530  echo $ECHO_N "(cached) $ECHO_C" >&6
2531else
2532  if test -n "$CC"; then
2533  ac_cv_prog_CC="$CC" # Let the user override the test.
2534else
2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH
2537do
2538  IFS=$as_save_IFS
2539  test -z "$as_dir" && as_dir=.
2540  for ac_exec_ext in '' $ac_executable_extensions; do
2541  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542    ac_cv_prog_CC="${ac_tool_prefix}cc"
2543    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544    break 2
2545  fi
2546done
2547done
2548
2549fi
2550fi
2551CC=$ac_cv_prog_CC
2552if test -n "$CC"; then
2553  echo "$as_me:$LINENO: result: $CC" >&5
2554echo "${ECHO_T}$CC" >&6
2555else
2556  echo "$as_me:$LINENO: result: no" >&5
2557echo "${ECHO_T}no" >&6
2558fi
2559
2560fi
2561if test -z "$ac_cv_prog_CC"; then
2562  ac_ct_CC=$CC
2563  # Extract the first word of "cc", so it can be a program name with args.
2564set dummy cc; ac_word=$2
2565echo "$as_me:$LINENO: checking for $ac_word" >&5
2566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2567if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2568  echo $ECHO_N "(cached) $ECHO_C" >&6
2569else
2570  if test -n "$ac_ct_CC"; then
2571  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2572else
2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574for as_dir in $PATH
2575do
2576  IFS=$as_save_IFS
2577  test -z "$as_dir" && as_dir=.
2578  for ac_exec_ext in '' $ac_executable_extensions; do
2579  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2580    ac_cv_prog_ac_ct_CC="cc"
2581    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582    break 2
2583  fi
2584done
2585done
2586
2587fi
2588fi
2589ac_ct_CC=$ac_cv_prog_ac_ct_CC
2590if test -n "$ac_ct_CC"; then
2591  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2592echo "${ECHO_T}$ac_ct_CC" >&6
2593else
2594  echo "$as_me:$LINENO: result: no" >&5
2595echo "${ECHO_T}no" >&6
2596fi
2597
2598  CC=$ac_ct_CC
2599else
2600  CC="$ac_cv_prog_CC"
2601fi
2602
2603fi
2604if test -z "$CC"; then
2605  # Extract the first word of "cc", so it can be a program name with args.
2606set dummy cc; ac_word=$2
2607echo "$as_me:$LINENO: checking for $ac_word" >&5
2608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2609if test "${ac_cv_prog_CC+set}" = set; then
2610  echo $ECHO_N "(cached) $ECHO_C" >&6
2611else
2612  if test -n "$CC"; then
2613  ac_cv_prog_CC="$CC" # Let the user override the test.
2614else
2615  ac_prog_rejected=no
2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619  IFS=$as_save_IFS
2620  test -z "$as_dir" && as_dir=.
2621  for ac_exec_ext in '' $ac_executable_extensions; do
2622  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2623    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2624       ac_prog_rejected=yes
2625       continue
2626     fi
2627    ac_cv_prog_CC="cc"
2628    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629    break 2
2630  fi
2631done
2632done
2633
2634if test $ac_prog_rejected = yes; then
2635  # We found a bogon in the path, so make sure we never use it.
2636  set dummy $ac_cv_prog_CC
2637  shift
2638  if test $# != 0; then
2639    # We chose a different compiler from the bogus one.
2640    # However, it has the same basename, so the bogon will be chosen
2641    # first if we set CC to just the basename; use the full file name.
2642    shift
2643    set dummy "$as_dir/$ac_word" ${1+"$@"}
2644    shift
2645    ac_cv_prog_CC="$@"
2646  fi
2647fi
2648fi
2649fi
2650CC=$ac_cv_prog_CC
2651if test -n "$CC"; then
2652  echo "$as_me:$LINENO: result: $CC" >&5
2653echo "${ECHO_T}$CC" >&6
2654else
2655  echo "$as_me:$LINENO: result: no" >&5
2656echo "${ECHO_T}no" >&6
2657fi
2658
2659fi
2660if test -z "$CC"; then
2661  if test -n "$ac_tool_prefix"; then
2662  for ac_prog in cl
2663  do
2664    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2665set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2666echo "$as_me:$LINENO: checking for $ac_word" >&5
2667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2668if test "${ac_cv_prog_CC+set}" = set; then
2669  echo $ECHO_N "(cached) $ECHO_C" >&6
2670else
2671  if test -n "$CC"; then
2672  ac_cv_prog_CC="$CC" # Let the user override the test.
2673else
2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675for as_dir in $PATH
2676do
2677  IFS=$as_save_IFS
2678  test -z "$as_dir" && as_dir=.
2679  for ac_exec_ext in '' $ac_executable_extensions; do
2680  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2681    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2682    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2683    break 2
2684  fi
2685done
2686done
2687
2688fi
2689fi
2690CC=$ac_cv_prog_CC
2691if test -n "$CC"; then
2692  echo "$as_me:$LINENO: result: $CC" >&5
2693echo "${ECHO_T}$CC" >&6
2694else
2695  echo "$as_me:$LINENO: result: no" >&5
2696echo "${ECHO_T}no" >&6
2697fi
2698
2699    test -n "$CC" && break
2700  done
2701fi
2702if test -z "$CC"; then
2703  ac_ct_CC=$CC
2704  for ac_prog in cl
2705do
2706  # Extract the first word of "$ac_prog", so it can be a program name with args.
2707set dummy $ac_prog; ac_word=$2
2708echo "$as_me:$LINENO: checking for $ac_word" >&5
2709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2710if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2711  echo $ECHO_N "(cached) $ECHO_C" >&6
2712else
2713  if test -n "$ac_ct_CC"; then
2714  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2715else
2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717for as_dir in $PATH
2718do
2719  IFS=$as_save_IFS
2720  test -z "$as_dir" && as_dir=.
2721  for ac_exec_ext in '' $ac_executable_extensions; do
2722  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2723    ac_cv_prog_ac_ct_CC="$ac_prog"
2724    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725    break 2
2726  fi
2727done
2728done
2729
2730fi
2731fi
2732ac_ct_CC=$ac_cv_prog_ac_ct_CC
2733if test -n "$ac_ct_CC"; then
2734  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2735echo "${ECHO_T}$ac_ct_CC" >&6
2736else
2737  echo "$as_me:$LINENO: result: no" >&5
2738echo "${ECHO_T}no" >&6
2739fi
2740
2741  test -n "$ac_ct_CC" && break
2742done
2743
2744  CC=$ac_ct_CC
2745fi
2746
2747fi
2748
2749
2750test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2751echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2752   { (exit 1); exit 1; }; }
2753
2754# Provide some information about the compiler.
2755echo "$as_me:$LINENO:" \
2756     "checking for C compiler version" >&5
2757ac_compiler=`set X $ac_compile; echo $2`
2758{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2759  (eval $ac_compiler --version </dev/null >&5) 2>&5
2760  ac_status=$?
2761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762  (exit $ac_status); }
2763{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2764  (eval $ac_compiler -v </dev/null >&5) 2>&5
2765  ac_status=$?
2766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767  (exit $ac_status); }
2768{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2769  (eval $ac_compiler -V </dev/null >&5) 2>&5
2770  ac_status=$?
2771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772  (exit $ac_status); }
2773
2774echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2775echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2776if test "${ac_cv_c_compiler_gnu+set}" = set; then
2777  echo $ECHO_N "(cached) $ECHO_C" >&6
2778else
2779  cat >conftest.$ac_ext <<_ACEOF
2780#line $LINENO "configure"
2781#include "confdefs.h"
2782
2783#ifdef F77_DUMMY_MAIN
2784#  ifdef __cplusplus
2785     extern "C"
2786#  endif
2787   int F77_DUMMY_MAIN() { return 1; }
2788#endif
2789int
2790main ()
2791{
2792#ifndef __GNUC__
2793       choke me
2794#endif
2795
2796  ;
2797  return 0;
2798}
2799_ACEOF
2800rm -f conftest.$ac_objext
2801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2802  (eval $ac_compile) 2>&5
2803  ac_status=$?
2804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805  (exit $ac_status); } &&
2806         { ac_try='test -s conftest.$ac_objext'
2807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808  (eval $ac_try) 2>&5
2809  ac_status=$?
2810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811  (exit $ac_status); }; }; then
2812  ac_compiler_gnu=yes
2813else
2814  echo "$as_me: failed program was:" >&5
2815cat conftest.$ac_ext >&5
2816ac_compiler_gnu=no
2817fi
2818rm -f conftest.$ac_objext conftest.$ac_ext
2819ac_cv_c_compiler_gnu=$ac_compiler_gnu
2820
2821fi
2822echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2823echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2824GCC=`test $ac_compiler_gnu = yes && echo yes`
2825ac_test_CFLAGS=${CFLAGS+set}
2826ac_save_CFLAGS=$CFLAGS
2827CFLAGS="-g"
2828echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2829echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2830if test "${ac_cv_prog_cc_g+set}" = set; then
2831  echo $ECHO_N "(cached) $ECHO_C" >&6
2832else
2833  cat >conftest.$ac_ext <<_ACEOF
2834#line $LINENO "configure"
2835#include "confdefs.h"
2836
2837#ifdef F77_DUMMY_MAIN
2838#  ifdef __cplusplus
2839     extern "C"
2840#  endif
2841   int F77_DUMMY_MAIN() { return 1; }
2842#endif
2843int
2844main ()
2845{
2846
2847  ;
2848  return 0;
2849}
2850_ACEOF
2851rm -f conftest.$ac_objext
2852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2853  (eval $ac_compile) 2>&5
2854  ac_status=$?
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); } &&
2857         { ac_try='test -s conftest.$ac_objext'
2858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859  (eval $ac_try) 2>&5
2860  ac_status=$?
2861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862  (exit $ac_status); }; }; then
2863  ac_cv_prog_cc_g=yes
2864else
2865  echo "$as_me: failed program was:" >&5
2866cat conftest.$ac_ext >&5
2867ac_cv_prog_cc_g=no
2868fi
2869rm -f conftest.$ac_objext conftest.$ac_ext
2870fi
2871echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2872echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2873if test "$ac_test_CFLAGS" = set; then
2874  CFLAGS=$ac_save_CFLAGS
2875elif test $ac_cv_prog_cc_g = yes; then
2876  if test "$GCC" = yes; then
2877    CFLAGS="-g -O2"
2878  else
2879    CFLAGS="-g"
2880  fi
2881else
2882  if test "$GCC" = yes; then
2883    CFLAGS="-O2"
2884  else
2885    CFLAGS=
2886  fi
2887fi
2888# Some people use a C++ compiler to compile C.  Since we use `exit',
2889# in C++ we need to declare it.  In case someone uses the same compiler
2890# for both compiling C and C++ we need to have the C++ compiler decide
2891# the declaration of exit, since it's the most demanding environment.
2892cat >conftest.$ac_ext <<_ACEOF
2893#ifndef __cplusplus
2894  choke me
2895#endif
2896_ACEOF
2897rm -f conftest.$ac_objext
2898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899  (eval $ac_compile) 2>&5
2900  ac_status=$?
2901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902  (exit $ac_status); } &&
2903         { ac_try='test -s conftest.$ac_objext'
2904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905  (eval $ac_try) 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }; }; then
2909  for ac_declaration in \
2910   ''\
2911   '#include <stdlib.h>' \
2912   'extern "C" void std::exit (int) throw (); using std::exit;' \
2913   'extern "C" void std::exit (int); using std::exit;' \
2914   'extern "C" void exit (int) throw ();' \
2915   'extern "C" void exit (int);' \
2916   'void exit (int);'
2917do
2918  cat >conftest.$ac_ext <<_ACEOF
2919#line $LINENO "configure"
2920#include "confdefs.h"
2921#include <stdlib.h>
2922$ac_declaration
2923#ifdef F77_DUMMY_MAIN
2924#  ifdef __cplusplus
2925     extern "C"
2926#  endif
2927   int F77_DUMMY_MAIN() { return 1; }
2928#endif
2929int
2930main ()
2931{
2932exit (42);
2933  ;
2934  return 0;
2935}
2936_ACEOF
2937rm -f conftest.$ac_objext
2938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2939  (eval $ac_compile) 2>&5
2940  ac_status=$?
2941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942  (exit $ac_status); } &&
2943         { ac_try='test -s conftest.$ac_objext'
2944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945  (eval $ac_try) 2>&5
2946  ac_status=$?
2947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948  (exit $ac_status); }; }; then
2949  :
2950else
2951  echo "$as_me: failed program was:" >&5
2952cat conftest.$ac_ext >&5
2953continue
2954fi
2955rm -f conftest.$ac_objext conftest.$ac_ext
2956  cat >conftest.$ac_ext <<_ACEOF
2957#line $LINENO "configure"
2958#include "confdefs.h"
2959$ac_declaration
2960#ifdef F77_DUMMY_MAIN
2961#  ifdef __cplusplus
2962     extern "C"
2963#  endif
2964   int F77_DUMMY_MAIN() { return 1; }
2965#endif
2966int
2967main ()
2968{
2969exit (42);
2970  ;
2971  return 0;
2972}
2973_ACEOF
2974rm -f conftest.$ac_objext
2975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2976  (eval $ac_compile) 2>&5
2977  ac_status=$?
2978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979  (exit $ac_status); } &&
2980         { ac_try='test -s conftest.$ac_objext'
2981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982  (eval $ac_try) 2>&5
2983  ac_status=$?
2984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985  (exit $ac_status); }; }; then
2986  break
2987else
2988  echo "$as_me: failed program was:" >&5
2989cat conftest.$ac_ext >&5
2990fi
2991rm -f conftest.$ac_objext conftest.$ac_ext
2992done
2993rm -f conftest*
2994if test -n "$ac_declaration"; then
2995  echo '#ifdef __cplusplus' >>confdefs.h
2996  echo $ac_declaration      >>confdefs.h
2997  echo '#endif'             >>confdefs.h
2998fi
2999
3000else
3001  echo "$as_me: failed program was:" >&5
3002cat conftest.$ac_ext >&5
3003fi
3004rm -f conftest.$ac_objext conftest.$ac_ext
3005ac_ext=c
3006ac_cpp='$CPP $CPPFLAGS'
3007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010
3011
3012
3013
3014echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3015echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3016if test "${am_cv_prog_cc_stdc+set}" = set; then
3017  echo $ECHO_N "(cached) $ECHO_C" >&6
3018else
3019  am_cv_prog_cc_stdc=no
3020ac_save_CC="$CC"
3021# Don't try gcc -ansi; that turns off useful extensions and
3022# breaks some systems' header files.
3023# AIX                   -qlanglvl=ansi
3024# Ultrix and OSF/1      -std1
3025# HP-UX                 -Aa -D_HPUX_SOURCE
3026# SVR4                  -Xc -D__EXTENSIONS__
3027for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3028do
3029  CC="$ac_save_CC $ac_arg"
3030  cat >conftest.$ac_ext <<_ACEOF
3031#line $LINENO "configure"
3032#include "confdefs.h"
3033#include <stdarg.h>
3034#include <stdio.h>
3035#include <sys/types.h>
3036#include <sys/stat.h>
3037/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3038struct buf { int x; };
3039FILE * (*rcsopen) (struct buf *, struct stat *, int);
3040static char *e (p, i)
3041     char **p;
3042     int i;
3043{
3044  return p[i];
3045}
3046static char *f (char * (*g) (char **, int), char **p, ...)
3047{
3048  char *s;
3049  va_list v;
3050  va_start (v,p);
3051  s = g (p, va_arg (v,int));
3052  va_end (v);
3053  return s;
3054}
3055int test (int i, double x);
3056struct s1 {int (*f) (int a);};
3057struct s2 {int (*f) (double a);};
3058int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3059int argc;
3060char **argv;
3061
3062#ifdef F77_DUMMY_MAIN
3063#  ifdef __cplusplus
3064     extern "C"
3065#  endif
3066   int F77_DUMMY_MAIN() { return 1; }
3067#endif
3068int
3069main ()
3070{
3071
3072return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3073
3074  ;
3075  return 0;
3076}
3077_ACEOF
3078rm -f conftest.$ac_objext
3079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3080  (eval $ac_compile) 2>&5
3081  ac_status=$?
3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083  (exit $ac_status); } &&
3084         { ac_try='test -s conftest.$ac_objext'
3085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086  (eval $ac_try) 2>&5
3087  ac_status=$?
3088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089  (exit $ac_status); }; }; then
3090  am_cv_prog_cc_stdc="$ac_arg"; break
3091else
3092  echo "$as_me: failed program was:" >&5
3093cat conftest.$ac_ext >&5
3094fi
3095rm -f conftest.$ac_objext conftest.$ac_ext
3096done
3097CC="$ac_save_CC"
3098
3099fi
3100
3101if test -z "$am_cv_prog_cc_stdc"; then
3102  echo "$as_me:$LINENO: result: none needed" >&5
3103echo "${ECHO_T}none needed" >&6
3104else
3105  echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3106echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3107fi
3108case "x$am_cv_prog_cc_stdc" in
3109  x|xno) ;;
3110  *) CC="$CC $am_cv_prog_cc_stdc" ;;
3111esac
3112
3113ac_ext=c
3114ac_cpp='$CPP $CPPFLAGS'
3115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3119echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3120# On Suns, sometimes $CPP names a directory.
3121if test -n "$CPP" && test -d "$CPP"; then
3122  CPP=
3123fi
3124if test -z "$CPP"; then
3125  if test "${ac_cv_prog_CPP+set}" = set; then
3126  echo $ECHO_N "(cached) $ECHO_C" >&6
3127else
3128      # Double quotes because CPP needs to be expanded
3129    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3130    do
3131      ac_preproc_ok=false
3132for ac_c_preproc_warn_flag in '' yes
3133do
3134  # Use a header file that comes with gcc, so configuring glibc
3135  # with a fresh cross-compiler works.
3136  # On the NeXT, cc -E runs the code through the compiler's parser,
3137  # not just through cpp. "Syntax error" is here to catch this case.
3138  cat >conftest.$ac_ext <<_ACEOF
3139#line $LINENO "configure"
3140#include "confdefs.h"
3141#include <assert.h>
3142                     Syntax error
3143_ACEOF
3144if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3145  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3146  ac_status=$?
3147  egrep -v '^ *\+' conftest.er1 >conftest.err
3148  rm -f conftest.er1
3149  cat conftest.err >&5
3150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151  (exit $ac_status); } >/dev/null; then
3152  if test -s conftest.err; then
3153    ac_cpp_err=$ac_c_preproc_warn_flag
3154  else
3155    ac_cpp_err=
3156  fi
3157else
3158  ac_cpp_err=yes
3159fi
3160if test -z "$ac_cpp_err"; then
3161  :
3162else
3163  echo "$as_me: failed program was:" >&5
3164  cat conftest.$ac_ext >&5
3165  # Broken: fails on valid input.
3166continue
3167fi
3168rm -f conftest.err conftest.$ac_ext
3169
3170  # OK, works on sane cases.  Now check whether non-existent headers
3171  # can be detected and how.
3172  cat >conftest.$ac_ext <<_ACEOF
3173#line $LINENO "configure"
3174#include "confdefs.h"
3175#include <ac_nonexistent.h>
3176_ACEOF
3177if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3178  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3179  ac_status=$?
3180  egrep -v '^ *\+' conftest.er1 >conftest.err
3181  rm -f conftest.er1
3182  cat conftest.err >&5
3183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184  (exit $ac_status); } >/dev/null; then
3185  if test -s conftest.err; then
3186    ac_cpp_err=$ac_c_preproc_warn_flag
3187  else
3188    ac_cpp_err=
3189  fi
3190else
3191  ac_cpp_err=yes
3192fi
3193if test -z "$ac_cpp_err"; then
3194  # Broken: success on invalid input.
3195continue
3196else
3197  echo "$as_me: failed program was:" >&5
3198  cat conftest.$ac_ext >&5
3199  # Passes both tests.
3200ac_preproc_ok=:
3201break
3202fi
3203rm -f conftest.err conftest.$ac_ext
3204
3205done
3206# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3207rm -f conftest.err conftest.$ac_ext
3208if $ac_preproc_ok; then
3209  break
3210fi
3211
3212    done
3213    ac_cv_prog_CPP=$CPP
3214
3215fi
3216  CPP=$ac_cv_prog_CPP
3217else
3218  ac_cv_prog_CPP=$CPP
3219fi
3220echo "$as_me:$LINENO: result: $CPP" >&5
3221echo "${ECHO_T}$CPP" >&6
3222ac_preproc_ok=false
3223for ac_c_preproc_warn_flag in '' yes
3224do
3225  # Use a header file that comes with gcc, so configuring glibc
3226  # with a fresh cross-compiler works.
3227  # On the NeXT, cc -E runs the code through the compiler's parser,
3228  # not just through cpp. "Syntax error" is here to catch this case.
3229  cat >conftest.$ac_ext <<_ACEOF
3230#line $LINENO "configure"
3231#include "confdefs.h"
3232#include <assert.h>
3233                     Syntax error
3234_ACEOF
3235if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3236  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3237  ac_status=$?
3238  egrep -v '^ *\+' conftest.er1 >conftest.err
3239  rm -f conftest.er1
3240  cat conftest.err >&5
3241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242  (exit $ac_status); } >/dev/null; then
3243  if test -s conftest.err; then
3244    ac_cpp_err=$ac_c_preproc_warn_flag
3245  else
3246    ac_cpp_err=
3247  fi
3248else
3249  ac_cpp_err=yes
3250fi
3251if test -z "$ac_cpp_err"; then
3252  :
3253else
3254  echo "$as_me: failed program was:" >&5
3255  cat conftest.$ac_ext >&5
3256  # Broken: fails on valid input.
3257continue
3258fi
3259rm -f conftest.err conftest.$ac_ext
3260
3261  # OK, works on sane cases.  Now check whether non-existent headers
3262  # can be detected and how.
3263  cat >conftest.$ac_ext <<_ACEOF
3264#line $LINENO "configure"
3265#include "confdefs.h"
3266#include <ac_nonexistent.h>
3267_ACEOF
3268if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3269  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3270  ac_status=$?
3271  egrep -v '^ *\+' conftest.er1 >conftest.err
3272  rm -f conftest.er1
3273  cat conftest.err >&5
3274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275  (exit $ac_status); } >/dev/null; then
3276  if test -s conftest.err; then
3277    ac_cpp_err=$ac_c_preproc_warn_flag
3278  else
3279    ac_cpp_err=
3280  fi
3281else
3282  ac_cpp_err=yes
3283fi
3284if test -z "$ac_cpp_err"; then
3285  # Broken: success on invalid input.
3286continue
3287else
3288  echo "$as_me: failed program was:" >&5
3289  cat conftest.$ac_ext >&5
3290  # Passes both tests.
3291ac_preproc_ok=:
3292break
3293fi
3294rm -f conftest.err conftest.$ac_ext
3295
3296done
3297# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3298rm -f conftest.err conftest.$ac_ext
3299if $ac_preproc_ok; then
3300  :
3301else
3302  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3303echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3304   { (exit 1); exit 1; }; }
3305fi
3306
3307ac_ext=c
3308ac_cpp='$CPP $CPPFLAGS'
3309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3311ac_compiler_gnu=$ac_cv_c_compiler_gnu
3312
3313
3314echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3315echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3316if test "${ac_cv_header_stdc+set}" = set; then
3317  echo $ECHO_N "(cached) $ECHO_C" >&6
3318else
3319  cat >conftest.$ac_ext <<_ACEOF
3320#line $LINENO "configure"
3321#include "confdefs.h"
3322#include <stdlib.h>
3323#include <stdarg.h>
3324#include <string.h>
3325#include <float.h>
3326
3327_ACEOF
3328if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3329  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3330  ac_status=$?
3331  egrep -v '^ *\+' conftest.er1 >conftest.err
3332  rm -f conftest.er1
3333  cat conftest.err >&5
3334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335  (exit $ac_status); } >/dev/null; then
3336  if test -s conftest.err; then
3337    ac_cpp_err=$ac_c_preproc_warn_flag
3338  else
3339    ac_cpp_err=
3340  fi
3341else
3342  ac_cpp_err=yes
3343fi
3344if test -z "$ac_cpp_err"; then
3345  ac_cv_header_stdc=yes
3346else
3347  echo "$as_me: failed program was:" >&5
3348  cat conftest.$ac_ext >&5
3349  ac_cv_header_stdc=no
3350fi
3351rm -f conftest.err conftest.$ac_ext
3352
3353if test $ac_cv_header_stdc = yes; then
3354  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3355  cat >conftest.$ac_ext <<_ACEOF
3356#line $LINENO "configure"
3357#include "confdefs.h"
3358#include <string.h>
3359
3360_ACEOF
3361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3362  egrep "memchr" >/dev/null 2>&1; then
3363  :
3364else
3365  ac_cv_header_stdc=no
3366fi
3367rm -f conftest*
3368
3369fi
3370
3371if test $ac_cv_header_stdc = yes; then
3372  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3373  cat >conftest.$ac_ext <<_ACEOF
3374#line $LINENO "configure"
3375#include "confdefs.h"
3376#include <stdlib.h>
3377
3378_ACEOF
3379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3380  egrep "free" >/dev/null 2>&1; then
3381  :
3382else
3383  ac_cv_header_stdc=no
3384fi
3385rm -f conftest*
3386
3387fi
3388
3389if test $ac_cv_header_stdc = yes; then
3390  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3391  if test "$cross_compiling" = yes; then
3392  :
3393else
3394  cat >conftest.$ac_ext <<_ACEOF
3395#line $LINENO "configure"
3396#include "confdefs.h"
3397#include <ctype.h>
3398#if ((' ' & 0x0FF) == 0x020)
3399# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3400# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3401#else
3402# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3403                     || ('j' <= (c) && (c) <= 'r') \
3404                     || ('s' <= (c) && (c) <= 'z'))
3405# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3406#endif
3407
3408#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3409int
3410main ()
3411{
3412  int i;
3413  for (i = 0; i < 256; i++)
3414    if (XOR (islower (i), ISLOWER (i))
3415        || toupper (i) != TOUPPER (i))
3416      exit(2);
3417  exit (0);
3418}
3419_ACEOF
3420rm -f conftest$ac_exeext
3421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3422  (eval $ac_link) 2>&5
3423  ac_status=$?
3424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427  (eval $ac_try) 2>&5
3428  ac_status=$?
3429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430  (exit $ac_status); }; }; then
3431  :
3432else
3433  echo "$as_me: program exited with status $ac_status" >&5
3434echo "$as_me: failed program was:" >&5
3435cat conftest.$ac_ext >&5
3436( exit $ac_status )
3437ac_cv_header_stdc=no
3438fi
3439rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3440fi
3441fi
3442fi
3443echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3444echo "${ECHO_T}$ac_cv_header_stdc" >&6
3445if test $ac_cv_header_stdc = yes; then
3446
3447cat >>confdefs.h <<\_ACEOF
3448#define STDC_HEADERS 1
3449_ACEOF
3450
3451fi
3452
3453
3454
3455    if test -z "" ; then
3456        default_compile_warnings=no
3457    else
3458        default_compile_warnings=""
3459    fi
3460
3461    # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
3462if test "${enable_compile_warnings+set}" = set; then
3463  enableval="$enable_compile_warnings"
3464  enable_compile_warnings="$default_compile_warnings"
3465else
3466  enable_compile_warnings=yes
3467fi;
3468
3469    warnCFLAGS=
3470    if test "x$GCC" != xyes; then
3471        enable_compile_warnings=no
3472    fi
3473
3474    warning_flags=
3475    realsave_CFLAGS="$CFLAGS"
3476
3477    case "$enable_compile_warnings" in
3478    no)
3479        warning_flags=
3480        ;;
3481    minimum)
3482        warning_flags="-Wall -Wunused"
3483        ;;
3484    yes)
3485        warning_flags="-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations"
3486        ;;
3487    maximum|error)
3488        warning_flags="-Wall -Wunused -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
3489        CFLAGS="$warning_flags $CFLAGS"
3490        for option in -Wsign-promo -Wno-sign-compare; do
3491                SAVE_CFLAGS="$CFLAGS"
3492                CFLAGS="$CFLAGS $option"
3493                echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
3494echo $ECHO_N "checking whether gcc understands $option... $ECHO_C" >&6
3495                cat >conftest.$ac_ext <<_ACEOF
3496#line $LINENO "configure"
3497#include "confdefs.h"
3498
3499#ifdef F77_DUMMY_MAIN
3500#  ifdef __cplusplus
3501     extern "C"
3502#  endif
3503   int F77_DUMMY_MAIN() { return 1; }
3504#endif
3505int
3506main ()
3507{
3508
3509  ;
3510  return 0;
3511}
3512_ACEOF
3513rm -f conftest.$ac_objext
3514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3515  (eval $ac_compile) 2>&5
3516  ac_status=$?
3517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518  (exit $ac_status); } &&
3519         { ac_try='test -s conftest.$ac_objext'
3520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521  (eval $ac_try) 2>&5
3522  ac_status=$?
3523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524  (exit $ac_status); }; }; then
3525  has_option=yes
3526else
3527  echo "$as_me: failed program was:" >&5
3528cat conftest.$ac_ext >&5
3529has_option=no
3530fi
3531rm -f conftest.$ac_objext conftest.$ac_ext
3532                CFLAGS="$SAVE_CFLAGS"
3533                echo "$as_me:$LINENO: result: $has_option" >&5
3534echo "${ECHO_T}$has_option" >&6
3535                if test $has_option = yes; then
3536                  warning_flags="$warning_flags $option"
3537                fi
3538                unset has_option
3539                unset SAVE_CFLAGS
3540        done
3541        unset option
3542        if test "$enable_compile_warnings" = "error" ; then
3543            warning_flags="$warning_flags -Werror"
3544        fi
3545        ;;
3546    *)
3547        { { echo "$as_me:$LINENO: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&5
3548echo "$as_me: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&2;}
3549   { (exit 1); exit 1; }; }
3550        ;;
3551    esac
3552    CFLAGS="$realsave_CFLAGS"
3553    echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
3554echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
3555    echo "$as_me:$LINENO: result: $warning_flags" >&5
3556echo "${ECHO_T}$warning_flags" >&6
3557
3558    # Check whether --enable-iso-c or --disable-iso-c was given.
3559if test "${enable_iso_c+set}" = set; then
3560  enableval="$enable_iso_c"
3561
3562else
3563  enable_iso_c=no
3564fi;
3565
3566    echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
3567echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
3568    complCFLAGS=
3569    if test "x$enable_iso_c" != "xno"; then
3570        if test "x$GCC" = "xyes"; then
3571        case " $CFLAGS " in
3572            *\ \        -ansi\ \        *) ;;
3573            *) complCFLAGS="$complCFLAGS -ansi" ;;
3574        esac
3575        case " $CFLAGS " in
3576            *\ \        -pedantic\ \    *) ;;
3577            *) complCFLAGS="$complCFLAGS -pedantic" ;;
3578        esac
3579        fi
3580    fi
3581    echo "$as_me:$LINENO: result: $complCFLAGS" >&5
3582echo "${ECHO_T}$complCFLAGS" >&6
3583
3584    WARN_CFLAGS="$warning_flags $complCFLAGS"
3585
3586
3587
3588LIBGNOME_REQUIRED=2.0.0
3589LIBGNOMEUI_REQUIRED=2.0.0
3590GCONF_REQUIRED=1.1.5
3591LIBWNCK_REQUIRED=0.12
3592LIBGTOP_REQUIRED=2.0.0
3593GTK_REQUIRED=2.0.0
3594
3595
3596  succeeded=no
3597
3598  if test -z "$PKG_CONFIG"; then
3599    # Extract the first word of "pkg-config", so it can be a program name with args.
3600set dummy pkg-config; ac_word=$2
3601echo "$as_me:$LINENO: checking for $ac_word" >&5
3602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3603if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3604  echo $ECHO_N "(cached) $ECHO_C" >&6
3605else
3606  case $PKG_CONFIG in
3607  [\\/]* | ?:[\\/]*)
3608  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3609  ;;
3610  *)
3611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612for as_dir in $PATH
3613do
3614  IFS=$as_save_IFS
3615  test -z "$as_dir" && as_dir=.
3616  for ac_exec_ext in '' $ac_executable_extensions; do
3617  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3619    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620    break 2
3621  fi
3622done
3623done
3624
3625  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
3626  ;;
3627esac
3628fi
3629PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3630
3631if test -n "$PKG_CONFIG"; then
3632  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3633echo "${ECHO_T}$PKG_CONFIG" >&6
3634else
3635  echo "$as_me:$LINENO: result: no" >&5
3636echo "${ECHO_T}no" >&6
3637fi
3638
3639  fi
3640
3641  if test "$PKG_CONFIG" = "no" ; then
3642     echo "*** The pkg-config script could not be found. Make sure it is"
3643     echo "*** in your path, or set the PKG_CONFIG environment variable"
3644     echo "*** to the full path to pkg-config."
3645     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
3646  else
3647     PKG_CONFIG_MIN_VERSION=0.9.0
3648     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
3649        echo "$as_me:$LINENO: checking for libgnome-2.0 >= $LIBGNOME_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gconf-2.0 >= $GCONF_REQUIRED libgtop-2.0 >= $LIBGTOP_REQUIRED libwnck-1.0 >= $LIBWNCK_REQUIRED gtk+-2.0 >= $GTK_REQUIRED" >&5
3650echo $ECHO_N "checking for libgnome-2.0 >= $LIBGNOME_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gconf-2.0 >= $GCONF_REQUIRED libgtop-2.0 >= $LIBGTOP_REQUIRED libwnck-1.0 >= $LIBWNCK_REQUIRED gtk+-2.0 >= $GTK_REQUIRED... $ECHO_C" >&6
3651
3652        if $PKG_CONFIG --exists "libgnome-2.0 >= $LIBGNOME_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gconf-2.0 >= $GCONF_REQUIRED libgtop-2.0 >= $LIBGTOP_REQUIRED libwnck-1.0 >= $LIBWNCK_REQUIRED gtk+-2.0 >= $GTK_REQUIRED" ; then
3653            echo "$as_me:$LINENO: result: yes" >&5
3654echo "${ECHO_T}yes" >&6
3655            succeeded=yes
3656
3657            echo "$as_me:$LINENO: checking PROCMAN_CFLAGS" >&5
3658echo $ECHO_N "checking PROCMAN_CFLAGS... $ECHO_C" >&6
3659            PROCMAN_CFLAGS=`$PKG_CONFIG --cflags "libgnome-2.0 >= $LIBGNOME_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gconf-2.0 >= $GCONF_REQUIRED libgtop-2.0 >= $LIBGTOP_REQUIRED libwnck-1.0 >= $LIBWNCK_REQUIRED gtk+-2.0 >= $GTK_REQUIRED"`
3660            echo "$as_me:$LINENO: result: $PROCMAN_CFLAGS" >&5
3661echo "${ECHO_T}$PROCMAN_CFLAGS" >&6
3662
3663            echo "$as_me:$LINENO: checking PROCMAN_LIBS" >&5
3664echo $ECHO_N "checking PROCMAN_LIBS... $ECHO_C" >&6
3665            PROCMAN_LIBS=`$PKG_CONFIG --libs "libgnome-2.0 >= $LIBGNOME_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gconf-2.0 >= $GCONF_REQUIRED libgtop-2.0 >= $LIBGTOP_REQUIRED libwnck-1.0 >= $LIBWNCK_REQUIRED gtk+-2.0 >= $GTK_REQUIRED"`
3666            echo "$as_me:$LINENO: result: $PROCMAN_LIBS" >&5
3667echo "${ECHO_T}$PROCMAN_LIBS" >&6
3668        else
3669            PROCMAN_CFLAGS=""
3670            PROCMAN_LIBS=""
3671            ## If we have a custom action on failure, don't print errors, but
3672            ## do set a variable so people can do so.
3673            PROCMAN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnome-2.0 >= $LIBGNOME_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gconf-2.0 >= $GCONF_REQUIRED libgtop-2.0 >= $LIBGTOP_REQUIRED libwnck-1.0 >= $LIBWNCK_REQUIRED gtk+-2.0 >= $GTK_REQUIRED"`
3674            echo $PROCMAN_PKG_ERRORS
3675        fi
3676
3677
3678
3679     else
3680        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
3681        echo "*** See http://www.freedesktop.org/software/pkgconfig"
3682     fi
3683  fi
3684
3685  if test $succeeded = yes; then
3686     :
3687  else
3688     { { echo "$as_me:$LINENO: error: Library requirements (libgnome-2.0 >= $LIBGNOME_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gconf-2.0 >= $GCONF_REQUIRED libgtop-2.0 >= $LIBGTOP_REQUIRED libwnck-1.0 >= $LIBWNCK_REQUIRED gtk+-2.0 >= $GTK_REQUIRED) 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
3689echo "$as_me: error: Library requirements (libgnome-2.0 >= $LIBGNOME_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gconf-2.0 >= $GCONF_REQUIRED libgtop-2.0 >= $LIBGTOP_REQUIRED libwnck-1.0 >= $LIBWNCK_REQUIRED gtk+-2.0 >= $GTK_REQUIRED) 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;}
3690   { (exit 1); exit 1; }; }
3691  fi
3692
3693
3694
3695
3696
3697
3698  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
3699    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
3700  else
3701    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
3702  fi
3703
3704
3705# Check whether --with-gconf-source or --without-gconf-source was given.
3706if test "${with_gconf_source+set}" = set; then
3707  withval="$with_gconf_source"
3708  GCONF_SCHEMA_CONFIG_SOURCE="$withval"
3709fi;
3710
3711
3712  echo "$as_me:$LINENO: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5
3713echo "${ECHO_T}Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6
3714
3715  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
3716    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas/'
3717  else
3718    GCONF_SCHEMA_FILE_DIR=$GCONF_SCHEMA_FILE_DIR
3719  fi
3720
3721
3722# Check whether --with-gconf-schema-file-dir or --without-gconf-schema-file-dir was given.
3723if test "${with_gconf_schema_file_dir+set}" = set; then
3724  withval="$with_gconf_schema_file_dir"
3725  GCONF_SCHEMA_FILE_DIR="$withval"
3726fi;
3727
3728
3729  echo "$as_me:$LINENO: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5
3730echo "${ECHO_T}Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6
3731
3732
3733cat >>confdefs.h <<_ACEOF
3734#define GNOME_ICONDIR "${prefix}/share/pixmaps"
3735_ACEOF
3736
3737
3738ALL_LINGUAS="am ar az be bg ca cs da de el es fr gl hu it ja ko lv mk ms nl no pl pt pt_BR ro ru sk sl sq sv tr uk vi zh_CN zh_TW"
3739
3740GETTEXT_PACKAGE=gnome-system-monitor
3741
3742cat >>confdefs.h <<_ACEOF
3743#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
3744_ACEOF
3745
3746if test -n "$ac_tool_prefix"; then
3747  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3748set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3749echo "$as_me:$LINENO: checking for $ac_word" >&5
3750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3751if test "${ac_cv_prog_RANLIB+set}" = set; then
3752  echo $ECHO_N "(cached) $ECHO_C" >&6
3753else
3754  if test -n "$RANLIB"; then
3755  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3756else
3757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758for as_dir in $PATH
3759do
3760  IFS=$as_save_IFS
3761  test -z "$as_dir" && as_dir=.
3762  for ac_exec_ext in '' $ac_executable_extensions; do
3763  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3765    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3766    break 2
3767  fi
3768done
3769done
3770
3771fi
3772fi
3773RANLIB=$ac_cv_prog_RANLIB
3774if test -n "$RANLIB"; then
3775  echo "$as_me:$LINENO: result: $RANLIB" >&5
3776echo "${ECHO_T}$RANLIB" >&6
3777else
3778  echo "$as_me:$LINENO: result: no" >&5
3779echo "${ECHO_T}no" >&6
3780fi
3781
3782fi
3783if test -z "$ac_cv_prog_RANLIB"; then
3784  ac_ct_RANLIB=$RANLIB
3785  # Extract the first word of "ranlib", so it can be a program name with args.
3786set dummy ranlib; ac_word=$2
3787echo "$as_me:$LINENO: checking for $ac_word" >&5
3788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3790  echo $ECHO_N "(cached) $ECHO_C" >&6
3791else
3792  if test -n "$ac_ct_RANLIB"; then
3793  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3794else
3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798  IFS=$as_save_IFS
3799  test -z "$as_dir" && as_dir=.
3800  for ac_exec_ext in '' $ac_executable_extensions; do
3801  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802    ac_cv_prog_ac_ct_RANLIB="ranlib"
3803    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804    break 2
3805  fi
3806done
3807done
3808
3809  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3810fi
3811fi
3812ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3813if test -n "$ac_ct_RANLIB"; then
3814  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3815echo "${ECHO_T}$ac_ct_RANLIB" >&6
3816else
3817  echo "$as_me:$LINENO: result: no" >&5
3818echo "${ECHO_T}no" >&6
3819fi
3820
3821  RANLIB=$ac_ct_RANLIB
3822else
3823  RANLIB="$ac_cv_prog_RANLIB"
3824fi
3825
3826echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3827echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3828if test "${ac_cv_prog_cc_stdc+set}" = set; then
3829  echo $ECHO_N "(cached) $ECHO_C" >&6
3830else
3831  ac_cv_prog_cc_stdc=no
3832ac_save_CC=$CC
3833cat >conftest.$ac_ext <<_ACEOF
3834#line $LINENO "configure"
3835#include "confdefs.h"
3836#include <stdarg.h>
3837#include <stdio.h>
3838#include <sys/types.h>
3839#include <sys/stat.h>
3840/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3841struct buf { int x; };
3842FILE * (*rcsopen) (struct buf *, struct stat *, int);
3843static char *e (p, i)
3844     char **p;
3845     int i;
3846{
3847  return p[i];
3848}
3849static char *f (char * (*g) (char **, int), char **p, ...)
3850{
3851  char *s;
3852  va_list v;
3853  va_start (v,p);
3854  s = g (p, va_arg (v,int));
3855  va_end (v);
3856  return s;
3857}
3858int test (int i, double x);
3859struct s1 {int (*f) (int a);};
3860struct s2 {int (*f) (double a);};
3861int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3862int argc;
3863char **argv;
3864#ifdef F77_DUMMY_MAIN
3865#  ifdef __cplusplus
3866     extern "C"
3867#  endif
3868   int F77_DUMMY_MAIN() { return 1; }
3869#endif
3870int
3871main ()
3872{
3873return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3874  ;
3875  return 0;
3876}
3877_ACEOF
3878# Don't try gcc -ansi; that turns off useful extensions and
3879# breaks some systems' header files.
3880# AIX                   -qlanglvl=ansi
3881# Ultrix and OSF/1      -std1
3882# HP-UX 10.20 and later -Ae
3883# HP-UX older versions  -Aa -D_HPUX_SOURCE
3884# SVR4                  -Xc -D__EXTENSIONS__
3885for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3886do
3887  CC="$ac_save_CC $ac_arg"
3888  rm -f conftest.$ac_objext
3889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3890  (eval $ac_compile) 2>&5
3891  ac_status=$?
3892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893  (exit $ac_status); } &&
3894         { ac_try='test -s conftest.$ac_objext'
3895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896  (eval $ac_try) 2>&5
3897  ac_status=$?
3898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899  (exit $ac_status); }; }; then
3900  ac_cv_prog_cc_stdc=$ac_arg
3901break
3902else
3903  echo "$as_me: failed program was:" >&5
3904cat conftest.$ac_ext >&5
3905fi
3906rm -f conftest.$ac_objext
3907done
3908rm -f conftest.$ac_ext conftest.$ac_objext
3909CC=$ac_save_CC
3910
3911fi
3912
3913case "x$ac_cv_prog_cc_stdc" in
3914  x|xno)
3915    echo "$as_me:$LINENO: result: none needed" >&5
3916echo "${ECHO_T}none needed" >&6 ;;
3917  *)
3918    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3919echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3920    CC="$CC $ac_cv_prog_cc_stdc" ;;
3921esac
3922
3923echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3924echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3925if test "${ac_cv_c_const+set}" = set; then
3926  echo $ECHO_N "(cached) $ECHO_C" >&6
3927else
3928  cat >conftest.$ac_ext <<_ACEOF
3929#line $LINENO "configure"
3930#include "confdefs.h"
3931
3932#ifdef F77_DUMMY_MAIN
3933#  ifdef __cplusplus
3934     extern "C"
3935#  endif
3936   int F77_DUMMY_MAIN() { return 1; }
3937#endif
3938int
3939main ()
3940{
3941/* FIXME: Include the comments suggested by Paul. */
3942#ifndef __cplusplus
3943  /* Ultrix mips cc rejects this.  */
3944  typedef int charset[2];
3945  const charset x;
3946  /* SunOS 4.1.1 cc rejects this.  */
3947  char const *const *ccp;
3948  char **p;
3949  /* NEC SVR4.0.2 mips cc rejects this.  */
3950  struct point {int x, y;};
3951  static struct point const zero = {0,0};
3952  /* AIX XL C 1.02.0.0 rejects this.
3953     It does not let you subtract one const X* pointer from another in
3954     an arm of an if-expression whose if-part is not a constant
3955     expression */
3956  const char *g = "string";
3957  ccp = &g + (g ? g-g : 0);
3958  /* HPUX 7.0 cc rejects these. */
3959  ++ccp;
3960  p = (char**) ccp;
3961  ccp = (char const *const *) p;
3962  { /* SCO 3.2v4 cc rejects this.  */
3963    char *t;
3964    char const *s = 0 ? (char *) 0 : (char const *) 0;
3965
3966    *t++ = 0;
3967  }
3968  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3969    int x[] = {25, 17};
3970    const int *foo = &x[0];
3971    ++foo;
3972  }
3973  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3974    typedef const int *iptr;
3975    iptr p = 0;
3976    ++p;
3977  }
3978  { /* AIX XL C 1.02.0.0 rejects this saying
3979       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3980    struct s { int j; const int *ap[3]; };
3981    struct s *b; b->j = 5;
3982  }
3983  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3984    const int foo = 10;
3985  }
3986#endif
3987
3988  ;
3989  return 0;
3990}
3991_ACEOF
3992rm -f conftest.$ac_objext
3993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3994  (eval $ac_compile) 2>&5
3995  ac_status=$?
3996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997  (exit $ac_status); } &&
3998         { ac_try='test -s conftest.$ac_objext'
3999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000  (eval $ac_try) 2>&5
4001  ac_status=$?
4002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003  (exit $ac_status); }; }; then
4004  ac_cv_c_const=yes
4005else
4006  echo "$as_me: failed program was:" >&5
4007cat conftest.$ac_ext >&5
4008ac_cv_c_const=no
4009fi
4010rm -f conftest.$ac_objext conftest.$ac_ext
4011fi
4012echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4013echo "${ECHO_T}$ac_cv_c_const" >&6
4014if test $ac_cv_c_const = no; then
4015
4016cat >>confdefs.h <<\_ACEOF
4017#define const
4018_ACEOF
4019
4020fi
4021
4022echo "$as_me:$LINENO: checking for inline" >&5
4023echo $ECHO_N "checking for inline... $ECHO_C" >&6
4024if test "${ac_cv_c_inline+set}" = set; then
4025  echo $ECHO_N "(cached) $ECHO_C" >&6
4026else
4027  ac_cv_c_inline=no
4028for ac_kw in inline __inline__ __inline; do
4029  cat >conftest.$ac_ext <<_ACEOF
4030#line $LINENO "configure"
4031#include "confdefs.h"
4032#ifndef __cplusplus
4033static $ac_kw int static_foo () {return 0; }
4034$ac_kw int foo () {return 0; }
4035#endif
4036
4037_ACEOF
4038rm -f conftest.$ac_objext
4039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4040  (eval $ac_compile) 2>&5
4041  ac_status=$?
4042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043  (exit $ac_status); } &&
4044         { ac_try='test -s conftest.$ac_objext'
4045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046  (eval $ac_try) 2>&5
4047  ac_status=$?
4048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049  (exit $ac_status); }; }; then
4050  ac_cv_c_inline=$ac_kw; break
4051else
4052  echo "$as_me: failed program was:" >&5
4053cat conftest.$ac_ext >&5
4054fi
4055rm -f conftest.$ac_objext conftest.$ac_ext
4056done
4057
4058fi
4059echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4060echo "${ECHO_T}$ac_cv_c_inline" >&6
4061case $ac_cv_c_inline in
4062  inline | yes) ;;
4063  no)
4064cat >>confdefs.h <<\_ACEOF
4065#define inline
4066_ACEOF
4067 ;;
4068  *)  cat >>confdefs.h <<_ACEOF
4069#define inline $ac_cv_c_inline
4070_ACEOF
4071 ;;
4072esac
4073
4074# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4085                  inttypes.h stdint.h unistd.h
4086do
4087as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4088echo "$as_me:$LINENO: checking for $ac_header" >&5
4089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4090if eval "test \"\${$as_ac_Header+set}\" = set"; then
4091  echo $ECHO_N "(cached) $ECHO_C" >&6
4092else
4093  cat >conftest.$ac_ext <<_ACEOF
4094#line $LINENO "configure"
4095#include "confdefs.h"
4096$ac_includes_default
4097
4098#include <$ac_header>
4099_ACEOF
4100rm -f conftest.$ac_objext
4101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4102  (eval $ac_compile) 2>&5
4103  ac_status=$?
4104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105  (exit $ac_status); } &&
4106         { ac_try='test -s conftest.$ac_objext'
4107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108  (eval $ac_try) 2>&5
4109  ac_status=$?
4110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111  (exit $ac_status); }; }; then
4112  eval "$as_ac_Header=yes"
4113else
4114  echo "$as_me: failed program was:" >&5
4115cat conftest.$ac_ext >&5
4116eval "$as_ac_Header=no"
4117fi
4118rm -f conftest.$ac_objext conftest.$ac_ext
4119fi
4120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4121echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4122if test `eval echo '${'$as_ac_Header'}'` = yes; then
4123  cat >>confdefs.h <<_ACEOF
4124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4125_ACEOF
4126
4127fi
4128
4129done
4130
4131
4132echo "$as_me:$LINENO: checking for off_t" >&5
4133echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4134if test "${ac_cv_type_off_t+set}" = set; then
4135  echo $ECHO_N "(cached) $ECHO_C" >&6
4136else
4137  cat >conftest.$ac_ext <<_ACEOF
4138#line $LINENO "configure"
4139#include "confdefs.h"
4140$ac_includes_default
4141#ifdef F77_DUMMY_MAIN
4142#  ifdef __cplusplus
4143     extern "C"
4144#  endif
4145   int F77_DUMMY_MAIN() { return 1; }
4146#endif
4147int
4148main ()
4149{
4150if ((off_t *) 0)
4151  return 0;
4152if (sizeof (off_t))
4153  return 0;
4154  ;
4155  return 0;
4156}
4157_ACEOF
4158rm -f conftest.$ac_objext
4159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4160  (eval $ac_compile) 2>&5
4161  ac_status=$?
4162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163  (exit $ac_status); } &&
4164         { ac_try='test -s conftest.$ac_objext'
4165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166  (eval $ac_try) 2>&5
4167  ac_status=$?
4168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169  (exit $ac_status); }; }; then
4170  ac_cv_type_off_t=yes
4171else
4172  echo "$as_me: failed program was:" >&5
4173cat conftest.$ac_ext >&5
4174ac_cv_type_off_t=no
4175fi
4176rm -f conftest.$ac_objext conftest.$ac_ext
4177fi
4178echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4179echo "${ECHO_T}$ac_cv_type_off_t" >&6
4180if test $ac_cv_type_off_t = yes; then
4181  :
4182else
4183
4184cat >>confdefs.h <<_ACEOF
4185#define off_t long
4186_ACEOF
4187
4188fi
4189
4190echo "$as_me:$LINENO: checking for size_t" >&5
4191echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4192if test "${ac_cv_type_size_t+set}" = set; then
4193  echo $ECHO_N "(cached) $ECHO_C" >&6
4194else
4195  cat >conftest.$ac_ext <<_ACEOF
4196#line $LINENO "configure"
4197#include "confdefs.h"
4198$ac_includes_default
4199#ifdef F77_DUMMY_MAIN
4200#  ifdef __cplusplus
4201     extern "C"
4202#  endif
4203   int F77_DUMMY_MAIN() { return 1; }
4204#endif
4205int
4206main ()
4207{
4208if ((size_t *) 0)
4209  return 0;
4210if (sizeof (size_t))
4211  return 0;
4212  ;
4213  return 0;
4214}
4215_ACEOF
4216rm -f conftest.$ac_objext
4217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218  (eval $ac_compile) 2>&5
4219  ac_status=$?
4220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221  (exit $ac_status); } &&
4222         { ac_try='test -s conftest.$ac_objext'
4223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224  (eval $ac_try) 2>&5
4225  ac_status=$?
4226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227  (exit $ac_status); }; }; then
4228  ac_cv_type_size_t=yes
4229else
4230  echo "$as_me: failed program was:" >&5
4231cat conftest.$ac_ext >&5
4232ac_cv_type_size_t=no
4233fi
4234rm -f conftest.$ac_objext conftest.$ac_ext
4235fi
4236echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4237echo "${ECHO_T}$ac_cv_type_size_t" >&6
4238if test $ac_cv_type_size_t = yes; then
4239  :
4240else
4241
4242cat >>confdefs.h <<_ACEOF
4243#define size_t unsigned
4244_ACEOF
4245
4246fi
4247
4248# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4249# for constant arguments.  Useless!
4250echo "$as_me:$LINENO: checking for working alloca.h" >&5
4251echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4252if test "${ac_cv_working_alloca_h+set}" = set; then
4253  echo $ECHO_N "(cached) $ECHO_C" >&6
4254else
4255  cat >conftest.$ac_ext <<_ACEOF
4256#line $LINENO "configure"
4257#include "confdefs.h"
4258#include <alloca.h>
4259#ifdef F77_DUMMY_MAIN
4260#  ifdef __cplusplus
4261     extern "C"
4262#  endif
4263   int F77_DUMMY_MAIN() { return 1; }
4264#endif
4265int
4266main ()
4267{
4268char *p = (char *) alloca (2 * sizeof (int));
4269  ;
4270  return 0;
4271}
4272_ACEOF
4273rm -f conftest.$ac_objext conftest$ac_exeext
4274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4275  (eval $ac_link) 2>&5
4276  ac_status=$?
4277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278  (exit $ac_status); } &&
4279         { ac_try='test -s conftest$ac_exeext'
4280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281  (eval $ac_try) 2>&5
4282  ac_status=$?
4283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284  (exit $ac_status); }; }; then
4285  ac_cv_working_alloca_h=yes
4286else
4287  echo "$as_me: failed program was:" >&5
4288cat conftest.$ac_ext >&5
4289ac_cv_working_alloca_h=no
4290fi
4291rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4292fi
4293echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4294echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4295if test $ac_cv_working_alloca_h = yes; then
4296
4297cat >>confdefs.h <<\_ACEOF
4298#define HAVE_ALLOCA_H 1
4299_ACEOF
4300
4301fi
4302
4303echo "$as_me:$LINENO: checking for alloca" >&5
4304echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4305if test "${ac_cv_func_alloca_works+set}" = set; then
4306  echo $ECHO_N "(cached) $ECHO_C" >&6
4307else
4308  cat >conftest.$ac_ext <<_ACEOF
4309#line $LINENO "configure"
4310#include "confdefs.h"
4311#ifdef __GNUC__
4312# define alloca __builtin_alloca
4313#else
4314# ifdef _MSC_VER
4315#  include <malloc.h>
4316#  define alloca _alloca
4317# else
4318#  if HAVE_ALLOCA_H
4319#   include <alloca.h>
4320#  else
4321#   ifdef _AIX
4322 #pragma alloca
4323#   else
4324#    ifndef alloca /* predefined by HP cc +Olibcalls */
4325char *alloca ();
4326#    endif
4327#   endif
4328#  endif
4329# endif
4330#endif
4331
4332#ifdef F77_DUMMY_MAIN
4333#  ifdef __cplusplus
4334     extern "C"
4335#  endif
4336   int F77_DUMMY_MAIN() { return 1; }
4337#endif
4338int
4339main ()
4340{
4341char *p = (char *) alloca (1);
4342  ;
4343  return 0;
4344}
4345_ACEOF
4346rm -f conftest.$ac_objext conftest$ac_exeext
4347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4348  (eval $ac_link) 2>&5
4349  ac_status=$?
4350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351  (exit $ac_status); } &&
4352         { ac_try='test -s conftest$ac_exeext'
4353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354  (eval $ac_try) 2>&5
4355  ac_status=$?
4356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357  (exit $ac_status); }; }; then
4358  ac_cv_func_alloca_works=yes
4359else
4360  echo "$as_me: failed program was:" >&5
4361cat conftest.$ac_ext >&5
4362ac_cv_func_alloca_works=no
4363fi
4364rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4365fi
4366echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4367echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4368
4369if test $ac_cv_func_alloca_works = yes; then
4370
4371cat >>confdefs.h <<\_ACEOF
4372#define HAVE_ALLOCA 1
4373_ACEOF
4374
4375else
4376  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4377# that cause trouble.  Some versions do not even contain alloca or
4378# contain a buggy version.  If you still want to use their alloca,
4379# use ar to extract alloca.o from them instead of compiling alloca.c.
4380
4381ALLOCA=alloca.$ac_objext
4382
4383cat >>confdefs.h <<\_ACEOF
4384#define C_ALLOCA 1
4385_ACEOF
4386
4387
4388echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4389echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4390if test "${ac_cv_os_cray+set}" = set; then
4391  echo $ECHO_N "(cached) $ECHO_C" >&6
4392else
4393  cat >conftest.$ac_ext <<_ACEOF
4394#line $LINENO "configure"
4395#include "confdefs.h"
4396#if defined(CRAY) && ! defined(CRAY2)
4397webecray
4398#else
4399wenotbecray
4400#endif
4401
4402_ACEOF
4403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4404  egrep "webecray" >/dev/null 2>&1; then
4405  ac_cv_os_cray=yes
4406else
4407  ac_cv_os_cray=no
4408fi
4409rm -f conftest*
4410
4411fi
4412echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4413echo "${ECHO_T}$ac_cv_os_cray" >&6
4414if test $ac_cv_os_cray = yes; then
4415  for ac_func in _getb67 GETB67 getb67; do
4416    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4417echo "$as_me:$LINENO: checking for $ac_func" >&5
4418echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4419if eval "test \"\${$as_ac_var+set}\" = set"; then
4420  echo $ECHO_N "(cached) $ECHO_C" >&6
4421else
4422  cat >conftest.$ac_ext <<_ACEOF
4423#line $LINENO "configure"
4424#include "confdefs.h"
4425/* System header to define __stub macros and hopefully few prototypes,
4426    which can conflict with char $ac_func (); below.  */
4427#include <assert.h>
4428/* Override any gcc2 internal prototype to avoid an error.  */
4429#ifdef __cplusplus
4430extern "C"
4431#endif
4432/* We use char because int might match the return type of a gcc2
4433   builtin and then its argument prototype would still apply.  */
4434char $ac_func ();
4435char (*f) ();
4436
4437#ifdef F77_DUMMY_MAIN
4438#  ifdef __cplusplus
4439     extern "C"
4440#  endif
4441   int F77_DUMMY_MAIN() { return 1; }
4442#endif
4443int
4444main ()
4445{
4446/* The GNU C library defines this for functions which it implements
4447    to always fail with ENOSYS.  Some functions are actually named
4448    something starting with __ and the normal name is an alias.  */
4449#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4450choke me
4451#else
4452f = $ac_func;
4453#endif
4454
4455  ;
4456  return 0;
4457}
4458_ACEOF
4459rm -f conftest.$ac_objext conftest$ac_exeext
4460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4461  (eval $ac_link) 2>&5
4462  ac_status=$?
4463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464  (exit $ac_status); } &&
4465         { ac_try='test -s conftest$ac_exeext'
4466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467  (eval $ac_try) 2>&5
4468  ac_status=$?
4469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470  (exit $ac_status); }; }; then
4471  eval "$as_ac_var=yes"
4472else
4473  echo "$as_me: failed program was:" >&5
4474cat conftest.$ac_ext >&5
4475eval "$as_ac_var=no"
4476fi
4477rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4478fi
4479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4480echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4481if test `eval echo '${'$as_ac_var'}'` = yes; then
4482
4483cat >>confdefs.h <<_ACEOF
4484#define CRAY_STACKSEG_END $ac_func
4485_ACEOF
4486
4487    break
4488fi
4489
4490  done
4491fi
4492
4493echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4494echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4495if test "${ac_cv_c_stack_direction+set}" = set; then
4496  echo $ECHO_N "(cached) $ECHO_C" >&6
4497else
4498  if test "$cross_compiling" = yes; then
4499  ac_cv_c_stack_direction=0
4500else
4501  cat >conftest.$ac_ext <<_ACEOF
4502#line $LINENO "configure"
4503#include "confdefs.h"
4504int
4505find_stack_direction ()
4506{
4507  static char *addr = 0;
4508  auto char dummy;
4509  if (addr == 0)
4510    {
4511      addr = &dummy;
4512      return find_stack_direction ();
4513    }
4514  else
4515    return (&dummy > addr) ? 1 : -1;
4516}
4517
4518int
4519main ()
4520{
4521  exit (find_stack_direction () < 0);
4522}
4523_ACEOF
4524rm -f conftest$ac_exeext
4525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4526  (eval $ac_link) 2>&5
4527  ac_status=$?
4528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531  (eval $ac_try) 2>&5
4532  ac_status=$?
4533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534  (exit $ac_status); }; }; then
4535  ac_cv_c_stack_direction=1
4536else
4537  echo "$as_me: program exited with status $ac_status" >&5
4538echo "$as_me: failed program was:" >&5
4539cat conftest.$ac_ext >&5
4540( exit $ac_status )
4541ac_cv_c_stack_direction=-1
4542fi
4543rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4544fi
4545fi
4546echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4547echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4548
4549cat >>confdefs.h <<_ACEOF
4550#define STACK_DIRECTION $ac_cv_c_stack_direction
4551_ACEOF
4552
4553
4554fi
4555
4556
4557
4558for ac_header in stdlib.h unistd.h
4559do
4560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4561if eval "test \"\${$as_ac_Header+set}\" = set"; then
4562  echo "$as_me:$LINENO: checking for $ac_header" >&5
4563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4564if eval "test \"\${$as_ac_Header+set}\" = set"; then
4565  echo $ECHO_N "(cached) $ECHO_C" >&6
4566fi
4567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4569else
4570  # Is the header compilable?
4571echo "$as_me:$LINENO: checking $ac_header usability" >&5
4572echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4573cat >conftest.$ac_ext <<_ACEOF
4574#line $LINENO "configure"
4575#include "confdefs.h"
4576$ac_includes_default
4577#include <$ac_header>
4578_ACEOF
4579rm -f conftest.$ac_objext
4580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4581  (eval $ac_compile) 2>&5
4582  ac_status=$?
4583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584  (exit $ac_status); } &&
4585         { ac_try='test -s conftest.$ac_objext'
4586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587  (eval $ac_try) 2>&5
4588  ac_status=$?
4589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590  (exit $ac_status); }; }; then
4591  ac_header_compiler=yes
4592else
4593  echo "$as_me: failed program was:" >&5
4594cat conftest.$ac_ext >&5
4595ac_header_compiler=no
4596fi
4597rm -f conftest.$ac_objext conftest.$ac_ext
4598echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4599echo "${ECHO_T}$ac_header_compiler" >&6
4600
4601# Is the header present?
4602echo "$as_me:$LINENO: checking $ac_header presence" >&5
4603echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4604cat >conftest.$ac_ext <<_ACEOF
4605#line $LINENO "configure"
4606#include "confdefs.h"
4607#include <$ac_header>
4608_ACEOF
4609if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4610  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4611  ac_status=$?
4612  egrep -v '^ *\+' conftest.er1 >conftest.err
4613  rm -f conftest.er1
4614  cat conftest.err >&5
4615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616  (exit $ac_status); } >/dev/null; then
4617  if test -s conftest.err; then
4618    ac_cpp_err=$ac_c_preproc_warn_flag
4619  else
4620    ac_cpp_err=
4621  fi
4622else
4623  ac_cpp_err=yes
4624fi
4625if test -z "$ac_cpp_err"; then
4626  ac_header_preproc=yes
4627else
4628  echo "$as_me: failed program was:" >&5
4629  cat conftest.$ac_ext >&5
4630  ac_header_preproc=no
4631fi
4632rm -f conftest.err conftest.$ac_ext
4633echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4634echo "${ECHO_T}$ac_header_preproc" >&6
4635
4636# So?  What about this header?
4637case $ac_header_compiler:$ac_header_preproc in
4638  yes:no )
4639    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4640echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4641    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4642echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4643  no:yes )
4644    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4645echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4646    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4647echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4648    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4649echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4650esac
4651echo "$as_me:$LINENO: checking for $ac_header" >&5
4652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4653if eval "test \"\${$as_ac_Header+set}\" = set"; then
4654  echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656  eval "$as_ac_Header=$ac_header_preproc"
4657fi
4658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4659echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4660
4661fi
4662if test `eval echo '${'$as_ac_Header'}'` = yes; then
4663  cat >>confdefs.h <<_ACEOF
4664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4665_ACEOF
4666
4667fi
4668
4669done
4670
4671
4672for ac_func in getpagesize
4673do
4674as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4675echo "$as_me:$LINENO: checking for $ac_func" >&5
4676echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4677if eval "test \"\${$as_ac_var+set}\" = set"; then
4678  echo $ECHO_N "(cached) $ECHO_C" >&6
4679else
4680  cat >conftest.$ac_ext <<_ACEOF
4681#line $LINENO "configure"
4682#include "confdefs.h"
4683/* System header to define __stub macros and hopefully few prototypes,
4684    which can conflict with char $ac_func (); below.  */
4685#include <assert.h>
4686/* Override any gcc2 internal prototype to avoid an error.  */
4687#ifdef __cplusplus
4688extern "C"
4689#endif
4690/* We use char because int might match the return type of a gcc2
4691   builtin and then its argument prototype would still apply.  */
4692char $ac_func ();
4693char (*f) ();
4694
4695#ifdef F77_DUMMY_MAIN
4696#  ifdef __cplusplus
4697     extern "C"
4698#  endif
4699   int F77_DUMMY_MAIN() { return 1; }
4700#endif
4701int
4702main ()
4703{
4704/* The GNU C library defines this for functions which it implements
4705    to always fail with ENOSYS.  Some functions are actually named
4706    something starting with __ and the normal name is an alias.  */
4707#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4708choke me
4709#else
4710f = $ac_func;
4711#endif
4712
4713  ;
4714  return 0;
4715}
4716_ACEOF
4717rm -f conftest.$ac_objext conftest$ac_exeext
4718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4719  (eval $ac_link) 2>&5
4720  ac_status=$?
4721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722  (exit $ac_status); } &&
4723         { ac_try='test -s conftest$ac_exeext'
4724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725  (eval $ac_try) 2>&5
4726  ac_status=$?
4727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728  (exit $ac_status); }; }; then
4729  eval "$as_ac_var=yes"
4730else
4731  echo "$as_me: failed program was:" >&5
4732cat conftest.$ac_ext >&5
4733eval "$as_ac_var=no"
4734fi
4735rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4736fi
4737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4738echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4739if test `eval echo '${'$as_ac_var'}'` = yes; then
4740  cat >>confdefs.h <<_ACEOF
4741#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4742_ACEOF
4743
4744fi
4745done
4746
4747echo "$as_me:$LINENO: checking for working mmap" >&5
4748echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4749if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4750  echo $ECHO_N "(cached) $ECHO_C" >&6
4751else
4752  if test "$cross_compiling" = yes; then
4753  ac_cv_func_mmap_fixed_mapped=no
4754else
4755  cat >conftest.$ac_ext <<_ACEOF
4756#line $LINENO "configure"
4757#include "confdefs.h"
4758$ac_includes_default
4759/* malloc might have been renamed as rpl_malloc. */
4760#undef malloc
4761
4762/* Thanks to Mike Haertel and Jim Avera for this test.
4763   Here is a matrix of mmap possibilities:
4764        mmap private not fixed
4765        mmap private fixed at somewhere currently unmapped
4766        mmap private fixed at somewhere already mapped
4767        mmap shared not fixed
4768        mmap shared fixed at somewhere currently unmapped
4769        mmap shared fixed at somewhere already mapped
4770   For private mappings, we should verify that changes cannot be read()
4771   back from the file, nor mmap's back from the file at a different
4772   address.  (There have been systems where private was not correctly
4773   implemented like the infamous i386 svr4.0, and systems where the
4774   VM page cache was not coherent with the file system buffer cache
4775   like early versions of FreeBSD and possibly contemporary NetBSD.)
4776   For shared mappings, we should conversely verify that changes get
4777   propagated back to all the places they're supposed to be.
4778
4779   Grep wants private fixed already mapped.
4780   The main things grep needs to know about mmap are:
4781   * does it exist and is it safe to write into the mmap'd area
4782   * how to use it (BSD variants)  */
4783
4784#include <fcntl.h>
4785#include <sys/mman.h>
4786
4787#if !STDC_HEADERS && !HAVE_STDLIB_H
4788char *malloc ();
4789#endif
4790
4791/* This mess was copied from the GNU getpagesize.h.  */
4792#if !HAVE_GETPAGESIZE
4793/* Assume that all systems that can run configure have sys/param.h.  */
4794# if !HAVE_SYS_PARAM_H
4795#  define HAVE_SYS_PARAM_H 1
4796# endif
4797
4798# ifdef _SC_PAGESIZE
4799#  define getpagesize() sysconf(_SC_PAGESIZE)
4800# else /* no _SC_PAGESIZE */
4801#  if HAVE_SYS_PARAM_H
4802#   include <sys/param.h>
4803#   ifdef EXEC_PAGESIZE
4804#    define getpagesize() EXEC_PAGESIZE
4805#   else /* no EXEC_PAGESIZE */
4806#    ifdef NBPG
4807#     define getpagesize() NBPG * CLSIZE
4808#     ifndef CLSIZE
4809#      define CLSIZE 1
4810#     endif /* no CLSIZE */
4811#    else /* no NBPG */
4812#     ifdef NBPC
4813#      define getpagesize() NBPC
4814#     else /* no NBPC */
4815#      ifdef PAGESIZE
4816#       define getpagesize() PAGESIZE
4817#      endif /* PAGESIZE */
4818#     endif /* no NBPC */
4819#    endif /* no NBPG */
4820#   endif /* no EXEC_PAGESIZE */
4821#  else /* no HAVE_SYS_PARAM_H */
4822#   define getpagesize() 8192   /* punt totally */
4823#  endif /* no HAVE_SYS_PARAM_H */
4824# endif /* no _SC_PAGESIZE */
4825
4826#endif /* no HAVE_GETPAGESIZE */
4827
4828int
4829main ()
4830{
4831  char *data, *data2, *data3;
4832  int i, pagesize;
4833  int fd;
4834
4835  pagesize = getpagesize ();
4836
4837  /* First, make a file with some known garbage in it. */
4838  data = (char *) malloc (pagesize);
4839  if (!data)
4840    exit (1);
4841  for (i = 0; i < pagesize; ++i)
4842    *(data + i) = rand ();
4843  umask (0);
4844  fd = creat ("conftest.mmap", 0600);
4845  if (fd < 0)
4846    exit (1);
4847  if (write (fd, data, pagesize) != pagesize)
4848    exit (1);
4849  close (fd);
4850
4851  /* Next, try to mmap the file at a fixed address which already has
4852     something else allocated at it.  If we can, also make sure that
4853     we see the same garbage.  */
4854  fd = open ("conftest.mmap", O_RDWR);
4855  if (fd < 0)
4856    exit (1);
4857  data2 = (char *) malloc (2 * pagesize);
4858  if (!data2)
4859    exit (1);
4860  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4861  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4862                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
4863    exit (1);
4864  for (i = 0; i < pagesize; ++i)
4865    if (*(data + i) != *(data2 + i))
4866      exit (1);
4867
4868  /* Finally, make sure that changes to the mapped area do not
4869     percolate back to the file as seen by read().  (This is a bug on
4870     some variants of i386 svr4.0.)  */
4871  for (i = 0; i < pagesize; ++i)
4872    *(data2 + i) = *(data2 + i) + 1;
4873  data3 = (char *) malloc (pagesize);
4874  if (!data3)
4875    exit (1);
4876  if (read (fd, data3, pagesize) != pagesize)
4877    exit (1);
4878  for (i = 0; i < pagesize; ++i)
4879    if (*(data + i) != *(data3 + i))
4880      exit (1);
4881  close (fd);
4882  exit (0);
4883}
4884_ACEOF
4885rm -f conftest$ac_exeext
4886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4887  (eval $ac_link) 2>&5
4888  ac_status=$?
4889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892  (eval $ac_try) 2>&5
4893  ac_status=$?
4894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895  (exit $ac_status); }; }; then
4896  ac_cv_func_mmap_fixed_mapped=yes
4897else
4898  echo "$as_me: program exited with status $ac_status" >&5
4899echo "$as_me: failed program was:" >&5
4900cat conftest.$ac_ext >&5
4901( exit $ac_status )
4902ac_cv_func_mmap_fixed_mapped=no
4903fi
4904rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4905fi
4906fi
4907echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4908echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4909if test $ac_cv_func_mmap_fixed_mapped = yes; then
4910
4911cat >>confdefs.h <<\_ACEOF
4912#define HAVE_MMAP 1
4913_ACEOF
4914
4915fi
4916rm -f conftest.mmap
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4928unistd.h sys/param.h
4929do
4930as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4931if eval "test \"\${$as_ac_Header+set}\" = set"; then
4932  echo "$as_me:$LINENO: checking for $ac_header" >&5
4933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4934if eval "test \"\${$as_ac_Header+set}\" = set"; then
4935  echo $ECHO_N "(cached) $ECHO_C" >&6
4936fi
4937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4938echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4939else
4940  # Is the header compilable?
4941echo "$as_me:$LINENO: checking $ac_header usability" >&5
4942echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4943cat >conftest.$ac_ext <<_ACEOF
4944#line $LINENO "configure"
4945#include "confdefs.h"
4946$ac_includes_default
4947#include <$ac_header>
4948_ACEOF
4949rm -f conftest.$ac_objext
4950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951  (eval $ac_compile) 2>&5
4952  ac_status=$?
4953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954  (exit $ac_status); } &&
4955         { ac_try='test -s conftest.$ac_objext'
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  ac_header_compiler=yes
4962else
4963  echo "$as_me: failed program was:" >&5
4964cat conftest.$ac_ext >&5
4965ac_header_compiler=no
4966fi
4967rm -f conftest.$ac_objext conftest.$ac_ext
4968echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4969echo "${ECHO_T}$ac_header_compiler" >&6
4970
4971# Is the header present?
4972echo "$as_me:$LINENO: checking $ac_header presence" >&5
4973echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4974cat >conftest.$ac_ext <<_ACEOF
4975#line $LINENO "configure"
4976#include "confdefs.h"
4977#include <$ac_header>
4978_ACEOF
4979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4980  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4981  ac_status=$?
4982  egrep -v '^ *\+' conftest.er1 >conftest.err
4983  rm -f conftest.er1
4984  cat conftest.err >&5
4985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986  (exit $ac_status); } >/dev/null; then
4987  if test -s conftest.err; then
4988    ac_cpp_err=$ac_c_preproc_warn_flag
4989  else
4990    ac_cpp_err=
4991  fi
4992else
4993  ac_cpp_err=yes
4994fi
4995if test -z "$ac_cpp_err"; then
4996  ac_header_preproc=yes
4997else
4998  echo "$as_me: failed program was:" >&5
4999  cat conftest.$ac_ext >&5
5000  ac_header_preproc=no
5001fi
5002rm -f conftest.err conftest.$ac_ext
5003echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5004echo "${ECHO_T}$ac_header_preproc" >&6
5005
5006# So?  What about this header?
5007case $ac_header_compiler:$ac_header_preproc in
5008  yes:no )
5009    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5010echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5011    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5013  no:yes )
5014    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5015echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5016    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5017echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5018    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5019echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5020esac
5021echo "$as_me:$LINENO: checking for $ac_header" >&5
5022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5023if eval "test \"\${$as_ac_Header+set}\" = set"; then
5024  echo $ECHO_N "(cached) $ECHO_C" >&6
5025else
5026  eval "$as_ac_Header=$ac_header_preproc"
5027fi
5028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5029echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5030
5031fi
5032if test `eval echo '${'$as_ac_Header'}'` = yes; then
5033  cat >>confdefs.h <<_ACEOF
5034#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5035_ACEOF
5036
5037fi
5038
5039done
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
5053strdup __argz_count __argz_stringify __argz_next
5054do
5055as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5056echo "$as_me:$LINENO: checking for $ac_func" >&5
5057echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5058if eval "test \"\${$as_ac_var+set}\" = set"; then
5059  echo $ECHO_N "(cached) $ECHO_C" >&6
5060else
5061  cat >conftest.$ac_ext <<_ACEOF
5062#line $LINENO "configure"
5063#include "confdefs.h"
5064/* System header to define __stub macros and hopefully few prototypes,
5065    which can conflict with char $ac_func (); below.  */
5066#include <assert.h>
5067/* Override any gcc2 internal prototype to avoid an error.  */
5068#ifdef __cplusplus
5069extern "C"
5070#endif
5071/* We use char because int might match the return type of a gcc2
5072   builtin and then its argument prototype would still apply.  */
5073char $ac_func ();
5074char (*f) ();
5075
5076#ifdef F77_DUMMY_MAIN
5077#  ifdef __cplusplus
5078     extern "C"
5079#  endif
5080   int F77_DUMMY_MAIN() { return 1; }
5081#endif
5082int
5083main ()
5084{
5085/* The GNU C library defines this for functions which it implements
5086    to always fail with ENOSYS.  Some functions are actually named
5087    something starting with __ and the normal name is an alias.  */
5088#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5089choke me
5090#else
5091f = $ac_func;
5092#endif
5093
5094  ;
5095  return 0;
5096}
5097_ACEOF
5098rm -f conftest.$ac_objext conftest$ac_exeext
5099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5100  (eval $ac_link) 2>&5
5101  ac_status=$?
5102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103  (exit $ac_status); } &&
5104         { ac_try='test -s conftest$ac_exeext'
5105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106  (eval $ac_try) 2>&5
5107  ac_status=$?
5108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109  (exit $ac_status); }; }; then
5110  eval "$as_ac_var=yes"
5111else
5112  echo "$as_me: failed program was:" >&5
5113cat conftest.$ac_ext >&5
5114eval "$as_ac_var=no"
5115fi
5116rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5117fi
5118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5119echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5120if test `eval echo '${'$as_ac_var'}'` = yes; then
5121  cat >>confdefs.h <<_ACEOF
5122#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5123_ACEOF
5124
5125fi
5126done
5127
5128
5129   if test $ac_cv_header_locale_h = yes; then
5130    echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
5131echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
5132if test "${am_cv_val_LC_MESSAGES+set}" = set; then
5133  echo $ECHO_N "(cached) $ECHO_C" >&6
5134else
5135  cat >conftest.$ac_ext <<_ACEOF
5136#line $LINENO "configure"
5137#include "confdefs.h"
5138#include <locale.h>
5139#ifdef F77_DUMMY_MAIN
5140#  ifdef __cplusplus
5141     extern "C"
5142#  endif
5143   int F77_DUMMY_MAIN() { return 1; }
5144#endif
5145int
5146main ()
5147{
5148return LC_MESSAGES
5149  ;
5150  return 0;
5151}
5152_ACEOF
5153rm -f conftest.$ac_objext conftest$ac_exeext
5154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5155  (eval $ac_link) 2>&5
5156  ac_status=$?
5157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158  (exit $ac_status); } &&
5159         { ac_try='test -s conftest$ac_exeext'
5160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161  (eval $ac_try) 2>&5
5162  ac_status=$?
5163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164  (exit $ac_status); }; }; then
5165  am_cv_val_LC_MESSAGES=yes
5166else
5167  echo "$as_me: failed program was:" >&5
5168cat conftest.$ac_ext >&5
5169am_cv_val_LC_MESSAGES=no
5170fi
5171rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5172fi
5173echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
5174echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
5175    if test $am_cv_val_LC_MESSAGES = yes; then
5176
5177cat >>confdefs.h <<\_ACEOF
5178#define HAVE_LC_MESSAGES 1
5179_ACEOF
5180
5181    fi
5182  fi
5183     USE_NLS=yes
5184
5185
5186        nls_cv_force_use_gnu_gettext="no"
5187
5188    nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5189    if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5190                              nls_cv_header_intl=
5191      nls_cv_header_libgt=
5192      CATOBJEXT=NONE
5193      XGETTEXT=:
5194
5195      if test "${ac_cv_header_libintl_h+set}" = set; then
5196  echo "$as_me:$LINENO: checking for libintl.h" >&5
5197echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5198if test "${ac_cv_header_libintl_h+set}" = set; then
5199  echo $ECHO_N "(cached) $ECHO_C" >&6
5200fi
5201echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5202echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5203else
5204  # Is the header compilable?
5205echo "$as_me:$LINENO: checking libintl.h usability" >&5
5206echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
5207cat >conftest.$ac_ext <<_ACEOF
5208#line $LINENO "configure"
5209#include "confdefs.h"
5210$ac_includes_default
5211#include <libintl.h>
5212_ACEOF
5213rm -f conftest.$ac_objext
5214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5215  (eval $ac_compile) 2>&5
5216  ac_status=$?
5217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218  (exit $ac_status); } &&
5219         { ac_try='test -s conftest.$ac_objext'
5220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221  (eval $ac_try) 2>&5
5222  ac_status=$?
5223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224  (exit $ac_status); }; }; then
5225  ac_header_compiler=yes
5226else
5227  echo "$as_me: failed program was:" >&5
5228cat conftest.$ac_ext >&5
5229ac_header_compiler=no
5230fi
5231rm -f conftest.$ac_objext conftest.$ac_ext
5232echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5233echo "${ECHO_T}$ac_header_compiler" >&6
5234
5235# Is the header present?
5236echo "$as_me:$LINENO: checking libintl.h presence" >&5
5237echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
5238cat >conftest.$ac_ext <<_ACEOF
5239#line $LINENO "configure"
5240#include "confdefs.h"
5241#include <libintl.h>
5242_ACEOF
5243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5244  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5245  ac_status=$?
5246  egrep -v '^ *\+' conftest.er1 >conftest.err
5247  rm -f conftest.er1
5248  cat conftest.err >&5
5249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250  (exit $ac_status); } >/dev/null; then
5251  if test -s conftest.err; then
5252    ac_cpp_err=$ac_c_preproc_warn_flag
5253  else
5254    ac_cpp_err=
5255  fi
5256else
5257  ac_cpp_err=yes
5258fi
5259if test -z "$ac_cpp_err"; then
5260  ac_header_preproc=yes
5261else
5262  echo "$as_me: failed program was:" >&5
5263  cat conftest.$ac_ext >&5
5264  ac_header_preproc=no
5265fi
5266rm -f conftest.err conftest.$ac_ext
5267echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5268echo "${ECHO_T}$ac_header_preproc" >&6
5269
5270# So?  What about this header?
5271case $ac_header_compiler:$ac_header_preproc in
5272  yes:no )
5273    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5274echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5275    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5276echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
5277  no:yes )
5278    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5279echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5280    { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5281echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5282    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5283echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
5284esac
5285echo "$as_me:$LINENO: checking for libintl.h" >&5
5286echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5287if test "${ac_cv_header_libintl_h+set}" = set; then
5288  echo $ECHO_N "(cached) $ECHO_C" >&6
5289else
5290  ac_cv_header_libintl_h=$ac_header_preproc
5291fi
5292echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5293echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5294
5295fi
5296if test $ac_cv_header_libintl_h = yes; then
5297  echo "$as_me:$LINENO: checking for dgettext in libc" >&5
5298echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
5299if test "${gt_cv_func_dgettext_libc+set}" = set; then
5300  echo $ECHO_N "(cached) $ECHO_C" >&6
5301else
5302  cat >conftest.$ac_ext <<_ACEOF
5303#line $LINENO "configure"
5304#include "confdefs.h"
5305#include <libintl.h>
5306#ifdef F77_DUMMY_MAIN
5307#  ifdef __cplusplus
5308     extern "C"
5309#  endif
5310   int F77_DUMMY_MAIN() { return 1; }
5311#endif
5312int
5313main ()
5314{
5315return (int) dgettext ("","")
5316  ;
5317  return 0;
5318}
5319_ACEOF
5320rm -f conftest.$ac_objext conftest$ac_exeext
5321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5322  (eval $ac_link) 2>&5
5323  ac_status=$?
5324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325  (exit $ac_status); } &&
5326         { ac_try='test -s conftest$ac_exeext'
5327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328  (eval $ac_try) 2>&5
5329  ac_status=$?
5330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331  (exit $ac_status); }; }; then
5332  gt_cv_func_dgettext_libc=yes
5333else
5334  echo "$as_me: failed program was:" >&5
5335cat conftest.$ac_ext >&5
5336gt_cv_func_dgettext_libc=no
5337fi
5338rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5339fi
5340echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
5341echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
5342
5343          gt_cv_func_dgettext_libintl="no"
5344          libintl_extra_libs=""
5345
5346          if test "$gt_cv_func_dgettext_libc" != "yes" ; then
5347            echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5348echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5349if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5350  echo $ECHO_N "(cached) $ECHO_C" >&6
5351else
5352  ac_check_lib_save_LIBS=$LIBS
5353LIBS="-lintl  $LIBS"
5354cat >conftest.$ac_ext <<_ACEOF
5355#line $LINENO "configure"
5356#include "confdefs.h"
5357
5358/* Override any gcc2 internal prototype to avoid an error.  */
5359#ifdef __cplusplus
5360extern "C"
5361#endif
5362/* We use char because int might match the return type of a gcc2
5363   builtin and then its argument prototype would still apply.  */
5364char bindtextdomain ();
5365#ifdef F77_DUMMY_MAIN
5366#  ifdef __cplusplus
5367     extern "C"
5368#  endif
5369   int F77_DUMMY_MAIN() { return 1; }
5370#endif
5371int
5372main ()
5373{
5374bindtextdomain ();
5375  ;
5376  return 0;
5377}
5378_ACEOF
5379rm -f conftest.$ac_objext conftest$ac_exeext
5380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5381  (eval $ac_link) 2>&5
5382  ac_status=$?
5383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384  (exit $ac_status); } &&
5385         { ac_try='test -s conftest$ac_exeext'
5386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387  (eval $ac_try) 2>&5
5388  ac_status=$?
5389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390  (exit $ac_status); }; }; then
5391  ac_cv_lib_intl_bindtextdomain=yes
5392else
5393  echo "$as_me: failed program was:" >&5
5394cat conftest.$ac_ext >&5
5395ac_cv_lib_intl_bindtextdomain=no
5396fi
5397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5398LIBS=$ac_check_lib_save_LIBS
5399fi
5400echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5401echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5402if test $ac_cv_lib_intl_bindtextdomain = yes; then
5403  echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
5404echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
5405if test "${ac_cv_lib_intl_dgettext+set}" = set; then
5406  echo $ECHO_N "(cached) $ECHO_C" >&6
5407else
5408  ac_check_lib_save_LIBS=$LIBS
5409LIBS="-lintl  $LIBS"
5410cat >conftest.$ac_ext <<_ACEOF
5411#line $LINENO "configure"
5412#include "confdefs.h"
5413
5414/* Override any gcc2 internal prototype to avoid an error.  */
5415#ifdef __cplusplus
5416extern "C"
5417#endif
5418/* We use char because int might match the return type of a gcc2
5419   builtin and then its argument prototype would still apply.  */
5420char dgettext ();
5421#ifdef F77_DUMMY_MAIN
5422#  ifdef __cplusplus
5423     extern "C"
5424#  endif
5425   int F77_DUMMY_MAIN() { return 1; }
5426#endif
5427int
5428main ()
5429{
5430dgettext ();
5431  ;
5432  return 0;
5433}
5434_ACEOF
5435rm -f conftest.$ac_objext conftest$ac_exeext
5436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5437  (eval $ac_link) 2>&5
5438  ac_status=$?
5439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440  (exit $ac_status); } &&
5441         { ac_try='test -s conftest$ac_exeext'
5442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443  (eval $ac_try) 2>&5
5444  ac_status=$?
5445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446  (exit $ac_status); }; }; then
5447  ac_cv_lib_intl_dgettext=yes
5448else
5449  echo "$as_me: failed program was:" >&5
5450cat conftest.$ac_ext >&5
5451ac_cv_lib_intl_dgettext=no
5452fi
5453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5454LIBS=$ac_check_lib_save_LIBS
5455fi
5456echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
5457echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
5458if test $ac_cv_lib_intl_dgettext = yes; then
5459  gt_cv_func_dgettext_libintl=yes
5460fi
5461
5462fi
5463
5464
5465            if test "$gt_cv_func_dgettext_libc" != "yes" ; then
5466              echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
5467echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
5468              echo "$as_me:$LINENO: result: " >&5
5469echo "${ECHO_T}" >&6
5470              echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
5471echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
5472if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
5473  echo $ECHO_N "(cached) $ECHO_C" >&6
5474else
5475  ac_check_lib_save_LIBS=$LIBS
5476LIBS="-lintl -liconv $LIBS"
5477cat >conftest.$ac_ext <<_ACEOF
5478#line $LINENO "configure"
5479#include "confdefs.h"
5480
5481/* Override any gcc2 internal prototype to avoid an error.  */
5482#ifdef __cplusplus
5483extern "C"
5484#endif
5485/* We use char because int might match the return type of a gcc2
5486   builtin and then its argument prototype would still apply.  */
5487char dcgettext ();
5488#ifdef F77_DUMMY_MAIN
5489#  ifdef __cplusplus
5490     extern "C"
5491#  endif
5492   int F77_DUMMY_MAIN() { return 1; }
5493#endif
5494int
5495main ()
5496{
5497dcgettext ();
5498  ;
5499  return 0;
5500}
5501_ACEOF
5502rm -f conftest.$ac_objext conftest$ac_exeext
5503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5504  (eval $ac_link) 2>&5
5505  ac_status=$?
5506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507  (exit $ac_status); } &&
5508         { ac_try='test -s conftest$ac_exeext'
5509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510  (eval $ac_try) 2>&5
5511  ac_status=$?
5512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513  (exit $ac_status); }; }; then
5514  ac_cv_lib_intl_dcgettext=yes
5515else
5516  echo "$as_me: failed program was:" >&5
5517cat conftest.$ac_ext >&5
5518ac_cv_lib_intl_dcgettext=no
5519fi
5520rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5521LIBS=$ac_check_lib_save_LIBS
5522fi
5523echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
5524echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
5525if test $ac_cv_lib_intl_dcgettext = yes; then
5526  gt_cv_func_dgettext_libintl=yes
5527                            libintl_extra_libs=-liconv
5528else
5529  :
5530fi
5531
5532            fi
5533          fi
5534
5535          if test "$gt_cv_func_dgettext_libintl" = "yes"; then
5536            LIBS="$LIBS -lintl $libintl_extra_libs";
5537          fi
5538
5539          if test "$gt_cv_func_dgettext_libc" = "yes" \
5540            || test "$gt_cv_func_dgettext_libintl" = "yes"; then
5541
5542cat >>confdefs.h <<\_ACEOF
5543#define HAVE_GETTEXT 1
5544_ACEOF
5545
5546            # Extract the first word of "msgfmt", so it can be a program name with args.
5547set dummy msgfmt; ac_word=$2
5548echo "$as_me:$LINENO: checking for $ac_word" >&5
5549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5550if test "${ac_cv_path_MSGFMT+set}" = set; then
5551  echo $ECHO_N "(cached) $ECHO_C" >&6
5552else
5553  case "$MSGFMT" in
5554  /*)
5555  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5556  ;;
5557  *)
5558  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5559  for ac_dir in $PATH; do
5560    test -z "$ac_dir" && ac_dir=.
5561    if test -f $ac_dir/$ac_word; then
5562      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5563        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5564        break
5565      fi
5566    fi
5567  done
5568  IFS="$ac_save_ifs"
5569  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5570  ;;
5571esac
5572fi
5573MSGFMT="$ac_cv_path_MSGFMT"
5574if test "$MSGFMT" != "no"; then
5575  echo "$as_me:$LINENO: result: $MSGFMT" >&5
5576echo "${ECHO_T}$MSGFMT" >&6
5577else
5578  echo "$as_me:$LINENO: result: no" >&5
5579echo "${ECHO_T}no" >&6
5580fi
5581            if test "$MSGFMT" != "no"; then
5582
5583for ac_func in dcgettext
5584do
5585as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5586echo "$as_me:$LINENO: checking for $ac_func" >&5
5587echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5588if eval "test \"\${$as_ac_var+set}\" = set"; then
5589  echo $ECHO_N "(cached) $ECHO_C" >&6
5590else
5591  cat >conftest.$ac_ext <<_ACEOF
5592#line $LINENO "configure"
5593#include "confdefs.h"
5594/* System header to define __stub macros and hopefully few prototypes,
5595    which can conflict with char $ac_func (); below.  */
5596#include <assert.h>
5597/* Override any gcc2 internal prototype to avoid an error.  */
5598#ifdef __cplusplus
5599extern "C"
5600#endif
5601/* We use char because int might match the return type of a gcc2
5602   builtin and then its argument prototype would still apply.  */
5603char $ac_func ();
5604char (*f) ();
5605
5606#ifdef F77_DUMMY_MAIN
5607#  ifdef __cplusplus
5608     extern "C"
5609#  endif
5610   int F77_DUMMY_MAIN() { return 1; }
5611#endif
5612int
5613main ()
5614{
5615/* The GNU C library defines this for functions which it implements
5616    to always fail with ENOSYS.  Some functions are actually named
5617    something starting with __ and the normal name is an alias.  */
5618#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5619choke me
5620#else
5621f = $ac_func;
5622#endif
5623
5624  ;
5625  return 0;
5626}
5627_ACEOF
5628rm -f conftest.$ac_objext conftest$ac_exeext
5629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5630  (eval $ac_link) 2>&5
5631  ac_status=$?
5632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633  (exit $ac_status); } &&
5634         { ac_try='test -s conftest$ac_exeext'
5635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636  (eval $ac_try) 2>&5
5637  ac_status=$?
5638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639  (exit $ac_status); }; }; then
5640  eval "$as_ac_var=yes"
5641else
5642  echo "$as_me: failed program was:" >&5
5643cat conftest.$ac_ext >&5
5644eval "$as_ac_var=no"
5645fi
5646rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5647fi
5648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5650if test `eval echo '${'$as_ac_var'}'` = yes; then
5651  cat >>confdefs.h <<_ACEOF
5652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5653_ACEOF
5654
5655fi
5656done
5657
5658              # Extract the first word of "gmsgfmt", so it can be a program name with args.
5659set dummy gmsgfmt; ac_word=$2
5660echo "$as_me:$LINENO: checking for $ac_word" >&5
5661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5662if test "${ac_cv_path_GMSGFMT+set}" = set; then
5663  echo $ECHO_N "(cached) $ECHO_C" >&6
5664else
5665  case $GMSGFMT in
5666  [\\/]* | ?:[\\/]*)
5667  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5668  ;;
5669  *)
5670  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671for as_dir in $PATH
5672do
5673  IFS=$as_save_IFS
5674  test -z "$as_dir" && as_dir=.
5675  for ac_exec_ext in '' $ac_executable_extensions; do
5676  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5678    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5679    break 2
5680  fi
5681done
5682done
5683
5684  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5685  ;;
5686esac
5687fi
5688GMSGFMT=$ac_cv_path_GMSGFMT
5689
5690if test -n "$GMSGFMT"; then
5691  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5692echo "${ECHO_T}$GMSGFMT" >&6
5693else
5694  echo "$as_me:$LINENO: result: no" >&5
5695echo "${ECHO_T}no" >&6
5696fi
5697
5698              # Extract the first word of "xgettext", so it can be a program name with args.
5699set dummy xgettext; ac_word=$2
5700echo "$as_me:$LINENO: checking for $ac_word" >&5
5701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5702if test "${ac_cv_path_XGETTEXT+set}" = set; then
5703  echo $ECHO_N "(cached) $ECHO_C" >&6
5704else
5705  case "$XGETTEXT" in
5706  /*)
5707  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5708  ;;
5709  *)
5710  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5711  for ac_dir in $PATH; do
5712    test -z "$ac_dir" && ac_dir=.
5713    if test -f $ac_dir/$ac_word; then
5714      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5715        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5716        break
5717      fi
5718    fi
5719  done
5720  IFS="$ac_save_ifs"
5721  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5722  ;;
5723esac
5724fi
5725XGETTEXT="$ac_cv_path_XGETTEXT"
5726if test "$XGETTEXT" != ":"; then
5727  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5728echo "${ECHO_T}$XGETTEXT" >&6
5729else
5730  echo "$as_me:$LINENO: result: no" >&5
5731echo "${ECHO_T}no" >&6
5732fi
5733
5734              cat >conftest.$ac_ext <<_ACEOF
5735#line $LINENO "configure"
5736#include "confdefs.h"
5737
5738#ifdef F77_DUMMY_MAIN
5739#  ifdef __cplusplus
5740     extern "C"
5741#  endif
5742   int F77_DUMMY_MAIN() { return 1; }
5743#endif
5744int
5745main ()
5746{
5747extern int _nl_msg_cat_cntr;
5748                             return _nl_msg_cat_cntr
5749  ;
5750  return 0;
5751}
5752_ACEOF
5753rm -f conftest.$ac_objext conftest$ac_exeext
5754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5755  (eval $ac_link) 2>&5
5756  ac_status=$?
5757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758  (exit $ac_status); } &&
5759         { ac_try='test -s conftest$ac_exeext'
5760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761  (eval $ac_try) 2>&5
5762  ac_status=$?
5763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764  (exit $ac_status); }; }; then
5765  CATOBJEXT=.gmo
5766                 DATADIRNAME=share
5767else
5768  echo "$as_me: failed program was:" >&5
5769cat conftest.$ac_ext >&5
5770CATOBJEXT=.mo
5771                 DATADIRNAME=lib
5772fi
5773rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5774              INSTOBJEXT=.mo
5775            fi
5776          fi
5777
5778          # Added by Martin Baulig 12/15/98 for libc5 systems
5779          if test "$gt_cv_func_dgettext_libc" != "yes" \
5780            && test "$gt_cv_func_dgettext_libintl" = "yes"; then
5781            INTLLIBS="-lintl $libintl_extra_libs"
5782            LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5783          fi
5784
5785fi
5786
5787
5788
5789      if test "$CATOBJEXT" = "NONE"; then
5790                        nls_cv_use_gnu_gettext=yes
5791      fi
5792    fi
5793
5794    if test "$nls_cv_use_gnu_gettext" != "yes"; then
5795
5796cat >>confdefs.h <<\_ACEOF
5797#define ENABLE_NLS 1
5798_ACEOF
5799
5800    else
5801            CATOBJEXT=
5802    fi
5803
5804        if test "$XGETTEXT" != ":"; then
5805                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5806        : ;
5807      else
5808        echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5809echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5810        XGETTEXT=":"
5811      fi
5812    fi
5813
5814    # We need to process the po/ directory.
5815    POSUB=po
5816
5817    ac_config_commands="$ac_config_commands default-3"
5818
5819
5820                for lang in $ALL_LINGUAS; do
5821      GMOFILES="$GMOFILES $lang.gmo"
5822      POFILES="$POFILES $lang.po"
5823    done
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837   if test "x$CATOBJEXT" != "x"; then
5838     if test "x$ALL_LINGUAS" = "x"; then
5839       LINGUAS=
5840     else
5841       echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5842echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5843       NEW_LINGUAS=
5844       for lang in ${LINGUAS=$ALL_LINGUAS}; do
5845         case "$ALL_LINGUAS" in
5846          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5847         esac
5848       done
5849       LINGUAS=$NEW_LINGUAS
5850       echo "$as_me:$LINENO: result: $LINGUAS" >&5
5851echo "${ECHO_T}$LINGUAS" >&6
5852     fi
5853
5854          if test -n "$LINGUAS"; then
5855       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5856     fi
5857   fi
5858
5859            test -d po || mkdir po
5860   if test "$CATOBJEXT" = ".cat"; then
5861     if test "${ac_cv_header_linux_version_h+set}" = set; then
5862  echo "$as_me:$LINENO: checking for linux/version.h" >&5
5863echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5864if test "${ac_cv_header_linux_version_h+set}" = set; then
5865  echo $ECHO_N "(cached) $ECHO_C" >&6
5866fi
5867echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5868echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5869else
5870  # Is the header compilable?
5871echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5872echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5873cat >conftest.$ac_ext <<_ACEOF
5874#line $LINENO "configure"
5875#include "confdefs.h"
5876$ac_includes_default
5877#include <linux/version.h>
5878_ACEOF
5879rm -f conftest.$ac_objext
5880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881  (eval $ac_compile) 2>&5
5882  ac_status=$?
5883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884  (exit $ac_status); } &&
5885         { ac_try='test -s conftest.$ac_objext'
5886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887  (eval $ac_try) 2>&5
5888  ac_status=$?
5889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890  (exit $ac_status); }; }; then
5891  ac_header_compiler=yes
5892else
5893  echo "$as_me: failed program was:" >&5
5894cat conftest.$ac_ext >&5
5895ac_header_compiler=no
5896fi
5897rm -f conftest.$ac_objext conftest.$ac_ext
5898echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5899echo "${ECHO_T}$ac_header_compiler" >&6
5900
5901# Is the header present?
5902echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5903echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5904cat >conftest.$ac_ext <<_ACEOF
5905#line $LINENO "configure"
5906#include "confdefs.h"
5907#include <linux/version.h>
5908_ACEOF
5909if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5910  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5911  ac_status=$?
5912  egrep -v '^ *\+' conftest.er1 >conftest.err
5913  rm -f conftest.er1
5914  cat conftest.err >&5
5915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916  (exit $ac_status); } >/dev/null; then
5917  if test -s conftest.err; then
5918    ac_cpp_err=$ac_c_preproc_warn_flag
5919  else
5920    ac_cpp_err=
5921  fi
5922else
5923  ac_cpp_err=yes
5924fi
5925if test -z "$ac_cpp_err"; then
5926  ac_header_preproc=yes
5927else
5928  echo "$as_me: failed program was:" >&5
5929  cat conftest.$ac_ext >&5
5930  ac_header_preproc=no
5931fi
5932rm -f conftest.err conftest.$ac_ext
5933echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5934echo "${ECHO_T}$ac_header_preproc" >&6
5935
5936# So?  What about this header?
5937case $ac_header_compiler:$ac_header_preproc in
5938  yes:no )
5939    { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5940echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5941    { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5942echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;};;
5943  no:yes )
5944    { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5945echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5946    { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5947echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5948    { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5949echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;};;
5950esac
5951echo "$as_me:$LINENO: checking for linux/version.h" >&5
5952echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5953if test "${ac_cv_header_linux_version_h+set}" = set; then
5954  echo $ECHO_N "(cached) $ECHO_C" >&6
5955else
5956  ac_cv_header_linux_version_h=$ac_header_preproc
5957fi
5958echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5959echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5960
5961fi
5962if test $ac_cv_header_linux_version_h = yes; then
5963  msgformat=linux
5964else
5965  msgformat=xopen
5966fi
5967
5968
5969
5970               sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
5971   fi
5972
5973            MKINSTALLDIRS=
5974   if test -n "$ac_aux_dir"; then
5975     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5976   fi
5977   if test -z "$MKINSTALLDIRS"; then
5978     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5979   fi
5980
5981
5982         test -d po || mkdir po
5983   if test "x$srcdir" != "x."; then
5984     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5985       posrcprefix="$srcdir/"
5986     else
5987       posrcprefix="../$srcdir/"
5988     fi
5989   else
5990     posrcprefix="../"
5991   fi
5992   rm -f po/POTFILES
5993   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5994        < $srcdir/po/POTFILES.in > po/POTFILES
5995
5996
5997if test "x${prefix}" = "xNONE"; then
5998  cat >>confdefs.h <<_ACEOF
5999#define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
6000_ACEOF
6001
6002else
6003  cat >>confdefs.h <<_ACEOF
6004#define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
6005_ACEOF
6006
6007fi
6008
6009ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
6010
6011ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in help/Makefile help/C/Makefile"
6012cat >confcache <<\_ACEOF
6013# This file is a shell script that caches the results of configure
6014# tests run on this system so they can be shared between configure
6015# scripts and configure runs, see configure's option --config-cache.
6016# It is not useful on other systems.  If it contains results you don't
6017# want to keep, you may remove or edit it.
6018#
6019# config.status only pays attention to the cache file if you give it
6020# the --recheck option to rerun configure.
6021#
6022# `ac_cv_env_foo' variables (set or unset) will be overriden when
6023# loading this file, other *unset* `ac_cv_foo' will be assigned the
6024# following values.
6025
6026_ACEOF
6027
6028# The following way of writing the cache mishandles newlines in values,
6029# but we know of no workaround that is simple, portable, and efficient.
6030# So, don't put newlines in cache variables' values.
6031# Ultrix sh set writes to stderr and can't be redirected directly,
6032# and sets the high bit in the cache file unless we assign to the vars.
6033{
6034  (set) 2>&1 |
6035    case `(ac_space=' '; set | grep ac_space) 2>&1` in
6036    *ac_space=\ *)
6037      # `set' does not quote correctly, so add quotes (double-quote
6038      # substitution turns \\\\ into \\, and sed turns \\ into \).
6039      sed -n \
6040        "s/'/'\\\\''/g;
6041          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6042      ;;
6043    *)
6044      # `set' quotes correctly as required by POSIX, so do not add quotes.
6045      sed -n \
6046        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6047      ;;
6048    esac;
6049} |
6050  sed '
6051     t clear
6052     : clear
6053     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6054     t end
6055     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6056     : end' >>confcache
6057if cmp -s $cache_file confcache; then :; else
6058  if test -w $cache_file; then
6059    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6060    cat confcache >$cache_file
6061  else
6062    echo "not updating unwritable cache $cache_file"
6063  fi
6064fi
6065rm -f confcache
6066
6067test "x$prefix" = xNONE && prefix=$ac_default_prefix
6068# Let make expand exec_prefix.
6069test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6070
6071# VPATH may cause trouble with some makes, so we remove $(srcdir),
6072# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6073# trailing colons and then remove the whole line if VPATH becomes empty
6074# (actually we leave an empty line to preserve line numbers).
6075if test "x$srcdir" = x.; then
6076  ac_vpsub='/^[         ]*VPATH[        ]*=/{
6077s/:*\$(srcdir):*/:/;
6078s/:*\${srcdir}:*/:/;
6079s/:*@srcdir@:*/:/;
6080s/^\([^=]*=[    ]*\):*/\1/;
6081s/:*$//;
6082s/^[^=]*=[      ]*$//;
6083}'
6084fi
6085
6086DEFS=-DHAVE_CONFIG_H
6087
6088
6089
6090        mv -f po/POTFILES po/POTFILES.tmp
6091        sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
6092        rm -f po/POTFILES.tmp
6093
6094
6095
6096: ${CONFIG_STATUS=./config.status}
6097ac_clean_files_save=$ac_clean_files
6098ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6099{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6100echo "$as_me: creating $CONFIG_STATUS" >&6;}
6101cat >$CONFIG_STATUS <<_ACEOF
6102#! $SHELL
6103# Generated by $as_me.
6104# Run this file to recreate the current configuration.
6105# Compiler output produced by configure, useful for debugging
6106# configure, is in config.log if it exists.
6107
6108debug=false
6109SHELL=\${CONFIG_SHELL-$SHELL}
6110_ACEOF
6111
6112cat >>$CONFIG_STATUS <<\_ACEOF
6113
6114## --------------------- ##
6115## M4sh Initialization.  ##
6116## --------------------- ##
6117
6118# Be Bourne compatible
6119if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6120  emulate sh
6121  NULLCMD=:
6122elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6123  set -o posix
6124fi
6125
6126# NLS nuisances.
6127# Support unset when possible.
6128if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6129  as_unset=unset
6130else
6131  as_unset=false
6132fi
6133
6134(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
6135    { $as_unset LANG || test "${LANG+set}" != set; } ||
6136      { LANG=C; export LANG; }
6137(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
6138    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
6139      { LC_ALL=C; export LC_ALL; }
6140(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
6141    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
6142      { LC_TIME=C; export LC_TIME; }
6143(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
6144    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
6145      { LC_CTYPE=C; export LC_CTYPE; }
6146(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
6147    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
6148      { LANGUAGE=C; export LANGUAGE; }
6149(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
6150    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
6151      { LC_COLLATE=C; export LC_COLLATE; }
6152(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
6153    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
6154      { LC_NUMERIC=C; export LC_NUMERIC; }
6155(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
6156    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
6157      { LC_MESSAGES=C; export LC_MESSAGES; }
6158
6159
6160# Name of the executable.
6161as_me=`(basename "$0") 2>/dev/null ||
6162$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6163         X"$0" : 'X\(//\)$' \| \
6164         X"$0" : 'X\(/\)$' \| \
6165         .     : '\(.\)' 2>/dev/null ||
6166echo X/"$0" |
6167    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6168          /^X\/\(\/\/\)$/{ s//\1/; q; }
6169          /^X\/\(\/\).*/{ s//\1/; q; }
6170          s/.*/./; q'`
6171
6172# PATH needs CR, and LINENO needs CR and PATH.
6173# Avoid depending upon Character Ranges.
6174as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6175as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6176as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6177as_cr_digits='0123456789'
6178as_cr_alnum=$as_cr_Letters$as_cr_digits
6179
6180# The user is always right.
6181if test "${PATH_SEPARATOR+set}" != set; then
6182  echo "#! /bin/sh" >conftest.sh
6183  echo  "exit 0"   >>conftest.sh
6184  chmod +x conftest.sh
6185  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
6186    PATH_SEPARATOR=';'
6187  else
6188    PATH_SEPARATOR=:
6189  fi
6190  rm -f conftest.sh
6191fi
6192
6193
6194  as_lineno_1=$LINENO
6195  as_lineno_2=$LINENO
6196  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6197  test "x$as_lineno_1" != "x$as_lineno_2" &&
6198  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6199  # Find who we are.  Look in the path if we contain no path at all
6200  # relative or not.
6201  case $0 in
6202    *[\\/]* ) as_myself=$0 ;;
6203    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204for as_dir in $PATH
6205do
6206  IFS=$as_save_IFS
6207  test -z "$as_dir" && as_dir=.
6208  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6209done
6210
6211       ;;
6212  esac
6213  # We did not find ourselves, most probably we were run as `sh COMMAND'
6214  # in which case we are not to be found in the path.
6215  if test "x$as_myself" = x; then
6216    as_myself=$0
6217  fi
6218  if test ! -f "$as_myself"; then
6219    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6220echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6221   { (exit 1); exit 1; }; }
6222  fi
6223  case $CONFIG_SHELL in
6224  '')
6225    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6227do
6228  IFS=$as_save_IFS
6229  test -z "$as_dir" && as_dir=.
6230  for as_base in sh bash ksh sh5; do
6231         case $as_dir in
6232         /*)
6233           if ("$as_dir/$as_base" -c '
6234  as_lineno_1=$LINENO
6235  as_lineno_2=$LINENO
6236  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6237  test "x$as_lineno_1" != "x$as_lineno_2" &&
6238  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6239             CONFIG_SHELL=$as_dir/$as_base
6240             export CONFIG_SHELL
6241             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6242           fi;;
6243         esac
6244       done
6245done
6246;;
6247  esac
6248
6249  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6250  # uniformly replaced by the line number.  The first 'sed' inserts a
6251  # line-number line before each line; the second 'sed' does the real
6252  # work.  The second script uses 'N' to pair each line-number line
6253  # with the numbered line, and appends trailing '-' during
6254  # substitution so that $LINENO is not a special case at line end.
6255  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6256  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6257  sed '=' <$as_myself |
6258    sed '
6259      N
6260      s,$,-,
6261      : loop
6262      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6263      t loop
6264      s,-$,,
6265      s,^['$as_cr_digits']*\n,,
6266    ' >$as_me.lineno &&
6267  chmod +x $as_me.lineno ||
6268    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6269echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6270   { (exit 1); exit 1; }; }
6271
6272  # Don't try to exec as it changes $[0], causing all sort of problems
6273  # (the dirname of $[0] is not the place where we might find the
6274  # original and so on.  Autoconf is especially sensible to this).
6275  . ./$as_me.lineno
6276  # Exit status is that of the last command.
6277  exit
6278}
6279
6280
6281case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6282  *c*,-n*) ECHO_N= ECHO_C='
6283' ECHO_T='      ' ;;
6284  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6285  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6286esac
6287
6288if expr a : '\(a\)' >/dev/null 2>&1; then
6289  as_expr=expr
6290else
6291  as_expr=false
6292fi
6293
6294rm -f conf$$ conf$$.exe conf$$.file
6295echo >conf$$.file
6296if ln -s conf$$.file conf$$ 2>/dev/null; then
6297  # We could just check for DJGPP; but this test a) works b) is more generic
6298  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6299  if test -f conf$$.exe; then
6300    # Don't use ln at all; we don't have any links
6301    as_ln_s='cp -p'
6302  else
6303    as_ln_s='ln -s'
6304  fi
6305elif ln conf$$.file conf$$ 2>/dev/null; then
6306  as_ln_s=ln
6307else
6308  as_ln_s='cp -p'
6309fi
6310rm -f conf$$ conf$$.exe conf$$.file
6311
6312as_executable_p="test -f"
6313
6314# Sed expression to map a string onto a valid CPP name.
6315as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6316
6317# Sed expression to map a string onto a valid variable name.
6318as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6319
6320
6321# IFS
6322# We need space, tab and new line, in precisely that order.
6323as_nl='
6324'
6325IFS="   $as_nl"
6326
6327# CDPATH.
6328$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
6329
6330exec 6>&1
6331
6332# Open the log real soon, to keep \$[0] and so on meaningful, and to
6333# report actual input values of CONFIG_FILES etc. instead of their
6334# values after options handling.  Logging --version etc. is OK.
6335exec 5>>config.log
6336{
6337  echo
6338  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6339## Running $as_me. ##
6340_ASBOX
6341} >&5
6342cat >&5 <<_CSEOF
6343
6344This file was extended by $as_me, which was
6345generated by GNU Autoconf 2.53.  Invocation command line was
6346
6347  CONFIG_FILES    = $CONFIG_FILES
6348  CONFIG_HEADERS  = $CONFIG_HEADERS
6349  CONFIG_LINKS    = $CONFIG_LINKS
6350  CONFIG_COMMANDS = $CONFIG_COMMANDS
6351  $ $0 $@
6352
6353_CSEOF
6354echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6355echo >&5
6356_ACEOF
6357
6358# Files that config.status was made for.
6359if test -n "$ac_config_files"; then
6360  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6361fi
6362
6363if test -n "$ac_config_headers"; then
6364  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6365fi
6366
6367if test -n "$ac_config_links"; then
6368  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6369fi
6370
6371if test -n "$ac_config_commands"; then
6372  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6373fi
6374
6375cat >>$CONFIG_STATUS <<\_ACEOF
6376
6377ac_cs_usage="\
6378\`$as_me' instantiates files from templates according to the
6379current configuration.
6380
6381Usage: $0 [OPTIONS] [FILE]...
6382
6383  -h, --help       print this help, then exit
6384  -V, --version    print version number, then exit
6385  -d, --debug      don't remove temporary files
6386      --recheck    update $as_me by reconfiguring in the same conditions
6387  --file=FILE[:TEMPLATE]
6388                   instantiate the configuration file FILE
6389  --header=FILE[:TEMPLATE]
6390                   instantiate the configuration header FILE
6391
6392Configuration files:
6393$config_files
6394
6395Configuration headers:
6396$config_headers
6397
6398Configuration commands:
6399$config_commands
6400
6401Report bugs to <bug-autoconf@gnu.org>."
6402_ACEOF
6403
6404cat >>$CONFIG_STATUS <<_ACEOF
6405ac_cs_version="\\
6406config.status
6407configured by $0, generated by GNU Autoconf 2.53,
6408  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6409
6410Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6411Free Software Foundation, Inc.
6412This config.status script is free software; the Free Software Foundation
6413gives unlimited permission to copy, distribute and modify it."
6414srcdir=$srcdir
6415INSTALL="$INSTALL"
6416_ACEOF
6417
6418cat >>$CONFIG_STATUS <<\_ACEOF
6419# If no file are specified by the user, then we need to provide default
6420# value.  By we need to know if files were specified by the user.
6421ac_need_defaults=:
6422while test $# != 0
6423do
6424  case $1 in
6425  --*=*)
6426    ac_option=`expr "x$1" : 'x\([^=]*\)='`
6427    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6428    shift
6429    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6430    shift
6431    ;;
6432  -*);;
6433  *) # This is not an option, so the user has probably given explicit
6434     # arguments.
6435     ac_need_defaults=false;;
6436  esac
6437
6438  case $1 in
6439  # Handling of the options.
6440_ACEOF
6441cat >>$CONFIG_STATUS <<_ACEOF
6442  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6443    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6444    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6445_ACEOF
6446cat >>$CONFIG_STATUS <<\_ACEOF
6447  --version | --vers* | -V )
6448    echo "$ac_cs_version"; exit 0 ;;
6449  --he | --h)
6450    # Conflict between --help and --header
6451    { { echo "$as_me:$LINENO: error: ambiguous option: $1
6452Try \`$0 --help' for more information." >&5
6453echo "$as_me: error: ambiguous option: $1
6454Try \`$0 --help' for more information." >&2;}
6455   { (exit 1); exit 1; }; };;
6456  --help | --hel | -h )
6457    echo "$ac_cs_usage"; exit 0 ;;
6458  --debug | --d* | -d )
6459    debug=: ;;
6460  --file | --fil | --fi | --f )
6461    shift
6462    CONFIG_FILES="$CONFIG_FILES $1"
6463    ac_need_defaults=false;;
6464  --header | --heade | --head | --hea )
6465    shift
6466    CONFIG_HEADERS="$CONFIG_HEADERS $1"
6467    ac_need_defaults=false;;
6468
6469  # This is an error.
6470  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6471Try \`$0 --help' for more information." >&5
6472echo "$as_me: error: unrecognized option: $1
6473Try \`$0 --help' for more information." >&2;}
6474   { (exit 1); exit 1; }; } ;;
6475
6476  *) ac_config_targets="$ac_config_targets $1" ;;
6477
6478  esac
6479  shift
6480done
6481
6482_ACEOF
6483
6484cat >>$CONFIG_STATUS <<_ACEOF
6485#
6486# INIT-COMMANDS section.
6487#
6488
6489
6490INTLTOOL_PERL=${INTLTOOL_PERL}
6491
6492
6493_ACEOF
6494
6495
6496
6497cat >>$CONFIG_STATUS <<\_ACEOF
6498for ac_config_target in $ac_config_targets
6499do
6500  case "$ac_config_target" in
6501  # Handling of arguments.
6502  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6503  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6504  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
6505  "help/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
6506  "help/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/C/Makefile" ;;
6507  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6508  "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
6509  "default-3" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-3" ;;
6510  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6511  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6512echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6513   { (exit 1); exit 1; }; };;
6514  esac
6515done
6516
6517# If the user did not use the arguments to specify the items to instantiate,
6518# then the envvar interface is used.  Set only those that are not.
6519# We use the long form for the default assignment because of an extremely
6520# bizarre bug on SunOS 4.1.3.
6521if $ac_need_defaults; then
6522  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6523  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6524  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6525fi
6526
6527# Create a temporary directory, and hook for its removal unless debugging.
6528$debug ||
6529{
6530  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6531  trap '{ (exit 1); exit 1; }' 1 2 13 15
6532}
6533
6534# Create a (secure) tmp directory for tmp files.
6535: ${TMPDIR=/tmp}
6536{
6537  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6538  test -n "$tmp" && test -d "$tmp"
6539}  ||
6540{
6541  tmp=$TMPDIR/cs$$-$RANDOM
6542  (umask 077 && mkdir $tmp)
6543} ||
6544{
6545   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6546   { (exit 1); exit 1; }
6547}
6548
6549_ACEOF
6550
6551cat >>$CONFIG_STATUS <<_ACEOF
6552
6553#
6554# CONFIG_FILES section.
6555#
6556
6557# No need to generate the scripts if there are no CONFIG_FILES.
6558# This happens for instance when ./config.status config.h
6559if test -n "\$CONFIG_FILES"; then
6560  # Protect against being on the right side of a sed subst in config.status.
6561  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6562   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6563s,@SHELL@,$SHELL,;t t
6564s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6565s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6566s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6567s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6568s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6569s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6570s,@exec_prefix@,$exec_prefix,;t t
6571s,@prefix@,$prefix,;t t
6572s,@program_transform_name@,$program_transform_name,;t t
6573s,@bindir@,$bindir,;t t
6574s,@sbindir@,$sbindir,;t t
6575s,@libexecdir@,$libexecdir,;t t
6576s,@datadir@,$datadir,;t t
6577s,@sysconfdir@,$sysconfdir,;t t
6578s,@sharedstatedir@,$sharedstatedir,;t t
6579s,@localstatedir@,$localstatedir,;t t
6580s,@libdir@,$libdir,;t t
6581s,@includedir@,$includedir,;t t
6582s,@oldincludedir@,$oldincludedir,;t t
6583s,@infodir@,$infodir,;t t
6584s,@mandir@,$mandir,;t t
6585s,@build_alias@,$build_alias,;t t
6586s,@host_alias@,$host_alias,;t t
6587s,@target_alias@,$target_alias,;t t
6588s,@DEFS@,$DEFS,;t t
6589s,@ECHO_C@,$ECHO_C,;t t
6590s,@ECHO_N@,$ECHO_N,;t t
6591s,@ECHO_T@,$ECHO_T,;t t
6592s,@LIBS@,$LIBS,;t t
6593s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6594s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6595s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6596s,@PACKAGE@,$PACKAGE,;t t
6597s,@VERSION@,$VERSION,;t t
6598s,@ACLOCAL@,$ACLOCAL,;t t
6599s,@AUTOCONF@,$AUTOCONF,;t t
6600s,@AUTOMAKE@,$AUTOMAKE,;t t
6601s,@AUTOHEADER@,$AUTOHEADER,;t t
6602s,@MAKEINFO@,$MAKEINFO,;t t
6603s,@SET_MAKE@,$SET_MAKE,;t t
6604s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
6605s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
6606s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
6607s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t
6608s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
6609s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
6610s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
6611s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
6612s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
6613s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
6614s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
6615s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
6616s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
6617s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
6618s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
6619s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
6620s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
6621s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
6622s,@CC@,$CC,;t t
6623s,@CFLAGS@,$CFLAGS,;t t
6624s,@LDFLAGS@,$LDFLAGS,;t t
6625s,@CPPFLAGS@,$CPPFLAGS,;t t
6626s,@ac_ct_CC@,$ac_ct_CC,;t t
6627s,@EXEEXT@,$EXEEXT,;t t
6628s,@OBJEXT@,$OBJEXT,;t t
6629s,@CPP@,$CPP,;t t
6630s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6631s,@PKG_CONFIG@,$PKG_CONFIG,;t t
6632s,@PROCMAN_CFLAGS@,$PROCMAN_CFLAGS,;t t
6633s,@PROCMAN_LIBS@,$PROCMAN_LIBS,;t t
6634s,@GCONF_SCHEMA_CONFIG_SOURCE@,$GCONF_SCHEMA_CONFIG_SOURCE,;t t
6635s,@GCONF_SCHEMA_FILE_DIR@,$GCONF_SCHEMA_FILE_DIR,;t t
6636s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
6637s,@RANLIB@,$RANLIB,;t t
6638s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6639s,@ALLOCA@,$ALLOCA,;t t
6640s,@USE_NLS@,$USE_NLS,;t t
6641s,@MSGFMT@,$MSGFMT,;t t
6642s,@GMSGFMT@,$GMSGFMT,;t t
6643s,@XGETTEXT@,$XGETTEXT,;t t
6644s,@CATALOGS@,$CATALOGS,;t t
6645s,@CATOBJEXT@,$CATOBJEXT,;t t
6646s,@DATADIRNAME@,$DATADIRNAME,;t t
6647s,@GMOFILES@,$GMOFILES,;t t
6648s,@INSTOBJEXT@,$INSTOBJEXT,;t t
6649s,@INTLDEPS@,$INTLDEPS,;t t
6650s,@INTLLIBS@,$INTLLIBS,;t t
6651s,@INTLOBJS@,$INTLOBJS,;t t
6652s,@POFILES@,$POFILES,;t t
6653s,@POSUB@,$POSUB,;t t
6654s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
6655CEOF
6656
6657_ACEOF
6658
6659  cat >>$CONFIG_STATUS <<\_ACEOF
6660  # Split the substitutions into bite-sized pieces for seds with
6661  # small command number limits, like on Digital OSF/1 and HP-UX.
6662  ac_max_sed_lines=48
6663  ac_sed_frag=1 # Number of current file.
6664  ac_beg=1 # First line for current file.
6665  ac_end=$ac_max_sed_lines # Line after last line for current file.
6666  ac_more_lines=:
6667  ac_sed_cmds=
6668  while $ac_more_lines; do
6669    if test $ac_beg -gt 1; then
6670      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6671    else
6672      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6673    fi
6674    if test ! -s $tmp/subs.frag; then
6675      ac_more_lines=false
6676    else
6677      # The purpose of the label and of the branching condition is to
6678      # speed up the sed processing (if there are no `@' at all, there
6679      # is no need to browse any of the substitutions).
6680      # These are the two extra sed commands mentioned above.
6681      (echo ':t
6682  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6683      if test -z "$ac_sed_cmds"; then
6684        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6685      else
6686        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6687      fi
6688      ac_sed_frag=`expr $ac_sed_frag + 1`
6689      ac_beg=$ac_end
6690      ac_end=`expr $ac_end + $ac_max_sed_lines`
6691    fi
6692  done
6693  if test -z "$ac_sed_cmds"; then
6694    ac_sed_cmds=cat
6695  fi
6696fi # test -n "$CONFIG_FILES"
6697
6698_ACEOF
6699cat >>$CONFIG_STATUS <<\_ACEOF
6700for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6701  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6702  case $ac_file in
6703  - | *:- | *:-:* ) # input from stdin
6704        cat >$tmp/stdin
6705        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6706        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6707  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6708        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6709  * )   ac_file_in=$ac_file.in ;;
6710  esac
6711
6712  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6713  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6714$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6715         X"$ac_file" : 'X\(//\)[^/]' \| \
6716         X"$ac_file" : 'X\(//\)$' \| \
6717         X"$ac_file" : 'X\(/\)' \| \
6718         .     : '\(.\)' 2>/dev/null ||
6719echo X"$ac_file" |
6720    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6721          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6722          /^X\(\/\/\)$/{ s//\1/; q; }
6723          /^X\(\/\).*/{ s//\1/; q; }
6724          s/.*/./; q'`
6725  { case "$ac_dir" in
6726  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6727  *)                      as_incr_dir=.;;
6728esac
6729as_dummy="$ac_dir"
6730for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6731  case $as_mkdir_dir in
6732    # Skip DOS drivespec
6733    ?:) as_incr_dir=$as_mkdir_dir ;;
6734    *)
6735      as_incr_dir=$as_incr_dir/$as_mkdir_dir
6736      test -d "$as_incr_dir" ||
6737        mkdir "$as_incr_dir" ||
6738        { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6739echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6740   { (exit 1); exit 1; }; }
6741    ;;
6742  esac
6743done; }
6744
6745  ac_builddir=.
6746
6747if test "$ac_dir" != .; then
6748  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6749  # A "../" for each directory in $ac_dir_suffix.
6750  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6751else
6752  ac_dir_suffix= ac_top_builddir=
6753fi
6754
6755case $srcdir in
6756  .)  # No --srcdir option.  We are building in place.
6757    ac_srcdir=.
6758    if test -z "$ac_top_builddir"; then
6759       ac_top_srcdir=.
6760    else
6761       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6762    fi ;;
6763  [\\/]* | ?:[\\/]* )  # Absolute path.
6764    ac_srcdir=$srcdir$ac_dir_suffix;
6765    ac_top_srcdir=$srcdir ;;
6766  *) # Relative path.
6767    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6768    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6769esac
6770# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6771# absolute.
6772ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6773ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6774ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6775ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6776
6777
6778  case $INSTALL in
6779  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6780  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6781  esac
6782
6783  if test x"$ac_file" != x-; then
6784    { echo "$as_me:$LINENO: creating $ac_file" >&5
6785echo "$as_me: creating $ac_file" >&6;}
6786    rm -f "$ac_file"
6787  fi
6788  # Let's still pretend it is `configure' which instantiates (i.e., don't
6789  # use $as_me), people would be surprised to read:
6790  #    /* config.h.  Generated by config.status.  */
6791  if test x"$ac_file" = x-; then
6792    configure_input=
6793  else
6794    configure_input="$ac_file.  "
6795  fi
6796  configure_input=$configure_input"Generated from `echo $ac_file_in |
6797                                     sed 's,.*/,,'` by configure."
6798
6799  # First look for the input files in the build tree, otherwise in the
6800  # src tree.
6801  ac_file_inputs=`IFS=:
6802    for f in $ac_file_in; do
6803      case $f in
6804      -) echo $tmp/stdin ;;
6805      [\\/$]*)
6806         # Absolute (can't be DOS-style, as IFS=:)
6807         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6808echo "$as_me: error: cannot find input file: $f" >&2;}
6809   { (exit 1); exit 1; }; }
6810         echo $f;;
6811      *) # Relative
6812         if test -f "$f"; then
6813           # Build tree
6814           echo $f
6815         elif test -f "$srcdir/$f"; then
6816           # Source tree
6817           echo $srcdir/$f
6818         else
6819           # /dev/null tree
6820           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6821echo "$as_me: error: cannot find input file: $f" >&2;}
6822   { (exit 1); exit 1; }; }
6823         fi;;
6824      esac
6825    done` || { (exit 1); exit 1; }
6826_ACEOF
6827cat >>$CONFIG_STATUS <<_ACEOF
6828  sed "$ac_vpsub
6829$extrasub
6830_ACEOF
6831cat >>$CONFIG_STATUS <<\_ACEOF
6832:t
6833/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6834s,@configure_input@,$configure_input,;t t
6835s,@srcdir@,$ac_srcdir,;t t
6836s,@abs_srcdir@,$ac_abs_srcdir,;t t
6837s,@top_srcdir@,$ac_top_srcdir,;t t
6838s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6839s,@builddir@,$ac_builddir,;t t
6840s,@abs_builddir@,$ac_abs_builddir,;t t
6841s,@top_builddir@,$ac_top_builddir,;t t
6842s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6843s,@INSTALL@,$ac_INSTALL,;t t
6844" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6845  rm -f $tmp/stdin
6846  if test x"$ac_file" != x-; then
6847    mv $tmp/out $ac_file
6848  else
6849    cat $tmp/out
6850    rm -f $tmp/out
6851  fi
6852
6853done
6854_ACEOF
6855cat >>$CONFIG_STATUS <<\_ACEOF
6856
6857#
6858# CONFIG_HEADER section.
6859#
6860
6861# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6862# NAME is the cpp macro being defined and VALUE is the value it is being given.
6863#
6864# ac_d sets the value in "#define NAME VALUE" lines.
6865ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
6866ac_dB='[        ].*$,\1#\2'
6867ac_dC=' '
6868ac_dD=',;t'
6869# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6870ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6871ac_uB='$,\1#\2define\3'
6872ac_uC=' '
6873ac_uD=',;t'
6874
6875for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6876  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6877  case $ac_file in
6878  - | *:- | *:-:* ) # input from stdin
6879        cat >$tmp/stdin
6880        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6881        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6882  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6883        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6884  * )   ac_file_in=$ac_file.in ;;
6885  esac
6886
6887  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6888echo "$as_me: creating $ac_file" >&6;}
6889
6890  # First look for the input files in the build tree, otherwise in the
6891  # src tree.
6892  ac_file_inputs=`IFS=:
6893    for f in $ac_file_in; do
6894      case $f in
6895      -) echo $tmp/stdin ;;
6896      [\\/$]*)
6897         # Absolute (can't be DOS-style, as IFS=:)
6898         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6899echo "$as_me: error: cannot find input file: $f" >&2;}
6900   { (exit 1); exit 1; }; }
6901         echo $f;;
6902      *) # Relative
6903         if test -f "$f"; then
6904           # Build tree
6905           echo $f
6906         elif test -f "$srcdir/$f"; then
6907           # Source tree
6908           echo $srcdir/$f
6909         else
6910           # /dev/null tree
6911           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6912echo "$as_me: error: cannot find input file: $f" >&2;}
6913   { (exit 1); exit 1; }; }
6914         fi;;
6915      esac
6916    done` || { (exit 1); exit 1; }
6917  # Remove the trailing spaces.
6918  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
6919
6920_ACEOF
6921
6922# Transform confdefs.h into two sed scripts, `conftest.defines' and
6923# `conftest.undefs', that substitutes the proper values into
6924# config.h.in to produce config.h.  The first handles `#define'
6925# templates, and the second `#undef' templates.
6926# And first: Protect against being on the right side of a sed subst in
6927# config.status.  Protect against being in an unquoted here document
6928# in config.status.
6929rm -f conftest.defines conftest.undefs
6930# Using a here document instead of a string reduces the quoting nightmare.
6931# Putting comments in sed scripts is not portable.
6932#
6933# `end' is used to avoid that the second main sed command (meant for
6934# 0-ary CPP macros) applies to n-ary macro definitions.
6935# See the Autoconf documentation for `clear'.
6936cat >confdef2sed.sed <<\_ACEOF
6937s/[\\&,]/\\&/g
6938s,[\\$`],\\&,g
6939t clear
6940: clear
6941s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6942t end
6943s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6944: end
6945_ACEOF
6946# If some macros were called several times there might be several times
6947# the same #defines, which is useless.  Nevertheless, we may not want to
6948# sort them, since we want the *last* AC-DEFINE to be honored.
6949uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6950sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6951rm -f confdef2sed.sed
6952
6953# This sed command replaces #undef with comments.  This is necessary, for
6954# example, in the case of _POSIX_SOURCE, which is predefined and required
6955# on some systems where configure will not decide to define it.
6956cat >>conftest.undefs <<\_ACEOF
6957s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6958_ACEOF
6959
6960# Break up conftest.defines because some shells have a limit on the size
6961# of here documents, and old seds have small limits too (100 cmds).
6962echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6963echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6964echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6965echo '  :' >>$CONFIG_STATUS
6966rm -f conftest.tail
6967while grep . conftest.defines >/dev/null
6968do
6969  # Write a limited-size here document to $tmp/defines.sed.
6970  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6971  # Speed up: don't consider the non `#define' lines.
6972  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
6973  # Work around the forget-to-reset-the-flag bug.
6974  echo 't clr' >>$CONFIG_STATUS
6975  echo ': clr' >>$CONFIG_STATUS
6976  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6977  echo 'CEOF
6978  sed -f $tmp/defines.sed $tmp/in >$tmp/out
6979  rm -f $tmp/in
6980  mv $tmp/out $tmp/in
6981' >>$CONFIG_STATUS
6982  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6983  rm -f conftest.defines
6984  mv conftest.tail conftest.defines
6985done
6986rm -f conftest.defines
6987echo '  fi # egrep' >>$CONFIG_STATUS
6988echo >>$CONFIG_STATUS
6989
6990# Break up conftest.undefs because some shells have a limit on the size
6991# of here documents, and old seds have small limits too (100 cmds).
6992echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6993rm -f conftest.tail
6994while grep . conftest.undefs >/dev/null
6995do
6996  # Write a limited-size here document to $tmp/undefs.sed.
6997  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6998  # Speed up: don't consider the non `#undef'
6999  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7000  # Work around the forget-to-reset-the-flag bug.
7001  echo 't clr' >>$CONFIG_STATUS
7002  echo ': clr' >>$CONFIG_STATUS
7003  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7004  echo 'CEOF
7005  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7006  rm -f $tmp/in
7007  mv $tmp/out $tmp/in
7008' >>$CONFIG_STATUS
7009  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7010  rm -f conftest.undefs
7011  mv conftest.tail conftest.undefs
7012done
7013rm -f conftest.undefs
7014
7015cat >>$CONFIG_STATUS <<\_ACEOF
7016  # Let's still pretend it is `configure' which instantiates (i.e., don't
7017  # use $as_me), people would be surprised to read:
7018  #    /* config.h.  Generated by config.status.  */
7019  if test x"$ac_file" = x-; then
7020    echo "/* Generated by configure.  */" >$tmp/config.h
7021  else
7022    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7023  fi
7024  cat $tmp/in >>$tmp/config.h
7025  rm -f $tmp/in
7026  if test x"$ac_file" != x-; then
7027    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7028      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7029echo "$as_me: $ac_file is unchanged" >&6;}
7030    else
7031      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7032$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7033         X"$ac_file" : 'X\(//\)[^/]' \| \
7034         X"$ac_file" : 'X\(//\)$' \| \
7035         X"$ac_file" : 'X\(/\)' \| \
7036         .     : '\(.\)' 2>/dev/null ||
7037echo X"$ac_file" |
7038    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7039          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7040          /^X\(\/\/\)$/{ s//\1/; q; }
7041          /^X\(\/\).*/{ s//\1/; q; }
7042          s/.*/./; q'`
7043      { case "$ac_dir" in
7044  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7045  *)                      as_incr_dir=.;;
7046esac
7047as_dummy="$ac_dir"
7048for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7049  case $as_mkdir_dir in
7050    # Skip DOS drivespec
7051    ?:) as_incr_dir=$as_mkdir_dir ;;
7052    *)
7053      as_incr_dir=$as_incr_dir/$as_mkdir_dir
7054      test -d "$as_incr_dir" ||
7055        mkdir "$as_incr_dir" ||
7056        { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7057echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7058   { (exit 1); exit 1; }; }
7059    ;;
7060  esac
7061done; }
7062
7063      rm -f $ac_file
7064      mv $tmp/config.h $ac_file
7065    fi
7066  else
7067    cat $tmp/config.h
7068    rm -f $tmp/config.h
7069  fi
7070done
7071_ACEOF
7072cat >>$CONFIG_STATUS <<\_ACEOF
7073
7074#
7075# CONFIG_COMMANDS section.
7076#
7077for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7078  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7079  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7080  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7081$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7082         X"$ac_dest" : 'X\(//\)[^/]' \| \
7083         X"$ac_dest" : 'X\(//\)$' \| \
7084         X"$ac_dest" : 'X\(/\)' \| \
7085         .     : '\(.\)' 2>/dev/null ||
7086echo X"$ac_dest" |
7087    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7088          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7089          /^X\(\/\/\)$/{ s//\1/; q; }
7090          /^X\(\/\).*/{ s//\1/; q; }
7091          s/.*/./; q'`
7092  ac_builddir=.
7093
7094if test "$ac_dir" != .; then
7095  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7096  # A "../" for each directory in $ac_dir_suffix.
7097  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7098else
7099  ac_dir_suffix= ac_top_builddir=
7100fi
7101
7102case $srcdir in
7103  .)  # No --srcdir option.  We are building in place.
7104    ac_srcdir=.
7105    if test -z "$ac_top_builddir"; then
7106       ac_top_srcdir=.
7107    else
7108       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7109    fi ;;
7110  [\\/]* | ?:[\\/]* )  # Absolute path.
7111    ac_srcdir=$srcdir$ac_dir_suffix;
7112    ac_top_srcdir=$srcdir ;;
7113  *) # Relative path.
7114    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7115    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7116esac
7117# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7118# absolute.
7119ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7120ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
7121ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7122ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7123
7124
7125  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7126echo "$as_me: executing $ac_dest commands" >&6;}
7127  case $ac_dest in
7128    default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
7129    default-2 )
7130
7131sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
7132if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
7133  rm -f intltool-extract.out
7134else
7135  mv -f intltool-extract.out intltool-extract
7136fi
7137chmod ugo+x intltool-extract
7138chmod u+w intltool-extract
7139
7140sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
7141if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
7142  rm -f intltool-merge.out
7143else
7144  mv -f intltool-merge.out intltool-merge
7145fi
7146chmod ugo+x intltool-merge
7147chmod u+w intltool-merge
7148
7149sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
7150if cmp -s intltool-update intltool-update.out 2>/dev/null; then
7151  rm -f intltool-update.out
7152else
7153  mv -f intltool-update.out intltool-update
7154fi
7155chmod ugo+x intltool-update
7156chmod u+w intltool-update
7157
7158 ;;
7159    default-3 ) case "$CONFIG_FILES" in *po/Makefile.in*)
7160        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
7161      esac ;;
7162  esac
7163done
7164_ACEOF
7165
7166cat >>$CONFIG_STATUS <<\_ACEOF
7167
7168{ (exit 0); exit 0; }
7169_ACEOF
7170chmod +x $CONFIG_STATUS
7171ac_clean_files=$ac_clean_files_save
7172
7173
7174# configure is writing to config.log, and then calls config.status.
7175# config.status does its own redirection, appending to config.log.
7176# Unfortunately, on DOS this fails, as config.log is still kept open
7177# by configure, so config.status won't be able to write to it; its
7178# output is simply discarded.  So we exec the FD to /dev/null,
7179# effectively closing config.log, so it can be properly (re)opened and
7180# appended to by config.status.  When coming back to configure, we
7181# need to make the FD available again.
7182if test "$no_create" != yes; then
7183  ac_cs_success=:
7184  exec 5>/dev/null
7185  $SHELL $CONFIG_STATUS || ac_cs_success=false
7186  exec 5>>config.log
7187  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7188  # would make configure fail if this is the last instruction.
7189  $ac_cs_success || { (exit 1); exit 1; }
7190fi
7191
7192
Note: See TracBrowser for help on using the repository browser.