~ubuntu-branches/ubuntu/saucy/groundhog/saucy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Stephen M Moraco
  • Date: 2003-06-18 19:46:15 UTC
  • mto: (2.1.1 warty)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20030618194615-sztk57bkfjhmctl4
Tags: upstream-1.4
ImportĀ upstreamĀ versionĀ 1.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
 
3
2
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated automatically using autoconf version 2.13 
5
 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
3
# Generated by Autoconf 2.52.
6
4
#
 
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
6
# Free Software Foundation, Inc.
7
7
# This configure script is free software; the Free Software Foundation
8
8
# gives unlimited permission to copy, distribute and modify it.
9
9
 
10
 
# Defaults:
11
 
ac_help=
 
10
# Avoid depending upon Character Ranges.
 
11
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
12
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
13
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
14
as_cr_digits='0123456789'
 
15
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
16
 
 
17
# Sed expression to map a string onto a valid variable name.
 
18
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
19
 
 
20
# Sed expression to map a string onto a valid CPP name.
 
21
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
22
 
 
23
# Be Bourne compatible
 
24
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
25
  emulate sh
 
26
  NULLCMD=:
 
27
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
28
  set -o posix
 
29
fi
 
30
 
 
31
# Name of the executable.
 
32
as_me=`echo "$0" |sed 's,.*[\\/],,'`
 
33
 
 
34
if expr a : '\(a\)' >/dev/null 2>&1; then
 
35
  as_expr=expr
 
36
else
 
37
  as_expr=false
 
38
fi
 
39
 
 
40
rm -f conf$$ conf$$.exe conf$$.file
 
41
echo >conf$$.file
 
42
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
43
  # We could just check for DJGPP; but this test a) works b) is more generic
 
44
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
45
  if test -f conf$$.exe; then
 
46
    # Don't use ln at all; we don't have any links
 
47
    as_ln_s='cp -p'
 
48
  else
 
49
    as_ln_s='ln -s'
 
50
  fi
 
51
elif ln conf$$.file conf$$ 2>/dev/null; then
 
52
  as_ln_s=ln
 
53
else
 
54
  as_ln_s='cp -p'
 
55
fi
 
56
rm -f conf$$ conf$$.exe conf$$.file
 
57
 
 
58
as_executable_p="test -f"
 
59
 
 
60
# Support unset when possible.
 
61
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
62
  as_unset=unset
 
63
else
 
64
  as_unset=false
 
65
fi
 
66
 
 
67
# NLS nuisances.
 
68
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
 
69
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
 
70
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
 
71
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
 
72
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
 
73
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
 
74
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
 
75
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
 
76
 
 
77
# IFS
 
78
# We need space, tab and new line, in precisely that order.
 
79
as_nl='
 
80
'
 
81
IFS="   $as_nl"
 
82
 
 
83
# CDPATH.
 
84
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
85
 
 
86
# Name of the host.
 
87
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
88
# so uname gets run too.
 
89
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
90
 
 
91
exec 6>&1
 
92
 
 
93
#
 
94
# Initializations.
 
95
#
12
96
ac_default_prefix=/usr/local
13
 
# Any additions from configure.in:
14
 
ac_help="$ac_help
15
 
  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib"
16
 
ac_help="$ac_help
17
 
  --disable-nls           do not use Native Language Support"
18
 
ac_help="$ac_help
19
 
  --with-included-gettext use the GNU gettext library included here"
20
 
ac_help="$ac_help
21
 
  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
22
 
ac_help="$ac_help
23
 
  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
24
 
ac_help="$ac_help
25
 
  --disable-gtktest       Do not try to compile and run a test GTK program"
 
97
cross_compiling=no
 
98
subdirs=
 
99
MFLAGS= MAKEFLAGS=
 
100
SHELL=${CONFIG_SHELL-/bin/sh}
 
101
 
 
102
# Maximum number of lines to put in a shell here document.
 
103
# This variable seems obsolete.  It should probably be removed, and
 
104
# only ac_max_sed_lines should be used.
 
105
: ${ac_max_here_lines=38}
 
106
 
 
107
ac_unique_file="src/ball.cc"
 
108
# Factoring default headers for most tests.
 
109
ac_includes_default="\
 
110
#include <stdio.h>
 
111
#if HAVE_SYS_TYPES_H
 
112
# include <sys/types.h>
 
113
#endif
 
114
#if HAVE_SYS_STAT_H
 
115
# include <sys/stat.h>
 
116
#endif
 
117
#if STDC_HEADERS
 
118
# include <stdlib.h>
 
119
# include <stddef.h>
 
120
#else
 
121
# if HAVE_STDLIB_H
 
122
#  include <stdlib.h>
 
123
# endif
 
124
#endif
 
125
#if HAVE_STRING_H
 
126
# if !STDC_HEADERS && HAVE_MEMORY_H
 
127
#  include <memory.h>
 
128
# endif
 
129
# include <string.h>
 
130
#endif
 
131
#if HAVE_STRINGS_H
 
132
# include <strings.h>
 
133
#endif
 
134
#if HAVE_INTTYPES_H
 
135
# include <inttypes.h>
 
136
#else
 
137
# if HAVE_STDINT_H
 
138
#  include <stdint.h>
 
139
# endif
 
140
#endif
 
141
#if HAVE_UNISTD_H
 
142
# include <unistd.h>
 
143
#endif"
26
144
 
27
145
# Initialize some variables set by options.
 
146
ac_init_help=
 
147
ac_init_version=false
28
148
# The variables have the same names as the options, with
29
149
# dashes changed to underlines.
30
 
build=NONE
31
 
cache_file=./config.cache
 
150
cache_file=/dev/null
32
151
exec_prefix=NONE
33
 
host=NONE
34
152
no_create=
35
 
nonopt=NONE
36
153
no_recursion=
37
154
prefix=NONE
38
155
program_prefix=NONE
41
158
silent=
42
159
site=
43
160
srcdir=
44
 
target=NONE
45
161
verbose=
46
162
x_includes=NONE
47
163
x_libraries=NONE
 
164
 
 
165
# Installation directory options.
 
166
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
167
# and all the variables that are supposed to be based on exec_prefix
 
168
# by default will actually change.
 
169
# Use braces instead of parens because sh, perl, etc. also accept them.
48
170
bindir='${exec_prefix}/bin'
49
171
sbindir='${exec_prefix}/sbin'
50
172
libexecdir='${exec_prefix}/libexec'
58
180
infodir='${prefix}/info'
59
181
mandir='${prefix}/man'
60
182
 
61
 
# Initialize some other variables.
62
 
subdirs=
63
 
MFLAGS= MAKEFLAGS=
64
 
SHELL=${CONFIG_SHELL-/bin/sh}
65
 
# Maximum number of lines to put in a shell here document.
66
 
ac_max_here_lines=12
 
183
# Identity of this package.
 
184
PACKAGE_NAME=
 
185
PACKAGE_TARNAME=
 
186
PACKAGE_VERSION=
 
187
PACKAGE_STRING=
 
188
PACKAGE_BUGREPORT=
67
189
 
68
190
ac_prev=
69
191
for ac_option
70
192
do
71
 
 
72
193
  # If the previous option needs an argument, assign it.
73
194
  if test -n "$ac_prev"; then
74
195
    eval "$ac_prev=\$ac_option"
76
197
    continue
77
198
  fi
78
199
 
79
 
  case "$ac_option" in
80
 
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81
 
  *) ac_optarg= ;;
82
 
  esac
 
200
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
83
201
 
84
202
  # Accept the important Cygnus configure options, so we can diagnose typos.
85
203
 
86
 
  case "$ac_option" in
 
204
  case $ac_option in
87
205
 
88
206
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
89
207
    ac_prev=bindir ;;
90
208
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91
 
    bindir="$ac_optarg" ;;
 
209
    bindir=$ac_optarg ;;
92
210
 
93
211
  -build | --build | --buil | --bui | --bu)
94
 
    ac_prev=build ;;
 
212
    ac_prev=build_alias ;;
95
213
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96
 
    build="$ac_optarg" ;;
 
214
    build_alias=$ac_optarg ;;
97
215
 
98
216
  -cache-file | --cache-file | --cache-fil | --cache-fi \
99
217
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100
218
    ac_prev=cache_file ;;
101
219
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102
220
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103
 
    cache_file="$ac_optarg" ;;
 
221
    cache_file=$ac_optarg ;;
 
222
 
 
223
  --config-cache | -C)
 
224
    cache_file=config.cache ;;
104
225
 
105
226
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
106
227
    ac_prev=datadir ;;
107
228
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
108
229
  | --da=*)
109
 
    datadir="$ac_optarg" ;;
 
230
    datadir=$ac_optarg ;;
110
231
 
111
232
  -disable-* | --disable-*)
112
 
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
233
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
113
234
    # Reject names that are not valid shell variable names.
114
 
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116
 
    fi
117
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118
 
    eval "enable_${ac_feature}=no" ;;
 
235
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
236
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
237
   { (exit 1); exit 1; }; }
 
238
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
239
    eval "enable_$ac_feature=no" ;;
119
240
 
120
241
  -enable-* | --enable-*)
121
 
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
242
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
122
243
    # Reject names that are not valid shell variable names.
123
 
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125
 
    fi
126
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127
 
    case "$ac_option" in
128
 
      *=*) ;;
 
244
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
245
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
246
   { (exit 1); exit 1; }; }
 
247
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
248
    case $ac_option in
 
249
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
129
250
      *) ac_optarg=yes ;;
130
251
    esac
131
 
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
252
    eval "enable_$ac_feature='$ac_optarg'" ;;
132
253
 
133
254
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134
255
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
137
258
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138
259
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139
260
  | --exec=* | --exe=* | --ex=*)
140
 
    exec_prefix="$ac_optarg" ;;
 
261
    exec_prefix=$ac_optarg ;;
141
262
 
142
263
  -gas | --gas | --ga | --g)
143
264
    # Obsolete; use --with-gas.
144
265
    with_gas=yes ;;
145
266
 
146
 
  -help | --help | --hel | --he)
147
 
    # Omit some internal or obsolete options to make the list less imposing.
148
 
    # This message is too long to be a string in the A/UX 3.1 sh.
149
 
    cat << EOF
150
 
Usage: configure [options] [host]
151
 
Options: [defaults in brackets after descriptions]
152
 
Configuration:
153
 
  --cache-file=FILE       cache test results in FILE
154
 
  --help                  print this message
155
 
  --no-create             do not create output files
156
 
  --quiet, --silent       do not print \`checking...' messages
157
 
  --version               print the version of autoconf that created configure
158
 
Directory and file names:
159
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
160
 
                          [$ac_default_prefix]
161
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
162
 
                          [same as prefix]
163
 
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
164
 
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
165
 
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
166
 
  --datadir=DIR           read-only architecture-independent data in DIR
167
 
                          [PREFIX/share]
168
 
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
169
 
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
170
 
                          [PREFIX/com]
171
 
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
172
 
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
173
 
  --includedir=DIR        C header files in DIR [PREFIX/include]
174
 
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
175
 
  --infodir=DIR           info documentation in DIR [PREFIX/info]
176
 
  --mandir=DIR            man documentation in DIR [PREFIX/man]
177
 
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
178
 
  --program-prefix=PREFIX prepend PREFIX to installed program names
179
 
  --program-suffix=SUFFIX append SUFFIX to installed program names
180
 
  --program-transform-name=PROGRAM
181
 
                          run sed PROGRAM on installed program names
182
 
EOF
183
 
    cat << EOF
184
 
Host type:
185
 
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
186
 
  --host=HOST             configure for HOST [guessed]
187
 
  --target=TARGET         configure for TARGET [TARGET=HOST]
188
 
Features and packages:
189
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
190
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
191
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
192
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
193
 
  --x-includes=DIR        X include files are in DIR
194
 
  --x-libraries=DIR       X library files are in DIR
195
 
EOF
196
 
    if test -n "$ac_help"; then
197
 
      echo "--enable and --with options recognized:$ac_help"
198
 
    fi
199
 
    exit 0 ;;
 
267
  -help | --help | --hel | --he | -h)
 
268
    ac_init_help=long ;;
 
269
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
270
    ac_init_help=recursive ;;
 
271
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
272
    ac_init_help=short ;;
200
273
 
201
274
  -host | --host | --hos | --ho)
202
 
    ac_prev=host ;;
 
275
    ac_prev=host_alias ;;
203
276
  -host=* | --host=* | --hos=* | --ho=*)
204
 
    host="$ac_optarg" ;;
 
277
    host_alias=$ac_optarg ;;
205
278
 
206
279
  -includedir | --includedir | --includedi | --included | --include \
207
280
  | --includ | --inclu | --incl | --inc)
208
281
    ac_prev=includedir ;;
209
282
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
210
283
  | --includ=* | --inclu=* | --incl=* | --inc=*)
211
 
    includedir="$ac_optarg" ;;
 
284
    includedir=$ac_optarg ;;
212
285
 
213
286
  -infodir | --infodir | --infodi | --infod | --info | --inf)
214
287
    ac_prev=infodir ;;
215
288
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216
 
    infodir="$ac_optarg" ;;
 
289
    infodir=$ac_optarg ;;
217
290
 
218
291
  -libdir | --libdir | --libdi | --libd)
219
292
    ac_prev=libdir ;;
220
293
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
221
 
    libdir="$ac_optarg" ;;
 
294
    libdir=$ac_optarg ;;
222
295
 
223
296
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
224
297
  | --libexe | --libex | --libe)
225
298
    ac_prev=libexecdir ;;
226
299
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
227
300
  | --libexe=* | --libex=* | --libe=*)
228
 
    libexecdir="$ac_optarg" ;;
 
301
    libexecdir=$ac_optarg ;;
229
302
 
230
303
  -localstatedir | --localstatedir | --localstatedi | --localstated \
231
304
  | --localstate | --localstat | --localsta | --localst \
234
307
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
235
308
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
236
309
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
237
 
    localstatedir="$ac_optarg" ;;
 
310
    localstatedir=$ac_optarg ;;
238
311
 
239
312
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
240
313
    ac_prev=mandir ;;
241
314
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242
 
    mandir="$ac_optarg" ;;
 
315
    mandir=$ac_optarg ;;
243
316
 
244
317
  -nfp | --nfp | --nf)
245
318
    # Obsolete; use --without-fp.
260
333
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
261
334
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
262
335
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
263
 
    oldincludedir="$ac_optarg" ;;
 
336
    oldincludedir=$ac_optarg ;;
264
337
 
265
338
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
266
339
    ac_prev=prefix ;;
267
340
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268
 
    prefix="$ac_optarg" ;;
 
341
    prefix=$ac_optarg ;;
269
342
 
270
343
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
271
344
  | --program-pre | --program-pr | --program-p)
272
345
    ac_prev=program_prefix ;;
273
346
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
274
347
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
275
 
    program_prefix="$ac_optarg" ;;
 
348
    program_prefix=$ac_optarg ;;
276
349
 
277
350
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
278
351
  | --program-suf | --program-su | --program-s)
279
352
    ac_prev=program_suffix ;;
280
353
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
281
354
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
282
 
    program_suffix="$ac_optarg" ;;
 
355
    program_suffix=$ac_optarg ;;
283
356
 
284
357
  -program-transform-name | --program-transform-name \
285
358
  | --program-transform-nam | --program-transform-na \
296
369
  | --program-transfo=* | --program-transf=* \
297
370
  | --program-trans=* | --program-tran=* \
298
371
  | --progr-tra=* | --program-tr=* | --program-t=*)
299
 
    program_transform_name="$ac_optarg" ;;
 
372
    program_transform_name=$ac_optarg ;;
300
373
 
301
374
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302
375
  | -silent | --silent | --silen | --sile | --sil)
306
379
    ac_prev=sbindir ;;
307
380
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
308
381
  | --sbi=* | --sb=*)
309
 
    sbindir="$ac_optarg" ;;
 
382
    sbindir=$ac_optarg ;;
310
383
 
311
384
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
312
385
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
317
390
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318
391
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
319
392
  | --sha=* | --sh=*)
320
 
    sharedstatedir="$ac_optarg" ;;
 
393
    sharedstatedir=$ac_optarg ;;
321
394
 
322
395
  -site | --site | --sit)
323
396
    ac_prev=site ;;
324
397
  -site=* | --site=* | --sit=*)
325
 
    site="$ac_optarg" ;;
 
398
    site=$ac_optarg ;;
326
399
 
327
400
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
328
401
    ac_prev=srcdir ;;
329
402
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330
 
    srcdir="$ac_optarg" ;;
 
403
    srcdir=$ac_optarg ;;
331
404
 
332
405
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
333
406
  | --syscon | --sysco | --sysc | --sys | --sy)
334
407
    ac_prev=sysconfdir ;;
335
408
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
336
409
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
337
 
    sysconfdir="$ac_optarg" ;;
 
410
    sysconfdir=$ac_optarg ;;
338
411
 
339
412
  -target | --target | --targe | --targ | --tar | --ta | --t)
340
 
    ac_prev=target ;;
 
413
    ac_prev=target_alias ;;
341
414
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342
 
    target="$ac_optarg" ;;
 
415
    target_alias=$ac_optarg ;;
343
416
 
344
417
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
345
418
    verbose=yes ;;
346
419
 
347
 
  -version | --version | --versio | --versi | --vers)
348
 
    echo "configure generated by autoconf version 2.13"
349
 
    exit 0 ;;
 
420
  -version | --version | --versio | --versi | --vers | -V)
 
421
    ac_init_version=: ;;
350
422
 
351
423
  -with-* | --with-*)
352
 
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
424
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
353
425
    # Reject names that are not valid shell variable names.
354
 
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356
 
    fi
 
426
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
427
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
428
   { (exit 1); exit 1; }; }
357
429
    ac_package=`echo $ac_package| sed 's/-/_/g'`
358
 
    case "$ac_option" in
359
 
      *=*) ;;
 
430
    case $ac_option in
 
431
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
360
432
      *) ac_optarg=yes ;;
361
433
    esac
362
 
    eval "with_${ac_package}='$ac_optarg'" ;;
 
434
    eval "with_$ac_package='$ac_optarg'" ;;
363
435
 
364
436
  -without-* | --without-*)
365
 
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
437
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
366
438
    # Reject names that are not valid shell variable names.
367
 
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369
 
    fi
370
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
371
 
    eval "with_${ac_package}=no" ;;
 
439
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
440
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
441
   { (exit 1); exit 1; }; }
 
442
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
443
    eval "with_$ac_package=no" ;;
372
444
 
373
445
  --x)
374
446
    # Obsolete; use --with-x.
379
451
    ac_prev=x_includes ;;
380
452
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
381
453
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
382
 
    x_includes="$ac_optarg" ;;
 
454
    x_includes=$ac_optarg ;;
383
455
 
384
456
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
385
457
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
386
458
    ac_prev=x_libraries ;;
387
459
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
388
460
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
389
 
    x_libraries="$ac_optarg" ;;
 
461
    x_libraries=$ac_optarg ;;
390
462
 
391
 
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
463
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
464
Try \`$0 --help' for more information." >&2
 
465
   { (exit 1); exit 1; }; }
392
466
    ;;
393
467
 
 
468
  *=*)
 
469
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
470
    # Reject names that are not valid shell variable names.
 
471
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
472
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
473
   { (exit 1); exit 1; }; }
 
474
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
475
    eval "$ac_envvar='$ac_optarg'"
 
476
    export $ac_envvar ;;
 
477
 
394
478
  *)
395
 
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396
 
      echo "configure: warning: $ac_option: invalid host type" 1>&2
397
 
    fi
398
 
    if test "x$nonopt" != xNONE; then
399
 
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
400
 
    fi
401
 
    nonopt="$ac_option"
 
479
    # FIXME: should be removed in autoconf 3.0.
 
480
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
481
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
482
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
483
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
402
484
    ;;
403
485
 
404
486
  esac
405
487
done
406
488
 
407
489
if test -n "$ac_prev"; then
408
 
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409
 
fi
410
 
 
411
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
412
 
 
413
 
# File descriptor usage:
414
 
# 0 standard input
415
 
# 1 file creation
416
 
# 2 errors and warnings
417
 
# 3 some systems may open it to /dev/tty
418
 
# 4 used on the Kubota Titan
419
 
# 6 checking for... messages and results
420
 
# 5 compiler messages saved in config.log
421
 
if test "$silent" = yes; then
422
 
  exec 6>/dev/null
423
 
else
424
 
  exec 6>&1
425
 
fi
426
 
exec 5>./config.log
427
 
 
428
 
echo "\
429
 
This file contains any messages produced by compilers while
430
 
running configure, to aid debugging if configure makes a mistake.
431
 
" 1>&5
432
 
 
433
 
# Strip out --no-create and --no-recursion so they do not pile up.
434
 
# Also quote any args containing shell metacharacters.
435
 
ac_configure_args=
436
 
for ac_arg
437
 
do
438
 
  case "$ac_arg" in
439
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
440
 
  | --no-cr | --no-c) ;;
441
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
442
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
443
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444
 
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
445
 
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
446
 
  esac
447
 
done
448
 
 
449
 
# NLS nuisances.
450
 
# Only set these to C if already set.  These must not be set unconditionally
451
 
# because not all systems understand e.g. LANG=C (notably SCO).
452
 
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453
 
# Non-C LC_CTYPE values break the ctype check.
454
 
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
455
 
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456
 
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
457
 
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
458
 
 
459
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
460
 
rm -rf conftest* confdefs.h
461
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
462
 
echo > confdefs.h
463
 
 
464
 
# A filename unique to this package, relative to the directory that
465
 
# configure is in, which we can look for to find out if srcdir is correct.
466
 
ac_unique_file=src/ball.cc
 
490
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
491
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
492
   { (exit 1); exit 1; }; }
 
493
fi
 
494
 
 
495
# Be sure to have absolute paths.
 
496
for ac_var in exec_prefix prefix
 
497
do
 
498
  eval ac_val=$`echo $ac_var`
 
499
  case $ac_val in
 
500
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
501
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
502
   { (exit 1); exit 1; }; };;
 
503
  esac
 
504
done
 
505
 
 
506
# Be sure to have absolute paths.
 
507
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
508
              localstatedir libdir includedir oldincludedir infodir mandir
 
509
do
 
510
  eval ac_val=$`echo $ac_var`
 
511
  case $ac_val in
 
512
    [\\/$]* | ?:[\\/]* ) ;;
 
513
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
514
   { (exit 1); exit 1; }; };;
 
515
  esac
 
516
done
 
517
 
 
518
# There might be people who depend on the old broken behavior: `$host'
 
519
# used to hold the argument of --host etc.
 
520
build=$build_alias
 
521
host=$host_alias
 
522
target=$target_alias
 
523
 
 
524
# FIXME: should be removed in autoconf 3.0.
 
525
if test "x$host_alias" != x; then
 
526
  if test "x$build_alias" = x; then
 
527
    cross_compiling=maybe
 
528
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
529
    If a cross compiler is detected then cross compile mode will be used." >&2
 
530
  elif test "x$build_alias" != "x$host_alias"; then
 
531
    cross_compiling=yes
 
532
  fi
 
533
fi
 
534
 
 
535
ac_tool_prefix=
 
536
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
537
 
 
538
test "$silent" = yes && exec 6>/dev/null
467
539
 
468
540
# Find the source files, if location was not specified.
469
541
if test -z "$srcdir"; then
470
542
  ac_srcdir_defaulted=yes
471
543
  # Try the directory containing this script, then its parent.
472
544
  ac_prog=$0
473
 
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 
545
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
474
546
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
475
547
  srcdir=$ac_confdir
476
548
  if test ! -r $srcdir/$ac_unique_file; then
481
553
fi
482
554
if test ! -r $srcdir/$ac_unique_file; then
483
555
  if test "$ac_srcdir_defaulted" = yes; then
484
 
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
556
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
 
557
   { (exit 1); exit 1; }; }
485
558
  else
486
 
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487
 
  fi
488
 
fi
489
 
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
490
 
 
 
559
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
 
560
   { (exit 1); exit 1; }; }
 
561
  fi
 
562
fi
 
563
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
564
ac_env_build_alias_set=${build_alias+set}
 
565
ac_env_build_alias_value=$build_alias
 
566
ac_cv_env_build_alias_set=${build_alias+set}
 
567
ac_cv_env_build_alias_value=$build_alias
 
568
ac_env_host_alias_set=${host_alias+set}
 
569
ac_env_host_alias_value=$host_alias
 
570
ac_cv_env_host_alias_set=${host_alias+set}
 
571
ac_cv_env_host_alias_value=$host_alias
 
572
ac_env_target_alias_set=${target_alias+set}
 
573
ac_env_target_alias_value=$target_alias
 
574
ac_cv_env_target_alias_set=${target_alias+set}
 
575
ac_cv_env_target_alias_value=$target_alias
 
576
ac_env_CC_set=${CC+set}
 
577
ac_env_CC_value=$CC
 
578
ac_cv_env_CC_set=${CC+set}
 
579
ac_cv_env_CC_value=$CC
 
580
ac_env_CFLAGS_set=${CFLAGS+set}
 
581
ac_env_CFLAGS_value=$CFLAGS
 
582
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
583
ac_cv_env_CFLAGS_value=$CFLAGS
 
584
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
585
ac_env_LDFLAGS_value=$LDFLAGS
 
586
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
587
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
588
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
589
ac_env_CPPFLAGS_value=$CPPFLAGS
 
590
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
591
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
592
ac_env_CPP_set=${CPP+set}
 
593
ac_env_CPP_value=$CPP
 
594
ac_cv_env_CPP_set=${CPP+set}
 
595
ac_cv_env_CPP_value=$CPP
 
596
ac_env_CXX_set=${CXX+set}
 
597
ac_env_CXX_value=$CXX
 
598
ac_cv_env_CXX_set=${CXX+set}
 
599
ac_cv_env_CXX_value=$CXX
 
600
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
601
ac_env_CXXFLAGS_value=$CXXFLAGS
 
602
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
603
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
604
 
 
605
#
 
606
# Report the --help message.
 
607
#
 
608
if test "$ac_init_help" = "long"; then
 
609
  # Omit some internal or obsolete options to make the list less imposing.
 
610
  # This message is too long to be a string in the A/UX 3.1 sh.
 
611
  cat <<EOF
 
612
\`configure' configures this package to adapt to many kinds of systems.
 
613
 
 
614
Usage: $0 [OPTION]... [VAR=VALUE]...
 
615
 
 
616
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
617
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
618
 
 
619
Defaults for the options are specified in brackets.
 
620
 
 
621
Configuration:
 
622
  -h, --help              display this help and exit
 
623
      --help=short        display options specific to this package
 
624
      --help=recursive    display the short help of all the included packages
 
625
  -V, --version           display version information and exit
 
626
  -q, --quiet, --silent   do not print \`checking...' messages
 
627
      --cache-file=FILE   cache test results in FILE [disabled]
 
628
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
629
  -n, --no-create         do not create output files
 
630
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
631
 
 
632
EOF
 
633
 
 
634
  cat <<EOF
 
635
Installation directories:
 
636
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
637
                          [$ac_default_prefix]
 
638
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
639
                          [PREFIX]
 
640
 
 
641
By default, \`make install' will install all the files in
 
642
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
643
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
644
for instance \`--prefix=\$HOME'.
 
645
 
 
646
For better control, use the options below.
 
647
 
 
648
Fine tuning of the installation directories:
 
649
  --bindir=DIR           user executables [EPREFIX/bin]
 
650
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
651
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
652
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
653
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
654
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
655
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
656
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
657
  --includedir=DIR       C header files [PREFIX/include]
 
658
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
659
  --infodir=DIR          info documentation [PREFIX/info]
 
660
  --mandir=DIR           man documentation [PREFIX/man]
 
661
EOF
 
662
 
 
663
  cat <<\EOF
 
664
 
 
665
Program names:
 
666
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
667
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
668
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
669
 
 
670
System types:
 
671
  --build=BUILD     configure for building on BUILD [guessed]
 
672
  --host=HOST       build programs to run on HOST [BUILD]
 
673
EOF
 
674
fi
 
675
 
 
676
if test -n "$ac_init_help"; then
 
677
 
 
678
  cat <<\EOF
 
679
 
 
680
Optional Features:
 
681
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
682
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
683
  --disable-dependency-tracking Speeds up one-time builds
 
684
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
685
  --disable-nls           do not use Native Language Support
 
686
  --disable-glibtest      do not try to compile and run a test GLIB program
 
687
  --disable-gtktest       do not try to compile and run a test GTK+ program
 
688
 
 
689
Optional Packages:
 
690
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
691
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
692
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
693
  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
 
694
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
695
  --with-included-gettext use the GNU gettext library included here
 
696
  --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
 
697
  --without-libintl-prefix     don't search for libintl in includedir and libdir
 
698
 
 
699
Some influential environment variables:
 
700
  CC          C compiler command
 
701
  CFLAGS      C compiler flags
 
702
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
703
              nonstandard directory <lib dir>
 
704
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
705
              headers in a nonstandard directory <include dir>
 
706
  CPP         C preprocessor
 
707
  CXX         C++ compiler command
 
708
  CXXFLAGS    C++ compiler flags
 
709
 
 
710
Use these variables to override the choices made by `configure' or to help
 
711
it to find libraries and programs with nonstandard names/locations.
 
712
 
 
713
EOF
 
714
fi
 
715
 
 
716
if test "$ac_init_help" = "recursive"; then
 
717
  # If there are subdirs, report their specific --help.
 
718
  ac_popdir=`pwd`
 
719
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
 
720
    cd $ac_subdir
 
721
    # A "../" for each directory in /$ac_subdir.
 
722
    ac_dots=`echo $ac_subdir |
 
723
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
 
724
 
 
725
    case $srcdir in
 
726
    .) # No --srcdir option.  We are building in place.
 
727
      ac_sub_srcdir=$srcdir ;;
 
728
    [\\/]* | ?:[\\/]* ) # Absolute path.
 
729
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
 
730
    *) # Relative path.
 
731
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
 
732
    esac
 
733
 
 
734
    # Check for guested configure; otherwise get Cygnus style configure.
 
735
    if test -f $ac_sub_srcdir/configure.gnu; then
 
736
      echo
 
737
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
 
738
    elif test -f $ac_sub_srcdir/configure; then
 
739
      echo
 
740
      $SHELL $ac_sub_srcdir/configure  --help=recursive
 
741
    elif test -f $ac_sub_srcdir/configure.ac ||
 
742
           test -f $ac_sub_srcdir/configure.in; then
 
743
      echo
 
744
      $ac_configure --help
 
745
    else
 
746
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
 
747
    fi
 
748
    cd $ac_popdir
 
749
  done
 
750
fi
 
751
 
 
752
test -n "$ac_init_help" && exit 0
 
753
if $ac_init_version; then
 
754
  cat <<\EOF
 
755
 
 
756
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
757
Free Software Foundation, Inc.
 
758
This configure script is free software; the Free Software Foundation
 
759
gives unlimited permission to copy, distribute and modify it.
 
760
EOF
 
761
  exit 0
 
762
fi
 
763
exec 5>config.log
 
764
cat >&5 <<EOF
 
765
This file contains any messages produced by compilers while
 
766
running configure, to aid debugging if configure makes a mistake.
 
767
 
 
768
It was created by $as_me, which was
 
769
generated by GNU Autoconf 2.52.  Invocation command line was
 
770
 
 
771
  $ $0 $@
 
772
 
 
773
EOF
 
774
{
 
775
cat <<_ASUNAME
 
776
## ---------- ##
 
777
## Platform.  ##
 
778
## ---------- ##
 
779
 
 
780
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
781
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
782
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
783
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
784
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
785
 
 
786
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
787
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
788
 
 
789
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
790
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
791
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
792
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
793
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
794
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
795
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
796
 
 
797
PATH = $PATH
 
798
 
 
799
_ASUNAME
 
800
} >&5
 
801
 
 
802
cat >&5 <<EOF
 
803
## ------------ ##
 
804
## Core tests.  ##
 
805
## ------------ ##
 
806
 
 
807
EOF
 
808
 
 
809
# Keep a trace of the command line.
 
810
# Strip out --no-create and --no-recursion so they do not pile up.
 
811
# Also quote any args containing shell meta-characters.
 
812
ac_configure_args=
 
813
ac_sep=
 
814
for ac_arg
 
815
do
 
816
  case $ac_arg in
 
817
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
818
  | --no-cr | --no-c) ;;
 
819
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
820
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
821
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
822
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
 
823
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
824
    ac_sep=" " ;;
 
825
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
 
826
     ac_sep=" " ;;
 
827
  esac
 
828
  # Get rid of the leading space.
 
829
done
 
830
 
 
831
# When interrupted or exit'd, cleanup temporary files, and complete
 
832
# config.log.  We remove comments because anyway the quotes in there
 
833
# would cause problems or look ugly.
 
834
trap 'exit_status=$?
 
835
  # Save into config.log some information that might help in debugging.
 
836
  echo >&5
 
837
  echo "## ----------------- ##" >&5
 
838
  echo "## Cache variables.  ##" >&5
 
839
  echo "## ----------------- ##" >&5
 
840
  echo >&5
 
841
  # The following way of writing the cache mishandles newlines in values,
 
842
{
 
843
  (set) 2>&1 |
 
844
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
845
    *ac_space=\ *)
 
846
      sed -n \
 
847
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
848
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
849
      ;;
 
850
    *)
 
851
      sed -n \
 
852
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
853
      ;;
 
854
    esac;
 
855
} >&5
 
856
  sed "/^$/d" confdefs.h >conftest.log
 
857
  if test -s conftest.log; then
 
858
    echo >&5
 
859
    echo "## ------------ ##" >&5
 
860
    echo "## confdefs.h.  ##" >&5
 
861
    echo "## ------------ ##" >&5
 
862
    echo >&5
 
863
    cat conftest.log >&5
 
864
  fi
 
865
  (echo; echo) >&5
 
866
  test "$ac_signal" != 0 &&
 
867
    echo "$as_me: caught signal $ac_signal" >&5
 
868
  echo "$as_me: exit $exit_status" >&5
 
869
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
 
870
    exit $exit_status
 
871
     ' 0
 
872
for ac_signal in 1 2 13 15; do
 
873
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
874
done
 
875
ac_signal=0
 
876
 
 
877
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
878
rm -rf conftest* confdefs.h
 
879
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
880
echo >confdefs.h
 
881
 
 
882
# Let the site file select an alternate cache file if it wants to.
491
883
# Prefer explicitly selected file to automatically selected ones.
492
884
if test -z "$CONFIG_SITE"; then
493
885
  if test "x$prefix" != xNONE; then
498
890
fi
499
891
for ac_site_file in $CONFIG_SITE; do
500
892
  if test -r "$ac_site_file"; then
501
 
    echo "loading site script $ac_site_file"
 
893
    { echo "$as_me:893: loading site script $ac_site_file" >&5
 
894
echo "$as_me: loading site script $ac_site_file" >&6;}
 
895
    cat "$ac_site_file" >&5
502
896
    . "$ac_site_file"
503
897
  fi
504
898
done
505
899
 
506
900
if test -r "$cache_file"; then
507
 
  echo "loading cache $cache_file"
508
 
  . $cache_file
 
901
  # Some versions of bash will fail to source /dev/null (special
 
902
  # files actually), so we avoid doing that.
 
903
  if test -f "$cache_file"; then
 
904
    { echo "$as_me:904: loading cache $cache_file" >&5
 
905
echo "$as_me: loading cache $cache_file" >&6;}
 
906
    case $cache_file in
 
907
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
908
      *)                      . ./$cache_file;;
 
909
    esac
 
910
  fi
509
911
else
510
 
  echo "creating cache $cache_file"
511
 
  > $cache_file
 
912
  { echo "$as_me:912: creating cache $cache_file" >&5
 
913
echo "$as_me: creating cache $cache_file" >&6;}
 
914
  >$cache_file
 
915
fi
 
916
 
 
917
# Check that the precious variables saved in the cache have kept the same
 
918
# value.
 
919
ac_cache_corrupted=false
 
920
for ac_var in `(set) 2>&1 |
 
921
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
922
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
923
  eval ac_new_set=\$ac_env_${ac_var}_set
 
924
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
925
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
926
  case $ac_old_set,$ac_new_set in
 
927
    set,)
 
928
      { echo "$as_me:928: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
929
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
930
      ac_cache_corrupted=: ;;
 
931
    ,set)
 
932
      { echo "$as_me:932: error: \`$ac_var' was not set in the previous run" >&5
 
933
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
934
      ac_cache_corrupted=: ;;
 
935
    ,);;
 
936
    *)
 
937
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
938
        { echo "$as_me:938: error: \`$ac_var' has changed since the previous run:" >&5
 
939
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
940
        { echo "$as_me:940:   former value:  $ac_old_val" >&5
 
941
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
942
        { echo "$as_me:942:   current value: $ac_new_val" >&5
 
943
echo "$as_me:   current value: $ac_new_val" >&2;}
 
944
        ac_cache_corrupted=:
 
945
      fi;;
 
946
  esac
 
947
  # Pass precious variables to config.status.  It doesn't matter if
 
948
  # we pass some twice (in addition to the command line arguments).
 
949
  if test "$ac_new_set" = set; then
 
950
    case $ac_new_val in
 
951
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
952
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
 
953
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
954
      ;;
 
955
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
 
956
       ;;
 
957
    esac
 
958
  fi
 
959
done
 
960
if $ac_cache_corrupted; then
 
961
  { echo "$as_me:961: error: changes in the environment can compromise the build" >&5
 
962
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
963
  { { echo "$as_me:963: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
964
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
965
   { (exit 1); exit 1; }; }
512
966
fi
513
967
 
514
968
ac_ext=c
515
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516
969
ac_cpp='$CPP $CPPFLAGS'
517
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519
 
cross_compiling=$ac_cv_prog_cc_cross
 
970
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
971
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
972
ac_compiler_gnu=$ac_cv_c_compiler_gnu
520
973
 
521
 
ac_exeext=
522
 
ac_objext=o
523
 
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524
 
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525
 
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526
 
    ac_n= ac_c='
527
 
' ac_t='        '
528
 
  else
529
 
    ac_n=-n ac_c= ac_t=
530
 
  fi
 
974
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
975
  *c*,-n*) ECHO_N= ECHO_C='
 
976
' ECHO_T='      ' ;;
 
977
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
978
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
979
esac
 
980
echo "#! $SHELL" >conftest.sh
 
981
echo  "exit 0"   >>conftest.sh
 
982
chmod +x conftest.sh
 
983
if { (echo "$as_me:983: PATH=\".;.\"; conftest.sh") >&5
 
984
  (PATH=".;."; conftest.sh) 2>&5
 
985
  ac_status=$?
 
986
  echo "$as_me:986: \$? = $ac_status" >&5
 
987
  (exit $ac_status); }; then
 
988
  ac_path_separator=';'
531
989
else
532
 
  ac_n= ac_c='\c' ac_t=
 
990
  ac_path_separator=:
533
991
fi
534
 
 
535
 
 
 
992
PATH_SEPARATOR="$ac_path_separator"
 
993
rm -f conftest.sh
 
994
 
 
995
am__api_version="1.6"
536
996
ac_aux_dir=
537
997
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538
998
  if test -f $ac_dir/install-sh; then
543
1003
    ac_aux_dir=$ac_dir
544
1004
    ac_install_sh="$ac_aux_dir/install.sh -c"
545
1005
    break
 
1006
  elif test -f $ac_dir/shtool; then
 
1007
    ac_aux_dir=$ac_dir
 
1008
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1009
    break
546
1010
  fi
547
1011
done
548
1012
if test -z "$ac_aux_dir"; then
549
 
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
 
1013
  { { echo "$as_me:1013: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1014
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1015
   { (exit 1); exit 1; }; }
550
1016
fi
551
 
ac_config_guess=$ac_aux_dir/config.guess
552
 
ac_config_sub=$ac_aux_dir/config.sub
553
 
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
1017
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1018
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1019
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
554
1020
 
555
1021
# Find a good install program.  We prefer a C program (faster),
556
1022
# so one script is as good as another.  But avoid the broken or
559
1025
# SunOS /usr/etc/install
560
1026
# IRIX /sbin/install
561
1027
# AIX /bin/install
 
1028
# AmigaOS /C/install, which installs bootblocks on floppy discs
562
1029
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
563
1030
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
564
1031
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
565
1032
# ./install, which can be erroneously created by make from ./install.sh.
566
 
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
567
 
echo "configure:568: checking for a BSD compatible install" >&5
 
1033
echo "$as_me:1033: checking for a BSD compatible install" >&5
 
1034
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
568
1035
if test -z "$INSTALL"; then
569
 
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
570
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1036
if test "${ac_cv_path_install+set}" = set; then
 
1037
  echo $ECHO_N "(cached) $ECHO_C" >&6
571
1038
else
572
 
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
 
1039
    ac_save_IFS=$IFS; IFS=$ac_path_separator
573
1040
  for ac_dir in $PATH; do
 
1041
    IFS=$ac_save_IFS
574
1042
    # Account for people who put trailing slashes in PATH elements.
575
 
    case "$ac_dir/" in
576
 
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 
1043
    case $ac_dir/ in
 
1044
    / | ./ | .// | /cC/* \
 
1045
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
 
1046
    | /usr/ucb/* ) ;;
577
1047
    *)
578
1048
      # OSF1 and SCO ODT 3.0 have their own names for install.
579
1049
      # Don't use installbsd from OSF since it installs stuff as root
580
1050
      # by default.
581
1051
      for ac_prog in ginstall scoinst install; do
582
 
        if test -f $ac_dir/$ac_prog; then
 
1052
        if $as_executable_p "$ac_dir/$ac_prog"; then
583
1053
          if test $ac_prog = install &&
584
 
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
1054
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
585
1055
            # AIX install.  It has an incompatible calling convention.
586
1056
            :
 
1057
          elif test $ac_prog = install &&
 
1058
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
1059
            # program-specific install script used by HP pwplus--don't use.
 
1060
            :
587
1061
          else
588
1062
            ac_cv_path_install="$ac_dir/$ac_prog -c"
589
1063
            break 2
593
1067
      ;;
594
1068
    esac
595
1069
  done
596
 
  IFS="$ac_save_IFS"
597
1070
 
598
1071
fi
599
1072
  if test "${ac_cv_path_install+set}" = set; then
600
 
    INSTALL="$ac_cv_path_install"
 
1073
    INSTALL=$ac_cv_path_install
601
1074
  else
602
1075
    # As a last resort, use the slow shell script.  We don't cache a
603
1076
    # path for INSTALL within a source directory, because that will
604
1077
    # break other packages using the cache if that directory is
605
1078
    # removed, or if the path is relative.
606
 
    INSTALL="$ac_install_sh"
 
1079
    INSTALL=$ac_install_sh
607
1080
  fi
608
1081
fi
609
 
echo "$ac_t""$INSTALL" 1>&6
 
1082
echo "$as_me:1082: result: $INSTALL" >&5
 
1083
echo "${ECHO_T}$INSTALL" >&6
610
1084
 
611
1085
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
612
1086
# It thinks the first close brace ends the variable substitution.
613
1087
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
614
1088
 
615
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
1089
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
616
1090
 
617
1091
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
618
1092
 
619
 
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
620
 
echo "configure:621: checking whether build environment is sane" >&5
 
1093
echo "$as_me:1093: checking whether build environment is sane" >&5
 
1094
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
621
1095
# Just in case
622
1096
sleep 1
623
 
echo timestamp > conftestfile
 
1097
echo timestamp > conftest.file
624
1098
# Do `set' in a subshell so we don't clobber the current shell's
625
1099
# arguments.  Must try -L first in case configure is actually a
626
1100
# symlink; some systems play weird games with the mod time of symlinks
627
1101
# (eg FreeBSD returns the mod time of the symlink's containing
628
1102
# directory).
629
1103
if (
630
 
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 
1104
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
631
1105
   if test "$*" = "X"; then
632
1106
      # -L didn't work.
633
 
      set X `ls -t $srcdir/configure conftestfile`
 
1107
      set X `ls -t $srcdir/configure conftest.file`
634
1108
   fi
635
 
   if test "$*" != "X $srcdir/configure conftestfile" \
636
 
      && test "$*" != "X conftestfile $srcdir/configure"; then
 
1109
   rm -f conftest.file
 
1110
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1111
      && test "$*" != "X conftest.file $srcdir/configure"; then
637
1112
 
638
1113
      # If neither matched, then we have a broken ls.  This can happen
639
1114
      # if, for instance, CONFIG_SHELL is bash and it inherits a
640
1115
      # broken ls alias from the environment.  This has actually
641
1116
      # happened.  Such a system could not be considered "sane".
642
 
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
643
 
alias in your environment" 1>&2; exit 1; }
 
1117
      { { echo "$as_me:1117: error: ls -t appears to fail.  Make sure there is not a broken
 
1118
alias in your environment" >&5
 
1119
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1120
alias in your environment" >&2;}
 
1121
   { (exit 1); exit 1; }; }
644
1122
   fi
645
1123
 
646
 
   test "$2" = conftestfile
 
1124
   test "$2" = conftest.file
647
1125
   )
648
1126
then
649
1127
   # Ok.
650
1128
   :
651
1129
else
652
 
   { echo "configure: error: newly created file is older than distributed files!
653
 
Check your system clock" 1>&2; exit 1; }
654
 
fi
655
 
rm -f conftest*
656
 
echo "$ac_t""yes" 1>&6
657
 
if test "$program_transform_name" = s,x,x,; then
658
 
  program_transform_name=
659
 
else
660
 
  # Double any \ or $.  echo might interpret backslashes.
661
 
  cat <<\EOF_SED > conftestsed
662
 
s,\\,\\\\,g; s,\$,$$,g
663
 
EOF_SED
664
 
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
665
 
  rm -f conftestsed
666
 
fi
 
1130
   { { echo "$as_me:1130: error: newly created file is older than distributed files!
 
1131
Check your system clock" >&5
 
1132
echo "$as_me: error: newly created file is older than distributed files!
 
1133
Check your system clock" >&2;}
 
1134
   { (exit 1); exit 1; }; }
 
1135
fi
 
1136
echo "$as_me:1136: result: yes" >&5
 
1137
echo "${ECHO_T}yes" >&6
667
1138
test "$program_prefix" != NONE &&
668
 
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
 
1139
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
669
1140
# Use a double $ so make ignores it.
670
1141
test "$program_suffix" != NONE &&
671
 
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
672
 
 
673
 
# sed with no file args requires a program.
674
 
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
675
 
 
676
 
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
677
 
echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5
678
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
679
 
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
680
 
  echo $ac_n "(cached) $ac_c" 1>&6
681
 
else
682
 
  cat > conftestmake <<\EOF
 
1142
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1143
# Double any \ or $.  echo might interpret backslashes.
 
1144
# By default was `s,x,x', remove it if useless.
 
1145
cat <<\_ACEOF >conftest.sed
 
1146
s/[\\$]/&&/g;s/;s,x,x,$//
 
1147
_ACEOF
 
1148
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1149
rm conftest.sed
 
1150
 
 
1151
# expand $ac_aux_dir to an absolute path
 
1152
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1153
 
 
1154
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1155
# Use eval to expand $SHELL
 
1156
if eval "$MISSING --run true"; then
 
1157
  am_missing_run="$MISSING --run "
 
1158
else
 
1159
  am_missing_run=
 
1160
  { echo "$as_me:1160: WARNING: \`missing' script is too old or missing" >&5
 
1161
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1162
fi
 
1163
 
 
1164
for ac_prog in mawk gawk nawk awk
 
1165
do
 
1166
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1167
set dummy $ac_prog; ac_word=$2
 
1168
echo "$as_me:1168: checking for $ac_word" >&5
 
1169
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1170
if test "${ac_cv_prog_AWK+set}" = set; then
 
1171
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1172
else
 
1173
  if test -n "$AWK"; then
 
1174
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1175
else
 
1176
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1177
ac_dummy="$PATH"
 
1178
for ac_dir in $ac_dummy; do
 
1179
  IFS=$ac_save_IFS
 
1180
  test -z "$ac_dir" && ac_dir=.
 
1181
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1182
ac_cv_prog_AWK="$ac_prog"
 
1183
echo "$as_me:1183: found $ac_dir/$ac_word" >&5
 
1184
break
 
1185
done
 
1186
 
 
1187
fi
 
1188
fi
 
1189
AWK=$ac_cv_prog_AWK
 
1190
if test -n "$AWK"; then
 
1191
  echo "$as_me:1191: result: $AWK" >&5
 
1192
echo "${ECHO_T}$AWK" >&6
 
1193
else
 
1194
  echo "$as_me:1194: result: no" >&5
 
1195
echo "${ECHO_T}no" >&6
 
1196
fi
 
1197
 
 
1198
  test -n "$AWK" && break
 
1199
done
 
1200
 
 
1201
echo "$as_me:1201: checking whether ${MAKE-make} sets \${MAKE}" >&5
 
1202
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
 
1203
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
1204
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1205
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1206
else
 
1207
  cat >conftest.make <<\EOF
683
1208
all:
684
1209
        @echo 'ac_maketemp="${MAKE}"'
685
1210
EOF
686
1211
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
687
 
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 
1212
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
688
1213
if test -n "$ac_maketemp"; then
689
1214
  eval ac_cv_prog_make_${ac_make}_set=yes
690
1215
else
691
1216
  eval ac_cv_prog_make_${ac_make}_set=no
692
1217
fi
693
 
rm -f conftestmake
 
1218
rm -f conftest.make
694
1219
fi
695
1220
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
696
 
  echo "$ac_t""yes" 1>&6
 
1221
  echo "$as_me:1221: result: yes" >&5
 
1222
echo "${ECHO_T}yes" >&6
697
1223
  SET_MAKE=
698
1224
else
699
 
  echo "$ac_t""no" 1>&6
 
1225
  echo "$as_me:1225: result: no" >&5
 
1226
echo "${ECHO_T}no" >&6
700
1227
  SET_MAKE="MAKE=${MAKE-make}"
701
1228
fi
702
1229
 
703
 
 
704
 
PACKAGE=groundhog
705
 
 
706
 
VERSION=1.3.2
707
 
 
708
 
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
709
 
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
 
1230
 # test to see if srcdir already configured
 
1231
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1232
   test -f $srcdir/config.status; then
 
1233
  { { echo "$as_me:1233: error: source directory already configured; run \"make distclean\" there first" >&5
 
1234
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1235
   { (exit 1); exit 1; }; }
710
1236
fi
711
 
cat >> confdefs.h <<EOF
 
1237
 
 
1238
# Define the identity of the package.
 
1239
 PACKAGE=groundhog
 
1240
 VERSION=1.4
 
1241
 
 
1242
cat >>confdefs.h <<EOF
712
1243
#define PACKAGE "$PACKAGE"
713
1244
EOF
714
1245
 
715
 
cat >> confdefs.h <<EOF
 
1246
cat >>confdefs.h <<EOF
716
1247
#define VERSION "$VERSION"
717
1248
EOF
718
1249
 
719
 
 
720
 
 
721
 
missing_dir=`cd $ac_aux_dir && pwd`
722
 
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
723
 
echo "configure:724: checking for working aclocal" >&5
724
 
# Run test in a subshell; some versions of sh will print an error if
725
 
# an executable is not found, even if stderr is redirected.
726
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
727
 
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
728
 
   ACLOCAL=aclocal
729
 
   echo "$ac_t""found" 1>&6
730
 
else
731
 
   ACLOCAL="$missing_dir/missing aclocal"
732
 
   echo "$ac_t""missing" 1>&6
733
 
fi
734
 
 
735
 
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
736
 
echo "configure:737: checking for working autoconf" >&5
737
 
# Run test in a subshell; some versions of sh will print an error if
738
 
# an executable is not found, even if stderr is redirected.
739
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
740
 
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
741
 
   AUTOCONF=autoconf
742
 
   echo "$ac_t""found" 1>&6
743
 
else
744
 
   AUTOCONF="$missing_dir/missing autoconf"
745
 
   echo "$ac_t""missing" 1>&6
746
 
fi
747
 
 
748
 
echo $ac_n "checking for working automake""... $ac_c" 1>&6
749
 
echo "configure:750: checking for working automake" >&5
750
 
# Run test in a subshell; some versions of sh will print an error if
751
 
# an executable is not found, even if stderr is redirected.
752
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
753
 
if (automake --version) < /dev/null > /dev/null 2>&1; then
754
 
   AUTOMAKE=automake
755
 
   echo "$ac_t""found" 1>&6
756
 
else
757
 
   AUTOMAKE="$missing_dir/missing automake"
758
 
   echo "$ac_t""missing" 1>&6
759
 
fi
760
 
 
761
 
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
762
 
echo "configure:763: checking for working autoheader" >&5
763
 
# Run test in a subshell; some versions of sh will print an error if
764
 
# an executable is not found, even if stderr is redirected.
765
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
766
 
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
767
 
   AUTOHEADER=autoheader
768
 
   echo "$ac_t""found" 1>&6
769
 
else
770
 
   AUTOHEADER="$missing_dir/missing autoheader"
771
 
   echo "$ac_t""missing" 1>&6
772
 
fi
773
 
 
774
 
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
775
 
echo "configure:776: checking for working makeinfo" >&5
776
 
# Run test in a subshell; some versions of sh will print an error if
777
 
# an executable is not found, even if stderr is redirected.
778
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
779
 
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
780
 
   MAKEINFO=makeinfo
781
 
   echo "$ac_t""found" 1>&6
782
 
else
783
 
   MAKEINFO="$missing_dir/missing makeinfo"
784
 
   echo "$ac_t""missing" 1>&6
785
 
fi
786
 
 
787
 
 
788
 
 
789
 
 
790
 
 
 
1250
# Some tools Automake needs.
 
1251
 
 
1252
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1253
 
 
1254
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1255
 
 
1256
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1257
 
 
1258
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1259
 
 
1260
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1261
 
 
1262
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1263
 
 
1264
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1265
 
 
1266
# Installed binaries are usually stripped using `strip' when the user
 
1267
# run `make install-strip'.  However `strip' might not be the right
 
1268
# tool to use in cross-compilation environments, therefore Automake
 
1269
# will honor the `STRIP' environment variable to overrule this program.
 
1270
if test "$cross_compiling" != no; then
 
1271
  if test -n "$ac_tool_prefix"; then
 
1272
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1273
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1274
echo "$as_me:1274: checking for $ac_word" >&5
 
1275
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1276
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1277
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1278
else
 
1279
  if test -n "$STRIP"; then
 
1280
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1281
else
 
1282
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1283
ac_dummy="$PATH"
 
1284
for ac_dir in $ac_dummy; do
 
1285
  IFS=$ac_save_IFS
 
1286
  test -z "$ac_dir" && ac_dir=.
 
1287
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1288
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1289
echo "$as_me:1289: found $ac_dir/$ac_word" >&5
 
1290
break
 
1291
done
 
1292
 
 
1293
fi
 
1294
fi
 
1295
STRIP=$ac_cv_prog_STRIP
 
1296
if test -n "$STRIP"; then
 
1297
  echo "$as_me:1297: result: $STRIP" >&5
 
1298
echo "${ECHO_T}$STRIP" >&6
 
1299
else
 
1300
  echo "$as_me:1300: result: no" >&5
 
1301
echo "${ECHO_T}no" >&6
 
1302
fi
 
1303
 
 
1304
fi
 
1305
if test -z "$ac_cv_prog_STRIP"; then
 
1306
  ac_ct_STRIP=$STRIP
 
1307
  # Extract the first word of "strip", so it can be a program name with args.
 
1308
set dummy strip; ac_word=$2
 
1309
echo "$as_me:1309: checking for $ac_word" >&5
 
1310
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1311
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1312
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1313
else
 
1314
  if test -n "$ac_ct_STRIP"; then
 
1315
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1316
else
 
1317
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1318
ac_dummy="$PATH"
 
1319
for ac_dir in $ac_dummy; do
 
1320
  IFS=$ac_save_IFS
 
1321
  test -z "$ac_dir" && ac_dir=.
 
1322
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1323
ac_cv_prog_ac_ct_STRIP="strip"
 
1324
echo "$as_me:1324: found $ac_dir/$ac_word" >&5
 
1325
break
 
1326
done
 
1327
 
 
1328
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1329
fi
 
1330
fi
 
1331
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1332
if test -n "$ac_ct_STRIP"; then
 
1333
  echo "$as_me:1333: result: $ac_ct_STRIP" >&5
 
1334
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1335
else
 
1336
  echo "$as_me:1336: result: no" >&5
 
1337
echo "${ECHO_T}no" >&6
 
1338
fi
 
1339
 
 
1340
  STRIP=$ac_ct_STRIP
 
1341
else
 
1342
  STRIP="$ac_cv_prog_STRIP"
 
1343
fi
 
1344
 
 
1345
fi
 
1346
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1347
 
 
1348
# We need awk for the "check" target.  The system "awk" is bad on
 
1349
# some platforms.
 
1350
 
 
1351
# Add the stamp file to the list of files AC keeps track of,
 
1352
# along with our hook.
 
1353
ac_config_headers="$ac_config_headers config.h"
 
1354
 
 
1355
GLIB_REQUIRED_VERSION=2.0.0
 
1356
GTK_REQUIRED_VERSION=$GLIB_REQUIRED_VERSION
791
1357
 
792
1358
ALL_LINGUAS="nl fr"
793
 
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
794
 
echo "configure:795: checking how to run the C preprocessor" >&5
795
 
# On Suns, sometimes $CPP names a directory.
796
 
if test -n "$CPP" && test -d "$CPP"; then
797
 
  CPP=
798
 
fi
799
 
if test -z "$CPP"; then
800
 
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
801
 
  echo $ac_n "(cached) $ac_c" 1>&6
802
 
else
803
 
    # This must be in double quotes, not single quotes, because CPP may get
804
 
  # substituted into the Makefile and "${CC-cc}" will confuse make.
805
 
  CPP="${CC-cc} -E"
806
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
807
 
  # not just through cpp.
808
 
  cat > conftest.$ac_ext <<EOF
809
 
#line 810 "configure"
810
 
#include "confdefs.h"
811
 
#include <assert.h>
812
 
Syntax Error
813
 
EOF
814
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
815
 
{ (eval echo configure:816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
816
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
817
 
if test -z "$ac_err"; then
818
 
  :
819
 
else
820
 
  echo "$ac_err" >&5
821
 
  echo "configure: failed program was:" >&5
822
 
  cat conftest.$ac_ext >&5
823
 
  rm -rf conftest*
824
 
  CPP="${CC-cc} -E -traditional-cpp"
825
 
  cat > conftest.$ac_ext <<EOF
826
 
#line 827 "configure"
827
 
#include "confdefs.h"
828
 
#include <assert.h>
829
 
Syntax Error
830
 
EOF
831
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
832
 
{ (eval echo configure:833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
833
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
834
 
if test -z "$ac_err"; then
835
 
  :
836
 
else
837
 
  echo "$ac_err" >&5
838
 
  echo "configure: failed program was:" >&5
839
 
  cat conftest.$ac_ext >&5
840
 
  rm -rf conftest*
841
 
  CPP="${CC-cc} -nologo -E"
842
 
  cat > conftest.$ac_ext <<EOF
843
 
#line 844 "configure"
844
 
#include "confdefs.h"
845
 
#include <assert.h>
846
 
Syntax Error
847
 
EOF
848
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
849
 
{ (eval echo configure:850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
850
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
851
 
if test -z "$ac_err"; then
852
 
  :
853
 
else
854
 
  echo "$ac_err" >&5
855
 
  echo "configure: failed program was:" >&5
856
 
  cat conftest.$ac_ext >&5
857
 
  rm -rf conftest*
858
 
  CPP=/lib/cpp
859
 
fi
860
 
rm -f conftest*
861
 
fi
862
 
rm -f conftest*
863
 
fi
864
 
rm -f conftest*
865
 
  ac_cv_prog_CPP="$CPP"
866
 
fi
867
 
  CPP="$ac_cv_prog_CPP"
868
 
else
869
 
  ac_cv_prog_CPP="$CPP"
870
 
fi
871
 
echo "$ac_t""$CPP" 1>&6
872
 
 
873
 
# Extract the first word of "gcc", so it can be a program name with args.
 
1359
 
 
1360
        MKINSTALLDIRS=
 
1361
  if test -n "$ac_aux_dir"; then
 
1362
    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
1363
  fi
 
1364
  if test -z "$MKINSTALLDIRS"; then
 
1365
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
1366
  fi
 
1367
 
 
1368
        # Extract the first word of "msgfmt", so it can be a program name with args.
 
1369
set dummy msgfmt; ac_word=$2
 
1370
echo "$as_me:1370: checking for $ac_word" >&5
 
1371
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1372
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
1373
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1374
else
 
1375
  case "$MSGFMT" in
 
1376
  /*)
 
1377
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
1378
  ;;
 
1379
  *)
 
1380
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
1381
  for ac_dir in $PATH; do
 
1382
    test -z "$ac_dir" && ac_dir=.
 
1383
    if test -f $ac_dir/$ac_word; then
 
1384
      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
 
1385
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
1386
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
1387
        break
 
1388
      fi
 
1389
    fi
 
1390
  done
 
1391
  IFS="$ac_save_ifs"
 
1392
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
1393
  ;;
 
1394
esac
 
1395
fi
 
1396
MSGFMT="$ac_cv_path_MSGFMT"
 
1397
if test "$MSGFMT" != ":"; then
 
1398
  echo "$as_me:1398: result: $MSGFMT" >&5
 
1399
echo "${ECHO_T}$MSGFMT" >&6
 
1400
else
 
1401
  echo "$as_me:1401: result: no" >&5
 
1402
echo "${ECHO_T}no" >&6
 
1403
fi
 
1404
 
 
1405
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
1406
set dummy gmsgfmt; ac_word=$2
 
1407
echo "$as_me:1407: checking for $ac_word" >&5
 
1408
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1409
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
1410
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1411
else
 
1412
  case $GMSGFMT in
 
1413
  [\\/]* | ?:[\\/]*)
 
1414
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
1415
  ;;
 
1416
  *)
 
1417
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1418
ac_dummy="$PATH"
 
1419
for ac_dir in $ac_dummy; do
 
1420
  IFS=$ac_save_IFS
 
1421
  test -z "$ac_dir" && ac_dir=.
 
1422
  if $as_executable_p "$ac_dir/$ac_word"; then
 
1423
   ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
 
1424
   echo "$as_me:1424: found $ac_dir/$ac_word" >&5
 
1425
   break
 
1426
fi
 
1427
done
 
1428
 
 
1429
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
1430
  ;;
 
1431
esac
 
1432
fi
 
1433
GMSGFMT=$ac_cv_path_GMSGFMT
 
1434
 
 
1435
if test -n "$GMSGFMT"; then
 
1436
  echo "$as_me:1436: result: $GMSGFMT" >&5
 
1437
echo "${ECHO_T}$GMSGFMT" >&6
 
1438
else
 
1439
  echo "$as_me:1439: result: no" >&5
 
1440
echo "${ECHO_T}no" >&6
 
1441
fi
 
1442
 
 
1443
        # Extract the first word of "xgettext", so it can be a program name with args.
 
1444
set dummy xgettext; ac_word=$2
 
1445
echo "$as_me:1445: checking for $ac_word" >&5
 
1446
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1447
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
1448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1449
else
 
1450
  case "$XGETTEXT" in
 
1451
  /*)
 
1452
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
1453
  ;;
 
1454
  *)
 
1455
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
1456
  for ac_dir in $PATH; do
 
1457
    test -z "$ac_dir" && ac_dir=.
 
1458
    if test -f $ac_dir/$ac_word; then
 
1459
      if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
 
1460
     (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
1461
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
1462
        break
 
1463
      fi
 
1464
    fi
 
1465
  done
 
1466
  IFS="$ac_save_ifs"
 
1467
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
1468
  ;;
 
1469
esac
 
1470
fi
 
1471
XGETTEXT="$ac_cv_path_XGETTEXT"
 
1472
if test "$XGETTEXT" != ":"; then
 
1473
  echo "$as_me:1473: result: $XGETTEXT" >&5
 
1474
echo "${ECHO_T}$XGETTEXT" >&6
 
1475
else
 
1476
  echo "$as_me:1476: result: no" >&5
 
1477
echo "${ECHO_T}no" >&6
 
1478
fi
 
1479
 
 
1480
    rm -f messages.po
 
1481
 
 
1482
    # Extract the first word of "msgmerge", so it can be a program name with args.
 
1483
set dummy msgmerge; ac_word=$2
 
1484
echo "$as_me:1484: checking for $ac_word" >&5
 
1485
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1486
if test "${ac_cv_path_MSGMERGE+set}" = set; then
 
1487
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1488
else
 
1489
  case "$MSGMERGE" in
 
1490
  /*)
 
1491
  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
1492
  ;;
 
1493
  *)
 
1494
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
1495
  for ac_dir in $PATH; do
 
1496
    test -z "$ac_dir" && ac_dir=.
 
1497
    if test -f $ac_dir/$ac_word; then
 
1498
      if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
 
1499
        ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
 
1500
        break
 
1501
      fi
 
1502
    fi
 
1503
  done
 
1504
  IFS="$ac_save_ifs"
 
1505
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
1506
  ;;
 
1507
esac
 
1508
fi
 
1509
MSGMERGE="$ac_cv_path_MSGMERGE"
 
1510
if test "$MSGMERGE" != ":"; then
 
1511
  echo "$as_me:1511: result: $MSGMERGE" >&5
 
1512
echo "${ECHO_T}$MSGMERGE" >&6
 
1513
else
 
1514
  echo "$as_me:1514: result: no" >&5
 
1515
echo "${ECHO_T}no" >&6
 
1516
fi
 
1517
 
 
1518
      if test "$GMSGFMT" != ":"; then
 
1519
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
 
1520
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
1521
      : ;
 
1522
    else
 
1523
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
 
1524
      echo "$as_me:1524: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
 
1525
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
 
1526
      GMSGFMT=":"
 
1527
    fi
 
1528
  fi
 
1529
 
 
1530
      if test "$XGETTEXT" != ":"; then
 
1531
            if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
 
1532
       (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
1533
      : ;
 
1534
    else
 
1535
      echo "$as_me:1535: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
1536
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
 
1537
      XGETTEXT=":"
 
1538
    fi
 
1539
        rm -f messages.po
 
1540
  fi
 
1541
 
 
1542
  ac_config_commands="$ac_config_commands default-1"
 
1543
 
 
1544
rm -f .deps 2>/dev/null
 
1545
mkdir .deps 2>/dev/null
 
1546
if test -d .deps; then
 
1547
  DEPDIR=.deps
 
1548
else
 
1549
  # MS-DOS does not allow filenames that begin with a dot.
 
1550
  DEPDIR=_deps
 
1551
fi
 
1552
rmdir .deps 2>/dev/null
 
1553
 
 
1554
ac_config_commands="$ac_config_commands depfiles"
 
1555
 
 
1556
am_make=${MAKE-make}
 
1557
cat > confinc << 'END'
 
1558
doit:
 
1559
        @echo done
 
1560
END
 
1561
# If we don't find an include directive, just comment out the code.
 
1562
echo "$as_me:1562: checking for style of include used by $am_make" >&5
 
1563
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
1564
am__include="#"
 
1565
am__quote=
 
1566
_am_result=none
 
1567
# First try GNU make style include.
 
1568
echo "include confinc" > confmf
 
1569
# We grep out `Entering directory' and `Leaving directory'
 
1570
# messages which can occur if `w' ends up in MAKEFLAGS.
 
1571
# In particular we don't look at `^make:' because GNU make might
 
1572
# be invoked under some other name (usually "gmake"), in which
 
1573
# case it prints its new name instead of `make'.
 
1574
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
 
1575
   am__include=include
 
1576
   am__quote=
 
1577
   _am_result=GNU
 
1578
fi
 
1579
# Now try BSD make style include.
 
1580
if test "$am__include" = "#"; then
 
1581
   echo '.include "confinc"' > confmf
 
1582
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
1583
      am__include=.include
 
1584
      am__quote="\""
 
1585
      _am_result=BSD
 
1586
   fi
 
1587
fi
 
1588
 
 
1589
echo "$as_me:1589: result: $_am_result" >&5
 
1590
echo "${ECHO_T}$_am_result" >&6
 
1591
rm -f confinc confmf
 
1592
 
 
1593
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
1594
if test "${enable_dependency_tracking+set}" = set; then
 
1595
  enableval="$enable_dependency_tracking"
 
1596
 
 
1597
fi;
 
1598
if test "x$enable_dependency_tracking" != xno; then
 
1599
  am_depcomp="$ac_aux_dir/depcomp"
 
1600
  AMDEPBACKSLASH='\'
 
1601
fi
 
1602
 
 
1603
if test "x$enable_dependency_tracking" != xno; then
 
1604
  AMDEP_TRUE=
 
1605
  AMDEP_FALSE='#'
 
1606
else
 
1607
  AMDEP_TRUE='#'
 
1608
  AMDEP_FALSE=
 
1609
fi
 
1610
 
 
1611
ac_ext=c
 
1612
ac_cpp='$CPP $CPPFLAGS'
 
1613
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1614
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1615
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1616
if test -n "$ac_tool_prefix"; then
 
1617
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1618
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1619
echo "$as_me:1619: checking for $ac_word" >&5
 
1620
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1621
if test "${ac_cv_prog_CC+set}" = set; then
 
1622
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1623
else
 
1624
  if test -n "$CC"; then
 
1625
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1626
else
 
1627
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1628
ac_dummy="$PATH"
 
1629
for ac_dir in $ac_dummy; do
 
1630
  IFS=$ac_save_IFS
 
1631
  test -z "$ac_dir" && ac_dir=.
 
1632
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1633
ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1634
echo "$as_me:1634: found $ac_dir/$ac_word" >&5
 
1635
break
 
1636
done
 
1637
 
 
1638
fi
 
1639
fi
 
1640
CC=$ac_cv_prog_CC
 
1641
if test -n "$CC"; then
 
1642
  echo "$as_me:1642: result: $CC" >&5
 
1643
echo "${ECHO_T}$CC" >&6
 
1644
else
 
1645
  echo "$as_me:1645: result: no" >&5
 
1646
echo "${ECHO_T}no" >&6
 
1647
fi
 
1648
 
 
1649
fi
 
1650
if test -z "$ac_cv_prog_CC"; then
 
1651
  ac_ct_CC=$CC
 
1652
  # Extract the first word of "gcc", so it can be a program name with args.
874
1653
set dummy gcc; ac_word=$2
875
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
876
 
echo "configure:877: checking for $ac_word" >&5
877
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
878
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1654
echo "$as_me:1654: checking for $ac_word" >&5
 
1655
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1656
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1657
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1658
else
 
1659
  if test -n "$ac_ct_CC"; then
 
1660
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1661
else
 
1662
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1663
ac_dummy="$PATH"
 
1664
for ac_dir in $ac_dummy; do
 
1665
  IFS=$ac_save_IFS
 
1666
  test -z "$ac_dir" && ac_dir=.
 
1667
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1668
ac_cv_prog_ac_ct_CC="gcc"
 
1669
echo "$as_me:1669: found $ac_dir/$ac_word" >&5
 
1670
break
 
1671
done
 
1672
 
 
1673
fi
 
1674
fi
 
1675
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1676
if test -n "$ac_ct_CC"; then
 
1677
  echo "$as_me:1677: result: $ac_ct_CC" >&5
 
1678
echo "${ECHO_T}$ac_ct_CC" >&6
 
1679
else
 
1680
  echo "$as_me:1680: result: no" >&5
 
1681
echo "${ECHO_T}no" >&6
 
1682
fi
 
1683
 
 
1684
  CC=$ac_ct_CC
 
1685
else
 
1686
  CC="$ac_cv_prog_CC"
 
1687
fi
 
1688
 
 
1689
if test -z "$CC"; then
 
1690
  if test -n "$ac_tool_prefix"; then
 
1691
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1692
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1693
echo "$as_me:1693: checking for $ac_word" >&5
 
1694
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1695
if test "${ac_cv_prog_CC+set}" = set; then
 
1696
  echo $ECHO_N "(cached) $ECHO_C" >&6
879
1697
else
880
1698
  if test -n "$CC"; then
881
1699
  ac_cv_prog_CC="$CC" # Let the user override the test.
882
1700
else
883
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
884
 
  ac_dummy="$PATH"
885
 
  for ac_dir in $ac_dummy; do
886
 
    test -z "$ac_dir" && ac_dir=.
887
 
    if test -f $ac_dir/$ac_word; then
888
 
      ac_cv_prog_CC="gcc"
889
 
      break
890
 
    fi
891
 
  done
892
 
  IFS="$ac_save_ifs"
893
 
fi
894
 
fi
895
 
CC="$ac_cv_prog_CC"
 
1701
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1702
ac_dummy="$PATH"
 
1703
for ac_dir in $ac_dummy; do
 
1704
  IFS=$ac_save_IFS
 
1705
  test -z "$ac_dir" && ac_dir=.
 
1706
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1707
ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1708
echo "$as_me:1708: found $ac_dir/$ac_word" >&5
 
1709
break
 
1710
done
 
1711
 
 
1712
fi
 
1713
fi
 
1714
CC=$ac_cv_prog_CC
896
1715
if test -n "$CC"; then
897
 
  echo "$ac_t""$CC" 1>&6
898
 
else
899
 
  echo "$ac_t""no" 1>&6
900
 
fi
901
 
 
 
1716
  echo "$as_me:1716: result: $CC" >&5
 
1717
echo "${ECHO_T}$CC" >&6
 
1718
else
 
1719
  echo "$as_me:1719: result: no" >&5
 
1720
echo "${ECHO_T}no" >&6
 
1721
fi
 
1722
 
 
1723
fi
 
1724
if test -z "$ac_cv_prog_CC"; then
 
1725
  ac_ct_CC=$CC
 
1726
  # Extract the first word of "cc", so it can be a program name with args.
 
1727
set dummy cc; ac_word=$2
 
1728
echo "$as_me:1728: checking for $ac_word" >&5
 
1729
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1730
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1731
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1732
else
 
1733
  if test -n "$ac_ct_CC"; then
 
1734
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1735
else
 
1736
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1737
ac_dummy="$PATH"
 
1738
for ac_dir in $ac_dummy; do
 
1739
  IFS=$ac_save_IFS
 
1740
  test -z "$ac_dir" && ac_dir=.
 
1741
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1742
ac_cv_prog_ac_ct_CC="cc"
 
1743
echo "$as_me:1743: found $ac_dir/$ac_word" >&5
 
1744
break
 
1745
done
 
1746
 
 
1747
fi
 
1748
fi
 
1749
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1750
if test -n "$ac_ct_CC"; then
 
1751
  echo "$as_me:1751: result: $ac_ct_CC" >&5
 
1752
echo "${ECHO_T}$ac_ct_CC" >&6
 
1753
else
 
1754
  echo "$as_me:1754: result: no" >&5
 
1755
echo "${ECHO_T}no" >&6
 
1756
fi
 
1757
 
 
1758
  CC=$ac_ct_CC
 
1759
else
 
1760
  CC="$ac_cv_prog_CC"
 
1761
fi
 
1762
 
 
1763
fi
902
1764
if test -z "$CC"; then
903
1765
  # Extract the first word of "cc", so it can be a program name with args.
904
1766
set dummy cc; ac_word=$2
905
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
906
 
echo "configure:907: checking for $ac_word" >&5
907
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
908
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1767
echo "$as_me:1767: checking for $ac_word" >&5
 
1768
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1769
if test "${ac_cv_prog_CC+set}" = set; then
 
1770
  echo $ECHO_N "(cached) $ECHO_C" >&6
909
1771
else
910
1772
  if test -n "$CC"; then
911
1773
  ac_cv_prog_CC="$CC" # Let the user override the test.
912
1774
else
913
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
914
1775
  ac_prog_rejected=no
915
 
  ac_dummy="$PATH"
916
 
  for ac_dir in $ac_dummy; do
917
 
    test -z "$ac_dir" && ac_dir=.
918
 
    if test -f $ac_dir/$ac_word; then
919
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
920
 
        ac_prog_rejected=yes
921
 
        continue
922
 
      fi
923
 
      ac_cv_prog_CC="cc"
924
 
      break
925
 
    fi
926
 
  done
927
 
  IFS="$ac_save_ifs"
 
1776
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1777
ac_dummy="$PATH"
 
1778
for ac_dir in $ac_dummy; do
 
1779
  IFS=$ac_save_IFS
 
1780
  test -z "$ac_dir" && ac_dir=.
 
1781
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1782
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
1783
  ac_prog_rejected=yes
 
1784
  continue
 
1785
fi
 
1786
ac_cv_prog_CC="cc"
 
1787
echo "$as_me:1787: found $ac_dir/$ac_word" >&5
 
1788
break
 
1789
done
 
1790
 
928
1791
if test $ac_prog_rejected = yes; then
929
1792
  # We found a bogon in the path, so make sure we never use it.
930
1793
  set dummy $ac_cv_prog_CC
931
1794
  shift
932
 
  if test $# -gt 0; then
 
1795
  if test $# != 0; then
933
1796
    # We chose a different compiler from the bogus one.
934
1797
    # However, it has the same basename, so the bogon will be chosen
935
1798
    # first if we set CC to just the basename; use the full file name.
936
1799
    shift
937
 
    set dummy "$ac_dir/$ac_word" "$@"
 
1800
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
938
1801
    shift
939
1802
    ac_cv_prog_CC="$@"
940
1803
  fi
941
1804
fi
942
1805
fi
943
1806
fi
944
 
CC="$ac_cv_prog_CC"
 
1807
CC=$ac_cv_prog_CC
945
1808
if test -n "$CC"; then
946
 
  echo "$ac_t""$CC" 1>&6
 
1809
  echo "$as_me:1809: result: $CC" >&5
 
1810
echo "${ECHO_T}$CC" >&6
947
1811
else
948
 
  echo "$ac_t""no" 1>&6
 
1812
  echo "$as_me:1812: result: no" >&5
 
1813
echo "${ECHO_T}no" >&6
949
1814
fi
950
1815
 
951
 
  if test -z "$CC"; then
952
 
    case "`uname -s`" in
953
 
    *win32* | *WIN32*)
954
 
      # Extract the first word of "cl", so it can be a program name with args.
955
 
set dummy cl; ac_word=$2
956
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957
 
echo "configure:958: checking for $ac_word" >&5
958
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
959
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1816
fi
 
1817
if test -z "$CC"; then
 
1818
  if test -n "$ac_tool_prefix"; then
 
1819
  for ac_prog in cl
 
1820
  do
 
1821
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1822
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1823
echo "$as_me:1823: checking for $ac_word" >&5
 
1824
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1825
if test "${ac_cv_prog_CC+set}" = set; then
 
1826
  echo $ECHO_N "(cached) $ECHO_C" >&6
960
1827
else
961
1828
  if test -n "$CC"; then
962
1829
  ac_cv_prog_CC="$CC" # Let the user override the test.
963
1830
else
964
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
965
 
  ac_dummy="$PATH"
966
 
  for ac_dir in $ac_dummy; do
967
 
    test -z "$ac_dir" && ac_dir=.
968
 
    if test -f $ac_dir/$ac_word; then
969
 
      ac_cv_prog_CC="cl"
970
 
      break
971
 
    fi
 
1831
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1832
ac_dummy="$PATH"
 
1833
for ac_dir in $ac_dummy; do
 
1834
  IFS=$ac_save_IFS
 
1835
  test -z "$ac_dir" && ac_dir=.
 
1836
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1837
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1838
echo "$as_me:1838: found $ac_dir/$ac_word" >&5
 
1839
break
 
1840
done
 
1841
 
 
1842
fi
 
1843
fi
 
1844
CC=$ac_cv_prog_CC
 
1845
if test -n "$CC"; then
 
1846
  echo "$as_me:1846: result: $CC" >&5
 
1847
echo "${ECHO_T}$CC" >&6
 
1848
else
 
1849
  echo "$as_me:1849: result: no" >&5
 
1850
echo "${ECHO_T}no" >&6
 
1851
fi
 
1852
 
 
1853
    test -n "$CC" && break
972
1854
  done
973
 
  IFS="$ac_save_ifs"
974
 
fi
975
 
fi
976
 
CC="$ac_cv_prog_CC"
977
 
if test -n "$CC"; then
978
 
  echo "$ac_t""$CC" 1>&6
979
 
else
980
 
  echo "$ac_t""no" 1>&6
981
 
fi
982
 
 ;;
983
 
    esac
984
 
  fi
985
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
986
 
fi
987
 
 
988
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
989
 
echo "configure:990: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
990
 
 
991
 
ac_ext=c
992
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
993
 
ac_cpp='$CPP $CPPFLAGS'
994
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
995
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
996
 
cross_compiling=$ac_cv_prog_cc_cross
997
 
 
998
 
cat > conftest.$ac_ext << EOF
999
 
 
1000
 
#line 1001 "configure"
 
1855
fi
 
1856
if test -z "$CC"; then
 
1857
  ac_ct_CC=$CC
 
1858
  for ac_prog in cl
 
1859
do
 
1860
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1861
set dummy $ac_prog; ac_word=$2
 
1862
echo "$as_me:1862: checking for $ac_word" >&5
 
1863
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1864
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1865
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1866
else
 
1867
  if test -n "$ac_ct_CC"; then
 
1868
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1869
else
 
1870
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
1871
ac_dummy="$PATH"
 
1872
for ac_dir in $ac_dummy; do
 
1873
  IFS=$ac_save_IFS
 
1874
  test -z "$ac_dir" && ac_dir=.
 
1875
  $as_executable_p "$ac_dir/$ac_word" || continue
 
1876
ac_cv_prog_ac_ct_CC="$ac_prog"
 
1877
echo "$as_me:1877: found $ac_dir/$ac_word" >&5
 
1878
break
 
1879
done
 
1880
 
 
1881
fi
 
1882
fi
 
1883
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1884
if test -n "$ac_ct_CC"; then
 
1885
  echo "$as_me:1885: result: $ac_ct_CC" >&5
 
1886
echo "${ECHO_T}$ac_ct_CC" >&6
 
1887
else
 
1888
  echo "$as_me:1888: result: no" >&5
 
1889
echo "${ECHO_T}no" >&6
 
1890
fi
 
1891
 
 
1892
  test -n "$ac_ct_CC" && break
 
1893
done
 
1894
 
 
1895
  CC=$ac_ct_CC
 
1896
fi
 
1897
 
 
1898
fi
 
1899
 
 
1900
test -z "$CC" && { { echo "$as_me:1900: error: no acceptable cc found in \$PATH" >&5
 
1901
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
 
1902
   { (exit 1); exit 1; }; }
 
1903
 
 
1904
# Provide some information about the compiler.
 
1905
echo "$as_me:1905:" \
 
1906
     "checking for C compiler version" >&5
 
1907
ac_compiler=`set X $ac_compile; echo $2`
 
1908
{ (eval echo "$as_me:1908: \"$ac_compiler --version </dev/null >&5\"") >&5
 
1909
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
1910
  ac_status=$?
 
1911
  echo "$as_me:1911: \$? = $ac_status" >&5
 
1912
  (exit $ac_status); }
 
1913
{ (eval echo "$as_me:1913: \"$ac_compiler -v </dev/null >&5\"") >&5
 
1914
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
1915
  ac_status=$?
 
1916
  echo "$as_me:1916: \$? = $ac_status" >&5
 
1917
  (exit $ac_status); }
 
1918
{ (eval echo "$as_me:1918: \"$ac_compiler -V </dev/null >&5\"") >&5
 
1919
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
1920
  ac_status=$?
 
1921
  echo "$as_me:1921: \$? = $ac_status" >&5
 
1922
  (exit $ac_status); }
 
1923
 
 
1924
cat >conftest.$ac_ext <<_ACEOF
 
1925
#line 1925 "configure"
1001
1926
#include "confdefs.h"
1002
1927
 
1003
 
main(){return(0);}
1004
 
EOF
1005
 
if { (eval echo configure:1006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1006
 
  ac_cv_prog_cc_works=yes
1007
 
  # If we can't run a trivial program, we are probably using a cross compiler.
1008
 
  if (./conftest; exit) 2>/dev/null; then
1009
 
    ac_cv_prog_cc_cross=no
 
1928
int
 
1929
main ()
 
1930
{
 
1931
 
 
1932
  ;
 
1933
  return 0;
 
1934
}
 
1935
_ACEOF
 
1936
ac_clean_files_save=$ac_clean_files
 
1937
ac_clean_files="$ac_clean_files a.out a.exe"
 
1938
# Try to create an executable without -o first, disregard a.out.
 
1939
# It will help us diagnose broken compilers, and finding out an intuition
 
1940
# of exeext.
 
1941
echo "$as_me:1941: checking for C compiler default output" >&5
 
1942
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
1943
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
1944
if { (eval echo "$as_me:1944: \"$ac_link_default\"") >&5
 
1945
  (eval $ac_link_default) 2>&5
 
1946
  ac_status=$?
 
1947
  echo "$as_me:1947: \$? = $ac_status" >&5
 
1948
  (exit $ac_status); }; then
 
1949
  # Find the output, starting from the most likely.  This scheme is
 
1950
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
1951
# resort.
 
1952
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
 
1953
                ls a.out conftest 2>/dev/null;
 
1954
                ls a.* conftest.* 2>/dev/null`; do
 
1955
  case $ac_file in
 
1956
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
1957
    a.out ) # We found the default executable, but exeext='' is most
 
1958
            # certainly right.
 
1959
            break;;
 
1960
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1961
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
 
1962
          export ac_cv_exeext
 
1963
          break;;
 
1964
    * ) break;;
 
1965
  esac
 
1966
done
 
1967
else
 
1968
  echo "$as_me: failed program was:" >&5
 
1969
cat conftest.$ac_ext >&5
 
1970
{ { echo "$as_me:1970: error: C compiler cannot create executables" >&5
 
1971
echo "$as_me: error: C compiler cannot create executables" >&2;}
 
1972
   { (exit 77); exit 77; }; }
 
1973
fi
 
1974
 
 
1975
ac_exeext=$ac_cv_exeext
 
1976
echo "$as_me:1976: result: $ac_file" >&5
 
1977
echo "${ECHO_T}$ac_file" >&6
 
1978
 
 
1979
# Check the compiler produces executables we can run.  If not, either
 
1980
# the compiler is broken, or we cross compile.
 
1981
echo "$as_me:1981: checking whether the C compiler works" >&5
 
1982
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
1983
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
1984
# If not cross compiling, check that we can run a simple program.
 
1985
if test "$cross_compiling" != yes; then
 
1986
  if { ac_try='./$ac_file'
 
1987
  { (eval echo "$as_me:1987: \"$ac_try\"") >&5
 
1988
  (eval $ac_try) 2>&5
 
1989
  ac_status=$?
 
1990
  echo "$as_me:1990: \$? = $ac_status" >&5
 
1991
  (exit $ac_status); }; }; then
 
1992
    cross_compiling=no
1010
1993
  else
1011
 
    ac_cv_prog_cc_cross=yes
 
1994
    if test "$cross_compiling" = maybe; then
 
1995
        cross_compiling=yes
 
1996
    else
 
1997
        { { echo "$as_me:1997: error: cannot run C compiled programs.
 
1998
If you meant to cross compile, use \`--host'." >&5
 
1999
echo "$as_me: error: cannot run C compiled programs.
 
2000
If you meant to cross compile, use \`--host'." >&2;}
 
2001
   { (exit 1); exit 1; }; }
 
2002
    fi
1012
2003
  fi
1013
 
else
1014
 
  echo "configure: failed program was:" >&5
1015
 
  cat conftest.$ac_ext >&5
1016
 
  ac_cv_prog_cc_works=no
1017
 
fi
1018
 
rm -fr conftest*
1019
 
ac_ext=c
1020
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1021
 
ac_cpp='$CPP $CPPFLAGS'
1022
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1023
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1024
 
cross_compiling=$ac_cv_prog_cc_cross
1025
 
 
1026
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1027
 
if test $ac_cv_prog_cc_works = no; then
1028
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1029
 
fi
1030
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1031
 
echo "configure:1032: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1032
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1033
 
cross_compiling=$ac_cv_prog_cc_cross
1034
 
 
1035
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1036
 
echo "configure:1037: checking whether we are using GNU C" >&5
1037
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1038
 
  echo $ac_n "(cached) $ac_c" 1>&6
1039
 
else
1040
 
  cat > conftest.c <<EOF
1041
 
#ifdef __GNUC__
1042
 
  yes;
 
2004
fi
 
2005
echo "$as_me:2005: result: yes" >&5
 
2006
echo "${ECHO_T}yes" >&6
 
2007
 
 
2008
rm -f a.out a.exe conftest$ac_cv_exeext
 
2009
ac_clean_files=$ac_clean_files_save
 
2010
# Check the compiler produces executables we can run.  If not, either
 
2011
# the compiler is broken, or we cross compile.
 
2012
echo "$as_me:2012: checking whether we are cross compiling" >&5
 
2013
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2014
echo "$as_me:2014: result: $cross_compiling" >&5
 
2015
echo "${ECHO_T}$cross_compiling" >&6
 
2016
 
 
2017
echo "$as_me:2017: checking for executable suffix" >&5
 
2018
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
 
2019
if { (eval echo "$as_me:2019: \"$ac_link\"") >&5
 
2020
  (eval $ac_link) 2>&5
 
2021
  ac_status=$?
 
2022
  echo "$as_me:2022: \$? = $ac_status" >&5
 
2023
  (exit $ac_status); }; then
 
2024
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2025
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2026
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2027
# `rm'.
 
2028
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
 
2029
  case $ac_file in
 
2030
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
2031
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2032
          export ac_cv_exeext
 
2033
          break;;
 
2034
    * ) break;;
 
2035
  esac
 
2036
done
 
2037
else
 
2038
  { { echo "$as_me:2038: error: cannot compute EXEEXT: cannot compile and link" >&5
 
2039
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
 
2040
   { (exit 1); exit 1; }; }
 
2041
fi
 
2042
 
 
2043
rm -f conftest$ac_cv_exeext
 
2044
echo "$as_me:2044: result: $ac_cv_exeext" >&5
 
2045
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2046
 
 
2047
rm -f conftest.$ac_ext
 
2048
EXEEXT=$ac_cv_exeext
 
2049
ac_exeext=$EXEEXT
 
2050
echo "$as_me:2050: checking for object suffix" >&5
 
2051
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
 
2052
if test "${ac_cv_objext+set}" = set; then
 
2053
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2054
else
 
2055
  cat >conftest.$ac_ext <<_ACEOF
 
2056
#line 2056 "configure"
 
2057
#include "confdefs.h"
 
2058
 
 
2059
int
 
2060
main ()
 
2061
{
 
2062
 
 
2063
  ;
 
2064
  return 0;
 
2065
}
 
2066
_ACEOF
 
2067
rm -f conftest.o conftest.obj
 
2068
if { (eval echo "$as_me:2068: \"$ac_compile\"") >&5
 
2069
  (eval $ac_compile) 2>&5
 
2070
  ac_status=$?
 
2071
  echo "$as_me:2071: \$? = $ac_status" >&5
 
2072
  (exit $ac_status); }; then
 
2073
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2074
  case $ac_file in
 
2075
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
2076
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2077
       break;;
 
2078
  esac
 
2079
done
 
2080
else
 
2081
  echo "$as_me: failed program was:" >&5
 
2082
cat conftest.$ac_ext >&5
 
2083
{ { echo "$as_me:2083: error: cannot compute OBJEXT: cannot compile" >&5
 
2084
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
 
2085
   { (exit 1); exit 1; }; }
 
2086
fi
 
2087
 
 
2088
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2089
fi
 
2090
echo "$as_me:2090: result: $ac_cv_objext" >&5
 
2091
echo "${ECHO_T}$ac_cv_objext" >&6
 
2092
OBJEXT=$ac_cv_objext
 
2093
ac_objext=$OBJEXT
 
2094
echo "$as_me:2094: checking whether we are using the GNU C compiler" >&5
 
2095
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2096
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2097
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2098
else
 
2099
  cat >conftest.$ac_ext <<_ACEOF
 
2100
#line 2100 "configure"
 
2101
#include "confdefs.h"
 
2102
 
 
2103
int
 
2104
main ()
 
2105
{
 
2106
#ifndef __GNUC__
 
2107
       choke me
1043
2108
#endif
1044
 
EOF
1045
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1046
 
  ac_cv_prog_gcc=yes
1047
 
else
1048
 
  ac_cv_prog_gcc=no
1049
 
fi
1050
 
fi
1051
 
 
1052
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1053
 
 
1054
 
if test $ac_cv_prog_gcc = yes; then
1055
 
  GCC=yes
1056
 
else
1057
 
  GCC=
1058
 
fi
1059
 
 
1060
 
ac_test_CFLAGS="${CFLAGS+set}"
1061
 
ac_save_CFLAGS="$CFLAGS"
1062
 
CFLAGS=
1063
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1064
 
echo "configure:1065: checking whether ${CC-cc} accepts -g" >&5
1065
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1066
 
  echo $ac_n "(cached) $ac_c" 1>&6
1067
 
else
1068
 
  echo 'void f(){}' > conftest.c
1069
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
2109
 
 
2110
  ;
 
2111
  return 0;
 
2112
}
 
2113
_ACEOF
 
2114
rm -f conftest.$ac_objext
 
2115
if { (eval echo "$as_me:2115: \"$ac_compile\"") >&5
 
2116
  (eval $ac_compile) 2>&5
 
2117
  ac_status=$?
 
2118
  echo "$as_me:2118: \$? = $ac_status" >&5
 
2119
  (exit $ac_status); } &&
 
2120
         { ac_try='test -s conftest.$ac_objext'
 
2121
  { (eval echo "$as_me:2121: \"$ac_try\"") >&5
 
2122
  (eval $ac_try) 2>&5
 
2123
  ac_status=$?
 
2124
  echo "$as_me:2124: \$? = $ac_status" >&5
 
2125
  (exit $ac_status); }; }; then
 
2126
  ac_compiler_gnu=yes
 
2127
else
 
2128
  echo "$as_me: failed program was:" >&5
 
2129
cat conftest.$ac_ext >&5
 
2130
ac_compiler_gnu=no
 
2131
fi
 
2132
rm -f conftest.$ac_objext conftest.$ac_ext
 
2133
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2134
 
 
2135
fi
 
2136
echo "$as_me:2136: result: $ac_cv_c_compiler_gnu" >&5
 
2137
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2138
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2139
ac_test_CFLAGS=${CFLAGS+set}
 
2140
ac_save_CFLAGS=$CFLAGS
 
2141
CFLAGS="-g"
 
2142
echo "$as_me:2142: checking whether $CC accepts -g" >&5
 
2143
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2144
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2145
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2146
else
 
2147
  cat >conftest.$ac_ext <<_ACEOF
 
2148
#line 2148 "configure"
 
2149
#include "confdefs.h"
 
2150
 
 
2151
int
 
2152
main ()
 
2153
{
 
2154
 
 
2155
  ;
 
2156
  return 0;
 
2157
}
 
2158
_ACEOF
 
2159
rm -f conftest.$ac_objext
 
2160
if { (eval echo "$as_me:2160: \"$ac_compile\"") >&5
 
2161
  (eval $ac_compile) 2>&5
 
2162
  ac_status=$?
 
2163
  echo "$as_me:2163: \$? = $ac_status" >&5
 
2164
  (exit $ac_status); } &&
 
2165
         { ac_try='test -s conftest.$ac_objext'
 
2166
  { (eval echo "$as_me:2166: \"$ac_try\"") >&5
 
2167
  (eval $ac_try) 2>&5
 
2168
  ac_status=$?
 
2169
  echo "$as_me:2169: \$? = $ac_status" >&5
 
2170
  (exit $ac_status); }; }; then
1070
2171
  ac_cv_prog_cc_g=yes
1071
2172
else
1072
 
  ac_cv_prog_cc_g=no
1073
 
fi
1074
 
rm -f conftest*
1075
 
 
1076
 
fi
1077
 
 
1078
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
2173
  echo "$as_me: failed program was:" >&5
 
2174
cat conftest.$ac_ext >&5
 
2175
ac_cv_prog_cc_g=no
 
2176
fi
 
2177
rm -f conftest.$ac_objext conftest.$ac_ext
 
2178
fi
 
2179
echo "$as_me:2179: result: $ac_cv_prog_cc_g" >&5
 
2180
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1079
2181
if test "$ac_test_CFLAGS" = set; then
1080
 
  CFLAGS="$ac_save_CFLAGS"
 
2182
  CFLAGS=$ac_save_CFLAGS
1081
2183
elif test $ac_cv_prog_cc_g = yes; then
1082
2184
  if test "$GCC" = yes; then
1083
2185
    CFLAGS="-g -O2"
1091
2193
    CFLAGS=
1092
2194
  fi
1093
2195
fi
1094
 
 
 
2196
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2197
# in C++ we need to declare it.  In case someone uses the same compiler
 
2198
# for both compiling C and C++ we need to have the C++ compiler decide
 
2199
# the declaration of exit, since it's the most demanding environment.
 
2200
cat >conftest.$ac_ext <<_ACEOF
 
2201
#ifndef __cplusplus
 
2202
  choke me
 
2203
#endif
 
2204
_ACEOF
 
2205
rm -f conftest.$ac_objext
 
2206
if { (eval echo "$as_me:2206: \"$ac_compile\"") >&5
 
2207
  (eval $ac_compile) 2>&5
 
2208
  ac_status=$?
 
2209
  echo "$as_me:2209: \$? = $ac_status" >&5
 
2210
  (exit $ac_status); } &&
 
2211
         { ac_try='test -s conftest.$ac_objext'
 
2212
  { (eval echo "$as_me:2212: \"$ac_try\"") >&5
 
2213
  (eval $ac_try) 2>&5
 
2214
  ac_status=$?
 
2215
  echo "$as_me:2215: \$? = $ac_status" >&5
 
2216
  (exit $ac_status); }; }; then
 
2217
  for ac_declaration in \
 
2218
   ''\
 
2219
   '#include <stdlib.h>' \
 
2220
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2221
   'extern "C" void std::exit (int); using std::exit;' \
 
2222
   'extern "C" void exit (int) throw ();' \
 
2223
   'extern "C" void exit (int);' \
 
2224
   'void exit (int);'
 
2225
do
 
2226
  cat >conftest.$ac_ext <<_ACEOF
 
2227
#line 2227 "configure"
 
2228
#include "confdefs.h"
 
2229
#include <stdlib.h>
 
2230
$ac_declaration
 
2231
int
 
2232
main ()
 
2233
{
 
2234
exit (42);
 
2235
  ;
 
2236
  return 0;
 
2237
}
 
2238
_ACEOF
 
2239
rm -f conftest.$ac_objext
 
2240
if { (eval echo "$as_me:2240: \"$ac_compile\"") >&5
 
2241
  (eval $ac_compile) 2>&5
 
2242
  ac_status=$?
 
2243
  echo "$as_me:2243: \$? = $ac_status" >&5
 
2244
  (exit $ac_status); } &&
 
2245
         { ac_try='test -s conftest.$ac_objext'
 
2246
  { (eval echo "$as_me:2246: \"$ac_try\"") >&5
 
2247
  (eval $ac_try) 2>&5
 
2248
  ac_status=$?
 
2249
  echo "$as_me:2249: \$? = $ac_status" >&5
 
2250
  (exit $ac_status); }; }; then
 
2251
  :
 
2252
else
 
2253
  echo "$as_me: failed program was:" >&5
 
2254
cat conftest.$ac_ext >&5
 
2255
continue
 
2256
fi
 
2257
rm -f conftest.$ac_objext conftest.$ac_ext
 
2258
  cat >conftest.$ac_ext <<_ACEOF
 
2259
#line 2259 "configure"
 
2260
#include "confdefs.h"
 
2261
$ac_declaration
 
2262
int
 
2263
main ()
 
2264
{
 
2265
exit (42);
 
2266
  ;
 
2267
  return 0;
 
2268
}
 
2269
_ACEOF
 
2270
rm -f conftest.$ac_objext
 
2271
if { (eval echo "$as_me:2271: \"$ac_compile\"") >&5
 
2272
  (eval $ac_compile) 2>&5
 
2273
  ac_status=$?
 
2274
  echo "$as_me:2274: \$? = $ac_status" >&5
 
2275
  (exit $ac_status); } &&
 
2276
         { ac_try='test -s conftest.$ac_objext'
 
2277
  { (eval echo "$as_me:2277: \"$ac_try\"") >&5
 
2278
  (eval $ac_try) 2>&5
 
2279
  ac_status=$?
 
2280
  echo "$as_me:2280: \$? = $ac_status" >&5
 
2281
  (exit $ac_status); }; }; then
 
2282
  break
 
2283
else
 
2284
  echo "$as_me: failed program was:" >&5
 
2285
cat conftest.$ac_ext >&5
 
2286
fi
 
2287
rm -f conftest.$ac_objext conftest.$ac_ext
 
2288
done
 
2289
rm -f conftest*
 
2290
if test -n "$ac_declaration"; then
 
2291
  echo '#ifdef __cplusplus' >>confdefs.h
 
2292
  echo $ac_declaration      >>confdefs.h
 
2293
  echo '#endif'             >>confdefs.h
 
2294
fi
 
2295
 
 
2296
else
 
2297
  echo "$as_me: failed program was:" >&5
 
2298
cat conftest.$ac_ext >&5
 
2299
fi
 
2300
rm -f conftest.$ac_objext conftest.$ac_ext
 
2301
ac_ext=c
 
2302
ac_cpp='$CPP $CPPFLAGS'
 
2303
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2304
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2305
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2306
 
 
2307
depcc="$CC"   am_compiler_list=
 
2308
 
 
2309
echo "$as_me:2309: checking dependency style of $depcc" >&5
 
2310
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2311
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2312
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2313
else
 
2314
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2315
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2316
  # making bogus files that we don't know about and never remove.  For
 
2317
  # instance it was reported that on HP-UX the gcc test will end up
 
2318
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2319
  # in D'.
 
2320
  mkdir conftest.dir
 
2321
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2322
  # using a relative directory.
 
2323
  cp "$am_depcomp" conftest.dir
 
2324
  cd conftest.dir
 
2325
 
 
2326
  am_cv_CC_dependencies_compiler_type=none
 
2327
  if test "$am_compiler_list" = ""; then
 
2328
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2329
  fi
 
2330
  for depmode in $am_compiler_list; do
 
2331
    # We need to recreate these files for each test, as the compiler may
 
2332
    # overwrite some of them when testing with obscure command lines.
 
2333
    # This happens at least with the AIX C compiler.
 
2334
    echo '#include "conftest.h"' > conftest.c
 
2335
    echo 'int i;' > conftest.h
 
2336
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
2337
 
 
2338
    case $depmode in
 
2339
    nosideeffect)
 
2340
      # after this tag, mechanisms are not by side-effect, so they'll
 
2341
      # only be used when explicitly requested
 
2342
      if test "x$enable_dependency_tracking" = xyes; then
 
2343
        continue
 
2344
      else
 
2345
        break
 
2346
      fi
 
2347
      ;;
 
2348
    none) break ;;
 
2349
    esac
 
2350
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
2351
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
2352
    # handle `-M -o', and we need to detect this.
 
2353
    if depmode=$depmode \
 
2354
       source=conftest.c object=conftest.o \
 
2355
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
2356
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
 
2357
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
2358
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
2359
      am_cv_CC_dependencies_compiler_type=$depmode
 
2360
      break
 
2361
    fi
 
2362
  done
 
2363
 
 
2364
  cd ..
 
2365
  rm -rf conftest.dir
 
2366
else
 
2367
  am_cv_CC_dependencies_compiler_type=none
 
2368
fi
 
2369
 
 
2370
fi
 
2371
echo "$as_me:2371: result: $am_cv_CC_dependencies_compiler_type" >&5
 
2372
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
2373
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1095
2374
 
1096
2375
# Make sure we can run config.sub.
1097
 
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1098
 
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1099
 
fi
1100
 
 
1101
 
echo $ac_n "checking host system type""... $ac_c" 1>&6
1102
 
echo "configure:1103: checking host system type" >&5
1103
 
 
1104
 
host_alias=$host
1105
 
case "$host_alias" in
1106
 
NONE)
1107
 
  case $nonopt in
1108
 
  NONE)
1109
 
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1110
 
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1111
 
    fi ;;
1112
 
  *) host_alias=$nonopt ;;
1113
 
  esac ;;
1114
 
esac
1115
 
 
1116
 
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1117
 
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1118
 
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1119
 
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1120
 
echo "$ac_t""$host" 1>&6
1121
 
 
1122
 
# Extract the first word of "ranlib", so it can be a program name with args.
1123
 
set dummy ranlib; ac_word=$2
1124
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1125
 
echo "configure:1126: checking for $ac_word" >&5
1126
 
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1127
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2376
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
2377
  { { echo "$as_me:2377: error: cannot run $ac_config_sub" >&5
 
2378
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
2379
   { (exit 1); exit 1; }; }
 
2380
 
 
2381
echo "$as_me:2381: checking build system type" >&5
 
2382
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
2383
if test "${ac_cv_build+set}" = set; then
 
2384
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2385
else
 
2386
  ac_cv_build_alias=$build_alias
 
2387
test -z "$ac_cv_build_alias" &&
 
2388
  ac_cv_build_alias=`$ac_config_guess`
 
2389
test -z "$ac_cv_build_alias" &&
 
2390
  { { echo "$as_me:2390: error: cannot guess build type; you must specify one" >&5
 
2391
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2392
   { (exit 1); exit 1; }; }
 
2393
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
2394
  { { echo "$as_me:2394: error: $ac_config_sub $ac_cv_build_alias failed." >&5
 
2395
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
 
2396
   { (exit 1); exit 1; }; }
 
2397
 
 
2398
fi
 
2399
echo "$as_me:2399: result: $ac_cv_build" >&5
 
2400
echo "${ECHO_T}$ac_cv_build" >&6
 
2401
build=$ac_cv_build
 
2402
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2403
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2404
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2405
 
 
2406
echo "$as_me:2406: checking host system type" >&5
 
2407
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
2408
if test "${ac_cv_host+set}" = set; then
 
2409
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2410
else
 
2411
  ac_cv_host_alias=$host_alias
 
2412
test -z "$ac_cv_host_alias" &&
 
2413
  ac_cv_host_alias=$ac_cv_build_alias
 
2414
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
2415
  { { echo "$as_me:2415: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
2416
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
2417
   { (exit 1); exit 1; }; }
 
2418
 
 
2419
fi
 
2420
echo "$as_me:2420: result: $ac_cv_host" >&5
 
2421
echo "${ECHO_T}$ac_cv_host" >&6
 
2422
host=$ac_cv_host
 
2423
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2424
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2425
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2426
 
 
2427
if test -n "$ac_tool_prefix"; then
 
2428
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
2429
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
2430
echo "$as_me:2430: checking for $ac_word" >&5
 
2431
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2432
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
2433
  echo $ECHO_N "(cached) $ECHO_C" >&6
1128
2434
else
1129
2435
  if test -n "$RANLIB"; then
1130
2436
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1131
2437
else
1132
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1133
 
  ac_dummy="$PATH"
1134
 
  for ac_dir in $ac_dummy; do
1135
 
    test -z "$ac_dir" && ac_dir=.
1136
 
    if test -f $ac_dir/$ac_word; then
1137
 
      ac_cv_prog_RANLIB="ranlib"
1138
 
      break
1139
 
    fi
1140
 
  done
1141
 
  IFS="$ac_save_ifs"
1142
 
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1143
 
fi
1144
 
fi
1145
 
RANLIB="$ac_cv_prog_RANLIB"
 
2438
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2439
ac_dummy="$PATH"
 
2440
for ac_dir in $ac_dummy; do
 
2441
  IFS=$ac_save_IFS
 
2442
  test -z "$ac_dir" && ac_dir=.
 
2443
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2444
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
2445
echo "$as_me:2445: found $ac_dir/$ac_word" >&5
 
2446
break
 
2447
done
 
2448
 
 
2449
fi
 
2450
fi
 
2451
RANLIB=$ac_cv_prog_RANLIB
1146
2452
if test -n "$RANLIB"; then
1147
 
  echo "$ac_t""$RANLIB" 1>&6
1148
 
else
1149
 
  echo "$ac_t""no" 1>&6
1150
 
fi
1151
 
 
1152
 
 
1153
 
        echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1154
 
echo "configure:1155: checking for strerror in -lcposix" >&5
1155
 
ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1156
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1157
 
  echo $ac_n "(cached) $ac_c" 1>&6
1158
 
else
1159
 
  ac_save_LIBS="$LIBS"
 
2453
  echo "$as_me:2453: result: $RANLIB" >&5
 
2454
echo "${ECHO_T}$RANLIB" >&6
 
2455
else
 
2456
  echo "$as_me:2456: result: no" >&5
 
2457
echo "${ECHO_T}no" >&6
 
2458
fi
 
2459
 
 
2460
fi
 
2461
if test -z "$ac_cv_prog_RANLIB"; then
 
2462
  ac_ct_RANLIB=$RANLIB
 
2463
  # Extract the first word of "ranlib", so it can be a program name with args.
 
2464
set dummy ranlib; ac_word=$2
 
2465
echo "$as_me:2465: checking for $ac_word" >&5
 
2466
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2467
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
2468
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2469
else
 
2470
  if test -n "$ac_ct_RANLIB"; then
 
2471
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
2472
else
 
2473
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
2474
ac_dummy="$PATH"
 
2475
for ac_dir in $ac_dummy; do
 
2476
  IFS=$ac_save_IFS
 
2477
  test -z "$ac_dir" && ac_dir=.
 
2478
  $as_executable_p "$ac_dir/$ac_word" || continue
 
2479
ac_cv_prog_ac_ct_RANLIB="ranlib"
 
2480
echo "$as_me:2480: found $ac_dir/$ac_word" >&5
 
2481
break
 
2482
done
 
2483
 
 
2484
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
2485
fi
 
2486
fi
 
2487
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
2488
if test -n "$ac_ct_RANLIB"; then
 
2489
  echo "$as_me:2489: result: $ac_ct_RANLIB" >&5
 
2490
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
2491
else
 
2492
  echo "$as_me:2492: result: no" >&5
 
2493
echo "${ECHO_T}no" >&6
 
2494
fi
 
2495
 
 
2496
  RANLIB=$ac_ct_RANLIB
 
2497
else
 
2498
  RANLIB="$ac_cv_prog_RANLIB"
 
2499
fi
 
2500
 
 
2501
        echo "$as_me:2501: checking for strerror in -lcposix" >&5
 
2502
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
 
2503
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
 
2504
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2505
else
 
2506
  ac_check_lib_save_LIBS=$LIBS
1160
2507
LIBS="-lcposix  $LIBS"
1161
 
cat > conftest.$ac_ext <<EOF
1162
 
#line 1163 "configure"
 
2508
cat >conftest.$ac_ext <<_ACEOF
 
2509
#line 2509 "configure"
1163
2510
#include "confdefs.h"
 
2511
 
1164
2512
/* Override any gcc2 internal prototype to avoid an error.  */
 
2513
#ifdef __cplusplus
 
2514
extern "C"
 
2515
#endif
1165
2516
/* We use char because int might match the return type of a gcc2
1166
 
    builtin and then its argument prototype would still apply.  */
1167
 
char strerror();
1168
 
 
1169
 
int main() {
1170
 
strerror()
1171
 
; return 0; }
1172
 
EOF
1173
 
if { (eval echo configure:1174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1174
 
  rm -rf conftest*
1175
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2517
   builtin and then its argument prototype would still apply.  */
 
2518
char strerror ();
 
2519
int
 
2520
main ()
 
2521
{
 
2522
strerror ();
 
2523
  ;
 
2524
  return 0;
 
2525
}
 
2526
_ACEOF
 
2527
rm -f conftest.$ac_objext conftest$ac_exeext
 
2528
if { (eval echo "$as_me:2528: \"$ac_link\"") >&5
 
2529
  (eval $ac_link) 2>&5
 
2530
  ac_status=$?
 
2531
  echo "$as_me:2531: \$? = $ac_status" >&5
 
2532
  (exit $ac_status); } &&
 
2533
         { ac_try='test -s conftest$ac_exeext'
 
2534
  { (eval echo "$as_me:2534: \"$ac_try\"") >&5
 
2535
  (eval $ac_try) 2>&5
 
2536
  ac_status=$?
 
2537
  echo "$as_me:2537: \$? = $ac_status" >&5
 
2538
  (exit $ac_status); }; }; then
 
2539
  ac_cv_lib_cposix_strerror=yes
1176
2540
else
1177
 
  echo "configure: failed program was:" >&5
1178
 
  cat conftest.$ac_ext >&5
1179
 
  rm -rf conftest*
1180
 
  eval "ac_cv_lib_$ac_lib_var=no"
1181
 
fi
1182
 
rm -f conftest*
1183
 
LIBS="$ac_save_LIBS"
1184
 
 
1185
 
fi
1186
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1187
 
  echo "$ac_t""yes" 1>&6
 
2541
  echo "$as_me: failed program was:" >&5
 
2542
cat conftest.$ac_ext >&5
 
2543
ac_cv_lib_cposix_strerror=no
 
2544
fi
 
2545
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2546
LIBS=$ac_check_lib_save_LIBS
 
2547
fi
 
2548
echo "$as_me:2548: result: $ac_cv_lib_cposix_strerror" >&5
 
2549
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
 
2550
if test $ac_cv_lib_cposix_strerror = yes; then
1188
2551
  LIBS="$LIBS -lcposix"
1189
 
else
1190
 
  echo "$ac_t""no" 1>&6
1191
 
fi
1192
 
 
1193
 
  
1194
 
 
1195
 
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1196
 
echo "configure:1197: checking for ANSI C header files" >&5
1197
 
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1198
 
  echo $ac_n "(cached) $ac_c" 1>&6
1199
 
else
1200
 
  cat > conftest.$ac_ext <<EOF
1201
 
#line 1202 "configure"
 
2552
fi
 
2553
 
 
2554
ac_ext=c
 
2555
ac_cpp='$CPP $CPPFLAGS'
 
2556
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2557
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2558
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2559
echo "$as_me:2559: checking how to run the C preprocessor" >&5
 
2560
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
2561
# On Suns, sometimes $CPP names a directory.
 
2562
if test -n "$CPP" && test -d "$CPP"; then
 
2563
  CPP=
 
2564
fi
 
2565
if test -z "$CPP"; then
 
2566
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2567
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2568
else
 
2569
      # Double quotes because CPP needs to be expanded
 
2570
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2571
    do
 
2572
      ac_preproc_ok=false
 
2573
for ac_c_preproc_warn_flag in '' yes
 
2574
do
 
2575
  # Use a header file that comes with gcc, so configuring glibc
 
2576
  # with a fresh cross-compiler works.
 
2577
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2578
  # not just through cpp. "Syntax error" is here to catch this case.
 
2579
  cat >conftest.$ac_ext <<_ACEOF
 
2580
#line 2580 "configure"
 
2581
#include "confdefs.h"
 
2582
#include <assert.h>
 
2583
                     Syntax error
 
2584
_ACEOF
 
2585
if { (eval echo "$as_me:2585: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2586
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2587
  ac_status=$?
 
2588
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2589
  rm -f conftest.er1
 
2590
  cat conftest.err >&5
 
2591
  echo "$as_me:2591: \$? = $ac_status" >&5
 
2592
  (exit $ac_status); } >/dev/null; then
 
2593
  if test -s conftest.err; then
 
2594
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2595
  else
 
2596
    ac_cpp_err=
 
2597
  fi
 
2598
else
 
2599
  ac_cpp_err=yes
 
2600
fi
 
2601
if test -z "$ac_cpp_err"; then
 
2602
  :
 
2603
else
 
2604
  echo "$as_me: failed program was:" >&5
 
2605
  cat conftest.$ac_ext >&5
 
2606
  # Broken: fails on valid input.
 
2607
continue
 
2608
fi
 
2609
rm -f conftest.err conftest.$ac_ext
 
2610
 
 
2611
  # OK, works on sane cases.  Now check whether non-existent headers
 
2612
  # can be detected and how.
 
2613
  cat >conftest.$ac_ext <<_ACEOF
 
2614
#line 2614 "configure"
 
2615
#include "confdefs.h"
 
2616
#include <ac_nonexistent.h>
 
2617
_ACEOF
 
2618
if { (eval echo "$as_me:2618: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2619
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2620
  ac_status=$?
 
2621
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2622
  rm -f conftest.er1
 
2623
  cat conftest.err >&5
 
2624
  echo "$as_me:2624: \$? = $ac_status" >&5
 
2625
  (exit $ac_status); } >/dev/null; then
 
2626
  if test -s conftest.err; then
 
2627
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2628
  else
 
2629
    ac_cpp_err=
 
2630
  fi
 
2631
else
 
2632
  ac_cpp_err=yes
 
2633
fi
 
2634
if test -z "$ac_cpp_err"; then
 
2635
  # Broken: success on invalid input.
 
2636
continue
 
2637
else
 
2638
  echo "$as_me: failed program was:" >&5
 
2639
  cat conftest.$ac_ext >&5
 
2640
  # Passes both tests.
 
2641
ac_preproc_ok=:
 
2642
break
 
2643
fi
 
2644
rm -f conftest.err conftest.$ac_ext
 
2645
 
 
2646
done
 
2647
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2648
rm -f conftest.err conftest.$ac_ext
 
2649
if $ac_preproc_ok; then
 
2650
  break
 
2651
fi
 
2652
 
 
2653
    done
 
2654
    ac_cv_prog_CPP=$CPP
 
2655
 
 
2656
fi
 
2657
  CPP=$ac_cv_prog_CPP
 
2658
else
 
2659
  ac_cv_prog_CPP=$CPP
 
2660
fi
 
2661
echo "$as_me:2661: result: $CPP" >&5
 
2662
echo "${ECHO_T}$CPP" >&6
 
2663
ac_preproc_ok=false
 
2664
for ac_c_preproc_warn_flag in '' yes
 
2665
do
 
2666
  # Use a header file that comes with gcc, so configuring glibc
 
2667
  # with a fresh cross-compiler works.
 
2668
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2669
  # not just through cpp. "Syntax error" is here to catch this case.
 
2670
  cat >conftest.$ac_ext <<_ACEOF
 
2671
#line 2671 "configure"
 
2672
#include "confdefs.h"
 
2673
#include <assert.h>
 
2674
                     Syntax error
 
2675
_ACEOF
 
2676
if { (eval echo "$as_me:2676: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2677
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2678
  ac_status=$?
 
2679
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2680
  rm -f conftest.er1
 
2681
  cat conftest.err >&5
 
2682
  echo "$as_me:2682: \$? = $ac_status" >&5
 
2683
  (exit $ac_status); } >/dev/null; then
 
2684
  if test -s conftest.err; then
 
2685
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2686
  else
 
2687
    ac_cpp_err=
 
2688
  fi
 
2689
else
 
2690
  ac_cpp_err=yes
 
2691
fi
 
2692
if test -z "$ac_cpp_err"; then
 
2693
  :
 
2694
else
 
2695
  echo "$as_me: failed program was:" >&5
 
2696
  cat conftest.$ac_ext >&5
 
2697
  # Broken: fails on valid input.
 
2698
continue
 
2699
fi
 
2700
rm -f conftest.err conftest.$ac_ext
 
2701
 
 
2702
  # OK, works on sane cases.  Now check whether non-existent headers
 
2703
  # can be detected and how.
 
2704
  cat >conftest.$ac_ext <<_ACEOF
 
2705
#line 2705 "configure"
 
2706
#include "confdefs.h"
 
2707
#include <ac_nonexistent.h>
 
2708
_ACEOF
 
2709
if { (eval echo "$as_me:2709: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2710
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2711
  ac_status=$?
 
2712
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2713
  rm -f conftest.er1
 
2714
  cat conftest.err >&5
 
2715
  echo "$as_me:2715: \$? = $ac_status" >&5
 
2716
  (exit $ac_status); } >/dev/null; then
 
2717
  if test -s conftest.err; then
 
2718
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2719
  else
 
2720
    ac_cpp_err=
 
2721
  fi
 
2722
else
 
2723
  ac_cpp_err=yes
 
2724
fi
 
2725
if test -z "$ac_cpp_err"; then
 
2726
  # Broken: success on invalid input.
 
2727
continue
 
2728
else
 
2729
  echo "$as_me: failed program was:" >&5
 
2730
  cat conftest.$ac_ext >&5
 
2731
  # Passes both tests.
 
2732
ac_preproc_ok=:
 
2733
break
 
2734
fi
 
2735
rm -f conftest.err conftest.$ac_ext
 
2736
 
 
2737
done
 
2738
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2739
rm -f conftest.err conftest.$ac_ext
 
2740
if $ac_preproc_ok; then
 
2741
  :
 
2742
else
 
2743
  { { echo "$as_me:2743: error: C preprocessor \"$CPP\" fails sanity check" >&5
 
2744
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
 
2745
   { (exit 1); exit 1; }; }
 
2746
fi
 
2747
 
 
2748
ac_ext=c
 
2749
ac_cpp='$CPP $CPPFLAGS'
 
2750
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2751
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2752
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2753
 
 
2754
echo "$as_me:2754: checking for ANSI C header files" >&5
 
2755
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
2756
if test "${ac_cv_header_stdc+set}" = set; then
 
2757
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2758
else
 
2759
  cat >conftest.$ac_ext <<_ACEOF
 
2760
#line 2760 "configure"
1202
2761
#include "confdefs.h"
1203
2762
#include <stdlib.h>
1204
2763
#include <stdarg.h>
1205
2764
#include <string.h>
1206
2765
#include <float.h>
1207
 
EOF
1208
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1209
 
{ (eval echo configure:1210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1210
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1211
 
if test -z "$ac_err"; then
1212
 
  rm -rf conftest*
 
2766
 
 
2767
_ACEOF
 
2768
if { (eval echo "$as_me:2768: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2769
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2770
  ac_status=$?
 
2771
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
2772
  rm -f conftest.er1
 
2773
  cat conftest.err >&5
 
2774
  echo "$as_me:2774: \$? = $ac_status" >&5
 
2775
  (exit $ac_status); } >/dev/null; then
 
2776
  if test -s conftest.err; then
 
2777
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2778
  else
 
2779
    ac_cpp_err=
 
2780
  fi
 
2781
else
 
2782
  ac_cpp_err=yes
 
2783
fi
 
2784
if test -z "$ac_cpp_err"; then
1213
2785
  ac_cv_header_stdc=yes
1214
2786
else
1215
 
  echo "$ac_err" >&5
1216
 
  echo "configure: failed program was:" >&5
 
2787
  echo "$as_me: failed program was:" >&5
1217
2788
  cat conftest.$ac_ext >&5
1218
 
  rm -rf conftest*
1219
2789
  ac_cv_header_stdc=no
1220
2790
fi
1221
 
rm -f conftest*
 
2791
rm -f conftest.err conftest.$ac_ext
1222
2792
 
1223
2793
if test $ac_cv_header_stdc = yes; then
1224
2794
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1225
 
cat > conftest.$ac_ext <<EOF
1226
 
#line 1227 "configure"
 
2795
  cat >conftest.$ac_ext <<_ACEOF
 
2796
#line 2796 "configure"
1227
2797
#include "confdefs.h"
1228
2798
#include <string.h>
1229
 
EOF
 
2799
 
 
2800
_ACEOF
1230
2801
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1231
2802
  egrep "memchr" >/dev/null 2>&1; then
1232
2803
  :
1233
2804
else
1234
 
  rm -rf conftest*
1235
2805
  ac_cv_header_stdc=no
1236
2806
fi
1237
2807
rm -f conftest*
1240
2810
 
1241
2811
if test $ac_cv_header_stdc = yes; then
1242
2812
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1243
 
cat > conftest.$ac_ext <<EOF
1244
 
#line 1245 "configure"
 
2813
  cat >conftest.$ac_ext <<_ACEOF
 
2814
#line 2814 "configure"
1245
2815
#include "confdefs.h"
1246
2816
#include <stdlib.h>
1247
 
EOF
 
2817
 
 
2818
_ACEOF
1248
2819
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1249
2820
  egrep "free" >/dev/null 2>&1; then
1250
2821
  :
1251
2822
else
1252
 
  rm -rf conftest*
1253
2823
  ac_cv_header_stdc=no
1254
2824
fi
1255
2825
rm -f conftest*
1258
2828
 
1259
2829
if test $ac_cv_header_stdc = yes; then
1260
2830
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1261
 
if test "$cross_compiling" = yes; then
 
2831
  if test "$cross_compiling" = yes; then
1262
2832
  :
1263
2833
else
1264
 
  cat > conftest.$ac_ext <<EOF
1265
 
#line 1266 "configure"
 
2834
  cat >conftest.$ac_ext <<_ACEOF
 
2835
#line 2835 "configure"
1266
2836
#include "confdefs.h"
1267
2837
#include <ctype.h>
1268
 
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1269
 
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
2838
#if ((' ' & 0x0FF) == 0x020)
 
2839
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
2840
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
2841
#else
 
2842
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
 
2843
                     || ('j' <= (c) && (c) <= 'r') \
 
2844
                     || ('s' <= (c) && (c) <= 'z'))
 
2845
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
2846
#endif
 
2847
 
1270
2848
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1271
 
int main () { int i; for (i = 0; i < 256; i++)
1272
 
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1273
 
exit (0); }
1274
 
 
1275
 
EOF
1276
 
if { (eval echo configure:1277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1277
 
then
 
2849
int
 
2850
main ()
 
2851
{
 
2852
  int i;
 
2853
  for (i = 0; i < 256; i++)
 
2854
    if (XOR (islower (i), ISLOWER (i))
 
2855
        || toupper (i) != TOUPPER (i))
 
2856
      exit(2);
 
2857
  exit (0);
 
2858
}
 
2859
_ACEOF
 
2860
rm -f conftest$ac_exeext
 
2861
if { (eval echo "$as_me:2861: \"$ac_link\"") >&5
 
2862
  (eval $ac_link) 2>&5
 
2863
  ac_status=$?
 
2864
  echo "$as_me:2864: \$? = $ac_status" >&5
 
2865
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
2866
  { (eval echo "$as_me:2866: \"$ac_try\"") >&5
 
2867
  (eval $ac_try) 2>&5
 
2868
  ac_status=$?
 
2869
  echo "$as_me:2869: \$? = $ac_status" >&5
 
2870
  (exit $ac_status); }; }; then
1278
2871
  :
1279
2872
else
1280
 
  echo "configure: failed program was:" >&5
1281
 
  cat conftest.$ac_ext >&5
1282
 
  rm -fr conftest*
1283
 
  ac_cv_header_stdc=no
1284
 
fi
1285
 
rm -fr conftest*
1286
 
fi
1287
 
 
1288
 
fi
1289
 
fi
1290
 
 
1291
 
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
2873
  echo "$as_me: program exited with status $ac_status" >&5
 
2874
echo "$as_me: failed program was:" >&5
 
2875
cat conftest.$ac_ext >&5
 
2876
ac_cv_header_stdc=no
 
2877
fi
 
2878
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
2879
fi
 
2880
fi
 
2881
fi
 
2882
echo "$as_me:2882: result: $ac_cv_header_stdc" >&5
 
2883
echo "${ECHO_T}$ac_cv_header_stdc" >&6
1292
2884
if test $ac_cv_header_stdc = yes; then
1293
 
  cat >> confdefs.h <<\EOF
 
2885
 
 
2886
cat >>confdefs.h <<\EOF
1294
2887
#define STDC_HEADERS 1
1295
2888
EOF
1296
2889
 
1297
2890
fi
1298
2891
 
1299
 
echo $ac_n "checking for working const""... $ac_c" 1>&6
1300
 
echo "configure:1301: checking for working const" >&5
1301
 
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1302
 
  echo $ac_n "(cached) $ac_c" 1>&6
1303
 
else
1304
 
  cat > conftest.$ac_ext <<EOF
1305
 
#line 1306 "configure"
1306
 
#include "confdefs.h"
1307
 
 
1308
 
int main() {
1309
 
 
1310
 
/* Ultrix mips cc rejects this.  */
1311
 
typedef int charset[2]; const charset x;
1312
 
/* SunOS 4.1.1 cc rejects this.  */
1313
 
char const *const *ccp;
1314
 
char **p;
1315
 
/* NEC SVR4.0.2 mips cc rejects this.  */
1316
 
struct point {int x, y;};
1317
 
static struct point const zero = {0,0};
1318
 
/* AIX XL C 1.02.0.0 rejects this.
1319
 
   It does not let you subtract one const X* pointer from another in an arm
1320
 
   of an if-expression whose if-part is not a constant expression */
1321
 
const char *g = "string";
1322
 
ccp = &g + (g ? g-g : 0);
1323
 
/* HPUX 7.0 cc rejects these. */
1324
 
++ccp;
1325
 
p = (char**) ccp;
1326
 
ccp = (char const *const *) p;
1327
 
{ /* SCO 3.2v4 cc rejects this.  */
1328
 
  char *t;
1329
 
  char const *s = 0 ? (char *) 0 : (char const *) 0;
1330
 
 
1331
 
  *t++ = 0;
1332
 
}
1333
 
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1334
 
  int x[] = {25, 17};
1335
 
  const int *foo = &x[0];
1336
 
  ++foo;
1337
 
}
1338
 
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1339
 
  typedef const int *iptr;
1340
 
  iptr p = 0;
1341
 
  ++p;
1342
 
}
1343
 
{ /* AIX XL C 1.02.0.0 rejects this saying
1344
 
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1345
 
  struct s { int j; const int *ap[3]; };
1346
 
  struct s *b; b->j = 5;
1347
 
}
1348
 
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1349
 
  const int foo = 10;
1350
 
}
1351
 
 
1352
 
; return 0; }
1353
 
EOF
1354
 
if { (eval echo configure:1355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1355
 
  rm -rf conftest*
 
2892
echo "$as_me:2892: checking for $CC option to accept ANSI C" >&5
 
2893
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2894
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2895
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2896
else
 
2897
  ac_cv_prog_cc_stdc=no
 
2898
ac_save_CC=$CC
 
2899
cat >conftest.$ac_ext <<_ACEOF
 
2900
#line 2900 "configure"
 
2901
#include "confdefs.h"
 
2902
#include <stdarg.h>
 
2903
#include <stdio.h>
 
2904
#include <sys/types.h>
 
2905
#include <sys/stat.h>
 
2906
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2907
struct buf { int x; };
 
2908
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2909
static char *e (p, i)
 
2910
     char **p;
 
2911
     int i;
 
2912
{
 
2913
  return p[i];
 
2914
}
 
2915
static char *f (char * (*g) (char **, int), char **p, ...)
 
2916
{
 
2917
  char *s;
 
2918
  va_list v;
 
2919
  va_start (v,p);
 
2920
  s = g (p, va_arg (v,int));
 
2921
  va_end (v);
 
2922
  return s;
 
2923
}
 
2924
int test (int i, double x);
 
2925
struct s1 {int (*f) (int a);};
 
2926
struct s2 {int (*f) (double a);};
 
2927
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2928
int argc;
 
2929
char **argv;
 
2930
int
 
2931
main ()
 
2932
{
 
2933
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2934
  ;
 
2935
  return 0;
 
2936
}
 
2937
_ACEOF
 
2938
# Don't try gcc -ansi; that turns off useful extensions and
 
2939
# breaks some systems' header files.
 
2940
# AIX                   -qlanglvl=ansi
 
2941
# Ultrix and OSF/1      -std1
 
2942
# HP-UX 10.20 and later -Ae
 
2943
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2944
# SVR4                  -Xc -D__EXTENSIONS__
 
2945
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2946
do
 
2947
  CC="$ac_save_CC $ac_arg"
 
2948
  rm -f conftest.$ac_objext
 
2949
if { (eval echo "$as_me:2949: \"$ac_compile\"") >&5
 
2950
  (eval $ac_compile) 2>&5
 
2951
  ac_status=$?
 
2952
  echo "$as_me:2952: \$? = $ac_status" >&5
 
2953
  (exit $ac_status); } &&
 
2954
         { ac_try='test -s conftest.$ac_objext'
 
2955
  { (eval echo "$as_me:2955: \"$ac_try\"") >&5
 
2956
  (eval $ac_try) 2>&5
 
2957
  ac_status=$?
 
2958
  echo "$as_me:2958: \$? = $ac_status" >&5
 
2959
  (exit $ac_status); }; }; then
 
2960
  ac_cv_prog_cc_stdc=$ac_arg
 
2961
break
 
2962
else
 
2963
  echo "$as_me: failed program was:" >&5
 
2964
cat conftest.$ac_ext >&5
 
2965
fi
 
2966
rm -f conftest.$ac_objext
 
2967
done
 
2968
rm -f conftest.$ac_ext conftest.$ac_objext
 
2969
CC=$ac_save_CC
 
2970
 
 
2971
fi
 
2972
 
 
2973
case "x$ac_cv_prog_cc_stdc" in
 
2974
  x|xno)
 
2975
    echo "$as_me:2975: result: none needed" >&5
 
2976
echo "${ECHO_T}none needed" >&6 ;;
 
2977
  *)
 
2978
    echo "$as_me:2978: result: $ac_cv_prog_cc_stdc" >&5
 
2979
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2980
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2981
esac
 
2982
 
 
2983
echo "$as_me:2983: checking for an ANSI C-conforming const" >&5
 
2984
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
2985
if test "${ac_cv_c_const+set}" = set; then
 
2986
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2987
else
 
2988
  cat >conftest.$ac_ext <<_ACEOF
 
2989
#line 2989 "configure"
 
2990
#include "confdefs.h"
 
2991
 
 
2992
int
 
2993
main ()
 
2994
{
 
2995
/* FIXME: Include the comments suggested by Paul. */
 
2996
#ifndef __cplusplus
 
2997
  /* Ultrix mips cc rejects this.  */
 
2998
  typedef int charset[2];
 
2999
  const charset x;
 
3000
  /* SunOS 4.1.1 cc rejects this.  */
 
3001
  char const *const *ccp;
 
3002
  char **p;
 
3003
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
3004
  struct point {int x, y;};
 
3005
  static struct point const zero = {0,0};
 
3006
  /* AIX XL C 1.02.0.0 rejects this.
 
3007
     It does not let you subtract one const X* pointer from another in
 
3008
     an arm of an if-expression whose if-part is not a constant
 
3009
     expression */
 
3010
  const char *g = "string";
 
3011
  ccp = &g + (g ? g-g : 0);
 
3012
  /* HPUX 7.0 cc rejects these. */
 
3013
  ++ccp;
 
3014
  p = (char**) ccp;
 
3015
  ccp = (char const *const *) p;
 
3016
  { /* SCO 3.2v4 cc rejects this.  */
 
3017
    char *t;
 
3018
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
3019
 
 
3020
    *t++ = 0;
 
3021
  }
 
3022
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
3023
    int x[] = {25, 17};
 
3024
    const int *foo = &x[0];
 
3025
    ++foo;
 
3026
  }
 
3027
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
3028
    typedef const int *iptr;
 
3029
    iptr p = 0;
 
3030
    ++p;
 
3031
  }
 
3032
  { /* AIX XL C 1.02.0.0 rejects this saying
 
3033
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
3034
    struct s { int j; const int *ap[3]; };
 
3035
    struct s *b; b->j = 5;
 
3036
  }
 
3037
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
3038
    const int foo = 10;
 
3039
  }
 
3040
#endif
 
3041
 
 
3042
  ;
 
3043
  return 0;
 
3044
}
 
3045
_ACEOF
 
3046
rm -f conftest.$ac_objext
 
3047
if { (eval echo "$as_me:3047: \"$ac_compile\"") >&5
 
3048
  (eval $ac_compile) 2>&5
 
3049
  ac_status=$?
 
3050
  echo "$as_me:3050: \$? = $ac_status" >&5
 
3051
  (exit $ac_status); } &&
 
3052
         { ac_try='test -s conftest.$ac_objext'
 
3053
  { (eval echo "$as_me:3053: \"$ac_try\"") >&5
 
3054
  (eval $ac_try) 2>&5
 
3055
  ac_status=$?
 
3056
  echo "$as_me:3056: \$? = $ac_status" >&5
 
3057
  (exit $ac_status); }; }; then
1356
3058
  ac_cv_c_const=yes
1357
3059
else
1358
 
  echo "configure: failed program was:" >&5
1359
 
  cat conftest.$ac_ext >&5
1360
 
  rm -rf conftest*
1361
 
  ac_cv_c_const=no
1362
 
fi
1363
 
rm -f conftest*
1364
 
fi
1365
 
 
1366
 
echo "$ac_t""$ac_cv_c_const" 1>&6
 
3060
  echo "$as_me: failed program was:" >&5
 
3061
cat conftest.$ac_ext >&5
 
3062
ac_cv_c_const=no
 
3063
fi
 
3064
rm -f conftest.$ac_objext conftest.$ac_ext
 
3065
fi
 
3066
echo "$as_me:3066: result: $ac_cv_c_const" >&5
 
3067
echo "${ECHO_T}$ac_cv_c_const" >&6
1367
3068
if test $ac_cv_c_const = no; then
1368
 
  cat >> confdefs.h <<\EOF
1369
 
#define const 
 
3069
 
 
3070
cat >>confdefs.h <<\EOF
 
3071
#define const
1370
3072
EOF
1371
3073
 
1372
3074
fi
1373
3075
 
1374
 
echo $ac_n "checking for inline""... $ac_c" 1>&6
1375
 
echo "configure:1376: checking for inline" >&5
1376
 
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1377
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3076
echo "$as_me:3076: checking for inline" >&5
 
3077
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
3078
if test "${ac_cv_c_inline+set}" = set; then
 
3079
  echo $ECHO_N "(cached) $ECHO_C" >&6
1378
3080
else
1379
3081
  ac_cv_c_inline=no
1380
3082
for ac_kw in inline __inline__ __inline; do
1381
 
  cat > conftest.$ac_ext <<EOF
1382
 
#line 1383 "configure"
 
3083
  cat >conftest.$ac_ext <<_ACEOF
 
3084
#line 3084 "configure"
1383
3085
#include "confdefs.h"
 
3086
#ifndef __cplusplus
 
3087
static $ac_kw int static_foo () {return 0; }
 
3088
$ac_kw int foo () {return 0; }
 
3089
#endif
1384
3090
 
1385
 
int main() {
1386
 
} $ac_kw foo() {
1387
 
; return 0; }
1388
 
EOF
1389
 
if { (eval echo configure:1390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1390
 
  rm -rf conftest*
 
3091
_ACEOF
 
3092
rm -f conftest.$ac_objext
 
3093
if { (eval echo "$as_me:3093: \"$ac_compile\"") >&5
 
3094
  (eval $ac_compile) 2>&5
 
3095
  ac_status=$?
 
3096
  echo "$as_me:3096: \$? = $ac_status" >&5
 
3097
  (exit $ac_status); } &&
 
3098
         { ac_try='test -s conftest.$ac_objext'
 
3099
  { (eval echo "$as_me:3099: \"$ac_try\"") >&5
 
3100
  (eval $ac_try) 2>&5
 
3101
  ac_status=$?
 
3102
  echo "$as_me:3102: \$? = $ac_status" >&5
 
3103
  (exit $ac_status); }; }; then
1391
3104
  ac_cv_c_inline=$ac_kw; break
1392
3105
else
1393
 
  echo "configure: failed program was:" >&5
1394
 
  cat conftest.$ac_ext >&5
 
3106
  echo "$as_me: failed program was:" >&5
 
3107
cat conftest.$ac_ext >&5
1395
3108
fi
1396
 
rm -f conftest*
 
3109
rm -f conftest.$ac_objext conftest.$ac_ext
1397
3110
done
1398
3111
 
1399
3112
fi
1400
 
 
1401
 
echo "$ac_t""$ac_cv_c_inline" 1>&6
1402
 
case "$ac_cv_c_inline" in
 
3113
echo "$as_me:3113: result: $ac_cv_c_inline" >&5
 
3114
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
3115
case $ac_cv_c_inline in
1403
3116
  inline | yes) ;;
1404
 
  no) cat >> confdefs.h <<\EOF
1405
 
#define inline 
 
3117
  no)
 
3118
cat >>confdefs.h <<\EOF
 
3119
#define inline
1406
3120
EOF
1407
3121
 ;;
1408
 
  *)  cat >> confdefs.h <<EOF
 
3122
  *)  cat >>confdefs.h <<EOF
1409
3123
#define inline $ac_cv_c_inline
1410
3124
EOF
1411
3125
 ;;
1412
3126
esac
1413
3127
 
1414
 
echo $ac_n "checking for off_t""... $ac_c" 1>&6
1415
 
echo "configure:1416: checking for off_t" >&5
1416
 
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1417
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3128
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3129
 
 
3130
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3131
                  inttypes.h stdint.h unistd.h
 
3132
do
 
3133
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3134
echo "$as_me:3134: checking for $ac_header" >&5
 
3135
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3136
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3137
  echo $ECHO_N "(cached) $ECHO_C" >&6
1418
3138
else
1419
 
  cat > conftest.$ac_ext <<EOF
1420
 
#line 1421 "configure"
 
3139
  cat >conftest.$ac_ext <<_ACEOF
 
3140
#line 3140 "configure"
1421
3141
#include "confdefs.h"
1422
 
#include <sys/types.h>
1423
 
#if STDC_HEADERS
1424
 
#include <stdlib.h>
1425
 
#include <stddef.h>
1426
 
#endif
 
3142
$ac_includes_default
 
3143
#include <$ac_header>
 
3144
_ACEOF
 
3145
rm -f conftest.$ac_objext
 
3146
if { (eval echo "$as_me:3146: \"$ac_compile\"") >&5
 
3147
  (eval $ac_compile) 2>&5
 
3148
  ac_status=$?
 
3149
  echo "$as_me:3149: \$? = $ac_status" >&5
 
3150
  (exit $ac_status); } &&
 
3151
         { ac_try='test -s conftest.$ac_objext'
 
3152
  { (eval echo "$as_me:3152: \"$ac_try\"") >&5
 
3153
  (eval $ac_try) 2>&5
 
3154
  ac_status=$?
 
3155
  echo "$as_me:3155: \$? = $ac_status" >&5
 
3156
  (exit $ac_status); }; }; then
 
3157
  eval "$as_ac_Header=yes"
 
3158
else
 
3159
  echo "$as_me: failed program was:" >&5
 
3160
cat conftest.$ac_ext >&5
 
3161
eval "$as_ac_Header=no"
 
3162
fi
 
3163
rm -f conftest.$ac_objext conftest.$ac_ext
 
3164
fi
 
3165
echo "$as_me:3165: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3166
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3167
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3168
  cat >>confdefs.h <<EOF
 
3169
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1427
3170
EOF
1428
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1429
 
  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1430
 
  rm -rf conftest*
 
3171
 
 
3172
fi
 
3173
done
 
3174
 
 
3175
echo "$as_me:3175: checking for off_t" >&5
 
3176
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
 
3177
if test "${ac_cv_type_off_t+set}" = set; then
 
3178
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3179
else
 
3180
  cat >conftest.$ac_ext <<_ACEOF
 
3181
#line 3181 "configure"
 
3182
#include "confdefs.h"
 
3183
$ac_includes_default
 
3184
int
 
3185
main ()
 
3186
{
 
3187
if ((off_t *) 0)
 
3188
  return 0;
 
3189
if (sizeof (off_t))
 
3190
  return 0;
 
3191
  ;
 
3192
  return 0;
 
3193
}
 
3194
_ACEOF
 
3195
rm -f conftest.$ac_objext
 
3196
if { (eval echo "$as_me:3196: \"$ac_compile\"") >&5
 
3197
  (eval $ac_compile) 2>&5
 
3198
  ac_status=$?
 
3199
  echo "$as_me:3199: \$? = $ac_status" >&5
 
3200
  (exit $ac_status); } &&
 
3201
         { ac_try='test -s conftest.$ac_objext'
 
3202
  { (eval echo "$as_me:3202: \"$ac_try\"") >&5
 
3203
  (eval $ac_try) 2>&5
 
3204
  ac_status=$?
 
3205
  echo "$as_me:3205: \$? = $ac_status" >&5
 
3206
  (exit $ac_status); }; }; then
1431
3207
  ac_cv_type_off_t=yes
1432
3208
else
1433
 
  rm -rf conftest*
1434
 
  ac_cv_type_off_t=no
1435
 
fi
1436
 
rm -f conftest*
 
3209
  echo "$as_me: failed program was:" >&5
 
3210
cat conftest.$ac_ext >&5
 
3211
ac_cv_type_off_t=no
 
3212
fi
 
3213
rm -f conftest.$ac_objext conftest.$ac_ext
 
3214
fi
 
3215
echo "$as_me:3215: result: $ac_cv_type_off_t" >&5
 
3216
echo "${ECHO_T}$ac_cv_type_off_t" >&6
 
3217
if test $ac_cv_type_off_t = yes; then
 
3218
  :
 
3219
else
1437
3220
 
1438
 
fi
1439
 
echo "$ac_t""$ac_cv_type_off_t" 1>&6
1440
 
if test $ac_cv_type_off_t = no; then
1441
 
  cat >> confdefs.h <<\EOF
 
3221
cat >>confdefs.h <<EOF
1442
3222
#define off_t long
1443
3223
EOF
1444
3224
 
1445
3225
fi
1446
3226
 
1447
 
echo $ac_n "checking for size_t""... $ac_c" 1>&6
1448
 
echo "configure:1449: checking for size_t" >&5
1449
 
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1450
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3227
echo "$as_me:3227: checking for size_t" >&5
 
3228
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
3229
if test "${ac_cv_type_size_t+set}" = set; then
 
3230
  echo $ECHO_N "(cached) $ECHO_C" >&6
1451
3231
else
1452
 
  cat > conftest.$ac_ext <<EOF
1453
 
#line 1454 "configure"
 
3232
  cat >conftest.$ac_ext <<_ACEOF
 
3233
#line 3233 "configure"
1454
3234
#include "confdefs.h"
1455
 
#include <sys/types.h>
1456
 
#if STDC_HEADERS
1457
 
#include <stdlib.h>
1458
 
#include <stddef.h>
1459
 
#endif
1460
 
EOF
1461
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1462
 
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1463
 
  rm -rf conftest*
 
3235
$ac_includes_default
 
3236
int
 
3237
main ()
 
3238
{
 
3239
if ((size_t *) 0)
 
3240
  return 0;
 
3241
if (sizeof (size_t))
 
3242
  return 0;
 
3243
  ;
 
3244
  return 0;
 
3245
}
 
3246
_ACEOF
 
3247
rm -f conftest.$ac_objext
 
3248
if { (eval echo "$as_me:3248: \"$ac_compile\"") >&5
 
3249
  (eval $ac_compile) 2>&5
 
3250
  ac_status=$?
 
3251
  echo "$as_me:3251: \$? = $ac_status" >&5
 
3252
  (exit $ac_status); } &&
 
3253
         { ac_try='test -s conftest.$ac_objext'
 
3254
  { (eval echo "$as_me:3254: \"$ac_try\"") >&5
 
3255
  (eval $ac_try) 2>&5
 
3256
  ac_status=$?
 
3257
  echo "$as_me:3257: \$? = $ac_status" >&5
 
3258
  (exit $ac_status); }; }; then
1464
3259
  ac_cv_type_size_t=yes
1465
3260
else
1466
 
  rm -rf conftest*
1467
 
  ac_cv_type_size_t=no
1468
 
fi
1469
 
rm -f conftest*
 
3261
  echo "$as_me: failed program was:" >&5
 
3262
cat conftest.$ac_ext >&5
 
3263
ac_cv_type_size_t=no
 
3264
fi
 
3265
rm -f conftest.$ac_objext conftest.$ac_ext
 
3266
fi
 
3267
echo "$as_me:3267: result: $ac_cv_type_size_t" >&5
 
3268
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
3269
if test $ac_cv_type_size_t = yes; then
 
3270
  :
 
3271
else
1470
3272
 
1471
 
fi
1472
 
echo "$ac_t""$ac_cv_type_size_t" 1>&6
1473
 
if test $ac_cv_type_size_t = no; then
1474
 
  cat >> confdefs.h <<\EOF
 
3273
cat >>confdefs.h <<EOF
1475
3274
#define size_t unsigned
1476
3275
EOF
1477
3276
 
1479
3278
 
1480
3279
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1481
3280
# for constant arguments.  Useless!
1482
 
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1483
 
echo "configure:1484: checking for working alloca.h" >&5
1484
 
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1485
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3281
echo "$as_me:3281: checking for working alloca.h" >&5
 
3282
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
 
3283
if test "${ac_cv_working_alloca_h+set}" = set; then
 
3284
  echo $ECHO_N "(cached) $ECHO_C" >&6
1486
3285
else
1487
 
  cat > conftest.$ac_ext <<EOF
1488
 
#line 1489 "configure"
 
3286
  cat >conftest.$ac_ext <<_ACEOF
 
3287
#line 3287 "configure"
1489
3288
#include "confdefs.h"
1490
3289
#include <alloca.h>
1491
 
int main() {
1492
 
char *p = alloca(2 * sizeof(int));
1493
 
; return 0; }
1494
 
EOF
1495
 
if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1496
 
  rm -rf conftest*
1497
 
  ac_cv_header_alloca_h=yes
 
3290
int
 
3291
main ()
 
3292
{
 
3293
char *p = (char *) alloca (2 * sizeof (int));
 
3294
  ;
 
3295
  return 0;
 
3296
}
 
3297
_ACEOF
 
3298
rm -f conftest.$ac_objext conftest$ac_exeext
 
3299
if { (eval echo "$as_me:3299: \"$ac_link\"") >&5
 
3300
  (eval $ac_link) 2>&5
 
3301
  ac_status=$?
 
3302
  echo "$as_me:3302: \$? = $ac_status" >&5
 
3303
  (exit $ac_status); } &&
 
3304
         { ac_try='test -s conftest$ac_exeext'
 
3305
  { (eval echo "$as_me:3305: \"$ac_try\"") >&5
 
3306
  (eval $ac_try) 2>&5
 
3307
  ac_status=$?
 
3308
  echo "$as_me:3308: \$? = $ac_status" >&5
 
3309
  (exit $ac_status); }; }; then
 
3310
  ac_cv_working_alloca_h=yes
1498
3311
else
1499
 
  echo "configure: failed program was:" >&5
1500
 
  cat conftest.$ac_ext >&5
1501
 
  rm -rf conftest*
1502
 
  ac_cv_header_alloca_h=no
1503
 
fi
1504
 
rm -f conftest*
1505
 
fi
 
3312
  echo "$as_me: failed program was:" >&5
 
3313
cat conftest.$ac_ext >&5
 
3314
ac_cv_working_alloca_h=no
 
3315
fi
 
3316
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3317
fi
 
3318
echo "$as_me:3318: result: $ac_cv_working_alloca_h" >&5
 
3319
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
 
3320
if test $ac_cv_working_alloca_h = yes; then
1506
3321
 
1507
 
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1508
 
if test $ac_cv_header_alloca_h = yes; then
1509
 
  cat >> confdefs.h <<\EOF
 
3322
cat >>confdefs.h <<\EOF
1510
3323
#define HAVE_ALLOCA_H 1
1511
3324
EOF
1512
3325
 
1513
3326
fi
1514
3327
 
1515
 
echo $ac_n "checking for alloca""... $ac_c" 1>&6
1516
 
echo "configure:1517: checking for alloca" >&5
1517
 
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1518
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3328
echo "$as_me:3328: checking for alloca" >&5
 
3329
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
 
3330
if test "${ac_cv_func_alloca_works+set}" = set; then
 
3331
  echo $ECHO_N "(cached) $ECHO_C" >&6
1519
3332
else
1520
 
  cat > conftest.$ac_ext <<EOF
1521
 
#line 1522 "configure"
 
3333
  cat >conftest.$ac_ext <<_ACEOF
 
3334
#line 3334 "configure"
1522
3335
#include "confdefs.h"
1523
 
 
1524
3336
#ifdef __GNUC__
1525
3337
# define alloca __builtin_alloca
1526
3338
#else
1542
3354
# endif
1543
3355
#endif
1544
3356
 
1545
 
int main() {
1546
 
char *p = (char *) alloca(1);
1547
 
; return 0; }
1548
 
EOF
1549
 
if { (eval echo configure:1550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1550
 
  rm -rf conftest*
 
3357
int
 
3358
main ()
 
3359
{
 
3360
char *p = (char *) alloca (1);
 
3361
  ;
 
3362
  return 0;
 
3363
}
 
3364
_ACEOF
 
3365
rm -f conftest.$ac_objext conftest$ac_exeext
 
3366
if { (eval echo "$as_me:3366: \"$ac_link\"") >&5
 
3367
  (eval $ac_link) 2>&5
 
3368
  ac_status=$?
 
3369
  echo "$as_me:3369: \$? = $ac_status" >&5
 
3370
  (exit $ac_status); } &&
 
3371
         { ac_try='test -s conftest$ac_exeext'
 
3372
  { (eval echo "$as_me:3372: \"$ac_try\"") >&5
 
3373
  (eval $ac_try) 2>&5
 
3374
  ac_status=$?
 
3375
  echo "$as_me:3375: \$? = $ac_status" >&5
 
3376
  (exit $ac_status); }; }; then
1551
3377
  ac_cv_func_alloca_works=yes
1552
3378
else
1553
 
  echo "configure: failed program was:" >&5
1554
 
  cat conftest.$ac_ext >&5
1555
 
  rm -rf conftest*
1556
 
  ac_cv_func_alloca_works=no
1557
 
fi
1558
 
rm -f conftest*
1559
 
fi
 
3379
  echo "$as_me: failed program was:" >&5
 
3380
cat conftest.$ac_ext >&5
 
3381
ac_cv_func_alloca_works=no
 
3382
fi
 
3383
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3384
fi
 
3385
echo "$as_me:3385: result: $ac_cv_func_alloca_works" >&5
 
3386
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
1560
3387
 
1561
 
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1562
3388
if test $ac_cv_func_alloca_works = yes; then
1563
 
  cat >> confdefs.h <<\EOF
 
3389
 
 
3390
cat >>confdefs.h <<\EOF
1564
3391
#define HAVE_ALLOCA 1
1565
3392
EOF
1566
3393
 
1567
 
fi
1568
 
 
1569
 
if test $ac_cv_func_alloca_works = no; then
 
3394
else
1570
3395
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1571
 
  # that cause trouble.  Some versions do not even contain alloca or
1572
 
  # contain a buggy version.  If you still want to use their alloca,
1573
 
  # use ar to extract alloca.o from them instead of compiling alloca.c.
1574
 
  ALLOCA=alloca.${ac_objext}
1575
 
  cat >> confdefs.h <<\EOF
 
3396
# that cause trouble.  Some versions do not even contain alloca or
 
3397
# contain a buggy version.  If you still want to use their alloca,
 
3398
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
3399
 
 
3400
ALLOCA=alloca.$ac_objext
 
3401
 
 
3402
cat >>confdefs.h <<\EOF
1576
3403
#define C_ALLOCA 1
1577
3404
EOF
1578
3405
 
1579
 
 
1580
 
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1581
 
echo "configure:1582: checking whether alloca needs Cray hooks" >&5
1582
 
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1583
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3406
echo "$as_me:3406: checking whether \`alloca.c' needs Cray hooks" >&5
 
3407
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
 
3408
if test "${ac_cv_os_cray+set}" = set; then
 
3409
  echo $ECHO_N "(cached) $ECHO_C" >&6
1584
3410
else
1585
 
  cat > conftest.$ac_ext <<EOF
1586
 
#line 1587 "configure"
 
3411
  cat >conftest.$ac_ext <<_ACEOF
 
3412
#line 3412 "configure"
1587
3413
#include "confdefs.h"
1588
3414
#if defined(CRAY) && ! defined(CRAY2)
1589
3415
webecray
1591
3417
wenotbecray
1592
3418
#endif
1593
3419
 
1594
 
EOF
 
3420
_ACEOF
1595
3421
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1596
3422
  egrep "webecray" >/dev/null 2>&1; then
1597
 
  rm -rf conftest*
1598
3423
  ac_cv_os_cray=yes
1599
3424
else
1600
 
  rm -rf conftest*
1601
3425
  ac_cv_os_cray=no
1602
3426
fi
1603
3427
rm -f conftest*
1604
3428
 
1605
3429
fi
1606
 
 
1607
 
echo "$ac_t""$ac_cv_os_cray" 1>&6
 
3430
echo "$as_me:3430: result: $ac_cv_os_cray" >&5
 
3431
echo "${ECHO_T}$ac_cv_os_cray" >&6
1608
3432
if test $ac_cv_os_cray = yes; then
1609
 
for ac_func in _getb67 GETB67 getb67; do
1610
 
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1611
 
echo "configure:1612: checking for $ac_func" >&5
1612
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1613
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3433
  for ac_func in _getb67 GETB67 getb67; do
 
3434
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
3435
echo "$as_me:3435: checking for $ac_func" >&5
 
3436
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
3437
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
3438
  echo $ECHO_N "(cached) $ECHO_C" >&6
1614
3439
else
1615
 
  cat > conftest.$ac_ext <<EOF
1616
 
#line 1617 "configure"
 
3440
  cat >conftest.$ac_ext <<_ACEOF
 
3441
#line 3441 "configure"
1617
3442
#include "confdefs.h"
1618
3443
/* System header to define __stub macros and hopefully few prototypes,
1619
 
    which can conflict with char $ac_func(); below.  */
 
3444
    which can conflict with char $ac_func (); below.  */
1620
3445
#include <assert.h>
1621
3446
/* Override any gcc2 internal prototype to avoid an error.  */
 
3447
#ifdef __cplusplus
 
3448
extern "C"
 
3449
#endif
1622
3450
/* We use char because int might match the return type of a gcc2
1623
 
    builtin and then its argument prototype would still apply.  */
1624
 
char $ac_func();
1625
 
 
1626
 
int main() {
1627
 
 
 
3451
   builtin and then its argument prototype would still apply.  */
 
3452
char $ac_func ();
 
3453
char (*f) ();
 
3454
 
 
3455
int
 
3456
main ()
 
3457
{
1628
3458
/* The GNU C library defines this for functions which it implements
1629
3459
    to always fail with ENOSYS.  Some functions are actually named
1630
3460
    something starting with __ and the normal name is an alias.  */
1631
3461
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1632
3462
choke me
1633
3463
#else
1634
 
$ac_func();
 
3464
f = $ac_func;
1635
3465
#endif
1636
3466
 
1637
 
; return 0; }
1638
 
EOF
1639
 
if { (eval echo configure:1640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1640
 
  rm -rf conftest*
1641
 
  eval "ac_cv_func_$ac_func=yes"
 
3467
  ;
 
3468
  return 0;
 
3469
}
 
3470
_ACEOF
 
3471
rm -f conftest.$ac_objext conftest$ac_exeext
 
3472
if { (eval echo "$as_me:3472: \"$ac_link\"") >&5
 
3473
  (eval $ac_link) 2>&5
 
3474
  ac_status=$?
 
3475
  echo "$as_me:3475: \$? = $ac_status" >&5
 
3476
  (exit $ac_status); } &&
 
3477
         { ac_try='test -s conftest$ac_exeext'
 
3478
  { (eval echo "$as_me:3478: \"$ac_try\"") >&5
 
3479
  (eval $ac_try) 2>&5
 
3480
  ac_status=$?
 
3481
  echo "$as_me:3481: \$? = $ac_status" >&5
 
3482
  (exit $ac_status); }; }; then
 
3483
  eval "$as_ac_var=yes"
1642
3484
else
1643
 
  echo "configure: failed program was:" >&5
1644
 
  cat conftest.$ac_ext >&5
1645
 
  rm -rf conftest*
1646
 
  eval "ac_cv_func_$ac_func=no"
1647
 
fi
1648
 
rm -f conftest*
1649
 
fi
 
3485
  echo "$as_me: failed program was:" >&5
 
3486
cat conftest.$ac_ext >&5
 
3487
eval "$as_ac_var=no"
 
3488
fi
 
3489
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3490
fi
 
3491
echo "$as_me:3491: result: `eval echo '${'$as_ac_var'}'`" >&5
 
3492
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3493
if test `eval echo '${'$as_ac_var'}'` = yes; then
1650
3494
 
1651
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1652
 
  echo "$ac_t""yes" 1>&6
1653
 
  cat >> confdefs.h <<EOF
 
3495
cat >>confdefs.h <<EOF
1654
3496
#define CRAY_STACKSEG_END $ac_func
1655
3497
EOF
1656
3498
 
1657
 
  break
1658
 
else
1659
 
  echo "$ac_t""no" 1>&6
1660
 
fi
1661
 
 
1662
 
done
1663
 
fi
1664
 
 
1665
 
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1666
 
echo "configure:1667: checking stack direction for C alloca" >&5
1667
 
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1668
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3499
    break
 
3500
fi
 
3501
 
 
3502
  done
 
3503
fi
 
3504
 
 
3505
echo "$as_me:3505: checking stack direction for C alloca" >&5
 
3506
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
 
3507
if test "${ac_cv_c_stack_direction+set}" = set; then
 
3508
  echo $ECHO_N "(cached) $ECHO_C" >&6
1669
3509
else
1670
3510
  if test "$cross_compiling" = yes; then
1671
3511
  ac_cv_c_stack_direction=0
1672
3512
else
1673
 
  cat > conftest.$ac_ext <<EOF
1674
 
#line 1675 "configure"
 
3513
  cat >conftest.$ac_ext <<_ACEOF
 
3514
#line 3514 "configure"
1675
3515
#include "confdefs.h"
 
3516
int
1676
3517
find_stack_direction ()
1677
3518
{
1678
3519
  static char *addr = 0;
1685
3526
  else
1686
3527
    return (&dummy > addr) ? 1 : -1;
1687
3528
}
 
3529
 
 
3530
int
1688
3531
main ()
1689
3532
{
1690
 
  exit (find_stack_direction() < 0);
 
3533
  exit (find_stack_direction () < 0);
1691
3534
}
1692
 
EOF
1693
 
if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1694
 
then
 
3535
_ACEOF
 
3536
rm -f conftest$ac_exeext
 
3537
if { (eval echo "$as_me:3537: \"$ac_link\"") >&5
 
3538
  (eval $ac_link) 2>&5
 
3539
  ac_status=$?
 
3540
  echo "$as_me:3540: \$? = $ac_status" >&5
 
3541
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3542
  { (eval echo "$as_me:3542: \"$ac_try\"") >&5
 
3543
  (eval $ac_try) 2>&5
 
3544
  ac_status=$?
 
3545
  echo "$as_me:3545: \$? = $ac_status" >&5
 
3546
  (exit $ac_status); }; }; then
1695
3547
  ac_cv_c_stack_direction=1
1696
3548
else
1697
 
  echo "configure: failed program was:" >&5
1698
 
  cat conftest.$ac_ext >&5
1699
 
  rm -fr conftest*
1700
 
  ac_cv_c_stack_direction=-1
1701
 
fi
1702
 
rm -fr conftest*
1703
 
fi
1704
 
 
1705
 
fi
1706
 
 
1707
 
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1708
 
cat >> confdefs.h <<EOF
 
3549
  echo "$as_me: program exited with status $ac_status" >&5
 
3550
echo "$as_me: failed program was:" >&5
 
3551
cat conftest.$ac_ext >&5
 
3552
ac_cv_c_stack_direction=-1
 
3553
fi
 
3554
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3555
fi
 
3556
fi
 
3557
echo "$as_me:3557: result: $ac_cv_c_stack_direction" >&5
 
3558
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
 
3559
 
 
3560
cat >>confdefs.h <<EOF
1709
3561
#define STACK_DIRECTION $ac_cv_c_stack_direction
1710
3562
EOF
1711
3563
 
1712
3564
fi
1713
3565
 
1714
 
for ac_hdr in unistd.h
 
3566
for ac_header in stdlib.h unistd.h
1715
3567
do
1716
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1717
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1718
 
echo "configure:1719: checking for $ac_hdr" >&5
1719
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1720
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3568
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3569
echo "$as_me:3569: checking for $ac_header" >&5
 
3570
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3571
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3572
  echo $ECHO_N "(cached) $ECHO_C" >&6
1721
3573
else
1722
 
  cat > conftest.$ac_ext <<EOF
1723
 
#line 1724 "configure"
 
3574
  cat >conftest.$ac_ext <<_ACEOF
 
3575
#line 3575 "configure"
1724
3576
#include "confdefs.h"
1725
 
#include <$ac_hdr>
1726
 
EOF
1727
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1728
 
{ (eval echo configure:1729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1729
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1730
 
if test -z "$ac_err"; then
1731
 
  rm -rf conftest*
1732
 
  eval "ac_cv_header_$ac_safe=yes"
1733
 
else
1734
 
  echo "$ac_err" >&5
1735
 
  echo "configure: failed program was:" >&5
 
3577
#include <$ac_header>
 
3578
_ACEOF
 
3579
if { (eval echo "$as_me:3579: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3580
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3581
  ac_status=$?
 
3582
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
3583
  rm -f conftest.er1
 
3584
  cat conftest.err >&5
 
3585
  echo "$as_me:3585: \$? = $ac_status" >&5
 
3586
  (exit $ac_status); } >/dev/null; then
 
3587
  if test -s conftest.err; then
 
3588
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3589
  else
 
3590
    ac_cpp_err=
 
3591
  fi
 
3592
else
 
3593
  ac_cpp_err=yes
 
3594
fi
 
3595
if test -z "$ac_cpp_err"; then
 
3596
  eval "$as_ac_Header=yes"
 
3597
else
 
3598
  echo "$as_me: failed program was:" >&5
1736
3599
  cat conftest.$ac_ext >&5
1737
 
  rm -rf conftest*
1738
 
  eval "ac_cv_header_$ac_safe=no"
1739
 
fi
1740
 
rm -f conftest*
1741
 
fi
1742
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1743
 
  echo "$ac_t""yes" 1>&6
1744
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1745
 
  cat >> confdefs.h <<EOF
1746
 
#define $ac_tr_hdr 1
 
3600
  eval "$as_ac_Header=no"
 
3601
fi
 
3602
rm -f conftest.err conftest.$ac_ext
 
3603
fi
 
3604
echo "$as_me:3604: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3605
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3606
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3607
  cat >>confdefs.h <<EOF
 
3608
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1747
3609
EOF
1748
 
 
1749
 
else
1750
 
  echo "$ac_t""no" 1>&6
 
3610
 
1751
3611
fi
1752
3612
done
1753
3613
 
1754
3614
for ac_func in getpagesize
1755
3615
do
1756
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1757
 
echo "configure:1758: checking for $ac_func" >&5
1758
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1759
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3616
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
3617
echo "$as_me:3617: checking for $ac_func" >&5
 
3618
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
3619
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
3620
  echo $ECHO_N "(cached) $ECHO_C" >&6
1760
3621
else
1761
 
  cat > conftest.$ac_ext <<EOF
1762
 
#line 1763 "configure"
 
3622
  cat >conftest.$ac_ext <<_ACEOF
 
3623
#line 3623 "configure"
1763
3624
#include "confdefs.h"
1764
3625
/* System header to define __stub macros and hopefully few prototypes,
1765
 
    which can conflict with char $ac_func(); below.  */
 
3626
    which can conflict with char $ac_func (); below.  */
1766
3627
#include <assert.h>
1767
3628
/* Override any gcc2 internal prototype to avoid an error.  */
 
3629
#ifdef __cplusplus
 
3630
extern "C"
 
3631
#endif
1768
3632
/* We use char because int might match the return type of a gcc2
1769
 
    builtin and then its argument prototype would still apply.  */
1770
 
char $ac_func();
1771
 
 
1772
 
int main() {
1773
 
 
 
3633
   builtin and then its argument prototype would still apply.  */
 
3634
char $ac_func ();
 
3635
char (*f) ();
 
3636
 
 
3637
int
 
3638
main ()
 
3639
{
1774
3640
/* The GNU C library defines this for functions which it implements
1775
3641
    to always fail with ENOSYS.  Some functions are actually named
1776
3642
    something starting with __ and the normal name is an alias.  */
1777
3643
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1778
3644
choke me
1779
3645
#else
1780
 
$ac_func();
 
3646
f = $ac_func;
1781
3647
#endif
1782
3648
 
1783
 
; return 0; }
 
3649
  ;
 
3650
  return 0;
 
3651
}
 
3652
_ACEOF
 
3653
rm -f conftest.$ac_objext conftest$ac_exeext
 
3654
if { (eval echo "$as_me:3654: \"$ac_link\"") >&5
 
3655
  (eval $ac_link) 2>&5
 
3656
  ac_status=$?
 
3657
  echo "$as_me:3657: \$? = $ac_status" >&5
 
3658
  (exit $ac_status); } &&
 
3659
         { ac_try='test -s conftest$ac_exeext'
 
3660
  { (eval echo "$as_me:3660: \"$ac_try\"") >&5
 
3661
  (eval $ac_try) 2>&5
 
3662
  ac_status=$?
 
3663
  echo "$as_me:3663: \$? = $ac_status" >&5
 
3664
  (exit $ac_status); }; }; then
 
3665
  eval "$as_ac_var=yes"
 
3666
else
 
3667
  echo "$as_me: failed program was:" >&5
 
3668
cat conftest.$ac_ext >&5
 
3669
eval "$as_ac_var=no"
 
3670
fi
 
3671
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3672
fi
 
3673
echo "$as_me:3673: result: `eval echo '${'$as_ac_var'}'`" >&5
 
3674
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3675
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
3676
  cat >>confdefs.h <<EOF
 
3677
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1784
3678
EOF
1785
 
if { (eval echo configure:1786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1786
 
  rm -rf conftest*
1787
 
  eval "ac_cv_func_$ac_func=yes"
1788
 
else
1789
 
  echo "configure: failed program was:" >&5
1790
 
  cat conftest.$ac_ext >&5
1791
 
  rm -rf conftest*
1792
 
  eval "ac_cv_func_$ac_func=no"
1793
 
fi
1794
 
rm -f conftest*
1795
 
fi
1796
3679
 
1797
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1798
 
  echo "$ac_t""yes" 1>&6
1799
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1800
 
  cat >> confdefs.h <<EOF
1801
 
#define $ac_tr_func 1
1802
 
EOF
1803
 
 
1804
 
else
1805
 
  echo "$ac_t""no" 1>&6
1806
3680
fi
1807
3681
done
1808
3682
 
1809
 
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1810
 
echo "configure:1811: checking for working mmap" >&5
1811
 
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1812
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3683
echo "$as_me:3683: checking for working mmap" >&5
 
3684
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
 
3685
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
 
3686
  echo $ECHO_N "(cached) $ECHO_C" >&6
1813
3687
else
1814
3688
  if test "$cross_compiling" = yes; then
1815
3689
  ac_cv_func_mmap_fixed_mapped=no
1816
3690
else
1817
 
  cat > conftest.$ac_ext <<EOF
1818
 
#line 1819 "configure"
 
3691
  cat >conftest.$ac_ext <<_ACEOF
 
3692
#line 3692 "configure"
1819
3693
#include "confdefs.h"
1820
 
 
 
3694
$ac_includes_default
1821
3695
/* Thanks to Mike Haertel and Jim Avera for this test.
1822
3696
   Here is a matrix of mmap possibilities:
1823
3697
        mmap private not fixed
1830
3704
   back from the file, nor mmap's back from the file at a different
1831
3705
   address.  (There have been systems where private was not correctly
1832
3706
   implemented like the infamous i386 svr4.0, and systems where the
1833
 
   VM page cache was not coherent with the filesystem buffer cache
 
3707
   VM page cache was not coherent with the file system buffer cache
1834
3708
   like early versions of FreeBSD and possibly contemporary NetBSD.)
1835
3709
   For shared mappings, we should conversely verify that changes get
1836
3710
   propogated back to all the places they're supposed to be.
1839
3713
   The main things grep needs to know about mmap are:
1840
3714
   * does it exist and is it safe to write into the mmap'd area
1841
3715
   * how to use it (BSD variants)  */
1842
 
#include <sys/types.h>
 
3716
 
1843
3717
#include <fcntl.h>
1844
3718
#include <sys/mman.h>
1845
3719
 
 
3720
#if !STDC_HEADERS && !HAVE_STDLIB_H
 
3721
char *malloc ();
 
3722
#endif
 
3723
 
1846
3724
/* This mess was copied from the GNU getpagesize.h.  */
1847
 
#ifndef HAVE_GETPAGESIZE
1848
 
# ifdef HAVE_UNISTD_H
1849
 
#  include <unistd.h>
1850
 
# endif
1851
 
 
 
3725
#if !HAVE_GETPAGESIZE
1852
3726
/* Assume that all systems that can run configure have sys/param.h.  */
1853
 
# ifndef HAVE_SYS_PARAM_H
 
3727
# if !HAVE_SYS_PARAM_H
1854
3728
#  define HAVE_SYS_PARAM_H 1
1855
3729
# endif
1856
3730
 
1857
3731
# ifdef _SC_PAGESIZE
1858
3732
#  define getpagesize() sysconf(_SC_PAGESIZE)
1859
3733
# else /* no _SC_PAGESIZE */
1860
 
#  ifdef HAVE_SYS_PARAM_H
 
3734
#  if HAVE_SYS_PARAM_H
1861
3735
#   include <sys/param.h>
1862
3736
#   ifdef EXEC_PAGESIZE
1863
3737
#    define getpagesize() EXEC_PAGESIZE
1884
3758
 
1885
3759
#endif /* no HAVE_GETPAGESIZE */
1886
3760
 
1887
 
#ifdef __cplusplus
1888
 
extern "C" { void *malloc(unsigned); }
1889
 
#else
1890
 
char *malloc();
1891
 
#endif
1892
 
 
1893
3761
int
1894
 
main()
 
3762
main ()
1895
3763
{
1896
 
        char *data, *data2, *data3;
1897
 
        int i, pagesize;
1898
 
        int fd;
1899
 
 
1900
 
        pagesize = getpagesize();
1901
 
 
1902
 
        /*
1903
 
         * First, make a file with some known garbage in it.
1904
 
         */
1905
 
        data = malloc(pagesize);
1906
 
        if (!data)
1907
 
                exit(1);
1908
 
        for (i = 0; i < pagesize; ++i)
1909
 
                *(data + i) = rand();
1910
 
        umask(0);
1911
 
        fd = creat("conftestmmap", 0600);
1912
 
        if (fd < 0)
1913
 
                exit(1);
1914
 
        if (write(fd, data, pagesize) != pagesize)
1915
 
                exit(1);
1916
 
        close(fd);
1917
 
 
1918
 
        /*
1919
 
         * Next, try to mmap the file at a fixed address which
1920
 
         * already has something else allocated at it.  If we can,
1921
 
         * also make sure that we see the same garbage.
1922
 
         */
1923
 
        fd = open("conftestmmap", O_RDWR);
1924
 
        if (fd < 0)
1925
 
                exit(1);
1926
 
        data2 = malloc(2 * pagesize);
1927
 
        if (!data2)
1928
 
                exit(1);
1929
 
        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1930
 
        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1931
 
            MAP_PRIVATE | MAP_FIXED, fd, 0L))
1932
 
                exit(1);
1933
 
        for (i = 0; i < pagesize; ++i)
1934
 
                if (*(data + i) != *(data2 + i))
1935
 
                        exit(1);
1936
 
 
1937
 
        /*
1938
 
         * Finally, make sure that changes to the mapped area
1939
 
         * do not percolate back to the file as seen by read().
1940
 
         * (This is a bug on some variants of i386 svr4.0.)
1941
 
         */
1942
 
        for (i = 0; i < pagesize; ++i)
1943
 
                *(data2 + i) = *(data2 + i) + 1;
1944
 
        data3 = malloc(pagesize);
1945
 
        if (!data3)
1946
 
                exit(1);
1947
 
        if (read(fd, data3, pagesize) != pagesize)
1948
 
                exit(1);
1949
 
        for (i = 0; i < pagesize; ++i)
1950
 
                if (*(data + i) != *(data3 + i))
1951
 
                        exit(1);
1952
 
        close(fd);
1953
 
        unlink("conftestmmap");
1954
 
        exit(0);
 
3764
  char *data, *data2, *data3;
 
3765
  int i, pagesize;
 
3766
  int fd;
 
3767
 
 
3768
  pagesize = getpagesize ();
 
3769
 
 
3770
  /* First, make a file with some known garbage in it. */
 
3771
  data = (char *) malloc (pagesize);
 
3772
  if (!data)
 
3773
    exit (1);
 
3774
  for (i = 0; i < pagesize; ++i)
 
3775
    *(data + i) = rand ();
 
3776
  umask (0);
 
3777
  fd = creat ("conftest.mmap", 0600);
 
3778
  if (fd < 0)
 
3779
    exit (1);
 
3780
  if (write (fd, data, pagesize) != pagesize)
 
3781
    exit (1);
 
3782
  close (fd);
 
3783
 
 
3784
  /* Next, try to mmap the file at a fixed address which already has
 
3785
     something else allocated at it.  If we can, also make sure that
 
3786
     we see the same garbage.  */
 
3787
  fd = open ("conftest.mmap", O_RDWR);
 
3788
  if (fd < 0)
 
3789
    exit (1);
 
3790
  data2 = (char *) malloc (2 * pagesize);
 
3791
  if (!data2)
 
3792
    exit (1);
 
3793
  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
 
3794
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
 
3795
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
3796
    exit (1);
 
3797
  for (i = 0; i < pagesize; ++i)
 
3798
    if (*(data + i) != *(data2 + i))
 
3799
      exit (1);
 
3800
 
 
3801
  /* Finally, make sure that changes to the mapped area do not
 
3802
     percolate back to the file as seen by read().  (This is a bug on
 
3803
     some variants of i386 svr4.0.)  */
 
3804
  for (i = 0; i < pagesize; ++i)
 
3805
    *(data2 + i) = *(data2 + i) + 1;
 
3806
  data3 = (char *) malloc (pagesize);
 
3807
  if (!data3)
 
3808
    exit (1);
 
3809
  if (read (fd, data3, pagesize) != pagesize)
 
3810
    exit (1);
 
3811
  for (i = 0; i < pagesize; ++i)
 
3812
    if (*(data + i) != *(data3 + i))
 
3813
      exit (1);
 
3814
  close (fd);
 
3815
  exit (0);
1955
3816
}
1956
 
 
1957
 
EOF
1958
 
if { (eval echo configure:1959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1959
 
then
 
3817
_ACEOF
 
3818
rm -f conftest$ac_exeext
 
3819
if { (eval echo "$as_me:3819: \"$ac_link\"") >&5
 
3820
  (eval $ac_link) 2>&5
 
3821
  ac_status=$?
 
3822
  echo "$as_me:3822: \$? = $ac_status" >&5
 
3823
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3824
  { (eval echo "$as_me:3824: \"$ac_try\"") >&5
 
3825
  (eval $ac_try) 2>&5
 
3826
  ac_status=$?
 
3827
  echo "$as_me:3827: \$? = $ac_status" >&5
 
3828
  (exit $ac_status); }; }; then
1960
3829
  ac_cv_func_mmap_fixed_mapped=yes
1961
3830
else
1962
 
  echo "configure: failed program was:" >&5
1963
 
  cat conftest.$ac_ext >&5
1964
 
  rm -fr conftest*
1965
 
  ac_cv_func_mmap_fixed_mapped=no
1966
 
fi
1967
 
rm -fr conftest*
1968
 
fi
1969
 
 
1970
 
fi
1971
 
 
1972
 
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
 
3831
  echo "$as_me: program exited with status $ac_status" >&5
 
3832
echo "$as_me: failed program was:" >&5
 
3833
cat conftest.$ac_ext >&5
 
3834
ac_cv_func_mmap_fixed_mapped=no
 
3835
fi
 
3836
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3837
fi
 
3838
fi
 
3839
echo "$as_me:3839: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
3840
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
1973
3841
if test $ac_cv_func_mmap_fixed_mapped = yes; then
1974
 
  cat >> confdefs.h <<\EOF
 
3842
 
 
3843
cat >>confdefs.h <<\EOF
1975
3844
#define HAVE_MMAP 1
1976
3845
EOF
1977
3846
 
1978
3847
fi
1979
 
 
1980
 
 
1981
 
    echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
1982
 
echo "configure:1983: checking whether we are using the GNU C Library 2.1 or newer" >&5
1983
 
if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
1984
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3848
rm -f conftest.mmap
 
3849
 
 
3850
    echo "$as_me:3850: checking whether we are using the GNU C Library 2.1 or newer" >&5
 
3851
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
 
3852
if test "${ac_cv_gnu_library_2_1+set}" = set; then
 
3853
  echo $ECHO_N "(cached) $ECHO_C" >&6
1985
3854
else
1986
 
  cat > conftest.$ac_ext <<EOF
1987
 
#line 1988 "configure"
 
3855
  cat >conftest.$ac_ext <<_ACEOF
 
3856
#line 3856 "configure"
1988
3857
#include "confdefs.h"
1989
3858
 
1990
3859
#include <features.h>
1993
3862
  Lucky GNU user
1994
3863
 #endif
1995
3864
#endif
1996
 
        
1997
 
EOF
 
3865
 
 
3866
_ACEOF
1998
3867
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1999
3868
  egrep "Lucky GNU user" >/dev/null 2>&1; then
2000
 
  rm -rf conftest*
2001
3869
  ac_cv_gnu_library_2_1=yes
2002
3870
else
2003
 
  rm -rf conftest*
2004
3871
  ac_cv_gnu_library_2_1=no
2005
3872
fi
2006
3873
rm -f conftest*
2007
3874
 
2008
 
      
2009
 
    
2010
3875
fi
 
3876
echo "$as_me:3876: result: $ac_cv_gnu_library_2_1" >&5
 
3877
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
2011
3878
 
2012
 
echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2013
 
    
2014
3879
    GLIBC21="$ac_cv_gnu_library_2_1"
2015
 
  
2016
 
 
2017
 
                                    
2018
 
   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2019
 
stdlib.h string.h unistd.h sys/param.h
2020
 
do
2021
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2022
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2023
 
echo "configure:2024: checking for $ac_hdr" >&5
2024
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2025
 
  echo $ac_n "(cached) $ac_c" 1>&6
2026
 
else
2027
 
  cat > conftest.$ac_ext <<EOF
2028
 
#line 2029 "configure"
2029
 
#include "confdefs.h"
2030
 
#include <$ac_hdr>
2031
 
EOF
2032
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2033
 
{ (eval echo configure:2034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2034
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2035
 
if test -z "$ac_err"; then
2036
 
  rm -rf conftest*
2037
 
  eval "ac_cv_header_$ac_safe=yes"
2038
 
else
2039
 
  echo "$ac_err" >&5
2040
 
  echo "configure: failed program was:" >&5
2041
 
  cat conftest.$ac_ext >&5
2042
 
  rm -rf conftest*
2043
 
  eval "ac_cv_header_$ac_safe=no"
2044
 
fi
2045
 
rm -f conftest*
2046
 
fi
2047
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2048
 
  echo "$ac_t""yes" 1>&6
2049
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2050
 
  cat >> confdefs.h <<EOF
2051
 
#define $ac_tr_hdr 1
2052
 
EOF
2053
 
 
2054
 
else
2055
 
  echo "$ac_t""no" 1>&6
2056
 
fi
2057
 
done
2058
 
 
2059
 
   for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2060
 
getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2061
 
strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2062
 
do
2063
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2064
 
echo "configure:2065: checking for $ac_func" >&5
2065
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2066
 
  echo $ac_n "(cached) $ac_c" 1>&6
2067
 
else
2068
 
  cat > conftest.$ac_ext <<EOF
2069
 
#line 2070 "configure"
2070
 
#include "confdefs.h"
2071
 
/* System header to define __stub macros and hopefully few prototypes,
2072
 
    which can conflict with char $ac_func(); below.  */
2073
 
#include <assert.h>
2074
 
/* Override any gcc2 internal prototype to avoid an error.  */
2075
 
/* We use char because int might match the return type of a gcc2
2076
 
    builtin and then its argument prototype would still apply.  */
2077
 
char $ac_func();
2078
 
 
2079
 
int main() {
2080
 
 
2081
 
/* The GNU C library defines this for functions which it implements
2082
 
    to always fail with ENOSYS.  Some functions are actually named
2083
 
    something starting with __ and the normal name is an alias.  */
2084
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2085
 
choke me
2086
 
#else
2087
 
$ac_func();
2088
 
#endif
2089
 
 
2090
 
; return 0; }
2091
 
EOF
2092
 
if { (eval echo configure:2093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2093
 
  rm -rf conftest*
2094
 
  eval "ac_cv_func_$ac_func=yes"
2095
 
else
2096
 
  echo "configure: failed program was:" >&5
2097
 
  cat conftest.$ac_ext >&5
2098
 
  rm -rf conftest*
2099
 
  eval "ac_cv_func_$ac_func=no"
2100
 
fi
2101
 
rm -f conftest*
2102
 
fi
2103
 
 
2104
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2105
 
  echo "$ac_t""yes" 1>&6
2106
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2107
 
  cat >> confdefs.h <<EOF
2108
 
#define $ac_tr_func 1
2109
 
EOF
2110
 
 
2111
 
else
2112
 
  echo "$ac_t""no" 1>&6
2113
 
fi
2114
 
done
2115
 
 
2116
 
 
2117
 
   
2118
 
    
2119
 
  # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
 
3880
 
 
3881
      if test "X$prefix" = "XNONE"; then
 
3882
    acl_final_prefix="$ac_default_prefix"
 
3883
  else
 
3884
    acl_final_prefix="$prefix"
 
3885
  fi
 
3886
  if test "X$exec_prefix" = "XNONE"; then
 
3887
    acl_final_exec_prefix='${prefix}'
 
3888
  else
 
3889
    acl_final_exec_prefix="$exec_prefix"
 
3890
  fi
 
3891
  acl_save_prefix="$prefix"
 
3892
  prefix="$acl_final_prefix"
 
3893
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
3894
  prefix="$acl_save_prefix"
 
3895
 
 
3896
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3897
if test "${with_gnu_ld+set}" = set; then
 
3898
  withval="$with_gnu_ld"
 
3899
  test "$withval" = no || with_gnu_ld=yes
 
3900
else
 
3901
  with_gnu_ld=no
 
3902
fi;
 
3903
ac_prog=ld
 
3904
if test "$GCC" = yes; then
 
3905
  # Check if gcc -print-prog-name=ld gives a path.
 
3906
  echo "$as_me:3906: checking for ld used by GCC" >&5
 
3907
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
3908
  case $host in
 
3909
  *-*-mingw*)
 
3910
    # gcc leaves a trailing carriage return which upsets mingw
 
3911
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3912
  *)
 
3913
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3914
  esac
 
3915
  case $ac_prog in
 
3916
    # Accept absolute paths.
 
3917
    [\\/]* | [A-Za-z]:[\\/]*)
 
3918
      re_direlt='/[^/][^/]*/\.\./'
 
3919
      # Canonicalize the path of ld
 
3920
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
3921
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3922
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
3923
      done
 
3924
      test -z "$LD" && LD="$ac_prog"
 
3925
      ;;
 
3926
  "")
 
3927
    # If it fails, then pretend we aren't using GCC.
 
3928
    ac_prog=ld
 
3929
    ;;
 
3930
  *)
 
3931
    # If it is relative, then search for the first ld in PATH.
 
3932
    with_gnu_ld=unknown
 
3933
    ;;
 
3934
  esac
 
3935
elif test "$with_gnu_ld" = yes; then
 
3936
  echo "$as_me:3936: checking for GNU ld" >&5
 
3937
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
3938
else
 
3939
  echo "$as_me:3939: checking for non-GNU ld" >&5
 
3940
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
3941
fi
 
3942
if test "${acl_cv_path_LD+set}" = set; then
 
3943
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3944
else
 
3945
  if test -z "$LD"; then
 
3946
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
3947
  for ac_dir in $PATH; do
 
3948
    test -z "$ac_dir" && ac_dir=.
 
3949
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3950
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
3951
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3952
      # but apparently some GNU ld's only accept -v.
 
3953
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3954
      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
3955
        test "$with_gnu_ld" != no && break
 
3956
      else
 
3957
        test "$with_gnu_ld" != yes && break
 
3958
      fi
 
3959
    fi
 
3960
  done
 
3961
  IFS="$ac_save_ifs"
 
3962
else
 
3963
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
3964
fi
 
3965
fi
 
3966
 
 
3967
LD="$acl_cv_path_LD"
 
3968
if test -n "$LD"; then
 
3969
  echo "$as_me:3969: result: $LD" >&5
 
3970
echo "${ECHO_T}$LD" >&6
 
3971
else
 
3972
  echo "$as_me:3972: result: no" >&5
 
3973
echo "${ECHO_T}no" >&6
 
3974
fi
 
3975
test -z "$LD" && { { echo "$as_me:3975: error: no acceptable ld found in \$PATH" >&5
 
3976
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3977
   { (exit 1); exit 1; }; }
 
3978
echo "$as_me:3978: checking if the linker ($LD) is GNU ld" >&5
 
3979
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3980
if test "${acl_cv_prog_gnu_ld+set}" = set; then
 
3981
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3982
else
 
3983
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3984
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
3985
  acl_cv_prog_gnu_ld=yes
 
3986
else
 
3987
  acl_cv_prog_gnu_ld=no
 
3988
fi
 
3989
fi
 
3990
echo "$as_me:3990: result: $acl_cv_prog_gnu_ld" >&5
 
3991
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
 
3992
with_gnu_ld=$acl_cv_prog_gnu_ld
 
3993
 
 
3994
                                                echo "$as_me:3994: checking for shared library run path origin" >&5
 
3995
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
 
3996
if test "${acl_cv_rpath+set}" = set; then
 
3997
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3998
else
 
3999
 
 
4000
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
4001
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
4002
    . ./conftest.sh
 
4003
    rm -f ./conftest.sh
 
4004
    acl_cv_rpath=done
 
4005
 
 
4006
fi
 
4007
echo "$as_me:4007: result: $acl_cv_rpath" >&5
 
4008
echo "${ECHO_T}$acl_cv_rpath" >&6
 
4009
  wl="$acl_cv_wl"
 
4010
  libext="$acl_cv_libext"
 
4011
  shlibext="$acl_cv_shlibext"
 
4012
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
4013
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
4014
  hardcode_direct="$acl_cv_hardcode_direct"
 
4015
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
4016
  sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
 
4017
  sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
 
4018
 
 
4019
    use_additional=yes
 
4020
 
 
4021
  acl_save_prefix="$prefix"
 
4022
  prefix="$acl_final_prefix"
 
4023
  acl_save_exec_prefix="$exec_prefix"
 
4024
  exec_prefix="$acl_final_exec_prefix"
 
4025
 
 
4026
    eval additional_includedir=\"$includedir\"
 
4027
    eval additional_libdir=\"$libdir\"
 
4028
 
 
4029
  exec_prefix="$acl_save_exec_prefix"
 
4030
  prefix="$acl_save_prefix"
 
4031
 
 
4032
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2120
4033
if test "${with_libiconv_prefix+set}" = set; then
2121
4034
  withval="$with_libiconv_prefix"
2122
 
  
2123
 
    for dir in `echo "$withval" | tr : ' '`; do
2124
 
      if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2125
 
      if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2126
 
    done
2127
 
   
2128
 
fi
2129
 
 
2130
 
 
2131
 
  echo $ac_n "checking for iconv""... $ac_c" 1>&6
2132
 
echo "configure:2133: checking for iconv" >&5
2133
 
if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2134
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
4035
 
 
4036
    if test "X$withval" = "Xno"; then
 
4037
      use_additional=no
 
4038
    else
 
4039
      if test "X$withval" = "X"; then
 
4040
 
 
4041
  acl_save_prefix="$prefix"
 
4042
  prefix="$acl_final_prefix"
 
4043
  acl_save_exec_prefix="$exec_prefix"
 
4044
  exec_prefix="$acl_final_exec_prefix"
 
4045
 
 
4046
          eval additional_includedir=\"$includedir\"
 
4047
          eval additional_libdir=\"$libdir\"
 
4048
 
 
4049
  exec_prefix="$acl_save_exec_prefix"
 
4050
  prefix="$acl_save_prefix"
 
4051
 
 
4052
      else
 
4053
        additional_includedir="$withval/include"
 
4054
        additional_libdir="$withval/lib"
 
4055
      fi
 
4056
    fi
 
4057
 
 
4058
fi;
 
4059
      LIBICONV=
 
4060
  LTLIBICONV=
 
4061
  INCICONV=
 
4062
  rpathdirs=
 
4063
  ltrpathdirs=
 
4064
  names_already_handled=
 
4065
  names_next_round='iconv '
 
4066
  while test -n "$names_next_round"; do
 
4067
    names_this_round="$names_next_round"
 
4068
    names_next_round=
 
4069
    for name in $names_this_round; do
 
4070
      already_handled=
 
4071
      for n in $names_already_handled; do
 
4072
        if test "$n" = "$name"; then
 
4073
          already_handled=yes
 
4074
          break
 
4075
        fi
 
4076
      done
 
4077
      if test -z "$already_handled"; then
 
4078
        names_already_handled="$names_already_handled $name"
 
4079
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
4080
        eval value=\"\$HAVE_LIB$uppername\"
 
4081
        if test -n "$value"; then
 
4082
          if test "$value" = yes; then
 
4083
            eval value=\"\$LIB$uppername\"
 
4084
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
4085
            eval value=\"\$LTLIB$uppername\"
 
4086
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
4087
          else
 
4088
                                    :
 
4089
          fi
 
4090
        else
 
4091
                              found_dir=
 
4092
          found_la=
 
4093
          found_so=
 
4094
          found_a=
 
4095
          if test $use_additional = yes; then
 
4096
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
4097
              found_dir="$additional_libdir"
 
4098
              found_so="$additional_libdir/lib$name.$shlibext"
 
4099
              if test -f "$additional_libdir/lib$name.la"; then
 
4100
                found_la="$additional_libdir/lib$name.la"
 
4101
              fi
 
4102
            else
 
4103
              if test -f "$additional_libdir/lib$name.$libext"; then
 
4104
                found_dir="$additional_libdir"
 
4105
                found_a="$additional_libdir/lib$name.$libext"
 
4106
                if test -f "$additional_libdir/lib$name.la"; then
 
4107
                  found_la="$additional_libdir/lib$name.la"
 
4108
                fi
 
4109
              fi
 
4110
            fi
 
4111
          fi
 
4112
          if test "X$found_dir" = "X"; then
 
4113
            for x in $LDFLAGS $LTLIBICONV; do
 
4114
 
 
4115
  acl_save_prefix="$prefix"
 
4116
  prefix="$acl_final_prefix"
 
4117
  acl_save_exec_prefix="$exec_prefix"
 
4118
  exec_prefix="$acl_final_exec_prefix"
 
4119
  eval x=\"$x\"
 
4120
  exec_prefix="$acl_save_exec_prefix"
 
4121
  prefix="$acl_save_prefix"
 
4122
 
 
4123
              case "$x" in
 
4124
                -L*)
 
4125
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
4126
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
4127
                    found_dir="$dir"
 
4128
                    found_so="$dir/lib$name.$shlibext"
 
4129
                    if test -f "$dir/lib$name.la"; then
 
4130
                      found_la="$dir/lib$name.la"
 
4131
                    fi
 
4132
                  else
 
4133
                    if test -f "$dir/lib$name.$libext"; then
 
4134
                      found_dir="$dir"
 
4135
                      found_a="$dir/lib$name.$libext"
 
4136
                      if test -f "$dir/lib$name.la"; then
 
4137
                        found_la="$dir/lib$name.la"
 
4138
                      fi
 
4139
                    fi
 
4140
                  fi
 
4141
                  ;;
 
4142
              esac
 
4143
              if test "X$found_dir" != "X"; then
 
4144
                break
 
4145
              fi
 
4146
            done
 
4147
          fi
 
4148
          if test "X$found_dir" != "X"; then
 
4149
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
4150
            if test "X$found_so" != "X"; then
 
4151
                                                        if test "X$found_dir" = "X/usr/lib"; then
 
4152
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
4153
              else
 
4154
                                                                                haveit=
 
4155
                for x in $ltrpathdirs; do
 
4156
                  if test "X$x" = "X$found_dir"; then
 
4157
                    haveit=yes
 
4158
                    break
 
4159
                  fi
 
4160
                done
 
4161
                if test -z "$haveit"; then
 
4162
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
4163
                fi
 
4164
                                if test "$hardcode_direct" = yes; then
 
4165
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
4166
                else
 
4167
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
4168
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
4169
                                                            haveit=
 
4170
                    for x in $rpathdirs; do
 
4171
                      if test "X$x" = "X$found_dir"; then
 
4172
                        haveit=yes
 
4173
                        break
 
4174
                      fi
 
4175
                    done
 
4176
                    if test -z "$haveit"; then
 
4177
                      rpathdirs="$rpathdirs $found_dir"
 
4178
                    fi
 
4179
                  else
 
4180
                                                                                haveit=
 
4181
                    for x in $LDFLAGS $LIBICONV; do
 
4182
 
 
4183
  acl_save_prefix="$prefix"
 
4184
  prefix="$acl_final_prefix"
 
4185
  acl_save_exec_prefix="$exec_prefix"
 
4186
  exec_prefix="$acl_final_exec_prefix"
 
4187
  eval x=\"$x\"
 
4188
  exec_prefix="$acl_save_exec_prefix"
 
4189
  prefix="$acl_save_prefix"
 
4190
 
 
4191
                      if test "X$x" = "X-L$found_dir"; then
 
4192
                        haveit=yes
 
4193
                        break
 
4194
                      fi
 
4195
                    done
 
4196
                    if test -z "$haveit"; then
 
4197
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
4198
                    fi
 
4199
                    if test "$hardcode_minus_L" != no; then
 
4200
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
4201
                    else
 
4202
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
4203
                    fi
 
4204
                  fi
 
4205
                fi
 
4206
              fi
 
4207
            else
 
4208
              if test "X$found_a" != "X"; then
 
4209
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
4210
              else
 
4211
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
4212
              fi
 
4213
            fi
 
4214
                        additional_includedir=
 
4215
            case "$found_dir" in
 
4216
              */lib | */lib/)
 
4217
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
4218
                additional_includedir="$basedir/include"
 
4219
                ;;
 
4220
            esac
 
4221
            if test "X$additional_includedir" != "X"; then
 
4222
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
4223
                haveit=
 
4224
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
4225
                  if test -n "$GCC"; then
 
4226
                    case $host_os in
 
4227
                      linux*) haveit=yes;;
 
4228
                    esac
 
4229
                  fi
 
4230
                fi
 
4231
                if test -z "$haveit"; then
 
4232
                  for x in $CPPFLAGS $INCICONV; do
 
4233
 
 
4234
  acl_save_prefix="$prefix"
 
4235
  prefix="$acl_final_prefix"
 
4236
  acl_save_exec_prefix="$exec_prefix"
 
4237
  exec_prefix="$acl_final_exec_prefix"
 
4238
  eval x=\"$x\"
 
4239
  exec_prefix="$acl_save_exec_prefix"
 
4240
  prefix="$acl_save_prefix"
 
4241
 
 
4242
                    if test "X$x" = "X-I$additional_includedir"; then
 
4243
                      haveit=yes
 
4244
                      break
 
4245
                    fi
 
4246
                  done
 
4247
                  if test -z "$haveit"; then
 
4248
                    if test -d "$additional_includedir"; then
 
4249
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
4250
                    fi
 
4251
                  fi
 
4252
                fi
 
4253
              fi
 
4254
            fi
 
4255
                        if test -n "$found_la"; then
 
4256
                                                        save_libdir="$libdir"
 
4257
              case "$found_la" in
 
4258
                */* | *\\*) . "$found_la" ;;
 
4259
                *) . "./$found_la" ;;
 
4260
              esac
 
4261
              libdir="$save_libdir"
 
4262
                            for dep in $dependency_libs; do
 
4263
                case "$dep" in
 
4264
                  -L*)
 
4265
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
4266
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
4267
                      haveit=
 
4268
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
4269
                        if test -n "$GCC"; then
 
4270
                          case $host_os in
 
4271
                            linux*) haveit=yes;;
 
4272
                          esac
 
4273
                        fi
 
4274
                      fi
 
4275
                      if test -z "$haveit"; then
 
4276
                        haveit=
 
4277
                        for x in $LDFLAGS $LIBICONV; do
 
4278
 
 
4279
  acl_save_prefix="$prefix"
 
4280
  prefix="$acl_final_prefix"
 
4281
  acl_save_exec_prefix="$exec_prefix"
 
4282
  exec_prefix="$acl_final_exec_prefix"
 
4283
  eval x=\"$x\"
 
4284
  exec_prefix="$acl_save_exec_prefix"
 
4285
  prefix="$acl_save_prefix"
 
4286
 
 
4287
                          if test "X$x" = "X-L$additional_libdir"; then
 
4288
                            haveit=yes
 
4289
                            break
 
4290
                          fi
 
4291
                        done
 
4292
                        if test -z "$haveit"; then
 
4293
                          if test -d "$additional_libdir"; then
 
4294
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
4295
                          fi
 
4296
                        fi
 
4297
                        haveit=
 
4298
                        for x in $LDFLAGS $LTLIBICONV; do
 
4299
 
 
4300
  acl_save_prefix="$prefix"
 
4301
  prefix="$acl_final_prefix"
 
4302
  acl_save_exec_prefix="$exec_prefix"
 
4303
  exec_prefix="$acl_final_exec_prefix"
 
4304
  eval x=\"$x\"
 
4305
  exec_prefix="$acl_save_exec_prefix"
 
4306
  prefix="$acl_save_prefix"
 
4307
 
 
4308
                          if test "X$x" = "X-L$additional_libdir"; then
 
4309
                            haveit=yes
 
4310
                            break
 
4311
                          fi
 
4312
                        done
 
4313
                        if test -z "$haveit"; then
 
4314
                          if test -d "$additional_libdir"; then
 
4315
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
4316
                          fi
 
4317
                        fi
 
4318
                      fi
 
4319
                    fi
 
4320
                    ;;
 
4321
                  -R*)
 
4322
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
4323
                                                            haveit=
 
4324
                    for x in $rpathdirs; do
 
4325
                      if test "X$x" = "X$dir"; then
 
4326
                        haveit=yes
 
4327
                        break
 
4328
                      fi
 
4329
                    done
 
4330
                    if test -z "$haveit"; then
 
4331
                      rpathdirs="$rpathdirs $dir"
 
4332
                    fi
 
4333
                                                            haveit=
 
4334
                    for x in $ltrpathdirs; do
 
4335
                      if test "X$x" = "X$dir"; then
 
4336
                        haveit=yes
 
4337
                        break
 
4338
                      fi
 
4339
                    done
 
4340
                    if test -z "$haveit"; then
 
4341
                      ltrpathdirs="$ltrpathdirs $dir"
 
4342
                    fi
 
4343
                    ;;
 
4344
                  -l*)
 
4345
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
4346
                    ;;
 
4347
                  *.la)
 
4348
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
4349
                    ;;
 
4350
                  *)
 
4351
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
4352
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
4353
                    ;;
 
4354
                esac
 
4355
              done
 
4356
            fi
 
4357
          else
 
4358
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
4359
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
4360
          fi
 
4361
        fi
 
4362
      fi
 
4363
    done
 
4364
  done
 
4365
  if test "X$rpathdirs" != "X"; then
 
4366
    if test -n "$hardcode_libdir_separator"; then
 
4367
                        alldirs=
 
4368
      for found_dir in $rpathdirs; do
 
4369
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
4370
      done
 
4371
            acl_save_libdir="$libdir"
 
4372
      libdir="$alldirs"
 
4373
      eval flag=\"$hardcode_libdir_flag_spec\"
 
4374
      libdir="$acl_save_libdir"
 
4375
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
4376
    else
 
4377
            for found_dir in $rpathdirs; do
 
4378
        acl_save_libdir="$libdir"
 
4379
        libdir="$found_dir"
 
4380
        eval flag=\"$hardcode_libdir_flag_spec\"
 
4381
        libdir="$acl_save_libdir"
 
4382
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
4383
      done
 
4384
    fi
 
4385
  fi
 
4386
  if test "X$ltrpathdirs" != "X"; then
 
4387
            for found_dir in $ltrpathdirs; do
 
4388
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
4389
    done
 
4390
  fi
 
4391
 
 
4392
          am_save_CPPFLAGS="$CPPFLAGS"
 
4393
 
 
4394
  for element in $INCICONV; do
 
4395
    haveit=
 
4396
    for x in $CPPFLAGS; do
 
4397
 
 
4398
  acl_save_prefix="$prefix"
 
4399
  prefix="$acl_final_prefix"
 
4400
  acl_save_exec_prefix="$exec_prefix"
 
4401
  exec_prefix="$acl_final_exec_prefix"
 
4402
  eval x=\"$x\"
 
4403
  exec_prefix="$acl_save_exec_prefix"
 
4404
  prefix="$acl_save_prefix"
 
4405
 
 
4406
      if test "X$x" = "X$element"; then
 
4407
        haveit=yes
 
4408
        break
 
4409
      fi
 
4410
    done
 
4411
    if test -z "$haveit"; then
 
4412
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
4413
    fi
 
4414
  done
 
4415
 
 
4416
  echo "$as_me:4416: checking for iconv" >&5
 
4417
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
 
4418
if test "${am_cv_func_iconv+set}" = set; then
 
4419
  echo $ECHO_N "(cached) $ECHO_C" >&6
2135
4420
else
2136
 
  
 
4421
 
2137
4422
    am_cv_func_iconv="no, consider installing GNU libiconv"
2138
4423
    am_cv_lib_iconv=no
2139
 
    cat > conftest.$ac_ext <<EOF
2140
 
#line 2141 "configure"
 
4424
    cat >conftest.$ac_ext <<_ACEOF
 
4425
#line 4425 "configure"
2141
4426
#include "confdefs.h"
2142
4427
#include <stdlib.h>
2143
4428
#include <iconv.h>
2144
 
int main() {
 
4429
int
 
4430
main ()
 
4431
{
2145
4432
iconv_t cd = iconv_open("","");
2146
4433
       iconv(cd,NULL,NULL,NULL,NULL);
2147
4434
       iconv_close(cd);
2148
 
; return 0; }
2149
 
EOF
2150
 
if { (eval echo configure:2151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2151
 
  rm -rf conftest*
 
4435
  ;
 
4436
  return 0;
 
4437
}
 
4438
_ACEOF
 
4439
rm -f conftest.$ac_objext conftest$ac_exeext
 
4440
if { (eval echo "$as_me:4440: \"$ac_link\"") >&5
 
4441
  (eval $ac_link) 2>&5
 
4442
  ac_status=$?
 
4443
  echo "$as_me:4443: \$? = $ac_status" >&5
 
4444
  (exit $ac_status); } &&
 
4445
         { ac_try='test -s conftest$ac_exeext'
 
4446
  { (eval echo "$as_me:4446: \"$ac_try\"") >&5
 
4447
  (eval $ac_try) 2>&5
 
4448
  ac_status=$?
 
4449
  echo "$as_me:4449: \$? = $ac_status" >&5
 
4450
  (exit $ac_status); }; }; then
2152
4451
  am_cv_func_iconv=yes
2153
4452
else
2154
 
  echo "configure: failed program was:" >&5
2155
 
  cat conftest.$ac_ext >&5
 
4453
  echo "$as_me: failed program was:" >&5
 
4454
cat conftest.$ac_ext >&5
2156
4455
fi
2157
 
rm -f conftest*
 
4456
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2158
4457
    if test "$am_cv_func_iconv" != yes; then
2159
4458
      am_save_LIBS="$LIBS"
2160
 
      LIBS="$LIBS -liconv"
2161
 
      cat > conftest.$ac_ext <<EOF
2162
 
#line 2163 "configure"
 
4459
      LIBS="$LIBS $LIBICONV"
 
4460
      cat >conftest.$ac_ext <<_ACEOF
 
4461
#line 4461 "configure"
2163
4462
#include "confdefs.h"
2164
4463
#include <stdlib.h>
2165
4464
#include <iconv.h>
2166
 
int main() {
 
4465
int
 
4466
main ()
 
4467
{
2167
4468
iconv_t cd = iconv_open("","");
2168
4469
         iconv(cd,NULL,NULL,NULL,NULL);
2169
4470
         iconv_close(cd);
2170
 
; return 0; }
2171
 
EOF
2172
 
if { (eval echo configure:2173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2173
 
  rm -rf conftest*
 
4471
  ;
 
4472
  return 0;
 
4473
}
 
4474
_ACEOF
 
4475
rm -f conftest.$ac_objext conftest$ac_exeext
 
4476
if { (eval echo "$as_me:4476: \"$ac_link\"") >&5
 
4477
  (eval $ac_link) 2>&5
 
4478
  ac_status=$?
 
4479
  echo "$as_me:4479: \$? = $ac_status" >&5
 
4480
  (exit $ac_status); } &&
 
4481
         { ac_try='test -s conftest$ac_exeext'
 
4482
  { (eval echo "$as_me:4482: \"$ac_try\"") >&5
 
4483
  (eval $ac_try) 2>&5
 
4484
  ac_status=$?
 
4485
  echo "$as_me:4485: \$? = $ac_status" >&5
 
4486
  (exit $ac_status); }; }; then
2174
4487
  am_cv_lib_iconv=yes
2175
4488
        am_cv_func_iconv=yes
2176
4489
else
2177
 
  echo "configure: failed program was:" >&5
2178
 
  cat conftest.$ac_ext >&5
 
4490
  echo "$as_me: failed program was:" >&5
 
4491
cat conftest.$ac_ext >&5
2179
4492
fi
2180
 
rm -f conftest*
 
4493
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2181
4494
      LIBS="$am_save_LIBS"
2182
4495
    fi
2183
 
  
 
4496
 
2184
4497
fi
2185
 
 
2186
 
echo "$ac_t""$am_cv_func_iconv" 1>&6
 
4498
echo "$as_me:4498: result: $am_cv_func_iconv" >&5
 
4499
echo "${ECHO_T}$am_cv_func_iconv" >&6
2187
4500
  if test "$am_cv_func_iconv" = yes; then
2188
 
    cat >> confdefs.h <<\EOF
 
4501
 
 
4502
cat >>confdefs.h <<\EOF
2189
4503
#define HAVE_ICONV 1
2190
4504
EOF
2191
4505
 
2192
 
    echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2193
 
echo "configure:2194: checking for iconv declaration" >&5
2194
 
    if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2195
 
  echo $ac_n "(cached) $ac_c" 1>&6
2196
 
else
2197
 
  
2198
 
      cat > conftest.$ac_ext <<EOF
2199
 
#line 2200 "configure"
 
4506
  fi
 
4507
  if test "$am_cv_lib_iconv" = yes; then
 
4508
    echo "$as_me:4508: checking how to link with libiconv" >&5
 
4509
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
 
4510
    echo "$as_me:4510: result: $LIBICONV" >&5
 
4511
echo "${ECHO_T}$LIBICONV" >&6
 
4512
  else
 
4513
            CPPFLAGS="$am_save_CPPFLAGS"
 
4514
    LIBICONV=
 
4515
    LTLIBICONV=
 
4516
  fi
 
4517
 
 
4518
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
 
4519
stdlib.h string.h unistd.h sys/param.h
 
4520
do
 
4521
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4522
echo "$as_me:4522: checking for $ac_header" >&5
 
4523
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4524
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4525
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4526
else
 
4527
  cat >conftest.$ac_ext <<_ACEOF
 
4528
#line 4528 "configure"
 
4529
#include "confdefs.h"
 
4530
#include <$ac_header>
 
4531
_ACEOF
 
4532
if { (eval echo "$as_me:4532: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4533
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4534
  ac_status=$?
 
4535
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
4536
  rm -f conftest.er1
 
4537
  cat conftest.err >&5
 
4538
  echo "$as_me:4538: \$? = $ac_status" >&5
 
4539
  (exit $ac_status); } >/dev/null; then
 
4540
  if test -s conftest.err; then
 
4541
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4542
  else
 
4543
    ac_cpp_err=
 
4544
  fi
 
4545
else
 
4546
  ac_cpp_err=yes
 
4547
fi
 
4548
if test -z "$ac_cpp_err"; then
 
4549
  eval "$as_ac_Header=yes"
 
4550
else
 
4551
  echo "$as_me: failed program was:" >&5
 
4552
  cat conftest.$ac_ext >&5
 
4553
  eval "$as_ac_Header=no"
 
4554
fi
 
4555
rm -f conftest.err conftest.$ac_ext
 
4556
fi
 
4557
echo "$as_me:4557: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4558
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4559
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4560
  cat >>confdefs.h <<EOF
 
4561
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4562
EOF
 
4563
 
 
4564
fi
 
4565
done
 
4566
 
 
4567
for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
 
4568
geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
 
4569
strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
 
4570
do
 
4571
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
4572
echo "$as_me:4572: checking for $ac_func" >&5
 
4573
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
4574
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
4575
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4576
else
 
4577
  cat >conftest.$ac_ext <<_ACEOF
 
4578
#line 4578 "configure"
 
4579
#include "confdefs.h"
 
4580
/* System header to define __stub macros and hopefully few prototypes,
 
4581
    which can conflict with char $ac_func (); below.  */
 
4582
#include <assert.h>
 
4583
/* Override any gcc2 internal prototype to avoid an error.  */
 
4584
#ifdef __cplusplus
 
4585
extern "C"
 
4586
#endif
 
4587
/* We use char because int might match the return type of a gcc2
 
4588
   builtin and then its argument prototype would still apply.  */
 
4589
char $ac_func ();
 
4590
char (*f) ();
 
4591
 
 
4592
int
 
4593
main ()
 
4594
{
 
4595
/* The GNU C library defines this for functions which it implements
 
4596
    to always fail with ENOSYS.  Some functions are actually named
 
4597
    something starting with __ and the normal name is an alias.  */
 
4598
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
4599
choke me
 
4600
#else
 
4601
f = $ac_func;
 
4602
#endif
 
4603
 
 
4604
  ;
 
4605
  return 0;
 
4606
}
 
4607
_ACEOF
 
4608
rm -f conftest.$ac_objext conftest$ac_exeext
 
4609
if { (eval echo "$as_me:4609: \"$ac_link\"") >&5
 
4610
  (eval $ac_link) 2>&5
 
4611
  ac_status=$?
 
4612
  echo "$as_me:4612: \$? = $ac_status" >&5
 
4613
  (exit $ac_status); } &&
 
4614
         { ac_try='test -s conftest$ac_exeext'
 
4615
  { (eval echo "$as_me:4615: \"$ac_try\"") >&5
 
4616
  (eval $ac_try) 2>&5
 
4617
  ac_status=$?
 
4618
  echo "$as_me:4618: \$? = $ac_status" >&5
 
4619
  (exit $ac_status); }; }; then
 
4620
  eval "$as_ac_var=yes"
 
4621
else
 
4622
  echo "$as_me: failed program was:" >&5
 
4623
cat conftest.$ac_ext >&5
 
4624
eval "$as_ac_var=no"
 
4625
fi
 
4626
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4627
fi
 
4628
echo "$as_me:4628: result: `eval echo '${'$as_ac_var'}'`" >&5
 
4629
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
4630
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
4631
  cat >>confdefs.h <<EOF
 
4632
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
4633
EOF
 
4634
 
 
4635
fi
 
4636
done
 
4637
 
 
4638
  if test "$am_cv_func_iconv" = yes; then
 
4639
    echo "$as_me:4639: checking for iconv declaration" >&5
 
4640
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
 
4641
    if test "${am_cv_proto_iconv+set}" = set; then
 
4642
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4643
else
 
4644
 
 
4645
      cat >conftest.$ac_ext <<_ACEOF
 
4646
#line 4646 "configure"
2200
4647
#include "confdefs.h"
2201
4648
 
2202
4649
#include <stdlib.h>
2211
4658
size_t iconv();
2212
4659
#endif
2213
4660
 
2214
 
int main() {
 
4661
int
 
4662
main ()
 
4663
{
2215
4664
 
2216
 
; return 0; }
2217
 
EOF
2218
 
if { (eval echo configure:2219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2219
 
  rm -rf conftest*
 
4665
  ;
 
4666
  return 0;
 
4667
}
 
4668
_ACEOF
 
4669
rm -f conftest.$ac_objext
 
4670
if { (eval echo "$as_me:4670: \"$ac_compile\"") >&5
 
4671
  (eval $ac_compile) 2>&5
 
4672
  ac_status=$?
 
4673
  echo "$as_me:4673: \$? = $ac_status" >&5
 
4674
  (exit $ac_status); } &&
 
4675
         { ac_try='test -s conftest.$ac_objext'
 
4676
  { (eval echo "$as_me:4676: \"$ac_try\"") >&5
 
4677
  (eval $ac_try) 2>&5
 
4678
  ac_status=$?
 
4679
  echo "$as_me:4679: \$? = $ac_status" >&5
 
4680
  (exit $ac_status); }; }; then
2220
4681
  am_cv_proto_iconv_arg1=""
2221
4682
else
2222
 
  echo "configure: failed program was:" >&5
2223
 
  cat conftest.$ac_ext >&5
2224
 
  rm -rf conftest*
2225
 
  am_cv_proto_iconv_arg1="const"
 
4683
  echo "$as_me: failed program was:" >&5
 
4684
cat conftest.$ac_ext >&5
 
4685
am_cv_proto_iconv_arg1="const"
2226
4686
fi
2227
 
rm -f conftest*
 
4687
rm -f conftest.$ac_objext conftest.$ac_ext
2228
4688
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
2229
4689
fi
2230
4690
 
2231
4691
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2232
 
    echo "$ac_t""${ac_t:-
2233
 
         }$am_cv_proto_iconv" 1>&6
2234
 
    cat >> confdefs.h <<EOF
 
4692
    echo "$as_me:4692: result: ${ac_t:-
 
4693
         }$am_cv_proto_iconv" >&5
 
4694
echo "${ECHO_T}${ac_t:-
 
4695
         }$am_cv_proto_iconv" >&6
 
4696
 
 
4697
cat >>confdefs.h <<EOF
2235
4698
#define ICONV_CONST $am_cv_proto_iconv_arg1
2236
4699
EOF
2237
4700
 
2238
4701
  fi
2239
 
  LIBICONV=
2240
 
  if test "$am_cv_lib_iconv" = yes; then
2241
 
    LIBICONV="-liconv"
2242
 
  fi
2243
 
  
2244
4702
 
2245
 
   
2246
 
  echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2247
 
echo "configure:2248: checking for nl_langinfo and CODESET" >&5
2248
 
if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2249
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
4703
  echo "$as_me:4703: checking for nl_langinfo and CODESET" >&5
 
4704
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
 
4705
if test "${am_cv_langinfo_codeset+set}" = set; then
 
4706
  echo $ECHO_N "(cached) $ECHO_C" >&6
2250
4707
else
2251
 
  cat > conftest.$ac_ext <<EOF
2252
 
#line 2253 "configure"
 
4708
  cat >conftest.$ac_ext <<_ACEOF
 
4709
#line 4709 "configure"
2253
4710
#include "confdefs.h"
2254
4711
#include <langinfo.h>
2255
 
int main() {
 
4712
int
 
4713
main ()
 
4714
{
2256
4715
char* cs = nl_langinfo(CODESET);
2257
 
; return 0; }
2258
 
EOF
2259
 
if { (eval echo configure:2260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2260
 
  rm -rf conftest*
 
4716
  ;
 
4717
  return 0;
 
4718
}
 
4719
_ACEOF
 
4720
rm -f conftest.$ac_objext conftest$ac_exeext
 
4721
if { (eval echo "$as_me:4721: \"$ac_link\"") >&5
 
4722
  (eval $ac_link) 2>&5
 
4723
  ac_status=$?
 
4724
  echo "$as_me:4724: \$? = $ac_status" >&5
 
4725
  (exit $ac_status); } &&
 
4726
         { ac_try='test -s conftest$ac_exeext'
 
4727
  { (eval echo "$as_me:4727: \"$ac_try\"") >&5
 
4728
  (eval $ac_try) 2>&5
 
4729
  ac_status=$?
 
4730
  echo "$as_me:4730: \$? = $ac_status" >&5
 
4731
  (exit $ac_status); }; }; then
2261
4732
  am_cv_langinfo_codeset=yes
2262
4733
else
2263
 
  echo "configure: failed program was:" >&5
2264
 
  cat conftest.$ac_ext >&5
2265
 
  rm -rf conftest*
2266
 
  am_cv_langinfo_codeset=no
2267
 
fi
2268
 
rm -f conftest*
2269
 
    
2270
 
fi
 
4734
  echo "$as_me: failed program was:" >&5
 
4735
cat conftest.$ac_ext >&5
 
4736
am_cv_langinfo_codeset=no
 
4737
fi
 
4738
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2271
4739
 
2272
 
echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
 
4740
fi
 
4741
echo "$as_me:4741: result: $am_cv_langinfo_codeset" >&5
 
4742
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
2273
4743
  if test $am_cv_langinfo_codeset = yes; then
2274
 
    cat >> confdefs.h <<\EOF
 
4744
 
 
4745
cat >>confdefs.h <<\EOF
2275
4746
#define HAVE_LANGINFO_CODESET 1
2276
4747
EOF
2277
4748
 
2278
4749
  fi
2279
4750
 
2280
 
   if test $ac_cv_header_locale_h = yes; then
2281
 
    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2282
 
echo "configure:2283: checking for LC_MESSAGES" >&5
2283
 
if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2284
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
4751
  if test $ac_cv_header_locale_h = yes; then
 
4752
    echo "$as_me:4752: checking for LC_MESSAGES" >&5
 
4753
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
 
4754
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 
4755
  echo $ECHO_N "(cached) $ECHO_C" >&6
2285
4756
else
2286
 
  cat > conftest.$ac_ext <<EOF
2287
 
#line 2288 "configure"
 
4757
  cat >conftest.$ac_ext <<_ACEOF
 
4758
#line 4758 "configure"
2288
4759
#include "confdefs.h"
2289
4760
#include <locale.h>
2290
 
int main() {
 
4761
int
 
4762
main ()
 
4763
{
2291
4764
return LC_MESSAGES
2292
 
; return 0; }
2293
 
EOF
2294
 
if { (eval echo configure:2295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2295
 
  rm -rf conftest*
 
4765
  ;
 
4766
  return 0;
 
4767
}
 
4768
_ACEOF
 
4769
rm -f conftest.$ac_objext conftest$ac_exeext
 
4770
if { (eval echo "$as_me:4770: \"$ac_link\"") >&5
 
4771
  (eval $ac_link) 2>&5
 
4772
  ac_status=$?
 
4773
  echo "$as_me:4773: \$? = $ac_status" >&5
 
4774
  (exit $ac_status); } &&
 
4775
         { ac_try='test -s conftest$ac_exeext'
 
4776
  { (eval echo "$as_me:4776: \"$ac_try\"") >&5
 
4777
  (eval $ac_try) 2>&5
 
4778
  ac_status=$?
 
4779
  echo "$as_me:4779: \$? = $ac_status" >&5
 
4780
  (exit $ac_status); }; }; then
2296
4781
  am_cv_val_LC_MESSAGES=yes
2297
4782
else
2298
 
  echo "configure: failed program was:" >&5
2299
 
  cat conftest.$ac_ext >&5
2300
 
  rm -rf conftest*
2301
 
  am_cv_val_LC_MESSAGES=no
2302
 
fi
2303
 
rm -f conftest*
2304
 
fi
2305
 
 
2306
 
echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
 
4783
  echo "$as_me: failed program was:" >&5
 
4784
cat conftest.$ac_ext >&5
 
4785
am_cv_val_LC_MESSAGES=no
 
4786
fi
 
4787
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4788
fi
 
4789
echo "$as_me:4789: result: $am_cv_val_LC_MESSAGES" >&5
 
4790
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
2307
4791
    if test $am_cv_val_LC_MESSAGES = yes; then
2308
 
      cat >> confdefs.h <<\EOF
 
4792
 
 
4793
cat >>confdefs.h <<\EOF
2309
4794
#define HAVE_LC_MESSAGES 1
2310
4795
EOF
2311
4796
 
2312
4797
    fi
2313
4798
  fi
2314
 
   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2315
 
echo "configure:2316: checking whether NLS is requested" >&5
2316
 
        # Check whether --enable-nls or --disable-nls was given.
 
4799
 
 
4800
                      for ac_prog in bison
 
4801
do
 
4802
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4803
set dummy $ac_prog; ac_word=$2
 
4804
echo "$as_me:4804: checking for $ac_word" >&5
 
4805
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4806
if test "${ac_cv_prog_INTLBISON+set}" = set; then
 
4807
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4808
else
 
4809
  if test -n "$INTLBISON"; then
 
4810
  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
 
4811
else
 
4812
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
4813
ac_dummy="$PATH"
 
4814
for ac_dir in $ac_dummy; do
 
4815
  IFS=$ac_save_IFS
 
4816
  test -z "$ac_dir" && ac_dir=.
 
4817
  $as_executable_p "$ac_dir/$ac_word" || continue
 
4818
ac_cv_prog_INTLBISON="$ac_prog"
 
4819
echo "$as_me:4819: found $ac_dir/$ac_word" >&5
 
4820
break
 
4821
done
 
4822
 
 
4823
fi
 
4824
fi
 
4825
INTLBISON=$ac_cv_prog_INTLBISON
 
4826
if test -n "$INTLBISON"; then
 
4827
  echo "$as_me:4827: result: $INTLBISON" >&5
 
4828
echo "${ECHO_T}$INTLBISON" >&6
 
4829
else
 
4830
  echo "$as_me:4830: result: no" >&5
 
4831
echo "${ECHO_T}no" >&6
 
4832
fi
 
4833
 
 
4834
  test -n "$INTLBISON" && break
 
4835
done
 
4836
 
 
4837
  if test -z "$INTLBISON"; then
 
4838
    ac_verc_fail=yes
 
4839
  else
 
4840
        echo "$as_me:4840: checking version of bison" >&5
 
4841
echo $ECHO_N "checking version of bison... $ECHO_C" >&6
 
4842
    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
 
4843
    case $ac_prog_version in
 
4844
      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
 
4845
      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
 
4846
         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
 
4847
      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
 
4848
    esac
 
4849
    echo "$as_me:4849: result: $ac_prog_version" >&5
 
4850
echo "${ECHO_T}$ac_prog_version" >&6
 
4851
  fi
 
4852
  if test $ac_verc_fail = yes; then
 
4853
    INTLBISON=:
 
4854
  fi
 
4855
 
 
4856
  echo "$as_me:4856: checking whether NLS is requested" >&5
 
4857
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
 
4858
    # Check whether --enable-nls or --disable-nls was given.
2317
4859
if test "${enable_nls+set}" = set; then
2318
4860
  enableval="$enable_nls"
2319
4861
  USE_NLS=$enableval
2320
4862
else
2321
4863
  USE_NLS=yes
2322
 
fi
2323
 
 
2324
 
    echo "$ac_t""$USE_NLS" 1>&6
2325
 
    
 
4864
fi;
 
4865
  echo "$as_me:4865: result: $USE_NLS" >&5
 
4866
echo "${ECHO_T}$USE_NLS" >&6
2326
4867
 
2327
4868
    BUILD_INCLUDED_LIBINTL=no
2328
4869
    USE_INCLUDED_LIBINTL=no
2329
 
    INTLLIBS=
2330
 
 
2331
 
        if test "$USE_NLS" = "yes"; then
2332
 
      cat >> confdefs.h <<\EOF
2333
 
#define ENABLE_NLS 1
2334
 
EOF
2335
 
 
2336
 
      echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2337
 
echo "configure:2338: checking whether included gettext is requested" >&5
2338
 
      # Check whether --with-included-gettext or --without-included-gettext was given.
 
4870
 
 
4871
  LIBINTL=
 
4872
  LTLIBINTL=
 
4873
  POSUB=
 
4874
 
 
4875
    if test "$USE_NLS" = "yes"; then
 
4876
    gt_use_preinstalled_gnugettext=no
 
4877
 
 
4878
      echo "$as_me:4878: checking whether included gettext is requested" >&5
 
4879
echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
 
4880
 
 
4881
# Check whether --with-included-gettext or --without-included-gettext was given.
2339
4882
if test "${with_included_gettext+set}" = set; then
2340
4883
  withval="$with_included_gettext"
2341
4884
  nls_cv_force_use_gnu_gettext=$withval
2342
4885
else
2343
4886
  nls_cv_force_use_gnu_gettext=no
2344
 
fi
2345
 
 
2346
 
      echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
 
4887
fi;
 
4888
      echo "$as_me:4888: result: $nls_cv_force_use_gnu_gettext" >&5
 
4889
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
2347
4890
 
2348
4891
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2349
4892
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2350
 
                                CATOBJEXT=NONE
2351
 
 
2352
 
                
2353
 
        
2354
 
 
2355
 
        ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2356
 
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2357
 
echo "configure:2358: checking for libintl.h" >&5
2358
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2359
 
  echo $ac_n "(cached) $ac_c" 1>&6
2360
 
else
2361
 
  cat > conftest.$ac_ext <<EOF
2362
 
#line 2363 "configure"
2363
 
#include "confdefs.h"
2364
 
#include <libintl.h>
2365
 
EOF
2366
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2367
 
{ (eval echo configure:2368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2368
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2369
 
if test -z "$ac_err"; then
2370
 
  rm -rf conftest*
2371
 
  eval "ac_cv_header_$ac_safe=yes"
2372
 
else
2373
 
  echo "$ac_err" >&5
2374
 
  echo "configure: failed program was:" >&5
2375
 
  cat conftest.$ac_ext >&5
2376
 
  rm -rf conftest*
2377
 
  eval "ac_cv_header_$ac_safe=no"
2378
 
fi
2379
 
rm -f conftest*
2380
 
fi
2381
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2382
 
  echo "$ac_t""yes" 1>&6
2383
 
  echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2384
 
echo "configure:2385: checking for GNU gettext in libc" >&5
2385
 
if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2386
 
  echo $ac_n "(cached) $ac_c" 1>&6
2387
 
else
2388
 
  cat > conftest.$ac_ext <<EOF
2389
 
#line 2390 "configure"
 
4893
 
 
4894
        echo "$as_me:4894: checking for GNU gettext in libc" >&5
 
4895
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
 
4896
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
 
4897
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4898
else
 
4899
  cat >conftest.$ac_ext <<_ACEOF
 
4900
#line 4900 "configure"
2390
4901
#include "confdefs.h"
2391
4902
#include <libintl.h>
2392
4903
extern int _nl_msg_cat_cntr;
2393
 
int main() {
 
4904
extern int *_nl_domain_bindings;
 
4905
int
 
4906
main ()
 
4907
{
2394
4908
bindtextdomain ("", "");
2395
 
return (int) gettext ("") + _nl_msg_cat_cntr
2396
 
; return 0; }
2397
 
EOF
2398
 
if { (eval echo configure:2399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2399
 
  rm -rf conftest*
 
4909
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
 
4910
  ;
 
4911
  return 0;
 
4912
}
 
4913
_ACEOF
 
4914
rm -f conftest.$ac_objext conftest$ac_exeext
 
4915
if { (eval echo "$as_me:4915: \"$ac_link\"") >&5
 
4916
  (eval $ac_link) 2>&5
 
4917
  ac_status=$?
 
4918
  echo "$as_me:4918: \$? = $ac_status" >&5
 
4919
  (exit $ac_status); } &&
 
4920
         { ac_try='test -s conftest$ac_exeext'
 
4921
  { (eval echo "$as_me:4921: \"$ac_try\"") >&5
 
4922
  (eval $ac_try) 2>&5
 
4923
  ac_status=$?
 
4924
  echo "$as_me:4924: \$? = $ac_status" >&5
 
4925
  (exit $ac_status); }; }; then
2400
4926
  gt_cv_func_gnugettext1_libc=yes
2401
4927
else
2402
 
  echo "configure: failed program was:" >&5
2403
 
  cat conftest.$ac_ext >&5
2404
 
  rm -rf conftest*
2405
 
  gt_cv_func_gnugettext1_libc=no
2406
 
fi
2407
 
rm -f conftest*
2408
 
fi
2409
 
 
2410
 
echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2411
 
 
2412
 
           if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2413
 
             echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2414
 
echo "configure:2415: checking for GNU gettext in libintl" >&5
2415
 
if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2416
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
4928
  echo "$as_me: failed program was:" >&5
 
4929
cat conftest.$ac_ext >&5
 
4930
gt_cv_func_gnugettext1_libc=no
 
4931
fi
 
4932
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4933
fi
 
4934
echo "$as_me:4934: result: $gt_cv_func_gnugettext1_libc" >&5
 
4935
echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
 
4936
 
 
4937
        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
 
4938
 
 
4939
    use_additional=yes
 
4940
 
 
4941
  acl_save_prefix="$prefix"
 
4942
  prefix="$acl_final_prefix"
 
4943
  acl_save_exec_prefix="$exec_prefix"
 
4944
  exec_prefix="$acl_final_exec_prefix"
 
4945
 
 
4946
    eval additional_includedir=\"$includedir\"
 
4947
    eval additional_libdir=\"$libdir\"
 
4948
 
 
4949
  exec_prefix="$acl_save_exec_prefix"
 
4950
  prefix="$acl_save_prefix"
 
4951
 
 
4952
# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
 
4953
if test "${with_libintl_prefix+set}" = set; then
 
4954
  withval="$with_libintl_prefix"
 
4955
 
 
4956
    if test "X$withval" = "Xno"; then
 
4957
      use_additional=no
 
4958
    else
 
4959
      if test "X$withval" = "X"; then
 
4960
 
 
4961
  acl_save_prefix="$prefix"
 
4962
  prefix="$acl_final_prefix"
 
4963
  acl_save_exec_prefix="$exec_prefix"
 
4964
  exec_prefix="$acl_final_exec_prefix"
 
4965
 
 
4966
          eval additional_includedir=\"$includedir\"
 
4967
          eval additional_libdir=\"$libdir\"
 
4968
 
 
4969
  exec_prefix="$acl_save_exec_prefix"
 
4970
  prefix="$acl_save_prefix"
 
4971
 
 
4972
      else
 
4973
        additional_includedir="$withval/include"
 
4974
        additional_libdir="$withval/lib"
 
4975
      fi
 
4976
    fi
 
4977
 
 
4978
fi;
 
4979
      LIBINTL=
 
4980
  LTLIBINTL=
 
4981
  INCINTL=
 
4982
  rpathdirs=
 
4983
  ltrpathdirs=
 
4984
  names_already_handled=
 
4985
  names_next_round='intl '
 
4986
  while test -n "$names_next_round"; do
 
4987
    names_this_round="$names_next_round"
 
4988
    names_next_round=
 
4989
    for name in $names_this_round; do
 
4990
      already_handled=
 
4991
      for n in $names_already_handled; do
 
4992
        if test "$n" = "$name"; then
 
4993
          already_handled=yes
 
4994
          break
 
4995
        fi
 
4996
      done
 
4997
      if test -z "$already_handled"; then
 
4998
        names_already_handled="$names_already_handled $name"
 
4999
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
5000
        eval value=\"\$HAVE_LIB$uppername\"
 
5001
        if test -n "$value"; then
 
5002
          if test "$value" = yes; then
 
5003
            eval value=\"\$LIB$uppername\"
 
5004
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
 
5005
            eval value=\"\$LTLIB$uppername\"
 
5006
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
 
5007
          else
 
5008
                                    :
 
5009
          fi
 
5010
        else
 
5011
                              found_dir=
 
5012
          found_la=
 
5013
          found_so=
 
5014
          found_a=
 
5015
          if test $use_additional = yes; then
 
5016
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
5017
              found_dir="$additional_libdir"
 
5018
              found_so="$additional_libdir/lib$name.$shlibext"
 
5019
              if test -f "$additional_libdir/lib$name.la"; then
 
5020
                found_la="$additional_libdir/lib$name.la"
 
5021
              fi
 
5022
            else
 
5023
              if test -f "$additional_libdir/lib$name.$libext"; then
 
5024
                found_dir="$additional_libdir"
 
5025
                found_a="$additional_libdir/lib$name.$libext"
 
5026
                if test -f "$additional_libdir/lib$name.la"; then
 
5027
                  found_la="$additional_libdir/lib$name.la"
 
5028
                fi
 
5029
              fi
 
5030
            fi
 
5031
          fi
 
5032
          if test "X$found_dir" = "X"; then
 
5033
            for x in $LDFLAGS $LTLIBINTL; do
 
5034
 
 
5035
  acl_save_prefix="$prefix"
 
5036
  prefix="$acl_final_prefix"
 
5037
  acl_save_exec_prefix="$exec_prefix"
 
5038
  exec_prefix="$acl_final_exec_prefix"
 
5039
  eval x=\"$x\"
 
5040
  exec_prefix="$acl_save_exec_prefix"
 
5041
  prefix="$acl_save_prefix"
 
5042
 
 
5043
              case "$x" in
 
5044
                -L*)
 
5045
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
5046
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
5047
                    found_dir="$dir"
 
5048
                    found_so="$dir/lib$name.$shlibext"
 
5049
                    if test -f "$dir/lib$name.la"; then
 
5050
                      found_la="$dir/lib$name.la"
 
5051
                    fi
 
5052
                  else
 
5053
                    if test -f "$dir/lib$name.$libext"; then
 
5054
                      found_dir="$dir"
 
5055
                      found_a="$dir/lib$name.$libext"
 
5056
                      if test -f "$dir/lib$name.la"; then
 
5057
                        found_la="$dir/lib$name.la"
 
5058
                      fi
 
5059
                    fi
 
5060
                  fi
 
5061
                  ;;
 
5062
              esac
 
5063
              if test "X$found_dir" != "X"; then
 
5064
                break
 
5065
              fi
 
5066
            done
 
5067
          fi
 
5068
          if test "X$found_dir" != "X"; then
 
5069
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
 
5070
            if test "X$found_so" != "X"; then
 
5071
                                                        if test "X$found_dir" = "X/usr/lib"; then
 
5072
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
5073
              else
 
5074
                                                                                haveit=
 
5075
                for x in $ltrpathdirs; do
 
5076
                  if test "X$x" = "X$found_dir"; then
 
5077
                    haveit=yes
 
5078
                    break
 
5079
                  fi
 
5080
                done
 
5081
                if test -z "$haveit"; then
 
5082
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
5083
                fi
 
5084
                                if test "$hardcode_direct" = yes; then
 
5085
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
5086
                else
 
5087
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
5088
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
5089
                                                            haveit=
 
5090
                    for x in $rpathdirs; do
 
5091
                      if test "X$x" = "X$found_dir"; then
 
5092
                        haveit=yes
 
5093
                        break
 
5094
                      fi
 
5095
                    done
 
5096
                    if test -z "$haveit"; then
 
5097
                      rpathdirs="$rpathdirs $found_dir"
 
5098
                    fi
 
5099
                  else
 
5100
                                                                                haveit=
 
5101
                    for x in $LDFLAGS $LIBINTL; do
 
5102
 
 
5103
  acl_save_prefix="$prefix"
 
5104
  prefix="$acl_final_prefix"
 
5105
  acl_save_exec_prefix="$exec_prefix"
 
5106
  exec_prefix="$acl_final_exec_prefix"
 
5107
  eval x=\"$x\"
 
5108
  exec_prefix="$acl_save_exec_prefix"
 
5109
  prefix="$acl_save_prefix"
 
5110
 
 
5111
                      if test "X$x" = "X-L$found_dir"; then
 
5112
                        haveit=yes
 
5113
                        break
 
5114
                      fi
 
5115
                    done
 
5116
                    if test -z "$haveit"; then
 
5117
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
 
5118
                    fi
 
5119
                    if test "$hardcode_minus_L" != no; then
 
5120
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
5121
                    else
 
5122
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
5123
                    fi
 
5124
                  fi
 
5125
                fi
 
5126
              fi
 
5127
            else
 
5128
              if test "X$found_a" != "X"; then
 
5129
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
 
5130
              else
 
5131
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
 
5132
              fi
 
5133
            fi
 
5134
                        additional_includedir=
 
5135
            case "$found_dir" in
 
5136
              */lib | */lib/)
 
5137
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
5138
                additional_includedir="$basedir/include"
 
5139
                ;;
 
5140
            esac
 
5141
            if test "X$additional_includedir" != "X"; then
 
5142
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
5143
                haveit=
 
5144
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
5145
                  if test -n "$GCC"; then
 
5146
                    case $host_os in
 
5147
                      linux*) haveit=yes;;
 
5148
                    esac
 
5149
                  fi
 
5150
                fi
 
5151
                if test -z "$haveit"; then
 
5152
                  for x in $CPPFLAGS $INCINTL; do
 
5153
 
 
5154
  acl_save_prefix="$prefix"
 
5155
  prefix="$acl_final_prefix"
 
5156
  acl_save_exec_prefix="$exec_prefix"
 
5157
  exec_prefix="$acl_final_exec_prefix"
 
5158
  eval x=\"$x\"
 
5159
  exec_prefix="$acl_save_exec_prefix"
 
5160
  prefix="$acl_save_prefix"
 
5161
 
 
5162
                    if test "X$x" = "X-I$additional_includedir"; then
 
5163
                      haveit=yes
 
5164
                      break
 
5165
                    fi
 
5166
                  done
 
5167
                  if test -z "$haveit"; then
 
5168
                    if test -d "$additional_includedir"; then
 
5169
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
 
5170
                    fi
 
5171
                  fi
 
5172
                fi
 
5173
              fi
 
5174
            fi
 
5175
                        if test -n "$found_la"; then
 
5176
                                                        save_libdir="$libdir"
 
5177
              case "$found_la" in
 
5178
                */* | *\\*) . "$found_la" ;;
 
5179
                *) . "./$found_la" ;;
 
5180
              esac
 
5181
              libdir="$save_libdir"
 
5182
                            for dep in $dependency_libs; do
 
5183
                case "$dep" in
 
5184
                  -L*)
 
5185
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
5186
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
5187
                      haveit=
 
5188
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
5189
                        if test -n "$GCC"; then
 
5190
                          case $host_os in
 
5191
                            linux*) haveit=yes;;
 
5192
                          esac
 
5193
                        fi
 
5194
                      fi
 
5195
                      if test -z "$haveit"; then
 
5196
                        haveit=
 
5197
                        for x in $LDFLAGS $LIBINTL; do
 
5198
 
 
5199
  acl_save_prefix="$prefix"
 
5200
  prefix="$acl_final_prefix"
 
5201
  acl_save_exec_prefix="$exec_prefix"
 
5202
  exec_prefix="$acl_final_exec_prefix"
 
5203
  eval x=\"$x\"
 
5204
  exec_prefix="$acl_save_exec_prefix"
 
5205
  prefix="$acl_save_prefix"
 
5206
 
 
5207
                          if test "X$x" = "X-L$additional_libdir"; then
 
5208
                            haveit=yes
 
5209
                            break
 
5210
                          fi
 
5211
                        done
 
5212
                        if test -z "$haveit"; then
 
5213
                          if test -d "$additional_libdir"; then
 
5214
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
 
5215
                          fi
 
5216
                        fi
 
5217
                        haveit=
 
5218
                        for x in $LDFLAGS $LTLIBINTL; do
 
5219
 
 
5220
  acl_save_prefix="$prefix"
 
5221
  prefix="$acl_final_prefix"
 
5222
  acl_save_exec_prefix="$exec_prefix"
 
5223
  exec_prefix="$acl_final_exec_prefix"
 
5224
  eval x=\"$x\"
 
5225
  exec_prefix="$acl_save_exec_prefix"
 
5226
  prefix="$acl_save_prefix"
 
5227
 
 
5228
                          if test "X$x" = "X-L$additional_libdir"; then
 
5229
                            haveit=yes
 
5230
                            break
 
5231
                          fi
 
5232
                        done
 
5233
                        if test -z "$haveit"; then
 
5234
                          if test -d "$additional_libdir"; then
 
5235
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
 
5236
                          fi
 
5237
                        fi
 
5238
                      fi
 
5239
                    fi
 
5240
                    ;;
 
5241
                  -R*)
 
5242
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
5243
                                                            haveit=
 
5244
                    for x in $rpathdirs; do
 
5245
                      if test "X$x" = "X$dir"; then
 
5246
                        haveit=yes
 
5247
                        break
 
5248
                      fi
 
5249
                    done
 
5250
                    if test -z "$haveit"; then
 
5251
                      rpathdirs="$rpathdirs $dir"
 
5252
                    fi
 
5253
                                                            haveit=
 
5254
                    for x in $ltrpathdirs; do
 
5255
                      if test "X$x" = "X$dir"; then
 
5256
                        haveit=yes
 
5257
                        break
 
5258
                      fi
 
5259
                    done
 
5260
                    if test -z "$haveit"; then
 
5261
                      ltrpathdirs="$ltrpathdirs $dir"
 
5262
                    fi
 
5263
                    ;;
 
5264
                  -l*)
 
5265
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
5266
                    ;;
 
5267
                  *.la)
 
5268
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
5269
                    ;;
 
5270
                  *)
 
5271
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
 
5272
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
 
5273
                    ;;
 
5274
                esac
 
5275
              done
 
5276
            fi
 
5277
          else
 
5278
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
5279
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
 
5280
          fi
 
5281
        fi
 
5282
      fi
 
5283
    done
 
5284
  done
 
5285
  if test "X$rpathdirs" != "X"; then
 
5286
    if test -n "$hardcode_libdir_separator"; then
 
5287
                        alldirs=
 
5288
      for found_dir in $rpathdirs; do
 
5289
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
5290
      done
 
5291
            acl_save_libdir="$libdir"
 
5292
      libdir="$alldirs"
 
5293
      eval flag=\"$hardcode_libdir_flag_spec\"
 
5294
      libdir="$acl_save_libdir"
 
5295
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
5296
    else
 
5297
            for found_dir in $rpathdirs; do
 
5298
        acl_save_libdir="$libdir"
 
5299
        libdir="$found_dir"
 
5300
        eval flag=\"$hardcode_libdir_flag_spec\"
 
5301
        libdir="$acl_save_libdir"
 
5302
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
5303
      done
 
5304
    fi
 
5305
  fi
 
5306
  if test "X$ltrpathdirs" != "X"; then
 
5307
            for found_dir in $ltrpathdirs; do
 
5308
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
 
5309
    done
 
5310
  fi
 
5311
 
 
5312
          echo "$as_me:5312: checking for GNU gettext in libintl" >&5
 
5313
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
 
5314
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
 
5315
  echo $ECHO_N "(cached) $ECHO_C" >&6
2417
5316
else
2418
 
  gt_save_LIBS="$LIBS"
2419
 
                LIBS="$LIBS -lintl $LIBICONV"
2420
 
                cat > conftest.$ac_ext <<EOF
2421
 
#line 2422 "configure"
 
5317
  gt_save_CPPFLAGS="$CPPFLAGS"
 
5318
            CPPFLAGS="$CPPFLAGS $INCINTL"
 
5319
            gt_save_LIBS="$LIBS"
 
5320
            LIBS="$LIBS $LIBINTL"
 
5321
                        cat >conftest.$ac_ext <<_ACEOF
 
5322
#line 5322 "configure"
2422
5323
#include "confdefs.h"
2423
5324
#include <libintl.h>
2424
5325
extern int _nl_msg_cat_cntr;
2425
 
int main() {
 
5326
extern
 
5327
#ifdef __cplusplus
 
5328
"C"
 
5329
#endif
 
5330
const char *_nl_expand_alias ();
 
5331
int
 
5332
main ()
 
5333
{
2426
5334
bindtextdomain ("", "");
2427
 
return (int) gettext ("") + _nl_msg_cat_cntr
2428
 
; return 0; }
2429
 
EOF
2430
 
if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2431
 
  rm -rf conftest*
 
5335
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
 
5336
  ;
 
5337
  return 0;
 
5338
}
 
5339
_ACEOF
 
5340
rm -f conftest.$ac_objext conftest$ac_exeext
 
5341
if { (eval echo "$as_me:5341: \"$ac_link\"") >&5
 
5342
  (eval $ac_link) 2>&5
 
5343
  ac_status=$?
 
5344
  echo "$as_me:5344: \$? = $ac_status" >&5
 
5345
  (exit $ac_status); } &&
 
5346
         { ac_try='test -s conftest$ac_exeext'
 
5347
  { (eval echo "$as_me:5347: \"$ac_try\"") >&5
 
5348
  (eval $ac_try) 2>&5
 
5349
  ac_status=$?
 
5350
  echo "$as_me:5350: \$? = $ac_status" >&5
 
5351
  (exit $ac_status); }; }; then
2432
5352
  gt_cv_func_gnugettext1_libintl=yes
2433
5353
else
2434
 
  echo "configure: failed program was:" >&5
2435
 
  cat conftest.$ac_ext >&5
2436
 
  rm -rf conftest*
2437
 
  gt_cv_func_gnugettext1_libintl=no
2438
 
fi
2439
 
rm -f conftest*
2440
 
                LIBS="$gt_save_LIBS"
2441
 
fi
2442
 
 
2443
 
echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2444
 
           fi
2445
 
 
2446
 
                                           if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2447
 
              || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2448
 
                   && test "$PACKAGE" != gettext; }; then
2449
 
             cat >> confdefs.h <<\EOF
2450
 
#define HAVE_GETTEXT 1
2451
 
EOF
2452
 
 
2453
 
 
2454
 
             if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2455
 
                                       INTLLIBS="-lintl $LIBICONV"
2456
 
             fi
2457
 
 
2458
 
             gt_save_LIBS="$LIBS"
2459
 
             LIBS="$LIBS $INTLLIBS"
2460
 
             for ac_func in dcgettext
2461
 
do
2462
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2463
 
echo "configure:2464: checking for $ac_func" >&5
2464
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2465
 
  echo $ac_n "(cached) $ac_c" 1>&6
2466
 
else
2467
 
  cat > conftest.$ac_ext <<EOF
2468
 
#line 2469 "configure"
 
5354
  echo "$as_me: failed program was:" >&5
 
5355
cat conftest.$ac_ext >&5
 
5356
gt_cv_func_gnugettext1_libintl=no
 
5357
fi
 
5358
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5359
                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
 
5360
              LIBS="$LIBS $LIBICONV"
 
5361
              cat >conftest.$ac_ext <<_ACEOF
 
5362
#line 5362 "configure"
2469
5363
#include "confdefs.h"
2470
 
/* System header to define __stub macros and hopefully few prototypes,
2471
 
    which can conflict with char $ac_func(); below.  */
2472
 
#include <assert.h>
2473
 
/* Override any gcc2 internal prototype to avoid an error.  */
2474
 
/* We use char because int might match the return type of a gcc2
2475
 
    builtin and then its argument prototype would still apply.  */
2476
 
char $ac_func();
2477
 
 
2478
 
int main() {
2479
 
 
2480
 
/* The GNU C library defines this for functions which it implements
2481
 
    to always fail with ENOSYS.  Some functions are actually named
2482
 
    something starting with __ and the normal name is an alias.  */
2483
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2484
 
choke me
2485
 
#else
2486
 
$ac_func();
 
5364
#include <libintl.h>
 
5365
extern int _nl_msg_cat_cntr;
 
5366
extern
 
5367
#ifdef __cplusplus
 
5368
"C"
2487
5369
#endif
2488
 
 
2489
 
; return 0; }
2490
 
EOF
2491
 
if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2492
 
  rm -rf conftest*
2493
 
  eval "ac_cv_func_$ac_func=yes"
2494
 
else
2495
 
  echo "configure: failed program was:" >&5
2496
 
  cat conftest.$ac_ext >&5
2497
 
  rm -rf conftest*
2498
 
  eval "ac_cv_func_$ac_func=no"
2499
 
fi
2500
 
rm -f conftest*
2501
 
fi
2502
 
 
2503
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2504
 
  echo "$ac_t""yes" 1>&6
2505
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2506
 
  cat >> confdefs.h <<EOF
2507
 
#define $ac_tr_func 1
2508
 
EOF
2509
 
 
2510
 
else
2511
 
  echo "$ac_t""no" 1>&6
2512
 
fi
2513
 
done
2514
 
 
2515
 
             LIBS="$gt_save_LIBS"
2516
 
 
2517
 
             # Extract the first word of "msgfmt", so it can be a program name with args.
2518
 
set dummy msgfmt; ac_word=$2
2519
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2520
 
echo "configure:2521: checking for $ac_word" >&5
2521
 
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2522
 
  echo $ac_n "(cached) $ac_c" 1>&6
2523
 
else
2524
 
  case "$MSGFMT" in
2525
 
  /*)
2526
 
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2527
 
  ;;
2528
 
  *)
2529
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2530
 
  for ac_dir in $PATH; do
2531
 
    test -z "$ac_dir" && ac_dir=.
2532
 
    if test -f $ac_dir/$ac_word; then
2533
 
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2534
 
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2535
 
        break
2536
 
      fi
2537
 
    fi
2538
 
  done
2539
 
  IFS="$ac_save_ifs"
2540
 
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2541
 
  ;;
2542
 
esac
2543
 
fi
2544
 
MSGFMT="$ac_cv_path_MSGFMT"
2545
 
if test -n "$MSGFMT"; then
2546
 
  echo "$ac_t""$MSGFMT" 1>&6
2547
 
else
2548
 
  echo "$ac_t""no" 1>&6
2549
 
fi
2550
 
             if test "$MSGFMT" != "no"; then
2551
 
               # Extract the first word of "gmsgfmt", so it can be a program name with args.
2552
 
set dummy gmsgfmt; ac_word=$2
2553
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2554
 
echo "configure:2555: checking for $ac_word" >&5
2555
 
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2556
 
  echo $ac_n "(cached) $ac_c" 1>&6
2557
 
else
2558
 
  case "$GMSGFMT" in
2559
 
  /*)
2560
 
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2561
 
  ;;
2562
 
  ?:/*)                  
2563
 
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2564
 
  ;;
2565
 
  *)
2566
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2567
 
  ac_dummy="$PATH"
2568
 
  for ac_dir in $ac_dummy; do 
2569
 
    test -z "$ac_dir" && ac_dir=.
2570
 
    if test -f $ac_dir/$ac_word; then
2571
 
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2572
 
      break
2573
 
    fi
2574
 
  done
2575
 
  IFS="$ac_save_ifs"
2576
 
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2577
 
  ;;
2578
 
esac
2579
 
fi
2580
 
GMSGFMT="$ac_cv_path_GMSGFMT"
2581
 
if test -n "$GMSGFMT"; then
2582
 
  echo "$ac_t""$GMSGFMT" 1>&6
2583
 
else
2584
 
  echo "$ac_t""no" 1>&6
2585
 
fi
2586
 
 
2587
 
             fi
2588
 
 
2589
 
             # Extract the first word of "xgettext", so it can be a program name with args.
2590
 
set dummy xgettext; ac_word=$2
2591
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2592
 
echo "configure:2593: checking for $ac_word" >&5
2593
 
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2594
 
  echo $ac_n "(cached) $ac_c" 1>&6
2595
 
else
2596
 
  case "$XGETTEXT" in
2597
 
  /*)
2598
 
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2599
 
  ;;
2600
 
  *)
2601
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2602
 
  for ac_dir in $PATH; do
2603
 
    test -z "$ac_dir" && ac_dir=.
2604
 
    if test -f $ac_dir/$ac_word; then
2605
 
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2606
 
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2607
 
        break
2608
 
      fi
2609
 
    fi
2610
 
  done
2611
 
  IFS="$ac_save_ifs"
2612
 
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2613
 
  ;;
2614
 
esac
2615
 
fi
2616
 
XGETTEXT="$ac_cv_path_XGETTEXT"
2617
 
if test -n "$XGETTEXT"; then
2618
 
  echo "$ac_t""$XGETTEXT" 1>&6
2619
 
else
2620
 
  echo "$ac_t""no" 1>&6
2621
 
fi
2622
 
 
2623
 
 
2624
 
             CATOBJEXT=.gmo
2625
 
           fi
2626
 
        
2627
 
else
2628
 
  echo "$ac_t""no" 1>&6
2629
 
fi
2630
 
 
2631
 
 
2632
 
        if test "$CATOBJEXT" = "NONE"; then
2633
 
                          nls_cv_use_gnu_gettext=yes
 
5370
const char *_nl_expand_alias ();
 
5371
int
 
5372
main ()
 
5373
{
 
5374
bindtextdomain ("", "");
 
5375
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
 
5376
  ;
 
5377
  return 0;
 
5378
}
 
5379
_ACEOF
 
5380
rm -f conftest.$ac_objext conftest$ac_exeext
 
5381
if { (eval echo "$as_me:5381: \"$ac_link\"") >&5
 
5382
  (eval $ac_link) 2>&5
 
5383
  ac_status=$?
 
5384
  echo "$as_me:5384: \$? = $ac_status" >&5
 
5385
  (exit $ac_status); } &&
 
5386
         { ac_try='test -s conftest$ac_exeext'
 
5387
  { (eval echo "$as_me:5387: \"$ac_try\"") >&5
 
5388
  (eval $ac_try) 2>&5
 
5389
  ac_status=$?
 
5390
  echo "$as_me:5390: \$? = $ac_status" >&5
 
5391
  (exit $ac_status); }; }; then
 
5392
  LIBINTL="$LIBINTL $LIBICONV"
 
5393
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
 
5394
                gt_cv_func_gnugettext1_libintl=yes
 
5395
 
 
5396
else
 
5397
  echo "$as_me: failed program was:" >&5
 
5398
cat conftest.$ac_ext >&5
 
5399
fi
 
5400
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5401
            fi
 
5402
            CPPFLAGS="$gt_save_CPPFLAGS"
 
5403
            LIBS="$gt_save_LIBS"
 
5404
fi
 
5405
echo "$as_me:5405: result: $gt_cv_func_gnugettext1_libintl" >&5
 
5406
echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
 
5407
        fi
 
5408
 
 
5409
                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
 
5410
           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
 
5411
                && test "$PACKAGE" != gettext; }; then
 
5412
          gt_use_preinstalled_gnugettext=yes
 
5413
        else
 
5414
                    LIBINTL=
 
5415
          LTLIBINTL=
 
5416
          INCINTL=
 
5417
        fi
 
5418
 
 
5419
        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
 
5420
                              nls_cv_use_gnu_gettext=yes
2634
5421
        fi
2635
5422
      fi
2636
5423
 
2637
5424
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
2638
5425
                INTLOBJS="\$(GETTOBJS)"
2639
 
        # Extract the first word of "msgfmt", so it can be a program name with args.
2640
 
set dummy msgfmt; ac_word=$2
2641
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2642
 
echo "configure:2643: checking for $ac_word" >&5
2643
 
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2644
 
  echo $ac_n "(cached) $ac_c" 1>&6
2645
 
else
2646
 
  case "$MSGFMT" in
2647
 
  /*)
2648
 
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2649
 
  ;;
2650
 
  *)
2651
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2652
 
  for ac_dir in $PATH; do
2653
 
    test -z "$ac_dir" && ac_dir=.
2654
 
    if test -f $ac_dir/$ac_word; then
2655
 
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2656
 
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2657
 
        break
2658
 
      fi
2659
 
    fi
2660
 
  done
2661
 
  IFS="$ac_save_ifs"
2662
 
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2663
 
  ;;
2664
 
esac
2665
 
fi
2666
 
MSGFMT="$ac_cv_path_MSGFMT"
2667
 
if test -n "$MSGFMT"; then
2668
 
  echo "$ac_t""$MSGFMT" 1>&6
2669
 
else
2670
 
  echo "$ac_t""no" 1>&6
2671
 
fi
2672
 
 
2673
 
        # Extract the first word of "gmsgfmt", so it can be a program name with args.
2674
 
set dummy gmsgfmt; ac_word=$2
2675
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2676
 
echo "configure:2677: checking for $ac_word" >&5
2677
 
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2678
 
  echo $ac_n "(cached) $ac_c" 1>&6
2679
 
else
2680
 
  case "$GMSGFMT" in
2681
 
  /*)
2682
 
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2683
 
  ;;
2684
 
  ?:/*)                  
2685
 
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2686
 
  ;;
2687
 
  *)
2688
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2689
 
  ac_dummy="$PATH"
2690
 
  for ac_dir in $ac_dummy; do 
2691
 
    test -z "$ac_dir" && ac_dir=.
2692
 
    if test -f $ac_dir/$ac_word; then
2693
 
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2694
 
      break
2695
 
    fi
2696
 
  done
2697
 
  IFS="$ac_save_ifs"
2698
 
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2699
 
  ;;
2700
 
esac
2701
 
fi
2702
 
GMSGFMT="$ac_cv_path_GMSGFMT"
2703
 
if test -n "$GMSGFMT"; then
2704
 
  echo "$ac_t""$GMSGFMT" 1>&6
2705
 
else
2706
 
  echo "$ac_t""no" 1>&6
2707
 
fi
2708
 
 
2709
 
        # Extract the first word of "xgettext", so it can be a program name with args.
2710
 
set dummy xgettext; ac_word=$2
2711
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2712
 
echo "configure:2713: checking for $ac_word" >&5
2713
 
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2714
 
  echo $ac_n "(cached) $ac_c" 1>&6
2715
 
else
2716
 
  case "$XGETTEXT" in
2717
 
  /*)
2718
 
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2719
 
  ;;
2720
 
  *)
2721
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2722
 
  for ac_dir in $PATH; do
2723
 
    test -z "$ac_dir" && ac_dir=.
2724
 
    if test -f $ac_dir/$ac_word; then
2725
 
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2726
 
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2727
 
        break
2728
 
      fi
2729
 
    fi
2730
 
  done
2731
 
  IFS="$ac_save_ifs"
2732
 
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2733
 
  ;;
2734
 
esac
2735
 
fi
2736
 
XGETTEXT="$ac_cv_path_XGETTEXT"
2737
 
if test -n "$XGETTEXT"; then
2738
 
  echo "$ac_t""$XGETTEXT" 1>&6
2739
 
else
2740
 
  echo "$ac_t""no" 1>&6
2741
 
fi
2742
 
 
2743
 
        
2744
 
        BUILD_INCLUDED_LIBINTL=yes
2745
 
        USE_INCLUDED_LIBINTL=yes
2746
 
        CATOBJEXT=.gmo
2747
 
        INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2748
 
        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2749
 
      fi
2750
 
 
2751
 
            if test "$XGETTEXT" != ":"; then
2752
 
                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2753
 
          : ;
2754
 
        else
2755
 
          echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2756
 
          XGETTEXT=":"
2757
 
        fi
2758
 
      fi
2759
 
 
2760
 
            POSUB=po
2761
 
    fi
2762
 
    
2763
 
 
 
5426
        BUILD_INCLUDED_LIBINTL=yes
 
5427
        USE_INCLUDED_LIBINTL=yes
 
5428
        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
 
5429
        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
 
5430
        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
 
5431
      fi
 
5432
 
 
5433
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
5434
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
5435
                CATOBJEXT=.gmo
 
5436
      fi
 
5437
 
 
5438
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
5439
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
5440
 
 
5441
cat >>confdefs.h <<\EOF
 
5442
#define ENABLE_NLS 1
 
5443
EOF
 
5444
 
 
5445
    else
 
5446
      USE_NLS=no
 
5447
    fi
 
5448
  fi
 
5449
 
 
5450
  if test "$USE_NLS" = "yes"; then
 
5451
 
 
5452
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
5453
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
 
5454
        echo "$as_me:5454: checking how to link with libintl" >&5
 
5455
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
 
5456
        echo "$as_me:5456: result: $LIBINTL" >&5
 
5457
echo "${ECHO_T}$LIBINTL" >&6
 
5458
 
 
5459
  for element in $INCINTL; do
 
5460
    haveit=
 
5461
    for x in $CPPFLAGS; do
 
5462
 
 
5463
  acl_save_prefix="$prefix"
 
5464
  prefix="$acl_final_prefix"
 
5465
  acl_save_exec_prefix="$exec_prefix"
 
5466
  exec_prefix="$acl_final_exec_prefix"
 
5467
  eval x=\"$x\"
 
5468
  exec_prefix="$acl_save_exec_prefix"
 
5469
  prefix="$acl_save_prefix"
 
5470
 
 
5471
      if test "X$x" = "X$element"; then
 
5472
        haveit=yes
 
5473
        break
 
5474
      fi
 
5475
    done
 
5476
    if test -z "$haveit"; then
 
5477
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
5478
    fi
 
5479
  done
 
5480
 
 
5481
      fi
 
5482
 
 
5483
cat >>confdefs.h <<\EOF
 
5484
#define HAVE_GETTEXT 1
 
5485
EOF
 
5486
 
 
5487
cat >>confdefs.h <<\EOF
 
5488
#define HAVE_DCGETTEXT 1
 
5489
EOF
 
5490
 
 
5491
    fi
 
5492
 
 
5493
        POSUB=po
 
5494
  fi
2764
5495
 
2765
5496
            if test "$PACKAGE" = gettext; then
2766
5497
      BUILD_INCLUDED_LIBINTL=yes
2767
5498
    fi
2768
5499
 
2769
 
                                            for ac_prog in bison
2770
 
do
2771
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
2772
 
set dummy $ac_prog; ac_word=$2
2773
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2774
 
echo "configure:2775: checking for $ac_word" >&5
2775
 
if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2776
 
  echo $ac_n "(cached) $ac_c" 1>&6
2777
 
else
2778
 
  if test -n "$INTLBISON"; then
2779
 
  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2780
 
else
2781
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2782
 
  ac_dummy="$PATH"
2783
 
  for ac_dir in $ac_dummy; do
2784
 
    test -z "$ac_dir" && ac_dir=.
2785
 
    if test -f $ac_dir/$ac_word; then
2786
 
      ac_cv_prog_INTLBISON="$ac_prog"
2787
 
      break
2788
 
    fi
2789
 
  done
2790
 
  IFS="$ac_save_ifs"
2791
 
fi
2792
 
fi
2793
 
INTLBISON="$ac_cv_prog_INTLBISON"
2794
 
if test -n "$INTLBISON"; then
2795
 
  echo "$ac_t""$INTLBISON" 1>&6
2796
 
else
2797
 
  echo "$ac_t""no" 1>&6
2798
 
fi
2799
 
 
2800
 
test -n "$INTLBISON" && break
2801
 
done
2802
 
 
2803
 
    if test -z "$INTLBISON"; then
2804
 
      ac_verc_fail=yes
2805
 
    else
2806
 
            echo $ac_n "checking version of bison""... $ac_c" 1>&6
2807
 
echo "configure:2808: checking version of bison" >&5
2808
 
      ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2809
 
      case $ac_prog_version in
2810
 
        '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2811
 
        1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2812
 
           ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2813
 
        *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2814
 
      esac
2815
 
      echo "$ac_t""$ac_prog_version" 1>&6
2816
 
    fi
2817
 
    if test $ac_verc_fail = yes; then
2818
 
      INTLBISON=:
2819
 
    fi
2820
 
 
2821
 
                for lang in $ALL_LINGUAS; do
2822
 
      GMOFILES="$GMOFILES $lang.gmo"
2823
 
      POFILES="$POFILES $lang.po"
2824
 
    done
2825
 
 
2826
 
        
2827
 
    
2828
 
    
2829
 
    
2830
 
    
2831
 
    
2832
 
    
2833
 
    
2834
 
    
2835
 
 
2836
5500
        nls_cv_header_intl=
2837
5501
    nls_cv_header_libgt=
2838
5502
 
2839
5503
        DATADIRNAME=share
2840
 
    
2841
5504
 
2842
5505
        INSTOBJEXT=.mo
2843
 
    
2844
5506
 
2845
5507
        GENCAT=gencat
2846
 
    
2847
 
  
2848
 
 
2849
 
   if test "x$CATOBJEXT" != "x"; then
2850
 
     if test "x$ALL_LINGUAS" = "x"; then
2851
 
       LINGUAS=
2852
 
     else
2853
 
       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2854
 
echo "configure:2855: checking for catalogs to be installed" >&5
2855
 
       NEW_LINGUAS=
2856
 
       for presentlang in $ALL_LINGUAS; do
2857
 
         useit=no
2858
 
         for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2859
 
           # Use the presentlang catalog if desiredlang is
2860
 
           #   a. equal to presentlang, or
2861
 
           #   b. a variant of presentlang (because in this case,
2862
 
           #      presentlang can be used as a fallback for messages
2863
 
           #      which are not translated in the desiredlang catalog).
2864
 
           case "$desiredlang" in
2865
 
             "$presentlang"*) useit=yes;;
2866
 
           esac
2867
 
         done
2868
 
         if test $useit = yes; then
2869
 
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2870
 
         fi
2871
 
       done
2872
 
       LINGUAS=$NEW_LINGUAS
2873
 
       echo "$ac_t""$LINGUAS" 1>&6
2874
 
     fi
2875
 
 
2876
 
          if test -n "$LINGUAS"; then
2877
 
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2878
 
     fi
2879
 
   fi
2880
 
 
2881
 
            MKINSTALLDIRS=
2882
 
   if test -n "$ac_aux_dir"; then
2883
 
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2884
 
   fi
2885
 
   if test -z "$MKINSTALLDIRS"; then
2886
 
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2887
 
   fi
2888
 
   
2889
 
 
2890
 
      INTL_LIBTOOL_SUFFIX_PREFIX=
2891
 
   
2892
 
  
 
5508
 
 
5509
        INTL_LIBTOOL_SUFFIX_PREFIX=
 
5510
 
 
5511
    INTLLIBS="$LIBINTL"
2893
5512
 
2894
5513
if test "x${prefix}" = "xNONE"; then
2895
 
  cat >> confdefs.h <<EOF
 
5514
  cat >>confdefs.h <<EOF
2896
5515
#define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
2897
5516
EOF
2898
5517
 
2899
5518
else
2900
 
  cat >> confdefs.h <<EOF
 
5519
  cat >>confdefs.h <<EOF
2901
5520
#define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
2902
5521
EOF
2903
5522
 
2905
5524
 
2906
5525
if test "x${datadir}" = 'x${prefix}/share'; then
2907
5526
  if test "x${prefix}" = "xNONE"; then
2908
 
    cat >> confdefs.h <<EOF
 
5527
    cat >>confdefs.h <<EOF
2909
5528
#define PACKAGE_DATA_DIR "${ac_default_prefix}/share/${PACKAGE}"
2910
5529
EOF
2911
5530
 
2912
5531
  else
2913
 
    cat >> confdefs.h <<EOF
 
5532
    cat >>confdefs.h <<EOF
2914
5533
#define PACKAGE_DATA_DIR "${prefix}/share/${PACKAGE}"
2915
5534
EOF
2916
5535
 
2917
5536
  fi
2918
5537
else
2919
 
  cat >> confdefs.h <<EOF
 
5538
  cat >>confdefs.h <<EOF
2920
5539
#define PACKAGE_DATA_DIR "${datadir}/${PACKAGE}"
2921
5540
EOF
2922
5541
 
2923
5542
fi
2924
5543
 
2925
5544
packagesrcdir=`cd $srcdir && pwd`
2926
 
cat >> confdefs.h <<EOF
 
5545
cat >>confdefs.h <<EOF
2927
5546
#define PACKAGE_SOURCE_DIR "${packagesrcdir}"
2928
5547
EOF
2929
5548
 
2930
 
 
2931
 
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2932
 
do
2933
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
2934
 
set dummy $ac_prog; ac_word=$2
2935
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2936
 
echo "configure:2937: checking for $ac_word" >&5
2937
 
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2938
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
5549
ac_ext=cc
 
5550
ac_cpp='$CXXCPP $CPPFLAGS'
 
5551
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5552
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5553
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5554
if test -n "$ac_tool_prefix"; then
 
5555
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5556
  do
 
5557
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5558
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5559
echo "$as_me:5559: checking for $ac_word" >&5
 
5560
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5561
if test "${ac_cv_prog_CXX+set}" = set; then
 
5562
  echo $ECHO_N "(cached) $ECHO_C" >&6
2939
5563
else
2940
5564
  if test -n "$CXX"; then
2941
5565
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2942
5566
else
2943
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2944
 
  ac_dummy="$PATH"
2945
 
  for ac_dir in $ac_dummy; do
2946
 
    test -z "$ac_dir" && ac_dir=.
2947
 
    if test -f $ac_dir/$ac_word; then
2948
 
      ac_cv_prog_CXX="$ac_prog"
2949
 
      break
2950
 
    fi
2951
 
  done
2952
 
  IFS="$ac_save_ifs"
2953
 
fi
2954
 
fi
2955
 
CXX="$ac_cv_prog_CXX"
 
5567
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
5568
ac_dummy="$PATH"
 
5569
for ac_dir in $ac_dummy; do
 
5570
  IFS=$ac_save_IFS
 
5571
  test -z "$ac_dir" && ac_dir=.
 
5572
  $as_executable_p "$ac_dir/$ac_word" || continue
 
5573
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5574
echo "$as_me:5574: found $ac_dir/$ac_word" >&5
 
5575
break
 
5576
done
 
5577
 
 
5578
fi
 
5579
fi
 
5580
CXX=$ac_cv_prog_CXX
2956
5581
if test -n "$CXX"; then
2957
 
  echo "$ac_t""$CXX" 1>&6
2958
 
else
2959
 
  echo "$ac_t""no" 1>&6
2960
 
fi
2961
 
 
2962
 
test -n "$CXX" && break
2963
 
done
2964
 
test -n "$CXX" || CXX="gcc"
2965
 
 
2966
 
 
2967
 
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2968
 
echo "configure:2969: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2969
 
 
2970
 
ac_ext=C
2971
 
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2972
 
ac_cpp='$CXXCPP $CPPFLAGS'
2973
 
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2974
 
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2975
 
cross_compiling=$ac_cv_prog_cxx_cross
2976
 
 
2977
 
cat > conftest.$ac_ext << EOF
2978
 
 
2979
 
#line 2980 "configure"
 
5582
  echo "$as_me:5582: result: $CXX" >&5
 
5583
echo "${ECHO_T}$CXX" >&6
 
5584
else
 
5585
  echo "$as_me:5585: result: no" >&5
 
5586
echo "${ECHO_T}no" >&6
 
5587
fi
 
5588
 
 
5589
    test -n "$CXX" && break
 
5590
  done
 
5591
fi
 
5592
if test -z "$CXX"; then
 
5593
  ac_ct_CXX=$CXX
 
5594
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5595
do
 
5596
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5597
set dummy $ac_prog; ac_word=$2
 
5598
echo "$as_me:5598: checking for $ac_word" >&5
 
5599
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5600
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5601
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5602
else
 
5603
  if test -n "$ac_ct_CXX"; then
 
5604
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5605
else
 
5606
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
5607
ac_dummy="$PATH"
 
5608
for ac_dir in $ac_dummy; do
 
5609
  IFS=$ac_save_IFS
 
5610
  test -z "$ac_dir" && ac_dir=.
 
5611
  $as_executable_p "$ac_dir/$ac_word" || continue
 
5612
ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5613
echo "$as_me:5613: found $ac_dir/$ac_word" >&5
 
5614
break
 
5615
done
 
5616
 
 
5617
fi
 
5618
fi
 
5619
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5620
if test -n "$ac_ct_CXX"; then
 
5621
  echo "$as_me:5621: result: $ac_ct_CXX" >&5
 
5622
echo "${ECHO_T}$ac_ct_CXX" >&6
 
5623
else
 
5624
  echo "$as_me:5624: result: no" >&5
 
5625
echo "${ECHO_T}no" >&6
 
5626
fi
 
5627
 
 
5628
  test -n "$ac_ct_CXX" && break
 
5629
done
 
5630
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
5631
 
 
5632
  CXX=$ac_ct_CXX
 
5633
fi
 
5634
 
 
5635
# Provide some information about the compiler.
 
5636
echo "$as_me:5636:" \
 
5637
     "checking for C++ compiler version" >&5
 
5638
ac_compiler=`set X $ac_compile; echo $2`
 
5639
{ (eval echo "$as_me:5639: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5640
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5641
  ac_status=$?
 
5642
  echo "$as_me:5642: \$? = $ac_status" >&5
 
5643
  (exit $ac_status); }
 
5644
{ (eval echo "$as_me:5644: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5645
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5646
  ac_status=$?
 
5647
  echo "$as_me:5647: \$? = $ac_status" >&5
 
5648
  (exit $ac_status); }
 
5649
{ (eval echo "$as_me:5649: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5650
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5651
  ac_status=$?
 
5652
  echo "$as_me:5652: \$? = $ac_status" >&5
 
5653
  (exit $ac_status); }
 
5654
 
 
5655
echo "$as_me:5655: checking whether we are using the GNU C++ compiler" >&5
 
5656
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
5657
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5658
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5659
else
 
5660
  cat >conftest.$ac_ext <<_ACEOF
 
5661
#line 5661 "configure"
2980
5662
#include "confdefs.h"
2981
5663
 
2982
 
int main(){return(0);}
2983
 
EOF
2984
 
if { (eval echo configure:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2985
 
  ac_cv_prog_cxx_works=yes
2986
 
  # If we can't run a trivial program, we are probably using a cross compiler.
2987
 
  if (./conftest; exit) 2>/dev/null; then
2988
 
    ac_cv_prog_cxx_cross=no
2989
 
  else
2990
 
    ac_cv_prog_cxx_cross=yes
2991
 
  fi
2992
 
else
2993
 
  echo "configure: failed program was:" >&5
2994
 
  cat conftest.$ac_ext >&5
2995
 
  ac_cv_prog_cxx_works=no
2996
 
fi
2997
 
rm -fr conftest*
2998
 
ac_ext=c
2999
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3000
 
ac_cpp='$CPP $CPPFLAGS'
3001
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3002
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3003
 
cross_compiling=$ac_cv_prog_cc_cross
3004
 
 
3005
 
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
3006
 
if test $ac_cv_prog_cxx_works = no; then
3007
 
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
3008
 
fi
3009
 
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3010
 
echo "configure:3011: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
3011
 
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
3012
 
cross_compiling=$ac_cv_prog_cxx_cross
3013
 
 
3014
 
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
3015
 
echo "configure:3016: checking whether we are using GNU C++" >&5
3016
 
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
3017
 
  echo $ac_n "(cached) $ac_c" 1>&6
3018
 
else
3019
 
  cat > conftest.C <<EOF
3020
 
#ifdef __GNUC__
3021
 
  yes;
 
5664
int
 
5665
main ()
 
5666
{
 
5667
#ifndef __GNUC__
 
5668
       choke me
3022
5669
#endif
3023
 
EOF
3024
 
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:3025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3025
 
  ac_cv_prog_gxx=yes
3026
 
else
3027
 
  ac_cv_prog_gxx=no
3028
 
fi
3029
 
fi
3030
 
 
3031
 
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
3032
 
 
3033
 
if test $ac_cv_prog_gxx = yes; then
3034
 
  GXX=yes
3035
 
else
3036
 
  GXX=
3037
 
fi
3038
 
 
3039
 
ac_test_CXXFLAGS="${CXXFLAGS+set}"
3040
 
ac_save_CXXFLAGS="$CXXFLAGS"
3041
 
CXXFLAGS=
3042
 
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
3043
 
echo "configure:3044: checking whether ${CXX-g++} accepts -g" >&5
3044
 
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
3045
 
  echo $ac_n "(cached) $ac_c" 1>&6
3046
 
else
3047
 
  echo 'void f(){}' > conftest.cc
3048
 
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
 
5670
 
 
5671
  ;
 
5672
  return 0;
 
5673
}
 
5674
_ACEOF
 
5675
rm -f conftest.$ac_objext
 
5676
if { (eval echo "$as_me:5676: \"$ac_compile\"") >&5
 
5677
  (eval $ac_compile) 2>&5
 
5678
  ac_status=$?
 
5679
  echo "$as_me:5679: \$? = $ac_status" >&5
 
5680
  (exit $ac_status); } &&
 
5681
         { ac_try='test -s conftest.$ac_objext'
 
5682
  { (eval echo "$as_me:5682: \"$ac_try\"") >&5
 
5683
  (eval $ac_try) 2>&5
 
5684
  ac_status=$?
 
5685
  echo "$as_me:5685: \$? = $ac_status" >&5
 
5686
  (exit $ac_status); }; }; then
 
5687
  ac_compiler_gnu=yes
 
5688
else
 
5689
  echo "$as_me: failed program was:" >&5
 
5690
cat conftest.$ac_ext >&5
 
5691
ac_compiler_gnu=no
 
5692
fi
 
5693
rm -f conftest.$ac_objext conftest.$ac_ext
 
5694
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5695
 
 
5696
fi
 
5697
echo "$as_me:5697: result: $ac_cv_cxx_compiler_gnu" >&5
 
5698
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
5699
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5700
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5701
ac_save_CXXFLAGS=$CXXFLAGS
 
5702
CXXFLAGS="-g"
 
5703
echo "$as_me:5703: checking whether $CXX accepts -g" >&5
 
5704
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
5705
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5706
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5707
else
 
5708
  cat >conftest.$ac_ext <<_ACEOF
 
5709
#line 5709 "configure"
 
5710
#include "confdefs.h"
 
5711
 
 
5712
int
 
5713
main ()
 
5714
{
 
5715
 
 
5716
  ;
 
5717
  return 0;
 
5718
}
 
5719
_ACEOF
 
5720
rm -f conftest.$ac_objext
 
5721
if { (eval echo "$as_me:5721: \"$ac_compile\"") >&5
 
5722
  (eval $ac_compile) 2>&5
 
5723
  ac_status=$?
 
5724
  echo "$as_me:5724: \$? = $ac_status" >&5
 
5725
  (exit $ac_status); } &&
 
5726
         { ac_try='test -s conftest.$ac_objext'
 
5727
  { (eval echo "$as_me:5727: \"$ac_try\"") >&5
 
5728
  (eval $ac_try) 2>&5
 
5729
  ac_status=$?
 
5730
  echo "$as_me:5730: \$? = $ac_status" >&5
 
5731
  (exit $ac_status); }; }; then
3049
5732
  ac_cv_prog_cxx_g=yes
3050
5733
else
3051
 
  ac_cv_prog_cxx_g=no
3052
 
fi
3053
 
rm -f conftest*
3054
 
 
3055
 
fi
3056
 
 
3057
 
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
 
5734
  echo "$as_me: failed program was:" >&5
 
5735
cat conftest.$ac_ext >&5
 
5736
ac_cv_prog_cxx_g=no
 
5737
fi
 
5738
rm -f conftest.$ac_objext conftest.$ac_ext
 
5739
fi
 
5740
echo "$as_me:5740: result: $ac_cv_prog_cxx_g" >&5
 
5741
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3058
5742
if test "$ac_test_CXXFLAGS" = set; then
3059
 
  CXXFLAGS="$ac_save_CXXFLAGS"
 
5743
  CXXFLAGS=$ac_save_CXXFLAGS
3060
5744
elif test $ac_cv_prog_cxx_g = yes; then
3061
5745
  if test "$GXX" = yes; then
3062
5746
    CXXFLAGS="-g -O2"
3070
5754
    CXXFLAGS=
3071
5755
  fi
3072
5756
fi
3073
 
 
3074
 
 
3075
 
# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
3076
 
if test "${with_gtk_prefix+set}" = set; then
3077
 
  withval="$with_gtk_prefix"
3078
 
  gtk_config_prefix="$withval"
3079
 
else
3080
 
  gtk_config_prefix=""
3081
 
fi
3082
 
 
3083
 
# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
3084
 
if test "${with_gtk_exec_prefix+set}" = set; then
3085
 
  withval="$with_gtk_exec_prefix"
3086
 
  gtk_config_exec_prefix="$withval"
3087
 
else
3088
 
  gtk_config_exec_prefix=""
3089
 
fi
 
5757
for ac_declaration in \
 
5758
   ''\
 
5759
   '#include <stdlib.h>' \
 
5760
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
5761
   'extern "C" void std::exit (int); using std::exit;' \
 
5762
   'extern "C" void exit (int) throw ();' \
 
5763
   'extern "C" void exit (int);' \
 
5764
   'void exit (int);'
 
5765
do
 
5766
  cat >conftest.$ac_ext <<_ACEOF
 
5767
#line 5767 "configure"
 
5768
#include "confdefs.h"
 
5769
#include <stdlib.h>
 
5770
$ac_declaration
 
5771
int
 
5772
main ()
 
5773
{
 
5774
exit (42);
 
5775
  ;
 
5776
  return 0;
 
5777
}
 
5778
_ACEOF
 
5779
rm -f conftest.$ac_objext
 
5780
if { (eval echo "$as_me:5780: \"$ac_compile\"") >&5
 
5781
  (eval $ac_compile) 2>&5
 
5782
  ac_status=$?
 
5783
  echo "$as_me:5783: \$? = $ac_status" >&5
 
5784
  (exit $ac_status); } &&
 
5785
         { ac_try='test -s conftest.$ac_objext'
 
5786
  { (eval echo "$as_me:5786: \"$ac_try\"") >&5
 
5787
  (eval $ac_try) 2>&5
 
5788
  ac_status=$?
 
5789
  echo "$as_me:5789: \$? = $ac_status" >&5
 
5790
  (exit $ac_status); }; }; then
 
5791
  :
 
5792
else
 
5793
  echo "$as_me: failed program was:" >&5
 
5794
cat conftest.$ac_ext >&5
 
5795
continue
 
5796
fi
 
5797
rm -f conftest.$ac_objext conftest.$ac_ext
 
5798
  cat >conftest.$ac_ext <<_ACEOF
 
5799
#line 5799 "configure"
 
5800
#include "confdefs.h"
 
5801
$ac_declaration
 
5802
int
 
5803
main ()
 
5804
{
 
5805
exit (42);
 
5806
  ;
 
5807
  return 0;
 
5808
}
 
5809
_ACEOF
 
5810
rm -f conftest.$ac_objext
 
5811
if { (eval echo "$as_me:5811: \"$ac_compile\"") >&5
 
5812
  (eval $ac_compile) 2>&5
 
5813
  ac_status=$?
 
5814
  echo "$as_me:5814: \$? = $ac_status" >&5
 
5815
  (exit $ac_status); } &&
 
5816
         { ac_try='test -s conftest.$ac_objext'
 
5817
  { (eval echo "$as_me:5817: \"$ac_try\"") >&5
 
5818
  (eval $ac_try) 2>&5
 
5819
  ac_status=$?
 
5820
  echo "$as_me:5820: \$? = $ac_status" >&5
 
5821
  (exit $ac_status); }; }; then
 
5822
  break
 
5823
else
 
5824
  echo "$as_me: failed program was:" >&5
 
5825
cat conftest.$ac_ext >&5
 
5826
fi
 
5827
rm -f conftest.$ac_objext conftest.$ac_ext
 
5828
done
 
5829
rm -f conftest*
 
5830
if test -n "$ac_declaration"; then
 
5831
  echo '#ifdef __cplusplus' >>confdefs.h
 
5832
  echo $ac_declaration      >>confdefs.h
 
5833
  echo '#endif'             >>confdefs.h
 
5834
fi
 
5835
 
 
5836
ac_ext=c
 
5837
ac_cpp='$CPP $CPPFLAGS'
 
5838
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5839
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5840
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5841
 
 
5842
depcc="$CXX"  am_compiler_list=
 
5843
 
 
5844
echo "$as_me:5844: checking dependency style of $depcc" >&5
 
5845
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
5846
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5847
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5848
else
 
5849
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5850
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5851
  # making bogus files that we don't know about and never remove.  For
 
5852
  # instance it was reported that on HP-UX the gcc test will end up
 
5853
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5854
  # in D'.
 
5855
  mkdir conftest.dir
 
5856
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5857
  # using a relative directory.
 
5858
  cp "$am_depcomp" conftest.dir
 
5859
  cd conftest.dir
 
5860
 
 
5861
  am_cv_CXX_dependencies_compiler_type=none
 
5862
  if test "$am_compiler_list" = ""; then
 
5863
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5864
  fi
 
5865
  for depmode in $am_compiler_list; do
 
5866
    # We need to recreate these files for each test, as the compiler may
 
5867
    # overwrite some of them when testing with obscure command lines.
 
5868
    # This happens at least with the AIX C compiler.
 
5869
    echo '#include "conftest.h"' > conftest.c
 
5870
    echo 'int i;' > conftest.h
 
5871
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
5872
 
 
5873
    case $depmode in
 
5874
    nosideeffect)
 
5875
      # after this tag, mechanisms are not by side-effect, so they'll
 
5876
      # only be used when explicitly requested
 
5877
      if test "x$enable_dependency_tracking" = xyes; then
 
5878
        continue
 
5879
      else
 
5880
        break
 
5881
      fi
 
5882
      ;;
 
5883
    none) break ;;
 
5884
    esac
 
5885
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5886
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5887
    # handle `-M -o', and we need to detect this.
 
5888
    if depmode=$depmode \
 
5889
       source=conftest.c object=conftest.o \
 
5890
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
5891
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
 
5892
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
5893
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5894
      am_cv_CXX_dependencies_compiler_type=$depmode
 
5895
      break
 
5896
    fi
 
5897
  done
 
5898
 
 
5899
  cd ..
 
5900
  rm -rf conftest.dir
 
5901
else
 
5902
  am_cv_CXX_dependencies_compiler_type=none
 
5903
fi
 
5904
 
 
5905
fi
 
5906
echo "$as_me:5906: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5907
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
5908
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5909
 
 
5910
# Check whether --enable-glibtest or --disable-glibtest was given.
 
5911
if test "${enable_glibtest+set}" = set; then
 
5912
  enableval="$enable_glibtest"
 
5913
 
 
5914
else
 
5915
  enable_glibtest=yes
 
5916
fi;
 
5917
 
 
5918
  pkg_config_args=glib-2.0
 
5919
  for module in . gobject
 
5920
  do
 
5921
      case "$module" in
 
5922
         gmodule)
 
5923
             pkg_config_args="$pkg_config_args gmodule-2.0"
 
5924
         ;;
 
5925
         gobject)
 
5926
             pkg_config_args="$pkg_config_args gobject-2.0"
 
5927
         ;;
 
5928
         gthread)
 
5929
             pkg_config_args="$pkg_config_args gthread-2.0"
 
5930
         ;;
 
5931
      esac
 
5932
  done
 
5933
 
 
5934
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
5935
set dummy pkg-config; ac_word=$2
 
5936
echo "$as_me:5936: checking for $ac_word" >&5
 
5937
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5938
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
5939
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5940
else
 
5941
  case $PKG_CONFIG in
 
5942
  [\\/]* | ?:[\\/]*)
 
5943
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
5944
  ;;
 
5945
  *)
 
5946
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
5947
ac_dummy="$PATH"
 
5948
for ac_dir in $ac_dummy; do
 
5949
  IFS=$ac_save_IFS
 
5950
  test -z "$ac_dir" && ac_dir=.
 
5951
  if $as_executable_p "$ac_dir/$ac_word"; then
 
5952
   ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
 
5953
   echo "$as_me:5953: found $ac_dir/$ac_word" >&5
 
5954
   break
 
5955
fi
 
5956
done
 
5957
 
 
5958
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
5959
  ;;
 
5960
esac
 
5961
fi
 
5962
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
5963
 
 
5964
if test -n "$PKG_CONFIG"; then
 
5965
  echo "$as_me:5965: result: $PKG_CONFIG" >&5
 
5966
echo "${ECHO_T}$PKG_CONFIG" >&6
 
5967
else
 
5968
  echo "$as_me:5968: result: no" >&5
 
5969
echo "${ECHO_T}no" >&6
 
5970
fi
 
5971
 
 
5972
  no_glib=""
 
5973
 
 
5974
  if test x$PKG_CONFIG != xno ; then
 
5975
    if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
 
5976
      :
 
5977
    else
 
5978
      echo *** pkg-config too old; version 0.7 or better required.
 
5979
      no_glib=yes
 
5980
      PKG_CONFIG=no
 
5981
    fi
 
5982
  else
 
5983
    no_glib=yes
 
5984
  fi
 
5985
 
 
5986
  min_glib_version=$GLIB_REQUIRED_VERSION
 
5987
  echo "$as_me:5987: checking for GLIB - version >= $min_glib_version" >&5
 
5988
echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
 
5989
 
 
5990
  if test x$PKG_CONFIG != xno ; then
 
5991
    ## don't try to run the test against uninstalled libtool libs
 
5992
    if $PKG_CONFIG --uninstalled $pkg_config_args; then
 
5993
          echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
 
5994
          enable_glibtest=no
 
5995
    fi
 
5996
 
 
5997
    if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
 
5998
          :
 
5999
    else
 
6000
          no_glib=yes
 
6001
    fi
 
6002
  fi
 
6003
 
 
6004
  if test x"$no_glib" = x ; then
 
6005
    GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
 
6006
    GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
 
6007
    GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
 
6008
 
 
6009
    GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
 
6010
    GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
 
6011
    glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
 
6012
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
 
6013
    glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
 
6014
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
 
6015
    glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
 
6016
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
 
6017
    if test "x$enable_glibtest" = "xyes" ; then
 
6018
      ac_save_CFLAGS="$CFLAGS"
 
6019
      ac_save_LIBS="$LIBS"
 
6020
      CFLAGS="$CFLAGS $GLIB_CFLAGS"
 
6021
      LIBS="$GLIB_LIBS $LIBS"
 
6022
      rm -f conf.glibtest
 
6023
      if test "$cross_compiling" = yes; then
 
6024
  echo $ac_n "cross compiling; assumed OK... $ac_c"
 
6025
else
 
6026
  cat >conftest.$ac_ext <<_ACEOF
 
6027
#line 6027 "configure"
 
6028
#include "confdefs.h"
 
6029
 
 
6030
#include <glib.h>
 
6031
#include <stdio.h>
 
6032
#include <stdlib.h>
 
6033
 
 
6034
int
 
6035
main ()
 
6036
{
 
6037
  int major, minor, micro;
 
6038
  char *tmp_version;
 
6039
 
 
6040
  system ("touch conf.glibtest");
 
6041
 
 
6042
  /* HP/UX 9 (%@#!) writes to sscanf strings */
 
6043
  tmp_version = g_strdup("$min_glib_version");
 
6044
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
 
6045
     printf("%s, bad version string\n", "$min_glib_version");
 
6046
     exit(1);
 
6047
   }
 
6048
 
 
6049
  if ((glib_major_version != $glib_config_major_version) ||
 
6050
      (glib_minor_version != $glib_config_minor_version) ||
 
6051
      (glib_micro_version != $glib_config_micro_version))
 
6052
    {
 
6053
      printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
 
6054
             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
 
6055
             glib_major_version, glib_minor_version, glib_micro_version);
 
6056
      printf ("*** was found! If pkg-config was correct, then it is best\n");
 
6057
      printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
 
6058
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
 
6059
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
 
6060
      printf("*** required on your system.\n");
 
6061
      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
 
6062
      printf("*** to point to the correct configuration files\n");
 
6063
    }
 
6064
  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
 
6065
           (glib_minor_version != GLIB_MINOR_VERSION) ||
 
6066
           (glib_micro_version != GLIB_MICRO_VERSION))
 
6067
    {
 
6068
      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
 
6069
             GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
 
6070
      printf("*** library (version %d.%d.%d)\n",
 
6071
             glib_major_version, glib_minor_version, glib_micro_version);
 
6072
    }
 
6073
  else
 
6074
    {
 
6075
      if ((glib_major_version > major) ||
 
6076
        ((glib_major_version == major) && (glib_minor_version > minor)) ||
 
6077
        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
 
6078
      {
 
6079
        return 0;
 
6080
       }
 
6081
     else
 
6082
      {
 
6083
        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
 
6084
               glib_major_version, glib_minor_version, glib_micro_version);
 
6085
        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
 
6086
               major, minor, micro);
 
6087
        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
 
6088
        printf("***\n");
 
6089
        printf("*** If you have already installed a sufficiently new version, this error\n");
 
6090
        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
 
6091
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
 
6092
        printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
 
6093
        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
 
6094
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
 
6095
        printf("*** so that the correct libraries are found at run-time))\n");
 
6096
      }
 
6097
    }
 
6098
  return 1;
 
6099
}
 
6100
 
 
6101
_ACEOF
 
6102
rm -f conftest$ac_exeext
 
6103
if { (eval echo "$as_me:6103: \"$ac_link\"") >&5
 
6104
  (eval $ac_link) 2>&5
 
6105
  ac_status=$?
 
6106
  echo "$as_me:6106: \$? = $ac_status" >&5
 
6107
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6108
  { (eval echo "$as_me:6108: \"$ac_try\"") >&5
 
6109
  (eval $ac_try) 2>&5
 
6110
  ac_status=$?
 
6111
  echo "$as_me:6111: \$? = $ac_status" >&5
 
6112
  (exit $ac_status); }; }; then
 
6113
  :
 
6114
else
 
6115
  echo "$as_me: program exited with status $ac_status" >&5
 
6116
echo "$as_me: failed program was:" >&5
 
6117
cat conftest.$ac_ext >&5
 
6118
no_glib=yes
 
6119
fi
 
6120
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6121
fi
 
6122
       CFLAGS="$ac_save_CFLAGS"
 
6123
       LIBS="$ac_save_LIBS"
 
6124
     fi
 
6125
  fi
 
6126
  if test "x$no_glib" = x ; then
 
6127
     echo "$as_me:6127: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
 
6128
echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6
 
6129
     :
 
6130
  else
 
6131
     echo "$as_me:6131: result: no" >&5
 
6132
echo "${ECHO_T}no" >&6
 
6133
     if test "$PKG_CONFIG" = "no" ; then
 
6134
       echo "*** A new enough version of pkg-config was not found."
 
6135
       echo "*** See http://www.freedesktop.org/software/pkgconfig/"
 
6136
     else
 
6137
       if test -f conf.glibtest ; then
 
6138
        :
 
6139
       else
 
6140
          echo "*** Could not run GLIB test program, checking why..."
 
6141
          CFLAGS="$CFLAGS $GLIB_CFLAGS"
 
6142
          LIBS="$LIBS $GLIB_LIBS"
 
6143
          cat >conftest.$ac_ext <<_ACEOF
 
6144
#line 6144 "configure"
 
6145
#include "confdefs.h"
 
6146
 
 
6147
#include <glib.h>
 
6148
#include <stdio.h>
 
6149
 
 
6150
int
 
6151
main ()
 
6152
{
 
6153
 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
 
6154
  ;
 
6155
  return 0;
 
6156
}
 
6157
_ACEOF
 
6158
rm -f conftest.$ac_objext conftest$ac_exeext
 
6159
if { (eval echo "$as_me:6159: \"$ac_link\"") >&5
 
6160
  (eval $ac_link) 2>&5
 
6161
  ac_status=$?
 
6162
  echo "$as_me:6162: \$? = $ac_status" >&5
 
6163
  (exit $ac_status); } &&
 
6164
         { ac_try='test -s conftest$ac_exeext'
 
6165
  { (eval echo "$as_me:6165: \"$ac_try\"") >&5
 
6166
  (eval $ac_try) 2>&5
 
6167
  ac_status=$?
 
6168
  echo "$as_me:6168: \$? = $ac_status" >&5
 
6169
  (exit $ac_status); }; }; then
 
6170
   echo "*** The test program compiled, but did not run. This usually means"
 
6171
          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
 
6172
          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
 
6173
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
 
6174
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
 
6175
          echo "*** is required on your system"
 
6176
          echo "***"
 
6177
          echo "*** If you have an old version installed, it is best to remove it, although"
 
6178
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
 
6179
else
 
6180
  echo "$as_me: failed program was:" >&5
 
6181
cat conftest.$ac_ext >&5
 
6182
 echo "*** The test program failed to compile or link. See the file config.log for the"
 
6183
          echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
 
6184
          echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
 
6185
          echo "*** may want to edit the pkg-config script: $PKG_CONFIG"
 
6186
fi
 
6187
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6188
          CFLAGS="$ac_save_CFLAGS"
 
6189
          LIBS="$ac_save_LIBS"
 
6190
       fi
 
6191
     fi
 
6192
     GLIB_CFLAGS=""
 
6193
     GLIB_LIBS=""
 
6194
     GLIB_GENMARSHAL=""
 
6195
     GOBJECT_QUERY=""
 
6196
     GLIB_MKENUMS=""
 
6197
     { { echo "$as_me:6197: error: Test for GLIB failed. See the file 'INSTALL' for help." >&5
 
6198
echo "$as_me: error: Test for GLIB failed. See the file 'INSTALL' for help." >&2;}
 
6199
   { (exit 1); exit 1; }; }
 
6200
  fi
 
6201
 
 
6202
  rm -f conf.glibtest
3090
6203
 
3091
6204
# Check whether --enable-gtktest or --disable-gtktest was given.
3092
6205
if test "${enable_gtktest+set}" = set; then
3093
6206
  enableval="$enable_gtktest"
3094
 
  :
 
6207
 
3095
6208
else
3096
6209
  enable_gtktest=yes
3097
 
fi
3098
 
 
3099
 
 
3100
 
  for module in . 
 
6210
fi;
 
6211
 
 
6212
  pkg_config_args=gtk+-2.0
 
6213
  for module in .
3101
6214
  do
3102
6215
      case "$module" in
3103
 
         gthread) 
3104
 
             gtk_config_args="$gtk_config_args gthread"
 
6216
         gthread)
 
6217
             pkg_config_args="$pkg_config_args gthread-2.0"
3105
6218
         ;;
3106
6219
      esac
3107
6220
  done
3108
6221
 
3109
 
  if test x$gtk_config_exec_prefix != x ; then
3110
 
     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
3111
 
     if test x${GTK_CONFIG+set} != xset ; then
3112
 
        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
3113
 
     fi
3114
 
  fi
3115
 
  if test x$gtk_config_prefix != x ; then
3116
 
     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
3117
 
     if test x${GTK_CONFIG+set} != xset ; then
3118
 
        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
3119
 
     fi
3120
 
  fi
3121
 
 
3122
 
  # Extract the first word of "gtk-config", so it can be a program name with args.
3123
 
set dummy gtk-config; ac_word=$2
3124
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3125
 
echo "configure:3126: checking for $ac_word" >&5
3126
 
if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
3127
 
  echo $ac_n "(cached) $ac_c" 1>&6
3128
 
else
3129
 
  case "$GTK_CONFIG" in
3130
 
  /*)
3131
 
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
3132
 
  ;;
3133
 
  ?:/*)                  
3134
 
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
3135
 
  ;;
3136
 
  *)
3137
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3138
 
  ac_dummy="$PATH"
3139
 
  for ac_dir in $ac_dummy; do 
3140
 
    test -z "$ac_dir" && ac_dir=.
3141
 
    if test -f $ac_dir/$ac_word; then
3142
 
      ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
3143
 
      break
3144
 
    fi
3145
 
  done
3146
 
  IFS="$ac_save_ifs"
3147
 
  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
3148
 
  ;;
3149
 
esac
3150
 
fi
3151
 
GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
3152
 
if test -n "$GTK_CONFIG"; then
3153
 
  echo "$ac_t""$GTK_CONFIG" 1>&6
3154
 
else
3155
 
  echo "$ac_t""no" 1>&6
3156
 
fi
3157
 
 
3158
 
  min_gtk_version=1.2.0
3159
 
  echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
3160
 
echo "configure:3161: checking for GTK - version >= $min_gtk_version" >&5
3161
6222
  no_gtk=""
3162
 
  if test "$GTK_CONFIG" = "no" ; then
 
6223
 
 
6224
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
6225
set dummy pkg-config; ac_word=$2
 
6226
echo "$as_me:6226: checking for $ac_word" >&5
 
6227
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6228
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
6229
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6230
else
 
6231
  case $PKG_CONFIG in
 
6232
  [\\/]* | ?:[\\/]*)
 
6233
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
6234
  ;;
 
6235
  *)
 
6236
  ac_save_IFS=$IFS; IFS=$ac_path_separator
 
6237
ac_dummy="$PATH"
 
6238
for ac_dir in $ac_dummy; do
 
6239
  IFS=$ac_save_IFS
 
6240
  test -z "$ac_dir" && ac_dir=.
 
6241
  if $as_executable_p "$ac_dir/$ac_word"; then
 
6242
   ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
 
6243
   echo "$as_me:6243: found $ac_dir/$ac_word" >&5
 
6244
   break
 
6245
fi
 
6246
done
 
6247
 
 
6248
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
6249
  ;;
 
6250
esac
 
6251
fi
 
6252
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
6253
 
 
6254
if test -n "$PKG_CONFIG"; then
 
6255
  echo "$as_me:6255: result: $PKG_CONFIG" >&5
 
6256
echo "${ECHO_T}$PKG_CONFIG" >&6
 
6257
else
 
6258
  echo "$as_me:6258: result: no" >&5
 
6259
echo "${ECHO_T}no" >&6
 
6260
fi
 
6261
 
 
6262
  if test x$PKG_CONFIG != xno ; then
 
6263
    if pkg-config --atleast-pkgconfig-version 0.7 ; then
 
6264
      :
 
6265
    else
 
6266
      echo *** pkg-config too old; version 0.7 or better required.
 
6267
      no_gtk=yes
 
6268
      PKG_CONFIG=no
 
6269
    fi
 
6270
  else
3163
6271
    no_gtk=yes
3164
 
  else
3165
 
    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
3166
 
    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
3167
 
    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
 
6272
  fi
 
6273
 
 
6274
  min_gtk_version=$GTK_REQUIRED_VERSION
 
6275
  echo "$as_me:6275: checking for GTK+ - version >= $min_gtk_version" >&5
 
6276
echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
 
6277
 
 
6278
  if test x$PKG_CONFIG != xno ; then
 
6279
    ## don't try to run the test against uninstalled libtool libs
 
6280
    if $PKG_CONFIG --uninstalled $pkg_config_args; then
 
6281
          echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
 
6282
          enable_gtktest=no
 
6283
    fi
 
6284
 
 
6285
    if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
 
6286
          :
 
6287
    else
 
6288
          no_gtk=yes
 
6289
    fi
 
6290
  fi
 
6291
 
 
6292
  if test x"$no_gtk" = x ; then
 
6293
    GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
 
6294
    GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
 
6295
    gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
3168
6296
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3169
 
    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
 
6297
    gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
3170
6298
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3171
 
    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
 
6299
    gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
3172
6300
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3173
6301
    if test "x$enable_gtktest" = "xyes" ; then
3174
6302
      ac_save_CFLAGS="$CFLAGS"
3179
6307
      if test "$cross_compiling" = yes; then
3180
6308
  echo $ac_n "cross compiling; assumed OK... $ac_c"
3181
6309
else
3182
 
  cat > conftest.$ac_ext <<EOF
3183
 
#line 3184 "configure"
 
6310
  cat >conftest.$ac_ext <<_ACEOF
 
6311
#line 6311 "configure"
3184
6312
#include "confdefs.h"
3185
6313
 
3186
6314
#include <gtk/gtk.h>
3187
6315
#include <stdio.h>
3188
6316
#include <stdlib.h>
3189
6317
 
3190
 
int 
 
6318
int
3191
6319
main ()
3192
6320
{
3193
6321
  int major, minor, micro;
3206
6334
      (gtk_minor_version != $gtk_config_minor_version) ||
3207
6335
      (gtk_micro_version != $gtk_config_micro_version))
3208
6336
    {
3209
 
      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
 
6337
      printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
3210
6338
             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
3211
6339
             gtk_major_version, gtk_minor_version, gtk_micro_version);
3212
 
      printf ("*** was found! If gtk-config was correct, then it is best\n");
 
6340
      printf ("*** was found! If pkg-config was correct, then it is best\n");
3213
6341
      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
3214
6342
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
3215
6343
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
3216
6344
      printf("*** required on your system.\n");
3217
 
      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
3218
 
      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
3219
 
      printf("*** before re-running configure\n");
3220
 
    } 
3221
 
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
 
6345
      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
 
6346
      printf("*** to point to the correct configuration files\n");
 
6347
    }
3222
6348
  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
3223
6349
           (gtk_minor_version != GTK_MINOR_VERSION) ||
3224
6350
           (gtk_micro_version != GTK_MICRO_VERSION))
3228
6354
      printf("*** library (version %d.%d.%d)\n",
3229
6355
             gtk_major_version, gtk_minor_version, gtk_micro_version);
3230
6356
    }
3231
 
#endif /* defined (GTK_MAJOR_VERSION) ... */
3232
6357
  else
3233
6358
    {
3234
6359
      if ((gtk_major_version > major) ||
3246
6371
        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
3247
6372
        printf("***\n");
3248
6373
        printf("*** If you have already installed a sufficiently new version, this error\n");
3249
 
        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
 
6374
        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
3250
6375
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
3251
 
        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
3252
 
        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
 
6376
        printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
 
6377
        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
3253
6378
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
3254
6379
        printf("*** so that the correct libraries are found at run-time))\n");
3255
6380
      }
3257
6382
  return 1;
3258
6383
}
3259
6384
 
3260
 
EOF
3261
 
if { (eval echo configure:3262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3262
 
then
 
6385
_ACEOF
 
6386
rm -f conftest$ac_exeext
 
6387
if { (eval echo "$as_me:6387: \"$ac_link\"") >&5
 
6388
  (eval $ac_link) 2>&5
 
6389
  ac_status=$?
 
6390
  echo "$as_me:6390: \$? = $ac_status" >&5
 
6391
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6392
  { (eval echo "$as_me:6392: \"$ac_try\"") >&5
 
6393
  (eval $ac_try) 2>&5
 
6394
  ac_status=$?
 
6395
  echo "$as_me:6395: \$? = $ac_status" >&5
 
6396
  (exit $ac_status); }; }; then
3263
6397
  :
3264
6398
else
3265
 
  echo "configure: failed program was:" >&5
3266
 
  cat conftest.$ac_ext >&5
3267
 
  rm -fr conftest*
3268
 
  no_gtk=yes
3269
 
fi
3270
 
rm -fr conftest*
3271
 
fi
3272
 
 
 
6399
  echo "$as_me: program exited with status $ac_status" >&5
 
6400
echo "$as_me: failed program was:" >&5
 
6401
cat conftest.$ac_ext >&5
 
6402
no_gtk=yes
 
6403
fi
 
6404
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6405
fi
3273
6406
       CFLAGS="$ac_save_CFLAGS"
3274
6407
       LIBS="$ac_save_LIBS"
3275
6408
     fi
3276
6409
  fi
3277
6410
  if test "x$no_gtk" = x ; then
3278
 
     echo "$ac_t""yes" 1>&6
3279
 
     :     
 
6411
     echo "$as_me:6411: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
 
6412
echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
 
6413
     :
3280
6414
  else
3281
 
     echo "$ac_t""no" 1>&6
3282
 
     if test "$GTK_CONFIG" = "no" ; then
3283
 
       echo "*** The gtk-config script installed by GTK could not be found"
3284
 
       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
3285
 
       echo "*** your path, or set the GTK_CONFIG environment variable to the"
3286
 
       echo "*** full path to gtk-config."
 
6415
     echo "$as_me:6415: result: no" >&5
 
6416
echo "${ECHO_T}no" >&6
 
6417
     if test "$PKG_CONFIG" = "no" ; then
 
6418
       echo "*** A new enough version of pkg-config was not found."
 
6419
       echo "*** See http://pkgconfig.sourceforge.net"
3287
6420
     else
3288
6421
       if test -f conf.gtktest ; then
3289
6422
        :
3290
6423
       else
3291
 
          echo "*** Could not run GTK test program, checking why..."
 
6424
          echo "*** Could not run GTK+ test program, checking why..."
3292
6425
          CFLAGS="$CFLAGS $GTK_CFLAGS"
3293
6426
          LIBS="$LIBS $GTK_LIBS"
3294
 
          cat > conftest.$ac_ext <<EOF
3295
 
#line 3296 "configure"
 
6427
          cat >conftest.$ac_ext <<_ACEOF
 
6428
#line 6428 "configure"
3296
6429
#include "confdefs.h"
3297
6430
 
3298
6431
#include <gtk/gtk.h>
3299
6432
#include <stdio.h>
3300
6433
 
3301
 
int main() {
3302
 
 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
3303
 
; return 0; }
3304
 
EOF
3305
 
if { (eval echo configure:3306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3306
 
  rm -rf conftest*
 
6434
int
 
6435
main ()
 
6436
{
 
6437
 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
 
6438
  ;
 
6439
  return 0;
 
6440
}
 
6441
_ACEOF
 
6442
rm -f conftest.$ac_objext conftest$ac_exeext
 
6443
if { (eval echo "$as_me:6443: \"$ac_link\"") >&5
 
6444
  (eval $ac_link) 2>&5
 
6445
  ac_status=$?
 
6446
  echo "$as_me:6446: \$? = $ac_status" >&5
 
6447
  (exit $ac_status); } &&
 
6448
         { ac_try='test -s conftest$ac_exeext'
 
6449
  { (eval echo "$as_me:6449: \"$ac_try\"") >&5
 
6450
  (eval $ac_try) 2>&5
 
6451
  ac_status=$?
 
6452
  echo "$as_me:6452: \$? = $ac_status" >&5
 
6453
  (exit $ac_status); }; }; then
3307
6454
   echo "*** The test program compiled, but did not run. This usually means"
3308
 
          echo "*** that the run-time linker is not finding GTK or finding the wrong"
3309
 
          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
 
6455
          echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
 
6456
          echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
3310
6457
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3311
6458
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
3312
6459
          echo "*** is required on your system"
3313
6460
          echo "***"
3314
6461
          echo "*** If you have an old version installed, it is best to remove it, although"
3315
6462
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3316
 
          echo "***"
3317
 
          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
3318
 
          echo "*** came with the system with the command"
3319
 
          echo "***"
3320
 
          echo "***    rpm --erase --nodeps gtk gtk-devel" 
3321
6463
else
3322
 
  echo "configure: failed program was:" >&5
3323
 
  cat conftest.$ac_ext >&5
3324
 
  rm -rf conftest*
3325
 
   echo "*** The test program failed to compile or link. See the file config.log for the"
3326
 
          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
3327
 
          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
3328
 
          echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
 
6464
  echo "$as_me: failed program was:" >&5
 
6465
cat conftest.$ac_ext >&5
 
6466
 echo "*** The test program failed to compile or link. See the file config.log for the"
 
6467
          echo "*** exact error that occured. This usually means GTK+ was incorrectly installed"
 
6468
          echo "*** or that you have moved GTK+ since it was installed. In the latter case, you"
 
6469
          echo "*** may want to edit the pkg-config script: $PKG_CONFIG"
3329
6470
fi
3330
 
rm -f conftest*
 
6471
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3331
6472
          CFLAGS="$ac_save_CFLAGS"
3332
6473
          LIBS="$ac_save_LIBS"
3333
6474
       fi
3334
6475
     fi
3335
6476
     GTK_CFLAGS=""
3336
6477
     GTK_LIBS=""
3337
 
     { echo "configure: error: Groundhog needs GTK" 1>&2; exit 1; }
 
6478
     { { echo "$as_me:6478: error: Test for GTK failed. See the file 'INSTALL' for help." >&5
 
6479
echo "$as_me: error: Test for GTK failed. See the file 'INSTALL' for help." >&2;}
 
6480
   { (exit 1); exit 1; }; }
3338
6481
  fi
3339
 
  
3340
 
  
 
6482
 
3341
6483
  rm -f conf.gtktest
3342
6484
 
3343
 
 
3344
6485
CXXFLAGS="-O2 -Wall"
3345
6486
 
3346
 
for ac_hdr in unistd.h
 
6487
for ac_header in unistd.h
3347
6488
do
3348
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3349
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3350
 
echo "configure:3351: checking for $ac_hdr" >&5
3351
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3352
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
6489
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6490
echo "$as_me:6490: checking for $ac_header" >&5
 
6491
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6492
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6493
  echo $ECHO_N "(cached) $ECHO_C" >&6
3353
6494
else
3354
 
  cat > conftest.$ac_ext <<EOF
3355
 
#line 3356 "configure"
 
6495
  cat >conftest.$ac_ext <<_ACEOF
 
6496
#line 6496 "configure"
3356
6497
#include "confdefs.h"
3357
 
#include <$ac_hdr>
3358
 
EOF
3359
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3360
 
{ (eval echo configure:3361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3361
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3362
 
if test -z "$ac_err"; then
3363
 
  rm -rf conftest*
3364
 
  eval "ac_cv_header_$ac_safe=yes"
3365
 
else
3366
 
  echo "$ac_err" >&5
3367
 
  echo "configure: failed program was:" >&5
 
6498
#include <$ac_header>
 
6499
_ACEOF
 
6500
if { (eval echo "$as_me:6500: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6501
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6502
  ac_status=$?
 
6503
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
6504
  rm -f conftest.er1
 
6505
  cat conftest.err >&5
 
6506
  echo "$as_me:6506: \$? = $ac_status" >&5
 
6507
  (exit $ac_status); } >/dev/null; then
 
6508
  if test -s conftest.err; then
 
6509
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6510
  else
 
6511
    ac_cpp_err=
 
6512
  fi
 
6513
else
 
6514
  ac_cpp_err=yes
 
6515
fi
 
6516
if test -z "$ac_cpp_err"; then
 
6517
  eval "$as_ac_Header=yes"
 
6518
else
 
6519
  echo "$as_me: failed program was:" >&5
3368
6520
  cat conftest.$ac_ext >&5
3369
 
  rm -rf conftest*
3370
 
  eval "ac_cv_header_$ac_safe=no"
3371
 
fi
3372
 
rm -f conftest*
3373
 
fi
3374
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3375
 
  echo "$ac_t""yes" 1>&6
3376
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3377
 
  cat >> confdefs.h <<EOF
3378
 
#define $ac_tr_hdr 1
 
6521
  eval "$as_ac_Header=no"
 
6522
fi
 
6523
rm -f conftest.err conftest.$ac_ext
 
6524
fi
 
6525
echo "$as_me:6525: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6526
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6527
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6528
  cat >>confdefs.h <<EOF
 
6529
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3379
6530
EOF
3380
 
 
3381
 
else
3382
 
  echo "$ac_t""no" 1>&6
 
6531
 
3383
6532
fi
3384
6533
done
3385
6534
 
3386
 
 
3387
 
echo $ac_n "checking for working const""... $ac_c" 1>&6
3388
 
echo "configure:3389: checking for working const" >&5
3389
 
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3390
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
6535
echo "$as_me:6535: checking for an ANSI C-conforming const" >&5
 
6536
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
6537
if test "${ac_cv_c_const+set}" = set; then
 
6538
  echo $ECHO_N "(cached) $ECHO_C" >&6
3391
6539
else
3392
 
  cat > conftest.$ac_ext <<EOF
3393
 
#line 3394 "configure"
 
6540
  cat >conftest.$ac_ext <<_ACEOF
 
6541
#line 6541 "configure"
3394
6542
#include "confdefs.h"
3395
6543
 
3396
 
int main() {
3397
 
 
3398
 
/* Ultrix mips cc rejects this.  */
3399
 
typedef int charset[2]; const charset x;
3400
 
/* SunOS 4.1.1 cc rejects this.  */
3401
 
char const *const *ccp;
3402
 
char **p;
3403
 
/* NEC SVR4.0.2 mips cc rejects this.  */
3404
 
struct point {int x, y;};
3405
 
static struct point const zero = {0,0};
3406
 
/* AIX XL C 1.02.0.0 rejects this.
3407
 
   It does not let you subtract one const X* pointer from another in an arm
3408
 
   of an if-expression whose if-part is not a constant expression */
3409
 
const char *g = "string";
3410
 
ccp = &g + (g ? g-g : 0);
3411
 
/* HPUX 7.0 cc rejects these. */
3412
 
++ccp;
3413
 
p = (char**) ccp;
3414
 
ccp = (char const *const *) p;
3415
 
{ /* SCO 3.2v4 cc rejects this.  */
3416
 
  char *t;
3417
 
  char const *s = 0 ? (char *) 0 : (char const *) 0;
3418
 
 
3419
 
  *t++ = 0;
3420
 
}
3421
 
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3422
 
  int x[] = {25, 17};
3423
 
  const int *foo = &x[0];
3424
 
  ++foo;
3425
 
}
3426
 
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3427
 
  typedef const int *iptr;
3428
 
  iptr p = 0;
3429
 
  ++p;
3430
 
}
3431
 
{ /* AIX XL C 1.02.0.0 rejects this saying
3432
 
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3433
 
  struct s { int j; const int *ap[3]; };
3434
 
  struct s *b; b->j = 5;
3435
 
}
3436
 
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3437
 
  const int foo = 10;
3438
 
}
3439
 
 
3440
 
; return 0; }
3441
 
EOF
3442
 
if { (eval echo configure:3443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3443
 
  rm -rf conftest*
 
6544
int
 
6545
main ()
 
6546
{
 
6547
/* FIXME: Include the comments suggested by Paul. */
 
6548
#ifndef __cplusplus
 
6549
  /* Ultrix mips cc rejects this.  */
 
6550
  typedef int charset[2];
 
6551
  const charset x;
 
6552
  /* SunOS 4.1.1 cc rejects this.  */
 
6553
  char const *const *ccp;
 
6554
  char **p;
 
6555
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
6556
  struct point {int x, y;};
 
6557
  static struct point const zero = {0,0};
 
6558
  /* AIX XL C 1.02.0.0 rejects this.
 
6559
     It does not let you subtract one const X* pointer from another in
 
6560
     an arm of an if-expression whose if-part is not a constant
 
6561
     expression */
 
6562
  const char *g = "string";
 
6563
  ccp = &g + (g ? g-g : 0);
 
6564
  /* HPUX 7.0 cc rejects these. */
 
6565
  ++ccp;
 
6566
  p = (char**) ccp;
 
6567
  ccp = (char const *const *) p;
 
6568
  { /* SCO 3.2v4 cc rejects this.  */
 
6569
    char *t;
 
6570
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
6571
 
 
6572
    *t++ = 0;
 
6573
  }
 
6574
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
6575
    int x[] = {25, 17};
 
6576
    const int *foo = &x[0];
 
6577
    ++foo;
 
6578
  }
 
6579
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
6580
    typedef const int *iptr;
 
6581
    iptr p = 0;
 
6582
    ++p;
 
6583
  }
 
6584
  { /* AIX XL C 1.02.0.0 rejects this saying
 
6585
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
6586
    struct s { int j; const int *ap[3]; };
 
6587
    struct s *b; b->j = 5;
 
6588
  }
 
6589
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
6590
    const int foo = 10;
 
6591
  }
 
6592
#endif
 
6593
 
 
6594
  ;
 
6595
  return 0;
 
6596
}
 
6597
_ACEOF
 
6598
rm -f conftest.$ac_objext
 
6599
if { (eval echo "$as_me:6599: \"$ac_compile\"") >&5
 
6600
  (eval $ac_compile) 2>&5
 
6601
  ac_status=$?
 
6602
  echo "$as_me:6602: \$? = $ac_status" >&5
 
6603
  (exit $ac_status); } &&
 
6604
         { ac_try='test -s conftest.$ac_objext'
 
6605
  { (eval echo "$as_me:6605: \"$ac_try\"") >&5
 
6606
  (eval $ac_try) 2>&5
 
6607
  ac_status=$?
 
6608
  echo "$as_me:6608: \$? = $ac_status" >&5
 
6609
  (exit $ac_status); }; }; then
3444
6610
  ac_cv_c_const=yes
3445
6611
else
3446
 
  echo "configure: failed program was:" >&5
3447
 
  cat conftest.$ac_ext >&5
3448
 
  rm -rf conftest*
3449
 
  ac_cv_c_const=no
3450
 
fi
3451
 
rm -f conftest*
3452
 
fi
3453
 
 
3454
 
echo "$ac_t""$ac_cv_c_const" 1>&6
 
6612
  echo "$as_me: failed program was:" >&5
 
6613
cat conftest.$ac_ext >&5
 
6614
ac_cv_c_const=no
 
6615
fi
 
6616
rm -f conftest.$ac_objext conftest.$ac_ext
 
6617
fi
 
6618
echo "$as_me:6618: result: $ac_cv_c_const" >&5
 
6619
echo "${ECHO_T}$ac_cv_c_const" >&6
3455
6620
if test $ac_cv_c_const = no; then
3456
 
  cat >> confdefs.h <<\EOF
3457
 
#define const 
 
6621
 
 
6622
cat >>confdefs.h <<\EOF
 
6623
#define const
3458
6624
EOF
3459
6625
 
3460
6626
fi
3461
6627
 
3462
 
echo $ac_n "checking for size_t""... $ac_c" 1>&6
3463
 
echo "configure:3464: checking for size_t" >&5
3464
 
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3465
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
6628
echo "$as_me:6628: checking for size_t" >&5
 
6629
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
6630
if test "${ac_cv_type_size_t+set}" = set; then
 
6631
  echo $ECHO_N "(cached) $ECHO_C" >&6
3466
6632
else
3467
 
  cat > conftest.$ac_ext <<EOF
3468
 
#line 3469 "configure"
 
6633
  cat >conftest.$ac_ext <<_ACEOF
 
6634
#line 6634 "configure"
3469
6635
#include "confdefs.h"
3470
 
#include <sys/types.h>
3471
 
#if STDC_HEADERS
3472
 
#include <stdlib.h>
3473
 
#include <stddef.h>
3474
 
#endif
3475
 
EOF
3476
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3477
 
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3478
 
  rm -rf conftest*
 
6636
$ac_includes_default
 
6637
int
 
6638
main ()
 
6639
{
 
6640
if ((size_t *) 0)
 
6641
  return 0;
 
6642
if (sizeof (size_t))
 
6643
  return 0;
 
6644
  ;
 
6645
  return 0;
 
6646
}
 
6647
_ACEOF
 
6648
rm -f conftest.$ac_objext
 
6649
if { (eval echo "$as_me:6649: \"$ac_compile\"") >&5
 
6650
  (eval $ac_compile) 2>&5
 
6651
  ac_status=$?
 
6652
  echo "$as_me:6652: \$? = $ac_status" >&5
 
6653
  (exit $ac_status); } &&
 
6654
         { ac_try='test -s conftest.$ac_objext'
 
6655
  { (eval echo "$as_me:6655: \"$ac_try\"") >&5
 
6656
  (eval $ac_try) 2>&5
 
6657
  ac_status=$?
 
6658
  echo "$as_me:6658: \$? = $ac_status" >&5
 
6659
  (exit $ac_status); }; }; then
3479
6660
  ac_cv_type_size_t=yes
3480
6661
else
3481
 
  rm -rf conftest*
3482
 
  ac_cv_type_size_t=no
3483
 
fi
3484
 
rm -f conftest*
 
6662
  echo "$as_me: failed program was:" >&5
 
6663
cat conftest.$ac_ext >&5
 
6664
ac_cv_type_size_t=no
 
6665
fi
 
6666
rm -f conftest.$ac_objext conftest.$ac_ext
 
6667
fi
 
6668
echo "$as_me:6668: result: $ac_cv_type_size_t" >&5
 
6669
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
6670
if test $ac_cv_type_size_t = yes; then
 
6671
  :
 
6672
else
3485
6673
 
3486
 
fi
3487
 
echo "$ac_t""$ac_cv_type_size_t" 1>&6
3488
 
if test $ac_cv_type_size_t = no; then
3489
 
  cat >> confdefs.h <<\EOF
 
6674
cat >>confdefs.h <<EOF
3490
6675
#define size_t unsigned
3491
6676
EOF
3492
6677
 
3493
6678
fi
3494
6679
 
3495
 
 
3496
 
 
3497
6680
if test "x$GCC" = "xyes"; then
3498
6681
  case " $CFLAGS " in
3499
6682
  *[\ \ ]-Wall[\ \      ]*) ;;
3501
6684
  esac
3502
6685
fi
3503
6686
 
3504
 
trap '' 1 2 15
3505
 
cat > confcache <<\EOF
 
6687
ac_config_files="$ac_config_files m4/Makefile intl/Makefile intl/Makefile Makefile src/Makefile po/Makefile.in"
 
6688
cat >confcache <<\_ACEOF
3506
6689
# This file is a shell script that caches the results of configure
3507
6690
# tests run on this system so they can be shared between configure
3508
 
# scripts and configure runs.  It is not useful on other systems.
3509
 
# If it contains results you don't want to keep, you may remove or edit it.
3510
 
#
3511
 
# By default, configure uses ./config.cache as the cache file,
3512
 
# creating it if it does not exist already.  You can give configure
3513
 
# the --cache-file=FILE option to use a different cache file; that is
3514
 
# what configure does when it calls configure scripts in
3515
 
# subdirectories, so they share the cache.
3516
 
# Giving --cache-file=/dev/null disables caching, for debugging configure.
3517
 
# config.status only pays attention to the cache file if you give it the
3518
 
# --recheck option to rerun configure.
3519
 
#
3520
 
EOF
 
6691
# scripts and configure runs, see configure's option --config-cache.
 
6692
# It is not useful on other systems.  If it contains results you don't
 
6693
# want to keep, you may remove or edit it.
 
6694
#
 
6695
# config.status only pays attention to the cache file if you give it
 
6696
# the --recheck option to rerun configure.
 
6697
#
 
6698
# `ac_cv_env_foo' variables (set or unset) will be overriden when
 
6699
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
6700
# following values.
 
6701
 
 
6702
_ACEOF
 
6703
 
3521
6704
# The following way of writing the cache mishandles newlines in values,
3522
6705
# but we know of no workaround that is simple, portable, and efficient.
3523
6706
# So, don't put newlines in cache variables' values.
3524
6707
# Ultrix sh set writes to stderr and can't be redirected directly,
3525
6708
# and sets the high bit in the cache file unless we assign to the vars.
3526
 
(set) 2>&1 |
3527
 
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
3528
 
  *ac_space=\ *)
3529
 
    # `set' does not quote correctly, so add quotes (double-quote substitution
3530
 
    # turns \\\\ into \\, and sed turns \\ into \).
3531
 
    sed -n \
3532
 
      -e "s/'/'\\\\''/g" \
3533
 
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3534
 
    ;;
3535
 
  *)
3536
 
    # `set' quotes correctly as required by POSIX, so do not add quotes.
3537
 
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3538
 
    ;;
3539
 
  esac >> confcache
3540
 
if cmp -s $cache_file confcache; then
3541
 
  :
3542
 
else
 
6709
{
 
6710
  (set) 2>&1 |
 
6711
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
6712
    *ac_space=\ *)
 
6713
      # `set' does not quote correctly, so add quotes (double-quote
 
6714
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
6715
      sed -n \
 
6716
        "s/'/'\\\\''/g;
 
6717
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
6718
      ;;
 
6719
    *)
 
6720
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
6721
      sed -n \
 
6722
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
6723
      ;;
 
6724
    esac;
 
6725
} |
 
6726
  sed '
 
6727
     t clear
 
6728
     : clear
 
6729
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
6730
     t end
 
6731
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
6732
     : end' >>confcache
 
6733
if cmp -s $cache_file confcache; then :; else
3543
6734
  if test -w $cache_file; then
3544
 
    echo "updating cache $cache_file"
3545
 
    cat confcache > $cache_file
 
6735
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
6736
    cat confcache >$cache_file
3546
6737
  else
3547
6738
    echo "not updating unwritable cache $cache_file"
3548
6739
  fi
3549
6740
fi
3550
6741
rm -f confcache
3551
6742
 
3552
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3553
 
 
3554
6743
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3555
6744
# Let make expand exec_prefix.
3556
6745
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3557
6746
 
3558
 
# Any assignment to VPATH causes Sun make to only execute
3559
 
# the first set of double-colon rules, so remove it if not needed.
3560
 
# If there is a colon in the path, we need to keep it.
 
6747
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
6748
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
6749
# trailing colons and then remove the whole line if VPATH becomes empty
 
6750
# (actually we leave an empty line to preserve line numbers).
3561
6751
if test "x$srcdir" = x.; then
3562
 
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
6752
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
6753
s/:*\$(srcdir):*/:/;
 
6754
s/:*\${srcdir}:*/:/;
 
6755
s/:*@srcdir@:*/:/;
 
6756
s/^\([^=]*=[    ]*\):*/\1/;
 
6757
s/:*$//;
 
6758
s/^[^=]*=[      ]*$//;
 
6759
}'
3563
6760
fi
3564
6761
 
3565
 
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3566
 
 
3567
6762
DEFS=-DHAVE_CONFIG_H
3568
6763
 
3569
 
# Without the "./", some shells look in PATH for config.status.
 
6764
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
6765
  { { echo "$as_me:6765: error: conditional \"AMDEP\" was never defined.
 
6766
Usually this means the macro was only invoked conditionally." >&5
 
6767
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
6768
Usually this means the macro was only invoked conditionally." >&2;}
 
6769
   { (exit 1); exit 1; }; }
 
6770
fi
 
6771
 
3570
6772
: ${CONFIG_STATUS=./config.status}
3571
 
 
3572
 
echo creating $CONFIG_STATUS
3573
 
rm -f $CONFIG_STATUS
3574
 
cat > $CONFIG_STATUS <<EOF
3575
 
#! /bin/sh
 
6773
ac_clean_files_save=$ac_clean_files
 
6774
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
6775
{ echo "$as_me:6775: creating $CONFIG_STATUS" >&5
 
6776
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
6777
cat >$CONFIG_STATUS <<_ACEOF
 
6778
#! $SHELL
3576
6779
# Generated automatically by configure.
3577
6780
# Run this file to recreate the current configuration.
3578
 
# This directory was configured as follows,
3579
 
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3580
 
#
3581
 
# $0 $ac_configure_args
3582
 
#
3583
6781
# Compiler output produced by configure, useful for debugging
3584
 
# configure, is in ./config.log if it exists.
3585
 
 
3586
 
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3587
 
for ac_option
 
6782
# configure, is in config.log if it exists.
 
6783
 
 
6784
debug=false
 
6785
SHELL=\${CONFIG_SHELL-$SHELL}
 
6786
ac_cs_invocation="\$0 \$@"
 
6787
 
 
6788
_ACEOF
 
6789
 
 
6790
cat >>$CONFIG_STATUS <<\_ACEOF
 
6791
# Be Bourne compatible
 
6792
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
6793
  emulate sh
 
6794
  NULLCMD=:
 
6795
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
6796
  set -o posix
 
6797
fi
 
6798
 
 
6799
# Name of the executable.
 
6800
as_me=`echo "$0" |sed 's,.*[\\/],,'`
 
6801
 
 
6802
if expr a : '\(a\)' >/dev/null 2>&1; then
 
6803
  as_expr=expr
 
6804
else
 
6805
  as_expr=false
 
6806
fi
 
6807
 
 
6808
rm -f conf$$ conf$$.exe conf$$.file
 
6809
echo >conf$$.file
 
6810
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
6811
  # We could just check for DJGPP; but this test a) works b) is more generic
 
6812
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
6813
  if test -f conf$$.exe; then
 
6814
    # Don't use ln at all; we don't have any links
 
6815
    as_ln_s='cp -p'
 
6816
  else
 
6817
    as_ln_s='ln -s'
 
6818
  fi
 
6819
elif ln conf$$.file conf$$ 2>/dev/null; then
 
6820
  as_ln_s=ln
 
6821
else
 
6822
  as_ln_s='cp -p'
 
6823
fi
 
6824
rm -f conf$$ conf$$.exe conf$$.file
 
6825
 
 
6826
as_executable_p="test -f"
 
6827
 
 
6828
# Support unset when possible.
 
6829
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
6830
  as_unset=unset
 
6831
else
 
6832
  as_unset=false
 
6833
fi
 
6834
 
 
6835
# NLS nuisances.
 
6836
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
 
6837
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
 
6838
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
 
6839
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
 
6840
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
 
6841
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
 
6842
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
 
6843
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
 
6844
 
 
6845
# IFS
 
6846
# We need space, tab and new line, in precisely that order.
 
6847
as_nl='
 
6848
'
 
6849
IFS="   $as_nl"
 
6850
 
 
6851
# CDPATH.
 
6852
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
6853
 
 
6854
exec 6>&1
 
6855
 
 
6856
_ACEOF
 
6857
 
 
6858
# Files that config.status was made for.
 
6859
if test -n "$ac_config_files"; then
 
6860
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
6861
fi
 
6862
 
 
6863
if test -n "$ac_config_headers"; then
 
6864
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
6865
fi
 
6866
 
 
6867
if test -n "$ac_config_links"; then
 
6868
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
6869
fi
 
6870
 
 
6871
if test -n "$ac_config_commands"; then
 
6872
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
6873
fi
 
6874
 
 
6875
cat >>$CONFIG_STATUS <<\EOF
 
6876
 
 
6877
ac_cs_usage="\
 
6878
\`$as_me' instantiates files from templates according to the
 
6879
current configuration.
 
6880
 
 
6881
Usage: $0 [OPTIONS] [FILE]...
 
6882
 
 
6883
  -h, --help       print this help, then exit
 
6884
  -V, --version    print version number, then exit
 
6885
  -d, --debug      don't remove temporary files
 
6886
      --recheck    update $as_me by reconfiguring in the same conditions
 
6887
  --file=FILE[:TEMPLATE]
 
6888
                   instantiate the configuration file FILE
 
6889
  --header=FILE[:TEMPLATE]
 
6890
                   instantiate the configuration header FILE
 
6891
 
 
6892
Configuration files:
 
6893
$config_files
 
6894
 
 
6895
Configuration headers:
 
6896
$config_headers
 
6897
 
 
6898
Configuration commands:
 
6899
$config_commands
 
6900
 
 
6901
Report bugs to <bug-autoconf@gnu.org>."
 
6902
EOF
 
6903
 
 
6904
cat >>$CONFIG_STATUS <<EOF
 
6905
ac_cs_version="\\
 
6906
config.status
 
6907
configured by $0, generated by GNU Autoconf 2.52,
 
6908
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
6909
 
 
6910
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
6911
Free Software Foundation, Inc.
 
6912
This config.status script is free software; the Free Software Foundation
 
6913
gives unlimited permission to copy, distribute and modify it."
 
6914
srcdir=$srcdir
 
6915
INSTALL="$INSTALL"
 
6916
EOF
 
6917
 
 
6918
cat >>$CONFIG_STATUS <<\EOF
 
6919
# If no file are specified by the user, then we need to provide default
 
6920
# value.  By we need to know if files were specified by the user.
 
6921
ac_need_defaults=:
 
6922
while test $# != 0
3588
6923
do
3589
 
  case "\$ac_option" in
 
6924
  case $1 in
 
6925
  --*=*)
 
6926
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
6927
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
6928
    shift
 
6929
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
 
6930
    shift
 
6931
    ;;
 
6932
  -*);;
 
6933
  *) # This is not an option, so the user has probably given explicit
 
6934
     # arguments.
 
6935
     ac_need_defaults=false;;
 
6936
  esac
 
6937
 
 
6938
  case $1 in
 
6939
  # Handling of the options.
 
6940
EOF
 
6941
cat >>$CONFIG_STATUS <<EOF
3590
6942
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3591
 
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3592
 
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3593
 
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3594
 
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
3595
 
    exit 0 ;;
3596
 
  -help | --help | --hel | --he | --h)
3597
 
    echo "\$ac_cs_usage"; exit 0 ;;
3598
 
  *) echo "\$ac_cs_usage"; exit 1 ;;
3599
 
  esac
3600
 
done
3601
 
 
3602
 
ac_given_srcdir=$srcdir
3603
 
ac_given_INSTALL="$INSTALL"
3604
 
 
3605
 
trap 'rm -fr `echo "Makefile 
3606
 
src/Makefile 
3607
 
intl/Makefile 
3608
 
po/Makefile.in config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3609
 
EOF
3610
 
cat >> $CONFIG_STATUS <<EOF
3611
 
 
3612
 
# Protect against being on the right side of a sed subst in config.status.
3613
 
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3614
 
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3615
 
$ac_vpsub
3616
 
$extrasub
3617
 
s%@SHELL@%$SHELL%g
3618
 
s%@CFLAGS@%$CFLAGS%g
3619
 
s%@CPPFLAGS@%$CPPFLAGS%g
3620
 
s%@CXXFLAGS@%$CXXFLAGS%g
3621
 
s%@FFLAGS@%$FFLAGS%g
3622
 
s%@DEFS@%$DEFS%g
3623
 
s%@LDFLAGS@%$LDFLAGS%g
3624
 
s%@LIBS@%$LIBS%g
3625
 
s%@exec_prefix@%$exec_prefix%g
3626
 
s%@prefix@%$prefix%g
3627
 
s%@program_transform_name@%$program_transform_name%g
3628
 
s%@bindir@%$bindir%g
3629
 
s%@sbindir@%$sbindir%g
3630
 
s%@libexecdir@%$libexecdir%g
3631
 
s%@datadir@%$datadir%g
3632
 
s%@sysconfdir@%$sysconfdir%g
3633
 
s%@sharedstatedir@%$sharedstatedir%g
3634
 
s%@localstatedir@%$localstatedir%g
3635
 
s%@libdir@%$libdir%g
3636
 
s%@includedir@%$includedir%g
3637
 
s%@oldincludedir@%$oldincludedir%g
3638
 
s%@infodir@%$infodir%g
3639
 
s%@mandir@%$mandir%g
3640
 
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3641
 
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3642
 
s%@INSTALL_DATA@%$INSTALL_DATA%g
3643
 
s%@PACKAGE@%$PACKAGE%g
3644
 
s%@VERSION@%$VERSION%g
3645
 
s%@ACLOCAL@%$ACLOCAL%g
3646
 
s%@AUTOCONF@%$AUTOCONF%g
3647
 
s%@AUTOMAKE@%$AUTOMAKE%g
3648
 
s%@AUTOHEADER@%$AUTOHEADER%g
3649
 
s%@MAKEINFO@%$MAKEINFO%g
3650
 
s%@SET_MAKE@%$SET_MAKE%g
3651
 
s%@CC@%$CC%g
3652
 
s%@host@%$host%g
3653
 
s%@host_alias@%$host_alias%g
3654
 
s%@host_cpu@%$host_cpu%g
3655
 
s%@host_vendor@%$host_vendor%g
3656
 
s%@host_os@%$host_os%g
3657
 
s%@RANLIB@%$RANLIB%g
3658
 
s%@CPP@%$CPP%g
3659
 
s%@ALLOCA@%$ALLOCA%g
3660
 
s%@GLIBC21@%$GLIBC21%g
3661
 
s%@LIBICONV@%$LIBICONV%g
3662
 
s%@USE_NLS@%$USE_NLS%g
3663
 
s%@MSGFMT@%$MSGFMT%g
3664
 
s%@GMSGFMT@%$GMSGFMT%g
3665
 
s%@XGETTEXT@%$XGETTEXT%g
3666
 
s%@INTLBISON@%$INTLBISON%g
3667
 
s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
3668
 
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3669
 
s%@CATALOGS@%$CATALOGS%g
3670
 
s%@CATOBJEXT@%$CATOBJEXT%g
3671
 
s%@GMOFILES@%$GMOFILES%g
3672
 
s%@INTLLIBS@%$INTLLIBS%g
3673
 
s%@INTLOBJS@%$INTLOBJS%g
3674
 
s%@POFILES@%$POFILES%g
3675
 
s%@POSUB@%$POSUB%g
3676
 
s%@DATADIRNAME@%$DATADIRNAME%g
3677
 
s%@INSTOBJEXT@%$INSTOBJEXT%g
3678
 
s%@GENCAT@%$GENCAT%g
3679
 
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3680
 
s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
3681
 
s%@CXX@%$CXX%g
3682
 
s%@GTK_CONFIG@%$GTK_CONFIG%g
3683
 
s%@GTK_CFLAGS@%$GTK_CFLAGS%g
3684
 
s%@GTK_LIBS@%$GTK_LIBS%g
3685
 
 
 
6943
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
 
6944
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
 
6945
EOF
 
6946
cat >>$CONFIG_STATUS <<\EOF
 
6947
  --version | --vers* | -V )
 
6948
    echo "$ac_cs_version"; exit 0 ;;
 
6949
  --he | --h)
 
6950
    # Conflict between --help and --header
 
6951
    { { echo "$as_me:6951: error: ambiguous option: $1
 
6952
Try \`$0 --help' for more information." >&5
 
6953
echo "$as_me: error: ambiguous option: $1
 
6954
Try \`$0 --help' for more information." >&2;}
 
6955
   { (exit 1); exit 1; }; };;
 
6956
  --help | --hel | -h )
 
6957
    echo "$ac_cs_usage"; exit 0 ;;
 
6958
  --debug | --d* | -d )
 
6959
    debug=: ;;
 
6960
  --file | --fil | --fi | --f )
 
6961
    shift
 
6962
    CONFIG_FILES="$CONFIG_FILES $1"
 
6963
    ac_need_defaults=false;;
 
6964
  --header | --heade | --head | --hea )
 
6965
    shift
 
6966
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
 
6967
    ac_need_defaults=false;;
 
6968
 
 
6969
  # This is an error.
 
6970
  -*) { { echo "$as_me:6970: error: unrecognized option: $1
 
6971
Try \`$0 --help' for more information." >&5
 
6972
echo "$as_me: error: unrecognized option: $1
 
6973
Try \`$0 --help' for more information." >&2;}
 
6974
   { (exit 1); exit 1; }; } ;;
 
6975
 
 
6976
  *) ac_config_targets="$ac_config_targets $1" ;;
 
6977
 
 
6978
  esac
 
6979
  shift
 
6980
done
 
6981
 
 
6982
exec 5>>config.log
 
6983
cat >&5 << _ACEOF
 
6984
 
 
6985
## ----------------------- ##
 
6986
## Running config.status.  ##
 
6987
## ----------------------- ##
 
6988
 
 
6989
This file was extended by $as_me 2.52, executed with
 
6990
  CONFIG_FILES    = $CONFIG_FILES
 
6991
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
6992
  CONFIG_LINKS    = $CONFIG_LINKS
 
6993
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
6994
  > $ac_cs_invocation
 
6995
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
6996
 
 
6997
_ACEOF
 
6998
EOF
 
6999
 
 
7000
cat >>$CONFIG_STATUS <<EOF
 
7001
#
 
7002
# INIT-COMMANDS section.
 
7003
#
 
7004
 
 
7005
# Capture the value of obsolete $ALL_LINGUAS because we need it to compute
 
7006
    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
 
7007
    # from automake.
 
7008
    eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
 
7009
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
7010
    LINGUAS="${LINGUAS-%UNSET%}"
 
7011
 
 
7012
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
7013
 
 
7014
EOF
 
7015
 
 
7016
cat >>$CONFIG_STATUS <<\EOF
 
7017
for ac_config_target in $ac_config_targets
 
7018
do
 
7019
  case "$ac_config_target" in
 
7020
  # Handling of arguments.
 
7021
  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
 
7022
  "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
 
7023
  "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
 
7024
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
7025
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
7026
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
7027
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
7028
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
7029
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
7030
  *) { { echo "$as_me:7030: error: invalid argument: $ac_config_target" >&5
 
7031
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
7032
   { (exit 1); exit 1; }; };;
 
7033
  esac
 
7034
done
 
7035
 
 
7036
# If the user did not use the arguments to specify the items to instantiate,
 
7037
# then the envvar interface is used.  Set only those that are not.
 
7038
# We use the long form for the default assignment because of an extremely
 
7039
# bizarre bug on SunOS 4.1.3.
 
7040
if $ac_need_defaults; then
 
7041
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
7042
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
7043
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
7044
fi
 
7045
 
 
7046
# Create a temporary directory, and hook for its removal unless debugging.
 
7047
$debug ||
 
7048
{
 
7049
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
7050
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
7051
}
 
7052
 
 
7053
# Create a (secure) tmp directory for tmp files.
 
7054
: ${TMPDIR=/tmp}
 
7055
{
 
7056
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
 
7057
  test -n "$tmp" && test -d "$tmp"
 
7058
}  ||
 
7059
{
 
7060
  tmp=$TMPDIR/cs$$-$RANDOM
 
7061
  (umask 077 && mkdir $tmp)
 
7062
} ||
 
7063
{
 
7064
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
7065
   { (exit 1); exit 1; }
 
7066
}
 
7067
 
 
7068
EOF
 
7069
 
 
7070
cat >>$CONFIG_STATUS <<EOF
 
7071
 
 
7072
#
 
7073
# CONFIG_FILES section.
 
7074
#
 
7075
 
 
7076
# No need to generate the scripts if there are no CONFIG_FILES.
 
7077
# This happens for instance when ./config.status config.h
 
7078
if test -n "\$CONFIG_FILES"; then
 
7079
  # Protect against being on the right side of a sed subst in config.status.
 
7080
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
7081
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
7082
s,@SHELL@,$SHELL,;t t
 
7083
s,@exec_prefix@,$exec_prefix,;t t
 
7084
s,@prefix@,$prefix,;t t
 
7085
s,@program_transform_name@,$program_transform_name,;t t
 
7086
s,@bindir@,$bindir,;t t
 
7087
s,@sbindir@,$sbindir,;t t
 
7088
s,@libexecdir@,$libexecdir,;t t
 
7089
s,@datadir@,$datadir,;t t
 
7090
s,@sysconfdir@,$sysconfdir,;t t
 
7091
s,@sharedstatedir@,$sharedstatedir,;t t
 
7092
s,@localstatedir@,$localstatedir,;t t
 
7093
s,@libdir@,$libdir,;t t
 
7094
s,@includedir@,$includedir,;t t
 
7095
s,@oldincludedir@,$oldincludedir,;t t
 
7096
s,@infodir@,$infodir,;t t
 
7097
s,@mandir@,$mandir,;t t
 
7098
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
7099
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
7100
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
7101
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
7102
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
7103
s,@build_alias@,$build_alias,;t t
 
7104
s,@host_alias@,$host_alias,;t t
 
7105
s,@target_alias@,$target_alias,;t t
 
7106
s,@ECHO_C@,$ECHO_C,;t t
 
7107
s,@ECHO_N@,$ECHO_N,;t t
 
7108
s,@ECHO_T@,$ECHO_T,;t t
 
7109
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
7110
s,@DEFS@,$DEFS,;t t
 
7111
s,@LIBS@,$LIBS,;t t
 
7112
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
7113
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
7114
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
7115
s,@PACKAGE@,$PACKAGE,;t t
 
7116
s,@VERSION@,$VERSION,;t t
 
7117
s,@ACLOCAL@,$ACLOCAL,;t t
 
7118
s,@AUTOCONF@,$AUTOCONF,;t t
 
7119
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
7120
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
7121
s,@MAKEINFO@,$MAKEINFO,;t t
 
7122
s,@AMTAR@,$AMTAR,;t t
 
7123
s,@install_sh@,$install_sh,;t t
 
7124
s,@STRIP@,$STRIP,;t t
 
7125
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
7126
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
7127
s,@AWK@,$AWK,;t t
 
7128
s,@SET_MAKE@,$SET_MAKE,;t t
 
7129
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
 
7130
s,@MSGFMT@,$MSGFMT,;t t
 
7131
s,@GMSGFMT@,$GMSGFMT,;t t
 
7132
s,@XGETTEXT@,$XGETTEXT,;t t
 
7133
s,@MSGMERGE@,$MSGMERGE,;t t
 
7134
s,@CC@,$CC,;t t
 
7135
s,@CFLAGS@,$CFLAGS,;t t
 
7136
s,@LDFLAGS@,$LDFLAGS,;t t
 
7137
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
7138
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
7139
s,@EXEEXT@,$EXEEXT,;t t
 
7140
s,@OBJEXT@,$OBJEXT,;t t
 
7141
s,@DEPDIR@,$DEPDIR,;t t
 
7142
s,@am__include@,$am__include,;t t
 
7143
s,@am__quote@,$am__quote,;t t
 
7144
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
7145
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
7146
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
7147
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
7148
s,@build@,$build,;t t
 
7149
s,@build_cpu@,$build_cpu,;t t
 
7150
s,@build_vendor@,$build_vendor,;t t
 
7151
s,@build_os@,$build_os,;t t
 
7152
s,@host@,$host,;t t
 
7153
s,@host_cpu@,$host_cpu,;t t
 
7154
s,@host_vendor@,$host_vendor,;t t
 
7155
s,@host_os@,$host_os,;t t
 
7156
s,@RANLIB@,$RANLIB,;t t
 
7157
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
7158
s,@CPP@,$CPP,;t t
 
7159
s,@ALLOCA@,$ALLOCA,;t t
 
7160
s,@GLIBC21@,$GLIBC21,;t t
 
7161
s,@LIBICONV@,$LIBICONV,;t t
 
7162
s,@LTLIBICONV@,$LTLIBICONV,;t t
 
7163
s,@INTLBISON@,$INTLBISON,;t t
 
7164
s,@USE_NLS@,$USE_NLS,;t t
 
7165
s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
 
7166
s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
 
7167
s,@CATOBJEXT@,$CATOBJEXT,;t t
 
7168
s,@INTLOBJS@,$INTLOBJS,;t t
 
7169
s,@DATADIRNAME@,$DATADIRNAME,;t t
 
7170
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
 
7171
s,@GENCAT@,$GENCAT,;t t
 
7172
s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
 
7173
s,@INTLLIBS@,$INTLLIBS,;t t
 
7174
s,@LIBINTL@,$LIBINTL,;t t
 
7175
s,@LTLIBINTL@,$LTLIBINTL,;t t
 
7176
s,@POSUB@,$POSUB,;t t
 
7177
s,@CXX@,$CXX,;t t
 
7178
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
7179
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
7180
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
7181
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
7182
s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
 
7183
s,@GLIB_LIBS@,$GLIB_LIBS,;t t
 
7184
s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
 
7185
s,@GOBJECT_QUERY@,$GOBJECT_QUERY,;t t
 
7186
s,@GLIB_MKENUMS@,$GLIB_MKENUMS,;t t
 
7187
s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
 
7188
s,@GTK_LIBS@,$GTK_LIBS,;t t
3686
7189
CEOF
3687
 
EOF
3688
 
 
3689
 
cat >> $CONFIG_STATUS <<\EOF
3690
 
 
3691
 
# Split the substitutions into bite-sized pieces for seds with
3692
 
# small command number limits, like on Digital OSF/1 and HP-UX.
3693
 
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3694
 
ac_file=1 # Number of current file.
3695
 
ac_beg=1 # First line for current file.
3696
 
ac_end=$ac_max_sed_cmds # Line after last line for current file.
3697
 
ac_more_lines=:
3698
 
ac_sed_cmds=""
3699
 
while $ac_more_lines; do
3700
 
  if test $ac_beg -gt 1; then
3701
 
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3702
 
  else
3703
 
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3704
 
  fi
3705
 
  if test ! -s conftest.s$ac_file; then
3706
 
    ac_more_lines=false
3707
 
    rm -f conftest.s$ac_file
3708
 
  else
3709
 
    if test -z "$ac_sed_cmds"; then
3710
 
      ac_sed_cmds="sed -f conftest.s$ac_file"
3711
 
    else
3712
 
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3713
 
    fi
3714
 
    ac_file=`expr $ac_file + 1`
3715
 
    ac_beg=$ac_end
3716
 
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
3717
 
  fi
3718
 
done
3719
 
if test -z "$ac_sed_cmds"; then
3720
 
  ac_sed_cmds=cat
3721
 
fi
3722
 
EOF
3723
 
 
3724
 
cat >> $CONFIG_STATUS <<EOF
3725
 
 
3726
 
CONFIG_FILES=\${CONFIG_FILES-"Makefile 
3727
 
src/Makefile 
3728
 
intl/Makefile 
3729
 
po/Makefile.in"}
3730
 
EOF
3731
 
cat >> $CONFIG_STATUS <<\EOF
3732
 
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 
7190
 
 
7191
EOF
 
7192
 
 
7193
  cat >>$CONFIG_STATUS <<\EOF
 
7194
  # Split the substitutions into bite-sized pieces for seds with
 
7195
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
7196
  ac_max_sed_lines=48
 
7197
  ac_sed_frag=1 # Number of current file.
 
7198
  ac_beg=1 # First line for current file.
 
7199
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
7200
  ac_more_lines=:
 
7201
  ac_sed_cmds=
 
7202
  while $ac_more_lines; do
 
7203
    if test $ac_beg -gt 1; then
 
7204
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
7205
    else
 
7206
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
7207
    fi
 
7208
    if test ! -s $tmp/subs.frag; then
 
7209
      ac_more_lines=false
 
7210
    else
 
7211
      # The purpose of the label and of the branching condition is to
 
7212
      # speed up the sed processing (if there are no `@' at all, there
 
7213
      # is no need to browse any of the substitutions).
 
7214
      # These are the two extra sed commands mentioned above.
 
7215
      (echo ':t
 
7216
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
7217
      if test -z "$ac_sed_cmds"; then
 
7218
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
7219
      else
 
7220
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
7221
      fi
 
7222
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
7223
      ac_beg=$ac_end
 
7224
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
7225
    fi
 
7226
  done
 
7227
  if test -z "$ac_sed_cmds"; then
 
7228
    ac_sed_cmds=cat
 
7229
  fi
 
7230
fi # test -n "$CONFIG_FILES"
 
7231
 
 
7232
EOF
 
7233
cat >>$CONFIG_STATUS <<\EOF
 
7234
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3733
7235
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3734
 
  case "$ac_file" in
3735
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3736
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3737
 
  *) ac_file_in="${ac_file}.in" ;;
 
7236
  case $ac_file in
 
7237
  - | *:- | *:-:* ) # input from stdin
 
7238
        cat >$tmp/stdin
 
7239
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
7240
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
7241
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
7242
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
7243
  * )   ac_file_in=$ac_file.in ;;
3738
7244
  esac
3739
7245
 
3740
 
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3741
 
 
3742
 
  # Remove last slash and all that follows it.  Not all systems have dirname.
3743
 
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
7246
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
7247
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
7248
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
7249
         X"$ac_file" : 'X\(//\)$' \| \
 
7250
         X"$ac_file" : 'X\(/\)' \| \
 
7251
         .     : '\(.\)' 2>/dev/null ||
 
7252
echo X"$ac_file" |
 
7253
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
7254
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
7255
          /^X\(\/\/\)$/{ s//\1/; q; }
 
7256
          /^X\(\/\).*/{ s//\1/; q; }
 
7257
          s/.*/./; q'`
3744
7258
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3745
 
    # The file is in a subdirectory.
3746
 
    test ! -d "$ac_dir" && mkdir "$ac_dir"
3747
 
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 
7259
    { case "$ac_dir" in
 
7260
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
 
7261
  *)                      as_incr_dir=.;;
 
7262
esac
 
7263
as_dummy="$ac_dir"
 
7264
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
 
7265
  case $as_mkdir_dir in
 
7266
    # Skip DOS drivespec
 
7267
    ?:) as_incr_dir=$as_mkdir_dir ;;
 
7268
    *)
 
7269
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
 
7270
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
 
7271
    ;;
 
7272
  esac
 
7273
done; }
 
7274
 
 
7275
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
3748
7276
    # A "../" for each directory in $ac_dir_suffix.
3749
 
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 
7277
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
3750
7278
  else
3751
7279
    ac_dir_suffix= ac_dots=
3752
7280
  fi
3753
7281
 
3754
 
  case "$ac_given_srcdir" in
3755
 
  .)  srcdir=.
3756
 
      if test -z "$ac_dots"; then top_srcdir=.
3757
 
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3758
 
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 
7282
  case $srcdir in
 
7283
  .)  ac_srcdir=.
 
7284
      if test -z "$ac_dots"; then
 
7285
         ac_top_srcdir=.
 
7286
      else
 
7287
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
 
7288
      fi ;;
 
7289
  [\\/]* | ?:[\\/]* )
 
7290
      ac_srcdir=$srcdir$ac_dir_suffix;
 
7291
      ac_top_srcdir=$srcdir ;;
3759
7292
  *) # Relative path.
3760
 
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3761
 
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
3762
 
  esac
3763
 
 
3764
 
  case "$ac_given_INSTALL" in
3765
 
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
3766
 
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3767
 
  esac
3768
 
 
3769
 
  echo creating "$ac_file"
3770
 
  rm -f "$ac_file"
3771
 
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3772
 
  case "$ac_file" in
3773
 
  *Makefile*) ac_comsub="1i\\
3774
 
# $configure_input" ;;
3775
 
  *) ac_comsub= ;;
3776
 
  esac
3777
 
 
3778
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3779
 
  sed -e "$ac_comsub
3780
 
s%@configure_input@%$configure_input%g
3781
 
s%@srcdir@%$srcdir%g
3782
 
s%@top_srcdir@%$top_srcdir%g
3783
 
s%@INSTALL@%$INSTALL%g
3784
 
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3785
 
fi; done
3786
 
rm -f conftest.s*
 
7293
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
 
7294
    ac_top_srcdir=$ac_dots$srcdir ;;
 
7295
  esac
 
7296
 
 
7297
  case $INSTALL in
 
7298
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
7299
  *) ac_INSTALL=$ac_dots$INSTALL ;;
 
7300
  esac
 
7301
 
 
7302
  if test x"$ac_file" != x-; then
 
7303
    { echo "$as_me:7303: creating $ac_file" >&5
 
7304
echo "$as_me: creating $ac_file" >&6;}
 
7305
    rm -f "$ac_file"
 
7306
  fi
 
7307
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
7308
  # use $as_me), people would be surprised to read:
 
7309
  #    /* config.h.  Generated automatically by config.status.  */
 
7310
  configure_input="Generated automatically from `echo $ac_file_in |
 
7311
                                                 sed 's,.*/,,'` by configure."
 
7312
 
 
7313
  # First look for the input files in the build tree, otherwise in the
 
7314
  # src tree.
 
7315
  ac_file_inputs=`IFS=:
 
7316
    for f in $ac_file_in; do
 
7317
      case $f in
 
7318
      -) echo $tmp/stdin ;;
 
7319
      [\\/$]*)
 
7320
         # Absolute (can't be DOS-style, as IFS=:)
 
7321
         test -f "$f" || { { echo "$as_me:7321: error: cannot find input file: $f" >&5
 
7322
echo "$as_me: error: cannot find input file: $f" >&2;}
 
7323
   { (exit 1); exit 1; }; }
 
7324
         echo $f;;
 
7325
      *) # Relative
 
7326
         if test -f "$f"; then
 
7327
           # Build tree
 
7328
           echo $f
 
7329
         elif test -f "$srcdir/$f"; then
 
7330
           # Source tree
 
7331
           echo $srcdir/$f
 
7332
         else
 
7333
           # /dev/null tree
 
7334
           { { echo "$as_me:7334: error: cannot find input file: $f" >&5
 
7335
echo "$as_me: error: cannot find input file: $f" >&2;}
 
7336
   { (exit 1); exit 1; }; }
 
7337
         fi;;
 
7338
      esac
 
7339
    done` || { (exit 1); exit 1; }
 
7340
EOF
 
7341
cat >>$CONFIG_STATUS <<EOF
 
7342
  sed "$ac_vpsub
 
7343
$extrasub
 
7344
EOF
 
7345
cat >>$CONFIG_STATUS <<\EOF
 
7346
:t
 
7347
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
7348
s,@configure_input@,$configure_input,;t t
 
7349
s,@srcdir@,$ac_srcdir,;t t
 
7350
s,@top_srcdir@,$ac_top_srcdir,;t t
 
7351
s,@INSTALL@,$ac_INSTALL,;t t
 
7352
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
7353
  rm -f $tmp/stdin
 
7354
  if test x"$ac_file" != x-; then
 
7355
    mv $tmp/out $ac_file
 
7356
  else
 
7357
    cat $tmp/out
 
7358
    rm -f $tmp/out
 
7359
  fi
 
7360
 
 
7361
done
 
7362
EOF
 
7363
cat >>$CONFIG_STATUS <<\EOF
 
7364
 
 
7365
#
 
7366
# CONFIG_HEADER section.
 
7367
#
3787
7368
 
3788
7369
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3789
7370
# NAME is the cpp macro being defined and VALUE is the value it is being given.
3790
7371
#
3791
7372
# ac_d sets the value in "#define NAME VALUE" lines.
3792
 
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3793
 
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3794
 
ac_dC='\3'
3795
 
ac_dD='%g'
3796
 
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3797
 
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3798
 
ac_uB='\([      ]\)%\1#\2define\3'
 
7373
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
7374
ac_dB='[        ].*$,\1#\2'
 
7375
ac_dC=' '
 
7376
ac_dD=',;t'
 
7377
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
7378
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
7379
ac_uB='$,\1#\2define\3'
3799
7380
ac_uC=' '
3800
 
ac_uD='\4%g'
3801
 
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3802
 
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3803
 
ac_eB='$%\1#\2define\3'
3804
 
ac_eC=' '
3805
 
ac_eD='%g'
 
7381
ac_uD=',;t'
3806
7382
 
3807
 
if test "${CONFIG_HEADERS+set}" != set; then
3808
 
EOF
3809
 
cat >> $CONFIG_STATUS <<EOF
3810
 
  CONFIG_HEADERS="config.h"
3811
 
EOF
3812
 
cat >> $CONFIG_STATUS <<\EOF
3813
 
fi
3814
 
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 
7383
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3815
7384
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3816
 
  case "$ac_file" in
3817
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3818
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3819
 
  *) ac_file_in="${ac_file}.in" ;;
 
7385
  case $ac_file in
 
7386
  - | *:- | *:-:* ) # input from stdin
 
7387
        cat >$tmp/stdin
 
7388
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
7389
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
7390
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
7391
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
7392
  * )   ac_file_in=$ac_file.in ;;
3820
7393
  esac
3821
7394
 
3822
 
  echo creating $ac_file
3823
 
 
3824
 
  rm -f conftest.frag conftest.in conftest.out
3825
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3826
 
  cat $ac_file_inputs > conftest.in
3827
 
 
3828
 
EOF
3829
 
 
3830
 
# Transform confdefs.h into a sed script conftest.vals that substitutes
3831
 
# the proper values into config.h.in to produce config.h.  And first:
3832
 
# Protect against being on the right side of a sed subst in config.status.
3833
 
# Protect against being in an unquoted here document in config.status.
3834
 
rm -f conftest.vals
3835
 
cat > conftest.hdr <<\EOF
3836
 
s/[\\&%]/\\&/g
3837
 
s%[\\$`]%\\&%g
3838
 
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3839
 
s%ac_d%ac_u%gp
3840
 
s%ac_u%ac_e%gp
3841
 
EOF
3842
 
sed -n -f conftest.hdr confdefs.h > conftest.vals
3843
 
rm -f conftest.hdr
 
7395
  test x"$ac_file" != x- && { echo "$as_me:7395: creating $ac_file" >&5
 
7396
echo "$as_me: creating $ac_file" >&6;}
 
7397
 
 
7398
  # First look for the input files in the build tree, otherwise in the
 
7399
  # src tree.
 
7400
  ac_file_inputs=`IFS=:
 
7401
    for f in $ac_file_in; do
 
7402
      case $f in
 
7403
      -) echo $tmp/stdin ;;
 
7404
      [\\/$]*)
 
7405
         # Absolute (can't be DOS-style, as IFS=:)
 
7406
         test -f "$f" || { { echo "$as_me:7406: error: cannot find input file: $f" >&5
 
7407
echo "$as_me: error: cannot find input file: $f" >&2;}
 
7408
   { (exit 1); exit 1; }; }
 
7409
         echo $f;;
 
7410
      *) # Relative
 
7411
         if test -f "$f"; then
 
7412
           # Build tree
 
7413
           echo $f
 
7414
         elif test -f "$srcdir/$f"; then
 
7415
           # Source tree
 
7416
           echo $srcdir/$f
 
7417
         else
 
7418
           # /dev/null tree
 
7419
           { { echo "$as_me:7419: error: cannot find input file: $f" >&5
 
7420
echo "$as_me: error: cannot find input file: $f" >&2;}
 
7421
   { (exit 1); exit 1; }; }
 
7422
         fi;;
 
7423
      esac
 
7424
    done` || { (exit 1); exit 1; }
 
7425
  # Remove the trailing spaces.
 
7426
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
7427
 
 
7428
EOF
 
7429
 
 
7430
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
7431
# `conftest.undefs', that substitutes the proper values into
 
7432
# config.h.in to produce config.h.  The first handles `#define'
 
7433
# templates, and the second `#undef' templates.
 
7434
# And first: Protect against being on the right side of a sed subst in
 
7435
# config.status.  Protect against being in an unquoted here document
 
7436
# in config.status.
 
7437
rm -f conftest.defines conftest.undefs
 
7438
# Using a here document instead of a string reduces the quoting nightmare.
 
7439
# Putting comments in sed scripts is not portable.
 
7440
#
 
7441
# `end' is used to avoid that the second main sed command (meant for
 
7442
# 0-ary CPP macros) applies to n-ary macro definitions.
 
7443
# See the Autoconf documentation for `clear'.
 
7444
cat >confdef2sed.sed <<\EOF
 
7445
s/[\\&,]/\\&/g
 
7446
s,[\\$`],\\&,g
 
7447
t clear
 
7448
: clear
 
7449
s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
 
7450
t end
 
7451
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
7452
: end
 
7453
EOF
 
7454
# If some macros were called several times there might be several times
 
7455
# the same #defines, which is useless.  Nevertheless, we may not want to
 
7456
# sort them, since we want the *last* AC-DEFINE to be honored.
 
7457
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
7458
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
7459
rm -f confdef2sed.sed
3844
7460
 
3845
7461
# This sed command replaces #undef with comments.  This is necessary, for
3846
7462
# example, in the case of _POSIX_SOURCE, which is predefined and required
3847
7463
# on some systems where configure will not decide to define it.
3848
 
cat >> conftest.vals <<\EOF
3849
 
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
 
7464
cat >>conftest.undefs <<\EOF
 
7465
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3850
7466
EOF
3851
7467
 
3852
 
# Break up conftest.vals because some shells have a limit on
3853
 
# the size of here documents, and old seds have small limits too.
3854
 
 
3855
 
rm -f conftest.tail
3856
 
while :
3857
 
do
3858
 
  ac_lines=`grep -c . conftest.vals`
3859
 
  # grep -c gives empty output for an empty file on some AIX systems.
3860
 
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3861
 
  # Write a limited-size here document to conftest.frag.
3862
 
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3863
 
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3864
 
  echo 'CEOF
3865
 
  sed -f conftest.frag conftest.in > conftest.out
3866
 
  rm -f conftest.in
3867
 
  mv conftest.out conftest.in
3868
 
' >> $CONFIG_STATUS
3869
 
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3870
 
  rm -f conftest.vals
3871
 
  mv conftest.tail conftest.vals
3872
 
done
3873
 
rm -f conftest.vals
3874
 
 
3875
 
cat >> $CONFIG_STATUS <<\EOF
3876
 
  rm -f conftest.frag conftest.h
3877
 
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3878
 
  cat conftest.in >> conftest.h
3879
 
  rm -f conftest.in
3880
 
  if cmp -s $ac_file conftest.h 2>/dev/null; then
3881
 
    echo "$ac_file is unchanged"
3882
 
    rm -f conftest.h
 
7468
# Break up conftest.defines because some shells have a limit on the size
 
7469
# of here documents, and old seds have small limits too (100 cmds).
 
7470
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
7471
echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
7472
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
7473
echo '  :' >>$CONFIG_STATUS
 
7474
rm -f conftest.tail
 
7475
while grep . conftest.defines >/dev/null
 
7476
do
 
7477
  # Write a limited-size here document to $tmp/defines.sed.
 
7478
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
7479
  # Speed up: don't consider the non `#define' lines.
 
7480
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
7481
  # Work around the forget-to-reset-the-flag bug.
 
7482
  echo 't clr' >>$CONFIG_STATUS
 
7483
  echo ': clr' >>$CONFIG_STATUS
 
7484
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
7485
  echo 'CEOF
 
7486
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
7487
  rm -f $tmp/in
 
7488
  mv $tmp/out $tmp/in
 
7489
' >>$CONFIG_STATUS
 
7490
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
7491
  rm -f conftest.defines
 
7492
  mv conftest.tail conftest.defines
 
7493
done
 
7494
rm -f conftest.defines
 
7495
echo '  fi # egrep' >>$CONFIG_STATUS
 
7496
echo >>$CONFIG_STATUS
 
7497
 
 
7498
# Break up conftest.undefs because some shells have a limit on the size
 
7499
# of here documents, and old seds have small limits too (100 cmds).
 
7500
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
7501
rm -f conftest.tail
 
7502
while grep . conftest.undefs >/dev/null
 
7503
do
 
7504
  # Write a limited-size here document to $tmp/undefs.sed.
 
7505
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
7506
  # Speed up: don't consider the non `#undef'
 
7507
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
7508
  # Work around the forget-to-reset-the-flag bug.
 
7509
  echo 't clr' >>$CONFIG_STATUS
 
7510
  echo ': clr' >>$CONFIG_STATUS
 
7511
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
7512
  echo 'CEOF
 
7513
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
7514
  rm -f $tmp/in
 
7515
  mv $tmp/out $tmp/in
 
7516
' >>$CONFIG_STATUS
 
7517
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
7518
  rm -f conftest.undefs
 
7519
  mv conftest.tail conftest.undefs
 
7520
done
 
7521
rm -f conftest.undefs
 
7522
 
 
7523
cat >>$CONFIG_STATUS <<\EOF
 
7524
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
7525
  # use $as_me), people would be surprised to read:
 
7526
  #    /* config.h.  Generated automatically by config.status.  */
 
7527
  if test x"$ac_file" = x-; then
 
7528
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
3883
7529
  else
3884
 
    # Remove last slash and all that follows it.  Not all systems have dirname.
3885
 
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
7530
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
 
7531
  fi
 
7532
  cat $tmp/in >>$tmp/config.h
 
7533
  rm -f $tmp/in
 
7534
  if test x"$ac_file" != x-; then
 
7535
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
 
7536
      { echo "$as_me:7536: $ac_file is unchanged" >&5
 
7537
echo "$as_me: $ac_file is unchanged" >&6;}
 
7538
    else
 
7539
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
7540
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
7541
         X"$ac_file" : 'X\(//\)$' \| \
 
7542
         X"$ac_file" : 'X\(/\)' \| \
 
7543
         .     : '\(.\)' 2>/dev/null ||
 
7544
echo X"$ac_file" |
 
7545
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
7546
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
7547
          /^X\(\/\/\)$/{ s//\1/; q; }
 
7548
          /^X\(\/\).*/{ s//\1/; q; }
 
7549
          s/.*/./; q'`
3886
7550
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3887
 
      # The file is in a subdirectory.
3888
 
      test ! -d "$ac_dir" && mkdir "$ac_dir"
 
7551
        { case "$ac_dir" in
 
7552
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
 
7553
  *)                      as_incr_dir=.;;
 
7554
esac
 
7555
as_dummy="$ac_dir"
 
7556
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
 
7557
  case $as_mkdir_dir in
 
7558
    # Skip DOS drivespec
 
7559
    ?:) as_incr_dir=$as_mkdir_dir ;;
 
7560
    *)
 
7561
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
 
7562
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
 
7563
    ;;
 
7564
  esac
 
7565
done; }
 
7566
 
 
7567
      fi
 
7568
      rm -f $ac_file
 
7569
      mv $tmp/config.h $ac_file
3889
7570
    fi
3890
 
    rm -f $ac_file
3891
 
    mv conftest.h $ac_file
 
7571
  else
 
7572
    cat $tmp/config.h
 
7573
    rm -f $tmp/config.h
3892
7574
  fi
3893
 
fi; done
3894
 
 
3895
 
EOF
3896
 
cat >> $CONFIG_STATUS <<EOF
3897
 
 
3898
 
 
3899
 
 
3900
 
EOF
3901
 
cat >> $CONFIG_STATUS <<\EOF
3902
 
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3903
 
for ac_file in $CONFIG_FILES; do
3904
 
        # Support "outfile[:infile[:infile...]]"
3905
 
        case "$ac_file" in
3906
 
          *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
7575
  # Run the commands associated with the file.
 
7576
  case $ac_file in
 
7577
    config.h ) # update the timestamp
 
7578
echo 'timestamp for config.h' >"./stamp-h1"
 
7579
 ;;
 
7580
  esac
 
7581
done
 
7582
EOF
 
7583
cat >>$CONFIG_STATUS <<\EOF
 
7584
 
 
7585
#
 
7586
# CONFIG_COMMANDS section.
 
7587
#
 
7588
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
7589
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
7590
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
7591
 
 
7592
  case $ac_dest in
 
7593
    default-1 )
 
7594
    for ac_file in $CONFIG_FILES; do
 
7595
      # Support "outfile[:infile[:infile...]]"
 
7596
      case "$ac_file" in
 
7597
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
7598
      esac
 
7599
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
7600
      case "$ac_file" in */Makefile.in)
 
7601
        # Adjust a relative srcdir.
 
7602
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
7603
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
7604
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
7605
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
7606
        # In autoconf-2.50 it is called $srcdir.
 
7607
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
7608
        case "$ac_given_srcdir" in
 
7609
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
7610
          /*) top_srcdir="$ac_given_srcdir" ;;
 
7611
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
3907
7612
        esac
3908
 
        # PO directories have a Makefile.in generated from Makefile.in.in.
3909
 
        case "$ac_file" in */Makefile.in)
3910
 
          # Adjust a relative srcdir.
3911
 
          ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3912
 
          ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
3913
 
          ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
7613
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
7614
          rm -f "$ac_dir/POTFILES"
 
7615
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
7616
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
7617
          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
 
7618
          # on $ac_dir but don't depend on user-specified configuration
 
7619
          # parameters.
 
7620
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
7621
            # The LINGUAS file contains the set of available languages.
 
7622
            if test -n "$ALL_LINGUAS"; then
 
7623
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
7624
            fi
 
7625
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
7626
            # Hide the ALL_LINGUAS assigment from automake.
 
7627
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
7628
          fi
3914
7629
          case "$ac_given_srcdir" in
3915
 
            .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
3916
 
            /*) top_srcdir="$ac_given_srcdir" ;;
3917
 
            *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
7630
            .) srcdirpre= ;;
 
7631
            *) srcdirpre='$(srcdir)/' ;;
3918
7632
          esac
3919
 
          if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
3920
 
            rm -f "$ac_dir/POTFILES"
3921
 
            echo creating "$ac_dir/POTFILES"
3922
 
            sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
3923
 
            echo creating "$ac_dir/Makefile"
3924
 
            sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
3925
 
          fi
3926
 
          ;;
3927
 
        esac
3928
 
      done
3929
 
 
3930
 
exit 0
 
7633
          POFILES=
 
7634
          GMOFILES=
 
7635
          UPDATEPOFILES=
 
7636
          DUMMYPOFILES=
 
7637
          for lang in $ALL_LINGUAS; do
 
7638
            POFILES="$POFILES $srcdirpre$lang.po"
 
7639
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
7640
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
7641
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
7642
          done
 
7643
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
7644
          # environment variable.
 
7645
          INST_LINGUAS=
 
7646
          if test -n "$ALL_LINGUAS"; then
 
7647
            for presentlang in $ALL_LINGUAS; do
 
7648
              useit=no
 
7649
              if test "%UNSET%" != "$LINGUAS"; then
 
7650
                desiredlanguages="$LINGUAS"
 
7651
              else
 
7652
                desiredlanguages="$ALL_LINGUAS"
 
7653
              fi
 
7654
              for desiredlang in $desiredlanguages; do
 
7655
                # Use the presentlang catalog if desiredlang is
 
7656
                #   a. equal to presentlang, or
 
7657
                #   b. a variant of presentlang (because in this case,
 
7658
                #      presentlang can be used as a fallback for messages
 
7659
                #      which are not translated in the desiredlang catalog).
 
7660
                case "$desiredlang" in
 
7661
                  "$presentlang"*) useit=yes;;
 
7662
                esac
 
7663
              done
 
7664
              if test $useit = yes; then
 
7665
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
7666
              fi
 
7667
            done
 
7668
          fi
 
7669
          CATALOGS=
 
7670
          if test -n "$INST_LINGUAS"; then
 
7671
            for lang in $INST_LINGUAS; do
 
7672
              CATALOGS="$CATALOGS $lang.gmo"
 
7673
            done
 
7674
          fi
 
7675
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
7676
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 
7677
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
7678
            if test -f "$f"; then
 
7679
              case "$f" in
 
7680
                *.orig | *.bak | *~) ;;
 
7681
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
7682
              esac
 
7683
            fi
 
7684
          done
 
7685
        fi
 
7686
        ;;
 
7687
      esac
 
7688
    done ;;
 
7689
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
7690
  # Strip MF so we end up with the name of the file.
 
7691
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
7692
  if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
 
7693
    dirpart=`$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
7694
         X"$mf" : 'X\(//\)[^/]' \| \
 
7695
         X"$mf" : 'X\(//\)$' \| \
 
7696
         X"$mf" : 'X\(/\)' \| \
 
7697
         .     : '\(.\)' 2>/dev/null ||
 
7698
echo X"$mf" |
 
7699
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
7700
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
7701
          /^X\(\/\/\)$/{ s//\1/; q; }
 
7702
          /^X\(\/\).*/{ s//\1/; q; }
 
7703
          s/.*/./; q'`
 
7704
  else
 
7705
    continue
 
7706
  fi
 
7707
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
7708
  # Extract the definition of DEP_FILES from the Makefile without
 
7709
  # running `make'.
 
7710
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
7711
  test -z "$DEPDIR" && continue
 
7712
  # When using ansi2knr, U may be empty or an underscore; expand it
 
7713
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
7714
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
7715
  # We invoke sed twice because it is the simplest approach to
 
7716
  # changing $(DEPDIR) to its actual value in the expansion.
 
7717
  for file in `sed -n -e '
 
7718
    /^DEP_FILES = .*\\\\$/ {
 
7719
      s/^DEP_FILES = //
 
7720
      :loop
 
7721
        s/\\\\$//
 
7722
        p
 
7723
        n
 
7724
        /\\\\$/ b loop
 
7725
      p
 
7726
    }
 
7727
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
7728
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
7729
    # Make sure the directory exists.
 
7730
    test -f "$dirpart/$file" && continue
 
7731
    fdir=`$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
7732
         X"$file" : 'X\(//\)[^/]' \| \
 
7733
         X"$file" : 'X\(//\)$' \| \
 
7734
         X"$file" : 'X\(/\)' \| \
 
7735
         .     : '\(.\)' 2>/dev/null ||
 
7736
echo X"$file" |
 
7737
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
7738
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
7739
          /^X\(\/\/\)$/{ s//\1/; q; }
 
7740
          /^X\(\/\).*/{ s//\1/; q; }
 
7741
          s/.*/./; q'`
 
7742
    { case $dirpart/$fdir in
 
7743
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
 
7744
  *)                      as_incr_dir=.;;
 
7745
esac
 
7746
as_dummy=$dirpart/$fdir
 
7747
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
 
7748
  case $as_mkdir_dir in
 
7749
    # Skip DOS drivespec
 
7750
    ?:) as_incr_dir=$as_mkdir_dir ;;
 
7751
    *)
 
7752
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
 
7753
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
 
7754
    ;;
 
7755
  esac
 
7756
done; }
 
7757
 
 
7758
    # echo "creating $dirpart/$file"
 
7759
    echo '# dummy' > "$dirpart/$file"
 
7760
  done
 
7761
done
 
7762
 ;;
 
7763
  esac
 
7764
done
 
7765
EOF
 
7766
 
 
7767
cat >>$CONFIG_STATUS <<\EOF
 
7768
 
 
7769
{ (exit 0); exit 0; }
3931
7770
EOF
3932
7771
chmod +x $CONFIG_STATUS
3933
 
rm -fr confdefs* $ac_clean_files
3934
 
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3935
 
 
3936
 
 
 
7772
ac_clean_files=$ac_clean_files_save
 
7773
 
 
7774
# configure is writing to config.log, and then calls config.status.
 
7775
# config.status does its own redirection, appending to config.log.
 
7776
# Unfortunately, on DOS this fails, as config.log is still kept open
 
7777
# by configure, so config.status won't be able to write to it; its
 
7778
# output is simply discarded.  So we exec the FD to /dev/null,
 
7779
# effectively closing config.log, so it can be properly (re)opened and
 
7780
# appended to by config.status.  When coming back to configure, we
 
7781
# need to make the FD available again.
 
7782
if test "$no_create" != yes; then
 
7783
  ac_cs_success=:
 
7784
  exec 5>/dev/null
 
7785
  $SHELL $CONFIG_STATUS || ac_cs_success=false
 
7786
  exec 5>>config.log
 
7787
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
7788
  # would make configure fail if this is the last instruction.
 
7789
  $ac_cs_success || { (exit 1); exit 1; }
 
7790
fi
3937
7791