~ubuntu-branches/ubuntu/intrepid/gsmlib/intrepid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Mikael Hedin
  • Date: 2002-01-24 12:59:07 UTC
  • Revision ID: james.westby@ubuntu.com-20020124125907-b7qkpokx5283jdpu
Tags: upstream-1.8
ImportĀ upstreamĀ versionĀ 1.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# 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.
 
6
#
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
 
 
10
# Defaults:
 
11
ac_help=
 
12
ac_default_prefix=/usr/local
 
13
# Any additions from configure.in:
 
14
ac_help="$ac_help
 
15
  --disable-nls           do not use Native Language Support"
 
16
ac_help="$ac_help
 
17
  --with-included-gettext use the GNU gettext library included here"
 
18
ac_help="$ac_help
 
19
  --with-catgets          use catgets functions if available"
 
20
ac_help="$ac_help
 
21
  --enable-shared[=PKGS]  build shared libraries [default=yes]"
 
22
ac_help="$ac_help
 
23
  --enable-static[=PKGS]  build static libraries [default=yes]"
 
24
ac_help="$ac_help
 
25
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
 
26
 
 
27
# Initialize some variables set by options.
 
28
# The variables have the same names as the options, with
 
29
# dashes changed to underlines.
 
30
build=NONE
 
31
cache_file=./config.cache
 
32
exec_prefix=NONE
 
33
host=NONE
 
34
no_create=
 
35
nonopt=NONE
 
36
no_recursion=
 
37
prefix=NONE
 
38
program_prefix=NONE
 
39
program_suffix=NONE
 
40
program_transform_name=s,x,x,
 
41
silent=
 
42
site=
 
43
srcdir=
 
44
target=NONE
 
45
verbose=
 
46
x_includes=NONE
 
47
x_libraries=NONE
 
48
bindir='${exec_prefix}/bin'
 
49
sbindir='${exec_prefix}/sbin'
 
50
libexecdir='${exec_prefix}/libexec'
 
51
datadir='${prefix}/share'
 
52
sysconfdir='${prefix}/etc'
 
53
sharedstatedir='${prefix}/com'
 
54
localstatedir='${prefix}/var'
 
55
libdir='${exec_prefix}/lib'
 
56
includedir='${prefix}/include'
 
57
oldincludedir='/usr/include'
 
58
infodir='${prefix}/info'
 
59
mandir='${prefix}/man'
 
60
 
 
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
 
67
 
 
68
ac_prev=
 
69
for ac_option
 
70
do
 
71
 
 
72
  # If the previous option needs an argument, assign it.
 
73
  if test -n "$ac_prev"; then
 
74
    eval "$ac_prev=\$ac_option"
 
75
    ac_prev=
 
76
    continue
 
77
  fi
 
78
 
 
79
  case "$ac_option" in
 
80
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 
81
  *) ac_optarg= ;;
 
82
  esac
 
83
 
 
84
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
85
 
 
86
  case "$ac_option" in
 
87
 
 
88
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
89
    ac_prev=bindir ;;
 
90
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
91
    bindir="$ac_optarg" ;;
 
92
 
 
93
  -build | --build | --buil | --bui | --bu)
 
94
    ac_prev=build ;;
 
95
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
96
    build="$ac_optarg" ;;
 
97
 
 
98
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
99
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
100
    ac_prev=cache_file ;;
 
101
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
102
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
103
    cache_file="$ac_optarg" ;;
 
104
 
 
105
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
106
    ac_prev=datadir ;;
 
107
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
108
  | --da=*)
 
109
    datadir="$ac_optarg" ;;
 
110
 
 
111
  -disable-* | --disable-*)
 
112
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
113
    # 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" ;;
 
119
 
 
120
  -enable-* | --enable-*)
 
121
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
122
    # 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
      *=*) ;;
 
129
      *) ac_optarg=yes ;;
 
130
    esac
 
131
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
132
 
 
133
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
134
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
135
  | --exec | --exe | --ex)
 
136
    ac_prev=exec_prefix ;;
 
137
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
138
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
139
  | --exec=* | --exe=* | --ex=*)
 
140
    exec_prefix="$ac_optarg" ;;
 
141
 
 
142
  -gas | --gas | --ga | --g)
 
143
    # Obsolete; use --with-gas.
 
144
    with_gas=yes ;;
 
145
 
 
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 ;;
 
200
 
 
201
  -host | --host | --hos | --ho)
 
202
    ac_prev=host ;;
 
203
  -host=* | --host=* | --hos=* | --ho=*)
 
204
    host="$ac_optarg" ;;
 
205
 
 
206
  -includedir | --includedir | --includedi | --included | --include \
 
207
  | --includ | --inclu | --incl | --inc)
 
208
    ac_prev=includedir ;;
 
209
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
210
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
211
    includedir="$ac_optarg" ;;
 
212
 
 
213
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
214
    ac_prev=infodir ;;
 
215
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
216
    infodir="$ac_optarg" ;;
 
217
 
 
218
  -libdir | --libdir | --libdi | --libd)
 
219
    ac_prev=libdir ;;
 
220
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
221
    libdir="$ac_optarg" ;;
 
222
 
 
223
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
224
  | --libexe | --libex | --libe)
 
225
    ac_prev=libexecdir ;;
 
226
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
227
  | --libexe=* | --libex=* | --libe=*)
 
228
    libexecdir="$ac_optarg" ;;
 
229
 
 
230
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
231
  | --localstate | --localstat | --localsta | --localst \
 
232
  | --locals | --local | --loca | --loc | --lo)
 
233
    ac_prev=localstatedir ;;
 
234
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
235
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
236
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
237
    localstatedir="$ac_optarg" ;;
 
238
 
 
239
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
240
    ac_prev=mandir ;;
 
241
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
242
    mandir="$ac_optarg" ;;
 
243
 
 
244
  -nfp | --nfp | --nf)
 
245
    # Obsolete; use --without-fp.
 
246
    with_fp=no ;;
 
247
 
 
248
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
249
  | --no-cr | --no-c)
 
250
    no_create=yes ;;
 
251
 
 
252
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
253
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
254
    no_recursion=yes ;;
 
255
 
 
256
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
257
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
258
  | --oldin | --oldi | --old | --ol | --o)
 
259
    ac_prev=oldincludedir ;;
 
260
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
261
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
262
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
263
    oldincludedir="$ac_optarg" ;;
 
264
 
 
265
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
266
    ac_prev=prefix ;;
 
267
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
268
    prefix="$ac_optarg" ;;
 
269
 
 
270
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
271
  | --program-pre | --program-pr | --program-p)
 
272
    ac_prev=program_prefix ;;
 
273
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
274
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
275
    program_prefix="$ac_optarg" ;;
 
276
 
 
277
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
278
  | --program-suf | --program-su | --program-s)
 
279
    ac_prev=program_suffix ;;
 
280
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
281
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
282
    program_suffix="$ac_optarg" ;;
 
283
 
 
284
  -program-transform-name | --program-transform-name \
 
285
  | --program-transform-nam | --program-transform-na \
 
286
  | --program-transform-n | --program-transform- \
 
287
  | --program-transform | --program-transfor \
 
288
  | --program-transfo | --program-transf \
 
289
  | --program-trans | --program-tran \
 
290
  | --progr-tra | --program-tr | --program-t)
 
291
    ac_prev=program_transform_name ;;
 
292
  -program-transform-name=* | --program-transform-name=* \
 
293
  | --program-transform-nam=* | --program-transform-na=* \
 
294
  | --program-transform-n=* | --program-transform-=* \
 
295
  | --program-transform=* | --program-transfor=* \
 
296
  | --program-transfo=* | --program-transf=* \
 
297
  | --program-trans=* | --program-tran=* \
 
298
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
299
    program_transform_name="$ac_optarg" ;;
 
300
 
 
301
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
302
  | -silent | --silent | --silen | --sile | --sil)
 
303
    silent=yes ;;
 
304
 
 
305
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
306
    ac_prev=sbindir ;;
 
307
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
308
  | --sbi=* | --sb=*)
 
309
    sbindir="$ac_optarg" ;;
 
310
 
 
311
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
312
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
313
  | --sharedst | --shareds | --shared | --share | --shar \
 
314
  | --sha | --sh)
 
315
    ac_prev=sharedstatedir ;;
 
316
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
317
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
318
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
319
  | --sha=* | --sh=*)
 
320
    sharedstatedir="$ac_optarg" ;;
 
321
 
 
322
  -site | --site | --sit)
 
323
    ac_prev=site ;;
 
324
  -site=* | --site=* | --sit=*)
 
325
    site="$ac_optarg" ;;
 
326
 
 
327
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
328
    ac_prev=srcdir ;;
 
329
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
330
    srcdir="$ac_optarg" ;;
 
331
 
 
332
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
333
  | --syscon | --sysco | --sysc | --sys | --sy)
 
334
    ac_prev=sysconfdir ;;
 
335
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
336
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
337
    sysconfdir="$ac_optarg" ;;
 
338
 
 
339
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
340
    ac_prev=target ;;
 
341
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
342
    target="$ac_optarg" ;;
 
343
 
 
344
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
345
    verbose=yes ;;
 
346
 
 
347
  -version | --version | --versio | --versi | --vers)
 
348
    echo "configure generated by autoconf version 2.13"
 
349
    exit 0 ;;
 
350
 
 
351
  -with-* | --with-*)
 
352
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
353
    # 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
 
357
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
358
    case "$ac_option" in
 
359
      *=*) ;;
 
360
      *) ac_optarg=yes ;;
 
361
    esac
 
362
    eval "with_${ac_package}='$ac_optarg'" ;;
 
363
 
 
364
  -without-* | --without-*)
 
365
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
366
    # 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" ;;
 
372
 
 
373
  --x)
 
374
    # Obsolete; use --with-x.
 
375
    with_x=yes ;;
 
376
 
 
377
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
378
  | --x-incl | --x-inc | --x-in | --x-i)
 
379
    ac_prev=x_includes ;;
 
380
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
381
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
382
    x_includes="$ac_optarg" ;;
 
383
 
 
384
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
385
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
386
    ac_prev=x_libraries ;;
 
387
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
388
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
389
    x_libraries="$ac_optarg" ;;
 
390
 
 
391
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
392
    ;;
 
393
 
 
394
  *)
 
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"
 
402
    ;;
 
403
 
 
404
  esac
 
405
done
 
406
 
 
407
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=gsmlib/gsm_error.h
 
467
 
 
468
# Find the source files, if location was not specified.
 
469
if test -z "$srcdir"; then
 
470
  ac_srcdir_defaulted=yes
 
471
  # Try the directory containing this script, then its parent.
 
472
  ac_prog=$0
 
473
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 
474
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
475
  srcdir=$ac_confdir
 
476
  if test ! -r $srcdir/$ac_unique_file; then
 
477
    srcdir=..
 
478
  fi
 
479
else
 
480
  ac_srcdir_defaulted=no
 
481
fi
 
482
if test ! -r $srcdir/$ac_unique_file; then
 
483
  if test "$ac_srcdir_defaulted" = yes; then
 
484
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
485
  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
 
 
491
# Prefer explicitly selected file to automatically selected ones.
 
492
if test -z "$CONFIG_SITE"; then
 
493
  if test "x$prefix" != xNONE; then
 
494
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
495
  else
 
496
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
497
  fi
 
498
fi
 
499
for ac_site_file in $CONFIG_SITE; do
 
500
  if test -r "$ac_site_file"; then
 
501
    echo "loading site script $ac_site_file"
 
502
    . "$ac_site_file"
 
503
  fi
 
504
done
 
505
 
 
506
if test -r "$cache_file"; then
 
507
  echo "loading cache $cache_file"
 
508
  . $cache_file
 
509
else
 
510
  echo "creating cache $cache_file"
 
511
  > $cache_file
 
512
fi
 
513
 
 
514
ac_ext=c
 
515
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
516
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
 
520
 
 
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
 
531
else
 
532
  ac_n= ac_c='\c' ac_t=
 
533
fi
 
534
 
 
535
 
 
536
 
 
537
ALL_LINGUAS="de"
 
538
unset LINGUAS
 
539
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 
540
echo "configure:541: checking how to run the C preprocessor" >&5
 
541
# On Suns, sometimes $CPP names a directory.
 
542
if test -n "$CPP" && test -d "$CPP"; then
 
543
  CPP=
 
544
fi
 
545
if test -z "$CPP"; then
 
546
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 
547
  echo $ac_n "(cached) $ac_c" 1>&6
 
548
else
 
549
    # This must be in double quotes, not single quotes, because CPP may get
 
550
  # substituted into the Makefile and "${CC-cc}" will confuse make.
 
551
  CPP="${CC-cc} -E"
 
552
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
553
  # not just through cpp.
 
554
  cat > conftest.$ac_ext <<EOF
 
555
#line 556 "configure"
 
556
#include "confdefs.h"
 
557
#include <assert.h>
 
558
Syntax Error
 
559
EOF
 
560
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
561
{ (eval echo configure:562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
562
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
563
if test -z "$ac_err"; then
 
564
  :
 
565
else
 
566
  echo "$ac_err" >&5
 
567
  echo "configure: failed program was:" >&5
 
568
  cat conftest.$ac_ext >&5
 
569
  rm -rf conftest*
 
570
  CPP="${CC-cc} -E -traditional-cpp"
 
571
  cat > conftest.$ac_ext <<EOF
 
572
#line 573 "configure"
 
573
#include "confdefs.h"
 
574
#include <assert.h>
 
575
Syntax Error
 
576
EOF
 
577
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
578
{ (eval echo configure:579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
579
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
580
if test -z "$ac_err"; then
 
581
  :
 
582
else
 
583
  echo "$ac_err" >&5
 
584
  echo "configure: failed program was:" >&5
 
585
  cat conftest.$ac_ext >&5
 
586
  rm -rf conftest*
 
587
  CPP="${CC-cc} -nologo -E"
 
588
  cat > conftest.$ac_ext <<EOF
 
589
#line 590 "configure"
 
590
#include "confdefs.h"
 
591
#include <assert.h>
 
592
Syntax Error
 
593
EOF
 
594
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
595
{ (eval echo configure:596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
596
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
597
if test -z "$ac_err"; then
 
598
  :
 
599
else
 
600
  echo "$ac_err" >&5
 
601
  echo "configure: failed program was:" >&5
 
602
  cat conftest.$ac_ext >&5
 
603
  rm -rf conftest*
 
604
  CPP=/lib/cpp
 
605
fi
 
606
rm -f conftest*
 
607
fi
 
608
rm -f conftest*
 
609
fi
 
610
rm -f conftest*
 
611
  ac_cv_prog_CPP="$CPP"
 
612
fi
 
613
  CPP="$ac_cv_prog_CPP"
 
614
else
 
615
  ac_cv_prog_CPP="$CPP"
 
616
fi
 
617
echo "$ac_t""$CPP" 1>&6
 
618
 
 
619
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
 
620
echo "configure:621: checking whether ${MAKE-make} sets \${MAKE}" >&5
 
621
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
 
622
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
 
623
  echo $ac_n "(cached) $ac_c" 1>&6
 
624
else
 
625
  cat > conftestmake <<\EOF
 
626
all:
 
627
        @echo 'ac_maketemp="${MAKE}"'
 
628
EOF
 
629
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
630
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 
631
if test -n "$ac_maketemp"; then
 
632
  eval ac_cv_prog_make_${ac_make}_set=yes
 
633
else
 
634
  eval ac_cv_prog_make_${ac_make}_set=no
 
635
fi
 
636
rm -f conftestmake
 
637
fi
 
638
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
639
  echo "$ac_t""yes" 1>&6
 
640
  SET_MAKE=
 
641
else
 
642
  echo "$ac_t""no" 1>&6
 
643
  SET_MAKE="MAKE=${MAKE-make}"
 
644
fi
 
645
 
 
646
# Extract the first word of "gcc", so it can be a program name with args.
 
647
set dummy gcc; ac_word=$2
 
648
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
649
echo "configure:650: checking for $ac_word" >&5
 
650
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
651
  echo $ac_n "(cached) $ac_c" 1>&6
 
652
else
 
653
  if test -n "$CC"; then
 
654
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
655
else
 
656
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
657
  ac_dummy="$PATH"
 
658
  for ac_dir in $ac_dummy; do
 
659
    test -z "$ac_dir" && ac_dir=.
 
660
    if test -f $ac_dir/$ac_word; then
 
661
      ac_cv_prog_CC="gcc"
 
662
      break
 
663
    fi
 
664
  done
 
665
  IFS="$ac_save_ifs"
 
666
fi
 
667
fi
 
668
CC="$ac_cv_prog_CC"
 
669
if test -n "$CC"; then
 
670
  echo "$ac_t""$CC" 1>&6
 
671
else
 
672
  echo "$ac_t""no" 1>&6
 
673
fi
 
674
 
 
675
if test -z "$CC"; then
 
676
  # Extract the first word of "cc", so it can be a program name with args.
 
677
set dummy cc; ac_word=$2
 
678
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
679
echo "configure:680: checking for $ac_word" >&5
 
680
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
681
  echo $ac_n "(cached) $ac_c" 1>&6
 
682
else
 
683
  if test -n "$CC"; then
 
684
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
685
else
 
686
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
687
  ac_prog_rejected=no
 
688
  ac_dummy="$PATH"
 
689
  for ac_dir in $ac_dummy; do
 
690
    test -z "$ac_dir" && ac_dir=.
 
691
    if test -f $ac_dir/$ac_word; then
 
692
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
693
        ac_prog_rejected=yes
 
694
        continue
 
695
      fi
 
696
      ac_cv_prog_CC="cc"
 
697
      break
 
698
    fi
 
699
  done
 
700
  IFS="$ac_save_ifs"
 
701
if test $ac_prog_rejected = yes; then
 
702
  # We found a bogon in the path, so make sure we never use it.
 
703
  set dummy $ac_cv_prog_CC
 
704
  shift
 
705
  if test $# -gt 0; then
 
706
    # We chose a different compiler from the bogus one.
 
707
    # However, it has the same basename, so the bogon will be chosen
 
708
    # first if we set CC to just the basename; use the full file name.
 
709
    shift
 
710
    set dummy "$ac_dir/$ac_word" "$@"
 
711
    shift
 
712
    ac_cv_prog_CC="$@"
 
713
  fi
 
714
fi
 
715
fi
 
716
fi
 
717
CC="$ac_cv_prog_CC"
 
718
if test -n "$CC"; then
 
719
  echo "$ac_t""$CC" 1>&6
 
720
else
 
721
  echo "$ac_t""no" 1>&6
 
722
fi
 
723
 
 
724
  if test -z "$CC"; then
 
725
    case "`uname -s`" in
 
726
    *win32* | *WIN32*)
 
727
      # Extract the first word of "cl", so it can be a program name with args.
 
728
set dummy cl; ac_word=$2
 
729
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
730
echo "configure:731: checking for $ac_word" >&5
 
731
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
732
  echo $ac_n "(cached) $ac_c" 1>&6
 
733
else
 
734
  if test -n "$CC"; then
 
735
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
736
else
 
737
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
738
  ac_dummy="$PATH"
 
739
  for ac_dir in $ac_dummy; do
 
740
    test -z "$ac_dir" && ac_dir=.
 
741
    if test -f $ac_dir/$ac_word; then
 
742
      ac_cv_prog_CC="cl"
 
743
      break
 
744
    fi
 
745
  done
 
746
  IFS="$ac_save_ifs"
 
747
fi
 
748
fi
 
749
CC="$ac_cv_prog_CC"
 
750
if test -n "$CC"; then
 
751
  echo "$ac_t""$CC" 1>&6
 
752
else
 
753
  echo "$ac_t""no" 1>&6
 
754
fi
 
755
 ;;
 
756
    esac
 
757
  fi
 
758
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 
759
fi
 
760
 
 
761
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
762
echo "configure:763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
763
 
 
764
ac_ext=c
 
765
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
766
ac_cpp='$CPP $CPPFLAGS'
 
767
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
768
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
769
cross_compiling=$ac_cv_prog_cc_cross
 
770
 
 
771
cat > conftest.$ac_ext << EOF
 
772
 
 
773
#line 774 "configure"
 
774
#include "confdefs.h"
 
775
 
 
776
main(){return(0);}
 
777
EOF
 
778
if { (eval echo configure:779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
779
  ac_cv_prog_cc_works=yes
 
780
  # If we can't run a trivial program, we are probably using a cross compiler.
 
781
  if (./conftest; exit) 2>/dev/null; then
 
782
    ac_cv_prog_cc_cross=no
 
783
  else
 
784
    ac_cv_prog_cc_cross=yes
 
785
  fi
 
786
else
 
787
  echo "configure: failed program was:" >&5
 
788
  cat conftest.$ac_ext >&5
 
789
  ac_cv_prog_cc_works=no
 
790
fi
 
791
rm -fr conftest*
 
792
ac_ext=c
 
793
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
794
ac_cpp='$CPP $CPPFLAGS'
 
795
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
796
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
797
cross_compiling=$ac_cv_prog_cc_cross
 
798
 
 
799
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 
800
if test $ac_cv_prog_cc_works = no; then
 
801
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 
802
fi
 
803
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
804
echo "configure:805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
805
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 
806
cross_compiling=$ac_cv_prog_cc_cross
 
807
 
 
808
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 
809
echo "configure:810: checking whether we are using GNU C" >&5
 
810
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 
811
  echo $ac_n "(cached) $ac_c" 1>&6
 
812
else
 
813
  cat > conftest.c <<EOF
 
814
#ifdef __GNUC__
 
815
  yes;
 
816
#endif
 
817
EOF
 
818
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
819
  ac_cv_prog_gcc=yes
 
820
else
 
821
  ac_cv_prog_gcc=no
 
822
fi
 
823
fi
 
824
 
 
825
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 
826
 
 
827
if test $ac_cv_prog_gcc = yes; then
 
828
  GCC=yes
 
829
else
 
830
  GCC=
 
831
fi
 
832
 
 
833
ac_test_CFLAGS="${CFLAGS+set}"
 
834
ac_save_CFLAGS="$CFLAGS"
 
835
CFLAGS=
 
836
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 
837
echo "configure:838: checking whether ${CC-cc} accepts -g" >&5
 
838
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 
839
  echo $ac_n "(cached) $ac_c" 1>&6
 
840
else
 
841
  echo 'void f(){}' > conftest.c
 
842
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
843
  ac_cv_prog_cc_g=yes
 
844
else
 
845
  ac_cv_prog_cc_g=no
 
846
fi
 
847
rm -f conftest*
 
848
 
 
849
fi
 
850
 
 
851
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
852
if test "$ac_test_CFLAGS" = set; then
 
853
  CFLAGS="$ac_save_CFLAGS"
 
854
elif test $ac_cv_prog_cc_g = yes; then
 
855
  if test "$GCC" = yes; then
 
856
    CFLAGS="-g -O2"
 
857
  else
 
858
    CFLAGS="-g"
 
859
  fi
 
860
else
 
861
  if test "$GCC" = yes; then
 
862
    CFLAGS="-O2"
 
863
  else
 
864
    CFLAGS=
 
865
  fi
 
866
fi
 
867
 
 
868
# Extract the first word of "ranlib", so it can be a program name with args.
 
869
set dummy ranlib; ac_word=$2
 
870
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
871
echo "configure:872: checking for $ac_word" >&5
 
872
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 
873
  echo $ac_n "(cached) $ac_c" 1>&6
 
874
else
 
875
  if test -n "$RANLIB"; then
 
876
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
877
else
 
878
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
879
  ac_dummy="$PATH"
 
880
  for ac_dir in $ac_dummy; do
 
881
    test -z "$ac_dir" && ac_dir=.
 
882
    if test -f $ac_dir/$ac_word; then
 
883
      ac_cv_prog_RANLIB="ranlib"
 
884
      break
 
885
    fi
 
886
  done
 
887
  IFS="$ac_save_ifs"
 
888
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
 
889
fi
 
890
fi
 
891
RANLIB="$ac_cv_prog_RANLIB"
 
892
if test -n "$RANLIB"; then
 
893
  echo "$ac_t""$RANLIB" 1>&6
 
894
else
 
895
  echo "$ac_t""no" 1>&6
 
896
fi
 
897
 
 
898
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
 
899
echo "configure:900: checking for POSIXized ISC" >&5
 
900
if test -d /etc/conf/kconfig.d &&
 
901
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
 
902
then
 
903
  echo "$ac_t""yes" 1>&6
 
904
  ISC=yes # If later tests want to check for ISC.
 
905
  cat >> confdefs.h <<\EOF
 
906
#define _POSIX_SOURCE 1
 
907
EOF
 
908
 
 
909
  if test "$GCC" = yes; then
 
910
    CC="$CC -posix"
 
911
  else
 
912
    CC="$CC -Xp"
 
913
  fi
 
914
else
 
915
  echo "$ac_t""no" 1>&6
 
916
  ISC=
 
917
fi
 
918
 
 
919
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
 
920
echo "configure:921: checking for ANSI C header files" >&5
 
921
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
 
922
  echo $ac_n "(cached) $ac_c" 1>&6
 
923
else
 
924
  cat > conftest.$ac_ext <<EOF
 
925
#line 926 "configure"
 
926
#include "confdefs.h"
 
927
#include <stdlib.h>
 
928
#include <stdarg.h>
 
929
#include <string.h>
 
930
#include <float.h>
 
931
EOF
 
932
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
933
{ (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
934
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
935
if test -z "$ac_err"; then
 
936
  rm -rf conftest*
 
937
  ac_cv_header_stdc=yes
 
938
else
 
939
  echo "$ac_err" >&5
 
940
  echo "configure: failed program was:" >&5
 
941
  cat conftest.$ac_ext >&5
 
942
  rm -rf conftest*
 
943
  ac_cv_header_stdc=no
 
944
fi
 
945
rm -f conftest*
 
946
 
 
947
if test $ac_cv_header_stdc = yes; then
 
948
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
949
cat > conftest.$ac_ext <<EOF
 
950
#line 951 "configure"
 
951
#include "confdefs.h"
 
952
#include <string.h>
 
953
EOF
 
954
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
955
  egrep "memchr" >/dev/null 2>&1; then
 
956
  :
 
957
else
 
958
  rm -rf conftest*
 
959
  ac_cv_header_stdc=no
 
960
fi
 
961
rm -f conftest*
 
962
 
 
963
fi
 
964
 
 
965
if test $ac_cv_header_stdc = yes; then
 
966
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
967
cat > conftest.$ac_ext <<EOF
 
968
#line 969 "configure"
 
969
#include "confdefs.h"
 
970
#include <stdlib.h>
 
971
EOF
 
972
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
973
  egrep "free" >/dev/null 2>&1; then
 
974
  :
 
975
else
 
976
  rm -rf conftest*
 
977
  ac_cv_header_stdc=no
 
978
fi
 
979
rm -f conftest*
 
980
 
 
981
fi
 
982
 
 
983
if test $ac_cv_header_stdc = yes; then
 
984
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
985
if test "$cross_compiling" = yes; then
 
986
  :
 
987
else
 
988
  cat > conftest.$ac_ext <<EOF
 
989
#line 990 "configure"
 
990
#include "confdefs.h"
 
991
#include <ctype.h>
 
992
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
993
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
994
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
995
int main () { int i; for (i = 0; i < 256; i++)
 
996
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
 
997
exit (0); }
 
998
 
 
999
EOF
 
1000
if { (eval echo configure:1001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1001
then
 
1002
  :
 
1003
else
 
1004
  echo "configure: failed program was:" >&5
 
1005
  cat conftest.$ac_ext >&5
 
1006
  rm -fr conftest*
 
1007
  ac_cv_header_stdc=no
 
1008
fi
 
1009
rm -fr conftest*
 
1010
fi
 
1011
 
 
1012
fi
 
1013
fi
 
1014
 
 
1015
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
1016
if test $ac_cv_header_stdc = yes; then
 
1017
  cat >> confdefs.h <<\EOF
 
1018
#define STDC_HEADERS 1
 
1019
EOF
 
1020
 
 
1021
fi
 
1022
 
 
1023
echo $ac_n "checking for working const""... $ac_c" 1>&6
 
1024
echo "configure:1025: checking for working const" >&5
 
1025
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
 
1026
  echo $ac_n "(cached) $ac_c" 1>&6
 
1027
else
 
1028
  cat > conftest.$ac_ext <<EOF
 
1029
#line 1030 "configure"
 
1030
#include "confdefs.h"
 
1031
 
 
1032
int main() {
 
1033
 
 
1034
/* Ultrix mips cc rejects this.  */
 
1035
typedef int charset[2]; const charset x;
 
1036
/* SunOS 4.1.1 cc rejects this.  */
 
1037
char const *const *ccp;
 
1038
char **p;
 
1039
/* NEC SVR4.0.2 mips cc rejects this.  */
 
1040
struct point {int x, y;};
 
1041
static struct point const zero = {0,0};
 
1042
/* AIX XL C 1.02.0.0 rejects this.
 
1043
   It does not let you subtract one const X* pointer from another in an arm
 
1044
   of an if-expression whose if-part is not a constant expression */
 
1045
const char *g = "string";
 
1046
ccp = &g + (g ? g-g : 0);
 
1047
/* HPUX 7.0 cc rejects these. */
 
1048
++ccp;
 
1049
p = (char**) ccp;
 
1050
ccp = (char const *const *) p;
 
1051
{ /* SCO 3.2v4 cc rejects this.  */
 
1052
  char *t;
 
1053
  char const *s = 0 ? (char *) 0 : (char const *) 0;
 
1054
 
 
1055
  *t++ = 0;
 
1056
}
 
1057
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
1058
  int x[] = {25, 17};
 
1059
  const int *foo = &x[0];
 
1060
  ++foo;
 
1061
}
 
1062
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
1063
  typedef const int *iptr;
 
1064
  iptr p = 0;
 
1065
  ++p;
 
1066
}
 
1067
{ /* AIX XL C 1.02.0.0 rejects this saying
 
1068
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
1069
  struct s { int j; const int *ap[3]; };
 
1070
  struct s *b; b->j = 5;
 
1071
}
 
1072
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
1073
  const int foo = 10;
 
1074
}
 
1075
 
 
1076
; return 0; }
 
1077
EOF
 
1078
if { (eval echo configure:1079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1079
  rm -rf conftest*
 
1080
  ac_cv_c_const=yes
 
1081
else
 
1082
  echo "configure: failed program was:" >&5
 
1083
  cat conftest.$ac_ext >&5
 
1084
  rm -rf conftest*
 
1085
  ac_cv_c_const=no
 
1086
fi
 
1087
rm -f conftest*
 
1088
fi
 
1089
 
 
1090
echo "$ac_t""$ac_cv_c_const" 1>&6
 
1091
if test $ac_cv_c_const = no; then
 
1092
  cat >> confdefs.h <<\EOF
 
1093
#define const 
 
1094
EOF
 
1095
 
 
1096
fi
 
1097
 
 
1098
echo $ac_n "checking for inline""... $ac_c" 1>&6
 
1099
echo "configure:1100: checking for inline" >&5
 
1100
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
 
1101
  echo $ac_n "(cached) $ac_c" 1>&6
 
1102
else
 
1103
  ac_cv_c_inline=no
 
1104
for ac_kw in inline __inline__ __inline; do
 
1105
  cat > conftest.$ac_ext <<EOF
 
1106
#line 1107 "configure"
 
1107
#include "confdefs.h"
 
1108
 
 
1109
int main() {
 
1110
} $ac_kw foo() {
 
1111
; return 0; }
 
1112
EOF
 
1113
if { (eval echo configure:1114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1114
  rm -rf conftest*
 
1115
  ac_cv_c_inline=$ac_kw; break
 
1116
else
 
1117
  echo "configure: failed program was:" >&5
 
1118
  cat conftest.$ac_ext >&5
 
1119
fi
 
1120
rm -f conftest*
 
1121
done
 
1122
 
 
1123
fi
 
1124
 
 
1125
echo "$ac_t""$ac_cv_c_inline" 1>&6
 
1126
case "$ac_cv_c_inline" in
 
1127
  inline | yes) ;;
 
1128
  no) cat >> confdefs.h <<\EOF
 
1129
#define inline 
 
1130
EOF
 
1131
 ;;
 
1132
  *)  cat >> confdefs.h <<EOF
 
1133
#define inline $ac_cv_c_inline
 
1134
EOF
 
1135
 ;;
 
1136
esac
 
1137
 
 
1138
echo $ac_n "checking for off_t""... $ac_c" 1>&6
 
1139
echo "configure:1140: checking for off_t" >&5
 
1140
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
 
1141
  echo $ac_n "(cached) $ac_c" 1>&6
 
1142
else
 
1143
  cat > conftest.$ac_ext <<EOF
 
1144
#line 1145 "configure"
 
1145
#include "confdefs.h"
 
1146
#include <sys/types.h>
 
1147
#if STDC_HEADERS
 
1148
#include <stdlib.h>
 
1149
#include <stddef.h>
 
1150
#endif
 
1151
EOF
 
1152
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1153
  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
1154
  rm -rf conftest*
 
1155
  ac_cv_type_off_t=yes
 
1156
else
 
1157
  rm -rf conftest*
 
1158
  ac_cv_type_off_t=no
 
1159
fi
 
1160
rm -f conftest*
 
1161
 
 
1162
fi
 
1163
echo "$ac_t""$ac_cv_type_off_t" 1>&6
 
1164
if test $ac_cv_type_off_t = no; then
 
1165
  cat >> confdefs.h <<\EOF
 
1166
#define off_t long
 
1167
EOF
 
1168
 
 
1169
fi
 
1170
 
 
1171
echo $ac_n "checking for size_t""... $ac_c" 1>&6
 
1172
echo "configure:1173: checking for size_t" >&5
 
1173
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
 
1174
  echo $ac_n "(cached) $ac_c" 1>&6
 
1175
else
 
1176
  cat > conftest.$ac_ext <<EOF
 
1177
#line 1178 "configure"
 
1178
#include "confdefs.h"
 
1179
#include <sys/types.h>
 
1180
#if STDC_HEADERS
 
1181
#include <stdlib.h>
 
1182
#include <stddef.h>
 
1183
#endif
 
1184
EOF
 
1185
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1186
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
1187
  rm -rf conftest*
 
1188
  ac_cv_type_size_t=yes
 
1189
else
 
1190
  rm -rf conftest*
 
1191
  ac_cv_type_size_t=no
 
1192
fi
 
1193
rm -f conftest*
 
1194
 
 
1195
fi
 
1196
echo "$ac_t""$ac_cv_type_size_t" 1>&6
 
1197
if test $ac_cv_type_size_t = no; then
 
1198
  cat >> confdefs.h <<\EOF
 
1199
#define size_t unsigned
 
1200
EOF
 
1201
 
 
1202
fi
 
1203
 
 
1204
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
1205
# for constant arguments.  Useless!
 
1206
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
 
1207
echo "configure:1208: checking for working alloca.h" >&5
 
1208
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
 
1209
  echo $ac_n "(cached) $ac_c" 1>&6
 
1210
else
 
1211
  cat > conftest.$ac_ext <<EOF
 
1212
#line 1213 "configure"
 
1213
#include "confdefs.h"
 
1214
#include <alloca.h>
 
1215
int main() {
 
1216
char *p = alloca(2 * sizeof(int));
 
1217
; return 0; }
 
1218
EOF
 
1219
if { (eval echo configure:1220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1220
  rm -rf conftest*
 
1221
  ac_cv_header_alloca_h=yes
 
1222
else
 
1223
  echo "configure: failed program was:" >&5
 
1224
  cat conftest.$ac_ext >&5
 
1225
  rm -rf conftest*
 
1226
  ac_cv_header_alloca_h=no
 
1227
fi
 
1228
rm -f conftest*
 
1229
fi
 
1230
 
 
1231
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
 
1232
if test $ac_cv_header_alloca_h = yes; then
 
1233
  cat >> confdefs.h <<\EOF
 
1234
#define HAVE_ALLOCA_H 1
 
1235
EOF
 
1236
 
 
1237
fi
 
1238
 
 
1239
echo $ac_n "checking for alloca""... $ac_c" 1>&6
 
1240
echo "configure:1241: checking for alloca" >&5
 
1241
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
 
1242
  echo $ac_n "(cached) $ac_c" 1>&6
 
1243
else
 
1244
  cat > conftest.$ac_ext <<EOF
 
1245
#line 1246 "configure"
 
1246
#include "confdefs.h"
 
1247
 
 
1248
#ifdef __GNUC__
 
1249
# define alloca __builtin_alloca
 
1250
#else
 
1251
# ifdef _MSC_VER
 
1252
#  include <malloc.h>
 
1253
#  define alloca _alloca
 
1254
# else
 
1255
#  if HAVE_ALLOCA_H
 
1256
#   include <alloca.h>
 
1257
#  else
 
1258
#   ifdef _AIX
 
1259
 #pragma alloca
 
1260
#   else
 
1261
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
1262
char *alloca ();
 
1263
#    endif
 
1264
#   endif
 
1265
#  endif
 
1266
# endif
 
1267
#endif
 
1268
 
 
1269
int main() {
 
1270
char *p = (char *) alloca(1);
 
1271
; return 0; }
 
1272
EOF
 
1273
if { (eval echo configure:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1274
  rm -rf conftest*
 
1275
  ac_cv_func_alloca_works=yes
 
1276
else
 
1277
  echo "configure: failed program was:" >&5
 
1278
  cat conftest.$ac_ext >&5
 
1279
  rm -rf conftest*
 
1280
  ac_cv_func_alloca_works=no
 
1281
fi
 
1282
rm -f conftest*
 
1283
fi
 
1284
 
 
1285
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
 
1286
if test $ac_cv_func_alloca_works = yes; then
 
1287
  cat >> confdefs.h <<\EOF
 
1288
#define HAVE_ALLOCA 1
 
1289
EOF
 
1290
 
 
1291
fi
 
1292
 
 
1293
if test $ac_cv_func_alloca_works = no; then
 
1294
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
1295
  # that cause trouble.  Some versions do not even contain alloca or
 
1296
  # contain a buggy version.  If you still want to use their alloca,
 
1297
  # use ar to extract alloca.o from them instead of compiling alloca.c.
 
1298
  ALLOCA=alloca.${ac_objext}
 
1299
  cat >> confdefs.h <<\EOF
 
1300
#define C_ALLOCA 1
 
1301
EOF
 
1302
 
 
1303
 
 
1304
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
 
1305
echo "configure:1306: checking whether alloca needs Cray hooks" >&5
 
1306
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
 
1307
  echo $ac_n "(cached) $ac_c" 1>&6
 
1308
else
 
1309
  cat > conftest.$ac_ext <<EOF
 
1310
#line 1311 "configure"
 
1311
#include "confdefs.h"
 
1312
#if defined(CRAY) && ! defined(CRAY2)
 
1313
webecray
 
1314
#else
 
1315
wenotbecray
 
1316
#endif
 
1317
 
 
1318
EOF
 
1319
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1320
  egrep "webecray" >/dev/null 2>&1; then
 
1321
  rm -rf conftest*
 
1322
  ac_cv_os_cray=yes
 
1323
else
 
1324
  rm -rf conftest*
 
1325
  ac_cv_os_cray=no
 
1326
fi
 
1327
rm -f conftest*
 
1328
 
 
1329
fi
 
1330
 
 
1331
echo "$ac_t""$ac_cv_os_cray" 1>&6
 
1332
if test $ac_cv_os_cray = yes; then
 
1333
for ac_func in _getb67 GETB67 getb67; do
 
1334
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
1335
echo "configure:1336: checking for $ac_func" >&5
 
1336
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
1337
  echo $ac_n "(cached) $ac_c" 1>&6
 
1338
else
 
1339
  cat > conftest.$ac_ext <<EOF
 
1340
#line 1341 "configure"
 
1341
#include "confdefs.h"
 
1342
/* System header to define __stub macros and hopefully few prototypes,
 
1343
    which can conflict with char $ac_func(); below.  */
 
1344
#include <assert.h>
 
1345
/* Override any gcc2 internal prototype to avoid an error.  */
 
1346
/* We use char because int might match the return type of a gcc2
 
1347
    builtin and then its argument prototype would still apply.  */
 
1348
char $ac_func();
 
1349
 
 
1350
int main() {
 
1351
 
 
1352
/* The GNU C library defines this for functions which it implements
 
1353
    to always fail with ENOSYS.  Some functions are actually named
 
1354
    something starting with __ and the normal name is an alias.  */
 
1355
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
1356
choke me
 
1357
#else
 
1358
$ac_func();
 
1359
#endif
 
1360
 
 
1361
; return 0; }
 
1362
EOF
 
1363
if { (eval echo configure:1364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1364
  rm -rf conftest*
 
1365
  eval "ac_cv_func_$ac_func=yes"
 
1366
else
 
1367
  echo "configure: failed program was:" >&5
 
1368
  cat conftest.$ac_ext >&5
 
1369
  rm -rf conftest*
 
1370
  eval "ac_cv_func_$ac_func=no"
 
1371
fi
 
1372
rm -f conftest*
 
1373
fi
 
1374
 
 
1375
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
1376
  echo "$ac_t""yes" 1>&6
 
1377
  cat >> confdefs.h <<EOF
 
1378
#define CRAY_STACKSEG_END $ac_func
 
1379
EOF
 
1380
 
 
1381
  break
 
1382
else
 
1383
  echo "$ac_t""no" 1>&6
 
1384
fi
 
1385
 
 
1386
done
 
1387
fi
 
1388
 
 
1389
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
 
1390
echo "configure:1391: checking stack direction for C alloca" >&5
 
1391
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
 
1392
  echo $ac_n "(cached) $ac_c" 1>&6
 
1393
else
 
1394
  if test "$cross_compiling" = yes; then
 
1395
  ac_cv_c_stack_direction=0
 
1396
else
 
1397
  cat > conftest.$ac_ext <<EOF
 
1398
#line 1399 "configure"
 
1399
#include "confdefs.h"
 
1400
find_stack_direction ()
 
1401
{
 
1402
  static char *addr = 0;
 
1403
  auto char dummy;
 
1404
  if (addr == 0)
 
1405
    {
 
1406
      addr = &dummy;
 
1407
      return find_stack_direction ();
 
1408
    }
 
1409
  else
 
1410
    return (&dummy > addr) ? 1 : -1;
 
1411
}
 
1412
main ()
 
1413
{
 
1414
  exit (find_stack_direction() < 0);
 
1415
}
 
1416
EOF
 
1417
if { (eval echo configure:1418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1418
then
 
1419
  ac_cv_c_stack_direction=1
 
1420
else
 
1421
  echo "configure: failed program was:" >&5
 
1422
  cat conftest.$ac_ext >&5
 
1423
  rm -fr conftest*
 
1424
  ac_cv_c_stack_direction=-1
 
1425
fi
 
1426
rm -fr conftest*
 
1427
fi
 
1428
 
 
1429
fi
 
1430
 
 
1431
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
 
1432
cat >> confdefs.h <<EOF
 
1433
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
1434
EOF
 
1435
 
 
1436
fi
 
1437
 
 
1438
for ac_hdr in unistd.h
 
1439
do
 
1440
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
1441
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
1442
echo "configure:1443: checking for $ac_hdr" >&5
 
1443
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
1444
  echo $ac_n "(cached) $ac_c" 1>&6
 
1445
else
 
1446
  cat > conftest.$ac_ext <<EOF
 
1447
#line 1448 "configure"
 
1448
#include "confdefs.h"
 
1449
#include <$ac_hdr>
 
1450
EOF
 
1451
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1452
{ (eval echo configure:1453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1453
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1454
if test -z "$ac_err"; then
 
1455
  rm -rf conftest*
 
1456
  eval "ac_cv_header_$ac_safe=yes"
 
1457
else
 
1458
  echo "$ac_err" >&5
 
1459
  echo "configure: failed program was:" >&5
 
1460
  cat conftest.$ac_ext >&5
 
1461
  rm -rf conftest*
 
1462
  eval "ac_cv_header_$ac_safe=no"
 
1463
fi
 
1464
rm -f conftest*
 
1465
fi
 
1466
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
1467
  echo "$ac_t""yes" 1>&6
 
1468
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
1469
  cat >> confdefs.h <<EOF
 
1470
#define $ac_tr_hdr 1
 
1471
EOF
 
1472
 
 
1473
else
 
1474
  echo "$ac_t""no" 1>&6
 
1475
fi
 
1476
done
 
1477
 
 
1478
for ac_func in getpagesize
 
1479
do
 
1480
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
1481
echo "configure:1482: checking for $ac_func" >&5
 
1482
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
1483
  echo $ac_n "(cached) $ac_c" 1>&6
 
1484
else
 
1485
  cat > conftest.$ac_ext <<EOF
 
1486
#line 1487 "configure"
 
1487
#include "confdefs.h"
 
1488
/* System header to define __stub macros and hopefully few prototypes,
 
1489
    which can conflict with char $ac_func(); below.  */
 
1490
#include <assert.h>
 
1491
/* Override any gcc2 internal prototype to avoid an error.  */
 
1492
/* We use char because int might match the return type of a gcc2
 
1493
    builtin and then its argument prototype would still apply.  */
 
1494
char $ac_func();
 
1495
 
 
1496
int main() {
 
1497
 
 
1498
/* The GNU C library defines this for functions which it implements
 
1499
    to always fail with ENOSYS.  Some functions are actually named
 
1500
    something starting with __ and the normal name is an alias.  */
 
1501
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
1502
choke me
 
1503
#else
 
1504
$ac_func();
 
1505
#endif
 
1506
 
 
1507
; return 0; }
 
1508
EOF
 
1509
if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1510
  rm -rf conftest*
 
1511
  eval "ac_cv_func_$ac_func=yes"
 
1512
else
 
1513
  echo "configure: failed program was:" >&5
 
1514
  cat conftest.$ac_ext >&5
 
1515
  rm -rf conftest*
 
1516
  eval "ac_cv_func_$ac_func=no"
 
1517
fi
 
1518
rm -f conftest*
 
1519
fi
 
1520
 
 
1521
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
1522
  echo "$ac_t""yes" 1>&6
 
1523
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
1524
  cat >> confdefs.h <<EOF
 
1525
#define $ac_tr_func 1
 
1526
EOF
 
1527
 
 
1528
else
 
1529
  echo "$ac_t""no" 1>&6
 
1530
fi
 
1531
done
 
1532
 
 
1533
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
 
1534
echo "configure:1535: checking for working mmap" >&5
 
1535
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
 
1536
  echo $ac_n "(cached) $ac_c" 1>&6
 
1537
else
 
1538
  if test "$cross_compiling" = yes; then
 
1539
  ac_cv_func_mmap_fixed_mapped=no
 
1540
else
 
1541
  cat > conftest.$ac_ext <<EOF
 
1542
#line 1543 "configure"
 
1543
#include "confdefs.h"
 
1544
 
 
1545
/* Thanks to Mike Haertel and Jim Avera for this test.
 
1546
   Here is a matrix of mmap possibilities:
 
1547
        mmap private not fixed
 
1548
        mmap private fixed at somewhere currently unmapped
 
1549
        mmap private fixed at somewhere already mapped
 
1550
        mmap shared not fixed
 
1551
        mmap shared fixed at somewhere currently unmapped
 
1552
        mmap shared fixed at somewhere already mapped
 
1553
   For private mappings, we should verify that changes cannot be read()
 
1554
   back from the file, nor mmap's back from the file at a different
 
1555
   address.  (There have been systems where private was not correctly
 
1556
   implemented like the infamous i386 svr4.0, and systems where the
 
1557
   VM page cache was not coherent with the filesystem buffer cache
 
1558
   like early versions of FreeBSD and possibly contemporary NetBSD.)
 
1559
   For shared mappings, we should conversely verify that changes get
 
1560
   propogated back to all the places they're supposed to be.
 
1561
 
 
1562
   Grep wants private fixed already mapped.
 
1563
   The main things grep needs to know about mmap are:
 
1564
   * does it exist and is it safe to write into the mmap'd area
 
1565
   * how to use it (BSD variants)  */
 
1566
#include <sys/types.h>
 
1567
#include <fcntl.h>
 
1568
#include <sys/mman.h>
 
1569
 
 
1570
/* This mess was copied from the GNU getpagesize.h.  */
 
1571
#ifndef HAVE_GETPAGESIZE
 
1572
# ifdef HAVE_UNISTD_H
 
1573
#  include <unistd.h>
 
1574
# endif
 
1575
 
 
1576
/* Assume that all systems that can run configure have sys/param.h.  */
 
1577
# ifndef HAVE_SYS_PARAM_H
 
1578
#  define HAVE_SYS_PARAM_H 1
 
1579
# endif
 
1580
 
 
1581
# ifdef _SC_PAGESIZE
 
1582
#  define getpagesize() sysconf(_SC_PAGESIZE)
 
1583
# else /* no _SC_PAGESIZE */
 
1584
#  ifdef HAVE_SYS_PARAM_H
 
1585
#   include <sys/param.h>
 
1586
#   ifdef EXEC_PAGESIZE
 
1587
#    define getpagesize() EXEC_PAGESIZE
 
1588
#   else /* no EXEC_PAGESIZE */
 
1589
#    ifdef NBPG
 
1590
#     define getpagesize() NBPG * CLSIZE
 
1591
#     ifndef CLSIZE
 
1592
#      define CLSIZE 1
 
1593
#     endif /* no CLSIZE */
 
1594
#    else /* no NBPG */
 
1595
#     ifdef NBPC
 
1596
#      define getpagesize() NBPC
 
1597
#     else /* no NBPC */
 
1598
#      ifdef PAGESIZE
 
1599
#       define getpagesize() PAGESIZE
 
1600
#      endif /* PAGESIZE */
 
1601
#     endif /* no NBPC */
 
1602
#    endif /* no NBPG */
 
1603
#   endif /* no EXEC_PAGESIZE */
 
1604
#  else /* no HAVE_SYS_PARAM_H */
 
1605
#   define getpagesize() 8192   /* punt totally */
 
1606
#  endif /* no HAVE_SYS_PARAM_H */
 
1607
# endif /* no _SC_PAGESIZE */
 
1608
 
 
1609
#endif /* no HAVE_GETPAGESIZE */
 
1610
 
 
1611
#ifdef __cplusplus
 
1612
extern "C" { void *malloc(unsigned); }
 
1613
#else
 
1614
char *malloc();
 
1615
#endif
 
1616
 
 
1617
int
 
1618
main()
 
1619
{
 
1620
        char *data, *data2, *data3;
 
1621
        int i, pagesize;
 
1622
        int fd;
 
1623
 
 
1624
        pagesize = getpagesize();
 
1625
 
 
1626
        /*
 
1627
         * First, make a file with some known garbage in it.
 
1628
         */
 
1629
        data = malloc(pagesize);
 
1630
        if (!data)
 
1631
                exit(1);
 
1632
        for (i = 0; i < pagesize; ++i)
 
1633
                *(data + i) = rand();
 
1634
        umask(0);
 
1635
        fd = creat("conftestmmap", 0600);
 
1636
        if (fd < 0)
 
1637
                exit(1);
 
1638
        if (write(fd, data, pagesize) != pagesize)
 
1639
                exit(1);
 
1640
        close(fd);
 
1641
 
 
1642
        /*
 
1643
         * Next, try to mmap the file at a fixed address which
 
1644
         * already has something else allocated at it.  If we can,
 
1645
         * also make sure that we see the same garbage.
 
1646
         */
 
1647
        fd = open("conftestmmap", O_RDWR);
 
1648
        if (fd < 0)
 
1649
                exit(1);
 
1650
        data2 = malloc(2 * pagesize);
 
1651
        if (!data2)
 
1652
                exit(1);
 
1653
        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
 
1654
        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
 
1655
            MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
1656
                exit(1);
 
1657
        for (i = 0; i < pagesize; ++i)
 
1658
                if (*(data + i) != *(data2 + i))
 
1659
                        exit(1);
 
1660
 
 
1661
        /*
 
1662
         * Finally, make sure that changes to the mapped area
 
1663
         * do not percolate back to the file as seen by read().
 
1664
         * (This is a bug on some variants of i386 svr4.0.)
 
1665
         */
 
1666
        for (i = 0; i < pagesize; ++i)
 
1667
                *(data2 + i) = *(data2 + i) + 1;
 
1668
        data3 = malloc(pagesize);
 
1669
        if (!data3)
 
1670
                exit(1);
 
1671
        if (read(fd, data3, pagesize) != pagesize)
 
1672
                exit(1);
 
1673
        for (i = 0; i < pagesize; ++i)
 
1674
                if (*(data + i) != *(data3 + i))
 
1675
                        exit(1);
 
1676
        close(fd);
 
1677
        unlink("conftestmmap");
 
1678
        exit(0);
 
1679
}
 
1680
 
 
1681
EOF
 
1682
if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1683
then
 
1684
  ac_cv_func_mmap_fixed_mapped=yes
 
1685
else
 
1686
  echo "configure: failed program was:" >&5
 
1687
  cat conftest.$ac_ext >&5
 
1688
  rm -fr conftest*
 
1689
  ac_cv_func_mmap_fixed_mapped=no
 
1690
fi
 
1691
rm -fr conftest*
 
1692
fi
 
1693
 
 
1694
fi
 
1695
 
 
1696
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
 
1697
if test $ac_cv_func_mmap_fixed_mapped = yes; then
 
1698
  cat >> confdefs.h <<\EOF
 
1699
#define HAVE_MMAP 1
 
1700
EOF
 
1701
 
 
1702
fi
 
1703
 
 
1704
                              
 
1705
   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
 
1706
unistd.h sys/param.h
 
1707
do
 
1708
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
1709
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
1710
echo "configure:1711: checking for $ac_hdr" >&5
 
1711
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
1712
  echo $ac_n "(cached) $ac_c" 1>&6
 
1713
else
 
1714
  cat > conftest.$ac_ext <<EOF
 
1715
#line 1716 "configure"
 
1716
#include "confdefs.h"
 
1717
#include <$ac_hdr>
 
1718
EOF
 
1719
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1720
{ (eval echo configure:1721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1721
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1722
if test -z "$ac_err"; then
 
1723
  rm -rf conftest*
 
1724
  eval "ac_cv_header_$ac_safe=yes"
 
1725
else
 
1726
  echo "$ac_err" >&5
 
1727
  echo "configure: failed program was:" >&5
 
1728
  cat conftest.$ac_ext >&5
 
1729
  rm -rf conftest*
 
1730
  eval "ac_cv_header_$ac_safe=no"
 
1731
fi
 
1732
rm -f conftest*
 
1733
fi
 
1734
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
1735
  echo "$ac_t""yes" 1>&6
 
1736
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
1737
  cat >> confdefs.h <<EOF
 
1738
#define $ac_tr_hdr 1
 
1739
EOF
 
1740
 
 
1741
else
 
1742
  echo "$ac_t""no" 1>&6
 
1743
fi
 
1744
done
 
1745
 
 
1746
   for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
 
1747
strdup __argz_count __argz_stringify __argz_next
 
1748
do
 
1749
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
1750
echo "configure:1751: checking for $ac_func" >&5
 
1751
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
1752
  echo $ac_n "(cached) $ac_c" 1>&6
 
1753
else
 
1754
  cat > conftest.$ac_ext <<EOF
 
1755
#line 1756 "configure"
 
1756
#include "confdefs.h"
 
1757
/* System header to define __stub macros and hopefully few prototypes,
 
1758
    which can conflict with char $ac_func(); below.  */
 
1759
#include <assert.h>
 
1760
/* Override any gcc2 internal prototype to avoid an error.  */
 
1761
/* We use char because int might match the return type of a gcc2
 
1762
    builtin and then its argument prototype would still apply.  */
 
1763
char $ac_func();
 
1764
 
 
1765
int main() {
 
1766
 
 
1767
/* The GNU C library defines this for functions which it implements
 
1768
    to always fail with ENOSYS.  Some functions are actually named
 
1769
    something starting with __ and the normal name is an alias.  */
 
1770
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
1771
choke me
 
1772
#else
 
1773
$ac_func();
 
1774
#endif
 
1775
 
 
1776
; return 0; }
 
1777
EOF
 
1778
if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1779
  rm -rf conftest*
 
1780
  eval "ac_cv_func_$ac_func=yes"
 
1781
else
 
1782
  echo "configure: failed program was:" >&5
 
1783
  cat conftest.$ac_ext >&5
 
1784
  rm -rf conftest*
 
1785
  eval "ac_cv_func_$ac_func=no"
 
1786
fi
 
1787
rm -f conftest*
 
1788
fi
 
1789
 
 
1790
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
1791
  echo "$ac_t""yes" 1>&6
 
1792
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
1793
  cat >> confdefs.h <<EOF
 
1794
#define $ac_tr_func 1
 
1795
EOF
 
1796
 
 
1797
else
 
1798
  echo "$ac_t""no" 1>&6
 
1799
fi
 
1800
done
 
1801
 
 
1802
 
 
1803
   if test "${ac_cv_func_stpcpy+set}" != "set"; then
 
1804
     for ac_func in stpcpy
 
1805
do
 
1806
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
1807
echo "configure:1808: checking for $ac_func" >&5
 
1808
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
1809
  echo $ac_n "(cached) $ac_c" 1>&6
 
1810
else
 
1811
  cat > conftest.$ac_ext <<EOF
 
1812
#line 1813 "configure"
 
1813
#include "confdefs.h"
 
1814
/* System header to define __stub macros and hopefully few prototypes,
 
1815
    which can conflict with char $ac_func(); below.  */
 
1816
#include <assert.h>
 
1817
/* Override any gcc2 internal prototype to avoid an error.  */
 
1818
/* We use char because int might match the return type of a gcc2
 
1819
    builtin and then its argument prototype would still apply.  */
 
1820
char $ac_func();
 
1821
 
 
1822
int main() {
 
1823
 
 
1824
/* The GNU C library defines this for functions which it implements
 
1825
    to always fail with ENOSYS.  Some functions are actually named
 
1826
    something starting with __ and the normal name is an alias.  */
 
1827
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
1828
choke me
 
1829
#else
 
1830
$ac_func();
 
1831
#endif
 
1832
 
 
1833
; return 0; }
 
1834
EOF
 
1835
if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1836
  rm -rf conftest*
 
1837
  eval "ac_cv_func_$ac_func=yes"
 
1838
else
 
1839
  echo "configure: failed program was:" >&5
 
1840
  cat conftest.$ac_ext >&5
 
1841
  rm -rf conftest*
 
1842
  eval "ac_cv_func_$ac_func=no"
 
1843
fi
 
1844
rm -f conftest*
 
1845
fi
 
1846
 
 
1847
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
1848
  echo "$ac_t""yes" 1>&6
 
1849
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
1850
  cat >> confdefs.h <<EOF
 
1851
#define $ac_tr_func 1
 
1852
EOF
 
1853
 
 
1854
else
 
1855
  echo "$ac_t""no" 1>&6
 
1856
fi
 
1857
done
 
1858
 
 
1859
   fi
 
1860
   if test "${ac_cv_func_stpcpy}" = "yes"; then
 
1861
     cat >> confdefs.h <<\EOF
 
1862
#define HAVE_STPCPY 1
 
1863
EOF
 
1864
 
 
1865
   fi
 
1866
 
 
1867
   if test $ac_cv_header_locale_h = yes; then
 
1868
    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
 
1869
echo "configure:1870: checking for LC_MESSAGES" >&5
 
1870
if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
 
1871
  echo $ac_n "(cached) $ac_c" 1>&6
 
1872
else
 
1873
  cat > conftest.$ac_ext <<EOF
 
1874
#line 1875 "configure"
 
1875
#include "confdefs.h"
 
1876
#include <locale.h>
 
1877
int main() {
 
1878
return LC_MESSAGES
 
1879
; return 0; }
 
1880
EOF
 
1881
if { (eval echo configure:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1882
  rm -rf conftest*
 
1883
  am_cv_val_LC_MESSAGES=yes
 
1884
else
 
1885
  echo "configure: failed program was:" >&5
 
1886
  cat conftest.$ac_ext >&5
 
1887
  rm -rf conftest*
 
1888
  am_cv_val_LC_MESSAGES=no
 
1889
fi
 
1890
rm -f conftest*
 
1891
fi
 
1892
 
 
1893
echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
 
1894
    if test $am_cv_val_LC_MESSAGES = yes; then
 
1895
      cat >> confdefs.h <<\EOF
 
1896
#define HAVE_LC_MESSAGES 1
 
1897
EOF
 
1898
 
 
1899
    fi
 
1900
  fi
 
1901
   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
 
1902
echo "configure:1903: checking whether NLS is requested" >&5
 
1903
        # Check whether --enable-nls or --disable-nls was given.
 
1904
if test "${enable_nls+set}" = set; then
 
1905
  enableval="$enable_nls"
 
1906
  USE_NLS=$enableval
 
1907
else
 
1908
  USE_NLS=yes
 
1909
fi
 
1910
 
 
1911
    echo "$ac_t""$USE_NLS" 1>&6
 
1912
    
 
1913
 
 
1914
    USE_INCLUDED_LIBINTL=no
 
1915
 
 
1916
        if test "$USE_NLS" = "yes"; then
 
1917
      cat >> confdefs.h <<\EOF
 
1918
#define ENABLE_NLS 1
 
1919
EOF
 
1920
 
 
1921
      echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
 
1922
echo "configure:1923: checking whether included gettext is requested" >&5
 
1923
      # Check whether --with-included-gettext or --without-included-gettext was given.
 
1924
if test "${with_included_gettext+set}" = set; then
 
1925
  withval="$with_included_gettext"
 
1926
  nls_cv_force_use_gnu_gettext=$withval
 
1927
else
 
1928
  nls_cv_force_use_gnu_gettext=no
 
1929
fi
 
1930
 
 
1931
      echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
 
1932
 
 
1933
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
 
1934
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
 
1935
                                        nls_cv_header_intl=
 
1936
        nls_cv_header_libgt=
 
1937
        CATOBJEXT=NONE
 
1938
 
 
1939
        ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
 
1940
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
 
1941
echo "configure:1942: checking for libintl.h" >&5
 
1942
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
1943
  echo $ac_n "(cached) $ac_c" 1>&6
 
1944
else
 
1945
  cat > conftest.$ac_ext <<EOF
 
1946
#line 1947 "configure"
 
1947
#include "confdefs.h"
 
1948
#include <libintl.h>
 
1949
EOF
 
1950
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1951
{ (eval echo configure:1952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1952
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1953
if test -z "$ac_err"; then
 
1954
  rm -rf conftest*
 
1955
  eval "ac_cv_header_$ac_safe=yes"
 
1956
else
 
1957
  echo "$ac_err" >&5
 
1958
  echo "configure: failed program was:" >&5
 
1959
  cat conftest.$ac_ext >&5
 
1960
  rm -rf conftest*
 
1961
  eval "ac_cv_header_$ac_safe=no"
 
1962
fi
 
1963
rm -f conftest*
 
1964
fi
 
1965
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
1966
  echo "$ac_t""yes" 1>&6
 
1967
  echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
 
1968
echo "configure:1969: checking for gettext in libc" >&5
 
1969
if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
 
1970
  echo $ac_n "(cached) $ac_c" 1>&6
 
1971
else
 
1972
  cat > conftest.$ac_ext <<EOF
 
1973
#line 1974 "configure"
 
1974
#include "confdefs.h"
 
1975
#include <libintl.h>
 
1976
int main() {
 
1977
return (int) gettext ("")
 
1978
; return 0; }
 
1979
EOF
 
1980
if { (eval echo configure:1981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1981
  rm -rf conftest*
 
1982
  gt_cv_func_gettext_libc=yes
 
1983
else
 
1984
  echo "configure: failed program was:" >&5
 
1985
  cat conftest.$ac_ext >&5
 
1986
  rm -rf conftest*
 
1987
  gt_cv_func_gettext_libc=no
 
1988
fi
 
1989
rm -f conftest*
 
1990
fi
 
1991
 
 
1992
echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
 
1993
 
 
1994
           if test "$gt_cv_func_gettext_libc" != "yes"; then
 
1995
             echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
 
1996
echo "configure:1997: checking for bindtextdomain in -lintl" >&5
 
1997
ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
 
1998
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1999
  echo $ac_n "(cached) $ac_c" 1>&6
 
2000
else
 
2001
  ac_save_LIBS="$LIBS"
 
2002
LIBS="-lintl  $LIBS"
 
2003
cat > conftest.$ac_ext <<EOF
 
2004
#line 2005 "configure"
 
2005
#include "confdefs.h"
 
2006
/* Override any gcc2 internal prototype to avoid an error.  */
 
2007
/* We use char because int might match the return type of a gcc2
 
2008
    builtin and then its argument prototype would still apply.  */
 
2009
char bindtextdomain();
 
2010
 
 
2011
int main() {
 
2012
bindtextdomain()
 
2013
; return 0; }
 
2014
EOF
 
2015
if { (eval echo configure:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2016
  rm -rf conftest*
 
2017
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2018
else
 
2019
  echo "configure: failed program was:" >&5
 
2020
  cat conftest.$ac_ext >&5
 
2021
  rm -rf conftest*
 
2022
  eval "ac_cv_lib_$ac_lib_var=no"
 
2023
fi
 
2024
rm -f conftest*
 
2025
LIBS="$ac_save_LIBS"
 
2026
 
 
2027
fi
 
2028
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2029
  echo "$ac_t""yes" 1>&6
 
2030
  echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
 
2031
echo "configure:2032: checking for gettext in libintl" >&5
 
2032
if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
 
2033
  echo $ac_n "(cached) $ac_c" 1>&6
 
2034
else
 
2035
  echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
 
2036
echo "configure:2037: checking for gettext in -lintl" >&5
 
2037
ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
 
2038
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2039
  echo $ac_n "(cached) $ac_c" 1>&6
 
2040
else
 
2041
  ac_save_LIBS="$LIBS"
 
2042
LIBS="-lintl  $LIBS"
 
2043
cat > conftest.$ac_ext <<EOF
 
2044
#line 2045 "configure"
 
2045
#include "confdefs.h"
 
2046
/* Override any gcc2 internal prototype to avoid an error.  */
 
2047
/* We use char because int might match the return type of a gcc2
 
2048
    builtin and then its argument prototype would still apply.  */
 
2049
char gettext();
 
2050
 
 
2051
int main() {
 
2052
gettext()
 
2053
; return 0; }
 
2054
EOF
 
2055
if { (eval echo configure:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2056
  rm -rf conftest*
 
2057
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2058
else
 
2059
  echo "configure: failed program was:" >&5
 
2060
  cat conftest.$ac_ext >&5
 
2061
  rm -rf conftest*
 
2062
  eval "ac_cv_lib_$ac_lib_var=no"
 
2063
fi
 
2064
rm -f conftest*
 
2065
LIBS="$ac_save_LIBS"
 
2066
 
 
2067
fi
 
2068
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2069
  echo "$ac_t""yes" 1>&6
 
2070
  gt_cv_func_gettext_libintl=yes
 
2071
else
 
2072
  echo "$ac_t""no" 1>&6
 
2073
gt_cv_func_gettext_libintl=no
 
2074
fi
 
2075
 
 
2076
fi
 
2077
 
 
2078
echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
 
2079
else
 
2080
  echo "$ac_t""no" 1>&6
 
2081
fi
 
2082
 
 
2083
           fi
 
2084
 
 
2085
           if test "$gt_cv_func_gettext_libc" = "yes" \
 
2086
              || test "$gt_cv_func_gettext_libintl" = "yes"; then
 
2087
              cat >> confdefs.h <<\EOF
 
2088
#define HAVE_GETTEXT 1
 
2089
EOF
 
2090
 
 
2091
              # Extract the first word of "msgfmt", so it can be a program name with args.
 
2092
set dummy msgfmt; ac_word=$2
 
2093
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2094
echo "configure:2095: checking for $ac_word" >&5
 
2095
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
 
2096
  echo $ac_n "(cached) $ac_c" 1>&6
 
2097
else
 
2098
  case "$MSGFMT" in
 
2099
  /*)
 
2100
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
2101
  ;;
 
2102
  *)
 
2103
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2104
  for ac_dir in $PATH; do
 
2105
    test -z "$ac_dir" && ac_dir=.
 
2106
    if test -f $ac_dir/$ac_word; then
 
2107
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 
2108
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
2109
        break
 
2110
      fi
 
2111
    fi
 
2112
  done
 
2113
  IFS="$ac_save_ifs"
 
2114
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 
2115
  ;;
 
2116
esac
 
2117
fi
 
2118
MSGFMT="$ac_cv_path_MSGFMT"
 
2119
if test -n "$MSGFMT"; then
 
2120
  echo "$ac_t""$MSGFMT" 1>&6
 
2121
else
 
2122
  echo "$ac_t""no" 1>&6
 
2123
fi
 
2124
              if test "$MSGFMT" != "no"; then
 
2125
                for ac_func in dcgettext
 
2126
do
 
2127
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
2128
echo "configure:2129: checking for $ac_func" >&5
 
2129
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
2130
  echo $ac_n "(cached) $ac_c" 1>&6
 
2131
else
 
2132
  cat > conftest.$ac_ext <<EOF
 
2133
#line 2134 "configure"
 
2134
#include "confdefs.h"
 
2135
/* System header to define __stub macros and hopefully few prototypes,
 
2136
    which can conflict with char $ac_func(); below.  */
 
2137
#include <assert.h>
 
2138
/* Override any gcc2 internal prototype to avoid an error.  */
 
2139
/* We use char because int might match the return type of a gcc2
 
2140
    builtin and then its argument prototype would still apply.  */
 
2141
char $ac_func();
 
2142
 
 
2143
int main() {
 
2144
 
 
2145
/* The GNU C library defines this for functions which it implements
 
2146
    to always fail with ENOSYS.  Some functions are actually named
 
2147
    something starting with __ and the normal name is an alias.  */
 
2148
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
2149
choke me
 
2150
#else
 
2151
$ac_func();
 
2152
#endif
 
2153
 
 
2154
; return 0; }
 
2155
EOF
 
2156
if { (eval echo configure:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2157
  rm -rf conftest*
 
2158
  eval "ac_cv_func_$ac_func=yes"
 
2159
else
 
2160
  echo "configure: failed program was:" >&5
 
2161
  cat conftest.$ac_ext >&5
 
2162
  rm -rf conftest*
 
2163
  eval "ac_cv_func_$ac_func=no"
 
2164
fi
 
2165
rm -f conftest*
 
2166
fi
 
2167
 
 
2168
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
2169
  echo "$ac_t""yes" 1>&6
 
2170
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
2171
  cat >> confdefs.h <<EOF
 
2172
#define $ac_tr_func 1
 
2173
EOF
 
2174
 
 
2175
else
 
2176
  echo "$ac_t""no" 1>&6
 
2177
fi
 
2178
done
 
2179
 
 
2180
                # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
2181
set dummy gmsgfmt; ac_word=$2
 
2182
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2183
echo "configure:2184: checking for $ac_word" >&5
 
2184
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
 
2185
  echo $ac_n "(cached) $ac_c" 1>&6
 
2186
else
 
2187
  case "$GMSGFMT" in
 
2188
  /*)
 
2189
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
2190
  ;;
 
2191
  ?:/*)                  
 
2192
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
 
2193
  ;;
 
2194
  *)
 
2195
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2196
  ac_dummy="$PATH"
 
2197
  for ac_dir in $ac_dummy; do 
 
2198
    test -z "$ac_dir" && ac_dir=.
 
2199
    if test -f $ac_dir/$ac_word; then
 
2200
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
 
2201
      break
 
2202
    fi
 
2203
  done
 
2204
  IFS="$ac_save_ifs"
 
2205
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
2206
  ;;
 
2207
esac
 
2208
fi
 
2209
GMSGFMT="$ac_cv_path_GMSGFMT"
 
2210
if test -n "$GMSGFMT"; then
 
2211
  echo "$ac_t""$GMSGFMT" 1>&6
 
2212
else
 
2213
  echo "$ac_t""no" 1>&6
 
2214
fi
 
2215
 
 
2216
                # Extract the first word of "xgettext", so it can be a program name with args.
 
2217
set dummy xgettext; ac_word=$2
 
2218
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2219
echo "configure:2220: checking for $ac_word" >&5
 
2220
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
 
2221
  echo $ac_n "(cached) $ac_c" 1>&6
 
2222
else
 
2223
  case "$XGETTEXT" in
 
2224
  /*)
 
2225
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
2226
  ;;
 
2227
  *)
 
2228
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2229
  for ac_dir in $PATH; do
 
2230
    test -z "$ac_dir" && ac_dir=.
 
2231
    if test -f $ac_dir/$ac_word; then
 
2232
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
2233
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
2234
        break
 
2235
      fi
 
2236
    fi
 
2237
  done
 
2238
  IFS="$ac_save_ifs"
 
2239
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
2240
  ;;
 
2241
esac
 
2242
fi
 
2243
XGETTEXT="$ac_cv_path_XGETTEXT"
 
2244
if test -n "$XGETTEXT"; then
 
2245
  echo "$ac_t""$XGETTEXT" 1>&6
 
2246
else
 
2247
  echo "$ac_t""no" 1>&6
 
2248
fi
 
2249
 
 
2250
                cat > conftest.$ac_ext <<EOF
 
2251
#line 2252 "configure"
 
2252
#include "confdefs.h"
 
2253
 
 
2254
int main() {
 
2255
extern int _nl_msg_cat_cntr;
 
2256
                               return _nl_msg_cat_cntr
 
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*
 
2261
  CATOBJEXT=.gmo
 
2262
                   DATADIRNAME=share
 
2263
else
 
2264
  echo "configure: failed program was:" >&5
 
2265
  cat conftest.$ac_ext >&5
 
2266
  rm -rf conftest*
 
2267
  CATOBJEXT=.mo
 
2268
                   DATADIRNAME=lib
 
2269
fi
 
2270
rm -f conftest*
 
2271
                INSTOBJEXT=.mo
 
2272
              fi
 
2273
            fi
 
2274
        
 
2275
else
 
2276
  echo "$ac_t""no" 1>&6
 
2277
fi
 
2278
 
 
2279
 
 
2280
        if test "$CATOBJEXT" = "NONE"; then
 
2281
          echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
 
2282
echo "configure:2283: checking whether catgets can be used" >&5
 
2283
          # Check whether --with-catgets or --without-catgets was given.
 
2284
if test "${with_catgets+set}" = set; then
 
2285
  withval="$with_catgets"
 
2286
  nls_cv_use_catgets=$withval
 
2287
else
 
2288
  nls_cv_use_catgets=no
 
2289
fi
 
2290
 
 
2291
          echo "$ac_t""$nls_cv_use_catgets" 1>&6
 
2292
 
 
2293
          if test "$nls_cv_use_catgets" = "yes"; then
 
2294
                    echo $ac_n "checking for main in -li""... $ac_c" 1>&6
 
2295
echo "configure:2296: checking for main in -li" >&5
 
2296
ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
 
2297
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2298
  echo $ac_n "(cached) $ac_c" 1>&6
 
2299
else
 
2300
  ac_save_LIBS="$LIBS"
 
2301
LIBS="-li  $LIBS"
 
2302
cat > conftest.$ac_ext <<EOF
 
2303
#line 2304 "configure"
 
2304
#include "confdefs.h"
 
2305
 
 
2306
int main() {
 
2307
main()
 
2308
; return 0; }
 
2309
EOF
 
2310
if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2311
  rm -rf conftest*
 
2312
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2313
else
 
2314
  echo "configure: failed program was:" >&5
 
2315
  cat conftest.$ac_ext >&5
 
2316
  rm -rf conftest*
 
2317
  eval "ac_cv_lib_$ac_lib_var=no"
 
2318
fi
 
2319
rm -f conftest*
 
2320
LIBS="$ac_save_LIBS"
 
2321
 
 
2322
fi
 
2323
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2324
  echo "$ac_t""yes" 1>&6
 
2325
    ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
2326
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
2327
  cat >> confdefs.h <<EOF
 
2328
#define $ac_tr_lib 1
 
2329
EOF
 
2330
 
 
2331
  LIBS="-li $LIBS"
 
2332
 
 
2333
else
 
2334
  echo "$ac_t""no" 1>&6
 
2335
fi
 
2336
 
 
2337
            echo $ac_n "checking for catgets""... $ac_c" 1>&6
 
2338
echo "configure:2339: checking for catgets" >&5
 
2339
if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
 
2340
  echo $ac_n "(cached) $ac_c" 1>&6
 
2341
else
 
2342
  cat > conftest.$ac_ext <<EOF
 
2343
#line 2344 "configure"
 
2344
#include "confdefs.h"
 
2345
/* System header to define __stub macros and hopefully few prototypes,
 
2346
    which can conflict with char catgets(); below.  */
 
2347
#include <assert.h>
 
2348
/* Override any gcc2 internal prototype to avoid an error.  */
 
2349
/* We use char because int might match the return type of a gcc2
 
2350
    builtin and then its argument prototype would still apply.  */
 
2351
char catgets();
 
2352
 
 
2353
int main() {
 
2354
 
 
2355
/* The GNU C library defines this for functions which it implements
 
2356
    to always fail with ENOSYS.  Some functions are actually named
 
2357
    something starting with __ and the normal name is an alias.  */
 
2358
#if defined (__stub_catgets) || defined (__stub___catgets)
 
2359
choke me
 
2360
#else
 
2361
catgets();
 
2362
#endif
 
2363
 
 
2364
; return 0; }
 
2365
EOF
 
2366
if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2367
  rm -rf conftest*
 
2368
  eval "ac_cv_func_catgets=yes"
 
2369
else
 
2370
  echo "configure: failed program was:" >&5
 
2371
  cat conftest.$ac_ext >&5
 
2372
  rm -rf conftest*
 
2373
  eval "ac_cv_func_catgets=no"
 
2374
fi
 
2375
rm -f conftest*
 
2376
fi
 
2377
 
 
2378
if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
 
2379
  echo "$ac_t""yes" 1>&6
 
2380
  cat >> confdefs.h <<\EOF
 
2381
#define HAVE_CATGETS 1
 
2382
EOF
 
2383
 
 
2384
               INTLOBJS="\$(CATOBJS)"
 
2385
               # Extract the first word of "gencat", so it can be a program name with args.
 
2386
set dummy gencat; ac_word=$2
 
2387
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2388
echo "configure:2389: checking for $ac_word" >&5
 
2389
if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
 
2390
  echo $ac_n "(cached) $ac_c" 1>&6
 
2391
else
 
2392
  case "$GENCAT" in
 
2393
  /*)
 
2394
  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
 
2395
  ;;
 
2396
  ?:/*)                  
 
2397
  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
 
2398
  ;;
 
2399
  *)
 
2400
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2401
  ac_dummy="$PATH"
 
2402
  for ac_dir in $ac_dummy; do 
 
2403
    test -z "$ac_dir" && ac_dir=.
 
2404
    if test -f $ac_dir/$ac_word; then
 
2405
      ac_cv_path_GENCAT="$ac_dir/$ac_word"
 
2406
      break
 
2407
    fi
 
2408
  done
 
2409
  IFS="$ac_save_ifs"
 
2410
  test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
 
2411
  ;;
 
2412
esac
 
2413
fi
 
2414
GENCAT="$ac_cv_path_GENCAT"
 
2415
if test -n "$GENCAT"; then
 
2416
  echo "$ac_t""$GENCAT" 1>&6
 
2417
else
 
2418
  echo "$ac_t""no" 1>&6
 
2419
fi
 
2420
               if test "$GENCAT" != "no"; then
 
2421
                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
2422
set dummy gmsgfmt; ac_word=$2
 
2423
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2424
echo "configure:2425: checking for $ac_word" >&5
 
2425
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
 
2426
  echo $ac_n "(cached) $ac_c" 1>&6
 
2427
else
 
2428
  case "$GMSGFMT" in
 
2429
  /*)
 
2430
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
2431
  ;;
 
2432
  ?:/*)                  
 
2433
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
 
2434
  ;;
 
2435
  *)
 
2436
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2437
  ac_dummy="$PATH"
 
2438
  for ac_dir in $ac_dummy; do 
 
2439
    test -z "$ac_dir" && ac_dir=.
 
2440
    if test -f $ac_dir/$ac_word; then
 
2441
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
 
2442
      break
 
2443
    fi
 
2444
  done
 
2445
  IFS="$ac_save_ifs"
 
2446
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
 
2447
  ;;
 
2448
esac
 
2449
fi
 
2450
GMSGFMT="$ac_cv_path_GMSGFMT"
 
2451
if test -n "$GMSGFMT"; then
 
2452
  echo "$ac_t""$GMSGFMT" 1>&6
 
2453
else
 
2454
  echo "$ac_t""no" 1>&6
 
2455
fi
 
2456
 
 
2457
                 if test "$GMSGFMT" = "no"; then
 
2458
                   # Extract the first word of "msgfmt", so it can be a program name with args.
 
2459
set dummy msgfmt; ac_word=$2
 
2460
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2461
echo "configure:2462: checking for $ac_word" >&5
 
2462
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
 
2463
  echo $ac_n "(cached) $ac_c" 1>&6
 
2464
else
 
2465
  case "$GMSGFMT" in
 
2466
  /*)
 
2467
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
2468
  ;;
 
2469
  *)
 
2470
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2471
  for ac_dir in $PATH; do
 
2472
    test -z "$ac_dir" && ac_dir=.
 
2473
    if test -f $ac_dir/$ac_word; then
 
2474
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 
2475
        ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
 
2476
        break
 
2477
      fi
 
2478
    fi
 
2479
  done
 
2480
  IFS="$ac_save_ifs"
 
2481
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
 
2482
  ;;
 
2483
esac
 
2484
fi
 
2485
GMSGFMT="$ac_cv_path_GMSGFMT"
 
2486
if test -n "$GMSGFMT"; then
 
2487
  echo "$ac_t""$GMSGFMT" 1>&6
 
2488
else
 
2489
  echo "$ac_t""no" 1>&6
 
2490
fi
 
2491
 
 
2492
                 fi
 
2493
                 # Extract the first word of "xgettext", so it can be a program name with args.
 
2494
set dummy xgettext; ac_word=$2
 
2495
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2496
echo "configure:2497: checking for $ac_word" >&5
 
2497
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
 
2498
  echo $ac_n "(cached) $ac_c" 1>&6
 
2499
else
 
2500
  case "$XGETTEXT" in
 
2501
  /*)
 
2502
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
2503
  ;;
 
2504
  *)
 
2505
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2506
  for ac_dir in $PATH; do
 
2507
    test -z "$ac_dir" && ac_dir=.
 
2508
    if test -f $ac_dir/$ac_word; then
 
2509
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
2510
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
2511
        break
 
2512
      fi
 
2513
    fi
 
2514
  done
 
2515
  IFS="$ac_save_ifs"
 
2516
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
2517
  ;;
 
2518
esac
 
2519
fi
 
2520
XGETTEXT="$ac_cv_path_XGETTEXT"
 
2521
if test -n "$XGETTEXT"; then
 
2522
  echo "$ac_t""$XGETTEXT" 1>&6
 
2523
else
 
2524
  echo "$ac_t""no" 1>&6
 
2525
fi
 
2526
 
 
2527
                 USE_INCLUDED_LIBINTL=yes
 
2528
                 CATOBJEXT=.cat
 
2529
                 INSTOBJEXT=.cat
 
2530
                 DATADIRNAME=lib
 
2531
                 INTLDEPS='$(top_builddir)/intl/libintl.a'
 
2532
                 INTLLIBS=$INTLDEPS
 
2533
                 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
 
2534
                 nls_cv_header_intl=intl/libintl.h
 
2535
                 nls_cv_header_libgt=intl/libgettext.h
 
2536
               fi
 
2537
else
 
2538
  echo "$ac_t""no" 1>&6
 
2539
fi
 
2540
 
 
2541
          fi
 
2542
        fi
 
2543
 
 
2544
        if test "$CATOBJEXT" = "NONE"; then
 
2545
                          nls_cv_use_gnu_gettext=yes
 
2546
        fi
 
2547
      fi
 
2548
 
 
2549
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
 
2550
                INTLOBJS="\$(GETTOBJS)"
 
2551
        # Extract the first word of "msgfmt", so it can be a program name with args.
 
2552
set dummy msgfmt; 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_MSGFMT'+set}'`\" = set"; then
 
2556
  echo $ac_n "(cached) $ac_c" 1>&6
 
2557
else
 
2558
  case "$MSGFMT" in
 
2559
  /*)
 
2560
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
2561
  ;;
 
2562
  *)
 
2563
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2564
  for ac_dir in $PATH; do
 
2565
    test -z "$ac_dir" && ac_dir=.
 
2566
    if test -f $ac_dir/$ac_word; then
 
2567
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 
2568
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
2569
        break
 
2570
      fi
 
2571
    fi
 
2572
  done
 
2573
  IFS="$ac_save_ifs"
 
2574
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
 
2575
  ;;
 
2576
esac
 
2577
fi
 
2578
MSGFMT="$ac_cv_path_MSGFMT"
 
2579
if test -n "$MSGFMT"; then
 
2580
  echo "$ac_t""$MSGFMT" 1>&6
 
2581
else
 
2582
  echo "$ac_t""no" 1>&6
 
2583
fi
 
2584
 
 
2585
        # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
2586
set dummy gmsgfmt; ac_word=$2
 
2587
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2588
echo "configure:2589: checking for $ac_word" >&5
 
2589
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
 
2590
  echo $ac_n "(cached) $ac_c" 1>&6
 
2591
else
 
2592
  case "$GMSGFMT" in
 
2593
  /*)
 
2594
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
2595
  ;;
 
2596
  ?:/*)                  
 
2597
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
 
2598
  ;;
 
2599
  *)
 
2600
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2601
  ac_dummy="$PATH"
 
2602
  for ac_dir in $ac_dummy; do 
 
2603
    test -z "$ac_dir" && ac_dir=.
 
2604
    if test -f $ac_dir/$ac_word; then
 
2605
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
 
2606
      break
 
2607
    fi
 
2608
  done
 
2609
  IFS="$ac_save_ifs"
 
2610
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
2611
  ;;
 
2612
esac
 
2613
fi
 
2614
GMSGFMT="$ac_cv_path_GMSGFMT"
 
2615
if test -n "$GMSGFMT"; then
 
2616
  echo "$ac_t""$GMSGFMT" 1>&6
 
2617
else
 
2618
  echo "$ac_t""no" 1>&6
 
2619
fi
 
2620
 
 
2621
        # Extract the first word of "xgettext", so it can be a program name with args.
 
2622
set dummy xgettext; ac_word=$2
 
2623
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2624
echo "configure:2625: checking for $ac_word" >&5
 
2625
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
 
2626
  echo $ac_n "(cached) $ac_c" 1>&6
 
2627
else
 
2628
  case "$XGETTEXT" in
 
2629
  /*)
 
2630
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
2631
  ;;
 
2632
  *)
 
2633
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2634
  for ac_dir in $PATH; do
 
2635
    test -z "$ac_dir" && ac_dir=.
 
2636
    if test -f $ac_dir/$ac_word; then
 
2637
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
2638
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
2639
        break
 
2640
      fi
 
2641
    fi
 
2642
  done
 
2643
  IFS="$ac_save_ifs"
 
2644
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
2645
  ;;
 
2646
esac
 
2647
fi
 
2648
XGETTEXT="$ac_cv_path_XGETTEXT"
 
2649
if test -n "$XGETTEXT"; then
 
2650
  echo "$ac_t""$XGETTEXT" 1>&6
 
2651
else
 
2652
  echo "$ac_t""no" 1>&6
 
2653
fi
 
2654
 
 
2655
        
 
2656
        USE_INCLUDED_LIBINTL=yes
 
2657
        CATOBJEXT=.gmo
 
2658
        INSTOBJEXT=.mo
 
2659
        DATADIRNAME=share
 
2660
        INTLDEPS='$(top_builddir)/intl/libintl.a'
 
2661
        INTLLIBS=$INTLDEPS
 
2662
        LIBS=`echo $LIBS | sed -e 's/-lintl//'`
 
2663
        nls_cv_header_intl=intl/libintl.h
 
2664
        nls_cv_header_libgt=intl/libgettext.h
 
2665
      fi
 
2666
 
 
2667
            if test "$XGETTEXT" != ":"; then
 
2668
                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
2669
          : ;
 
2670
        else
 
2671
          echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
 
2672
          XGETTEXT=":"
 
2673
        fi
 
2674
      fi
 
2675
 
 
2676
      # We need to process the po/ directory.
 
2677
      POSUB=po
 
2678
    else
 
2679
      DATADIRNAME=share
 
2680
      nls_cv_header_intl=intl/libintl.h
 
2681
      nls_cv_header_libgt=intl/libgettext.h
 
2682
    fi
 
2683
    
 
2684
    
 
2685
 
 
2686
 
 
2687
    # If this is used in GNU gettext we have to set USE_NLS to `yes'
 
2688
    # because some of the sources are only built for this goal.
 
2689
    if test "$PACKAGE" = gettext; then
 
2690
      USE_NLS=yes
 
2691
      USE_INCLUDED_LIBINTL=yes
 
2692
    fi
 
2693
 
 
2694
                for lang in $ALL_LINGUAS; do
 
2695
      GMOFILES="$GMOFILES $lang.gmo"
 
2696
      POFILES="$POFILES $lang.po"
 
2697
    done
 
2698
 
 
2699
        
 
2700
    
 
2701
    
 
2702
    
 
2703
    
 
2704
    
 
2705
    
 
2706
    
 
2707
    
 
2708
    
 
2709
    
 
2710
  
 
2711
 
 
2712
   if test "x$CATOBJEXT" != "x"; then
 
2713
     if test "x$ALL_LINGUAS" = "x"; then
 
2714
       LINGUAS=
 
2715
     else
 
2716
       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
 
2717
echo "configure:2718: checking for catalogs to be installed" >&5
 
2718
       NEW_LINGUAS=
 
2719
       for lang in ${LINGUAS=$ALL_LINGUAS}; do
 
2720
         case "$ALL_LINGUAS" in
 
2721
          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
 
2722
         esac
 
2723
       done
 
2724
       LINGUAS=$NEW_LINGUAS
 
2725
       echo "$ac_t""$LINGUAS" 1>&6
 
2726
     fi
 
2727
 
 
2728
          if test -n "$LINGUAS"; then
 
2729
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
2730
     fi
 
2731
   fi
 
2732
 
 
2733
            if test $ac_cv_header_locale_h = yes; then
 
2734
     INCLUDE_LOCALE_H="#include <locale.h>"
 
2735
   else
 
2736
     INCLUDE_LOCALE_H="\
 
2737
/* The system does not provide the header <locale.h>.  Take care yourself.  */"
 
2738
   fi
 
2739
   
 
2740
 
 
2741
            test -d intl || mkdir intl
 
2742
   if test "$CATOBJEXT" = ".cat"; then
 
2743
     ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
 
2744
echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
 
2745
echo "configure:2746: checking for linux/version.h" >&5
 
2746
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
2747
  echo $ac_n "(cached) $ac_c" 1>&6
 
2748
else
 
2749
  cat > conftest.$ac_ext <<EOF
 
2750
#line 2751 "configure"
 
2751
#include "confdefs.h"
 
2752
#include <linux/version.h>
 
2753
EOF
 
2754
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
2755
{ (eval echo configure:2756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2756
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
2757
if test -z "$ac_err"; then
 
2758
  rm -rf conftest*
 
2759
  eval "ac_cv_header_$ac_safe=yes"
 
2760
else
 
2761
  echo "$ac_err" >&5
 
2762
  echo "configure: failed program was:" >&5
 
2763
  cat conftest.$ac_ext >&5
 
2764
  rm -rf conftest*
 
2765
  eval "ac_cv_header_$ac_safe=no"
 
2766
fi
 
2767
rm -f conftest*
 
2768
fi
 
2769
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
2770
  echo "$ac_t""yes" 1>&6
 
2771
  msgformat=linux
 
2772
else
 
2773
  echo "$ac_t""no" 1>&6
 
2774
msgformat=xopen
 
2775
fi
 
2776
 
 
2777
 
 
2778
               sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
 
2779
   fi
 
2780
      sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
 
2781
     $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
 
2782
 
 
2783
            if test "$PACKAGE" = "gettext"; then
 
2784
     GT_NO="#NO#"
 
2785
     GT_YES=
 
2786
   else
 
2787
     GT_NO=
 
2788
     GT_YES="#YES#"
 
2789
   fi
 
2790
   
 
2791
   
 
2792
 
 
2793
            MKINSTALLDIRS=
 
2794
   if test -n "$ac_aux_dir"; then
 
2795
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
2796
   fi
 
2797
   if test -z "$MKINSTALLDIRS"; then
 
2798
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
2799
   fi
 
2800
   
 
2801
 
 
2802
      l=
 
2803
   
 
2804
 
 
2805
         test -d po || mkdir po
 
2806
   if test "x$srcdir" != "x."; then
 
2807
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
2808
       posrcprefix="$srcdir/"
 
2809
     else
 
2810
       posrcprefix="../$srcdir/"
 
2811
     fi
 
2812
   else
 
2813
     posrcprefix="../"
 
2814
   fi
 
2815
   rm -f po/POTFILES
 
2816
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
2817
        < $srcdir/po/POTFILES.in > po/POTFILES
 
2818
  
 
2819
 
 
2820
echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
 
2821
echo "configure:2822: checking for textdomain in -lintl" >&5
 
2822
ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
 
2823
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2824
  echo $ac_n "(cached) $ac_c" 1>&6
 
2825
else
 
2826
  ac_save_LIBS="$LIBS"
 
2827
LIBS="-lintl  $LIBS"
 
2828
cat > conftest.$ac_ext <<EOF
 
2829
#line 2830 "configure"
 
2830
#include "confdefs.h"
 
2831
/* Override any gcc2 internal prototype to avoid an error.  */
 
2832
/* We use char because int might match the return type of a gcc2
 
2833
    builtin and then its argument prototype would still apply.  */
 
2834
char textdomain();
 
2835
 
 
2836
int main() {
 
2837
textdomain()
 
2838
; return 0; }
 
2839
EOF
 
2840
if { (eval echo configure:2841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2841
  rm -rf conftest*
 
2842
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2843
else
 
2844
  echo "configure: failed program was:" >&5
 
2845
  cat conftest.$ac_ext >&5
 
2846
  rm -rf conftest*
 
2847
  eval "ac_cv_lib_$ac_lib_var=no"
 
2848
fi
 
2849
rm -f conftest*
 
2850
LIBS="$ac_save_LIBS"
 
2851
 
 
2852
fi
 
2853
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2854
  echo "$ac_t""yes" 1>&6
 
2855
    ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
2856
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
2857
  cat >> confdefs.h <<EOF
 
2858
#define $ac_tr_lib 1
 
2859
EOF
 
2860
 
 
2861
  LIBS="-lintl $LIBS"
 
2862
 
 
2863
else
 
2864
  echo "$ac_t""no" 1>&6
 
2865
fi
 
2866
 
 
2867
 
 
2868
 
 
2869
 
 
2870
 
 
2871
 
 
2872
ac_aux_dir=
 
2873
for ac_dir in scripts $srcdir/scripts; do
 
2874
  if test -f $ac_dir/install-sh; then
 
2875
    ac_aux_dir=$ac_dir
 
2876
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2877
    break
 
2878
  elif test -f $ac_dir/install.sh; then
 
2879
    ac_aux_dir=$ac_dir
 
2880
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2881
    break
 
2882
  fi
 
2883
done
 
2884
if test -z "$ac_aux_dir"; then
 
2885
  { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
 
2886
fi
 
2887
ac_config_guess=$ac_aux_dir/config.guess
 
2888
ac_config_sub=$ac_aux_dir/config.sub
 
2889
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
2890
 
 
2891
# Find a good install program.  We prefer a C program (faster),
 
2892
# so one script is as good as another.  But avoid the broken or
 
2893
# incompatible versions:
 
2894
# SysV /etc/install, /usr/sbin/install
 
2895
# SunOS /usr/etc/install
 
2896
# IRIX /sbin/install
 
2897
# AIX /bin/install
 
2898
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2899
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2900
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2901
# ./install, which can be erroneously created by make from ./install.sh.
 
2902
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 
2903
echo "configure:2904: checking for a BSD compatible install" >&5
 
2904
if test -z "$INSTALL"; then
 
2905
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
 
2906
  echo $ac_n "(cached) $ac_c" 1>&6
 
2907
else
 
2908
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
 
2909
  for ac_dir in $PATH; do
 
2910
    # Account for people who put trailing slashes in PATH elements.
 
2911
    case "$ac_dir/" in
 
2912
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 
2913
    *)
 
2914
      # OSF1 and SCO ODT 3.0 have their own names for install.
 
2915
      # Don't use installbsd from OSF since it installs stuff as root
 
2916
      # by default.
 
2917
      for ac_prog in ginstall scoinst install; do
 
2918
        if test -f $ac_dir/$ac_prog; then
 
2919
          if test $ac_prog = install &&
 
2920
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
2921
            # AIX install.  It has an incompatible calling convention.
 
2922
            :
 
2923
          else
 
2924
            ac_cv_path_install="$ac_dir/$ac_prog -c"
 
2925
            break 2
 
2926
          fi
 
2927
        fi
 
2928
      done
 
2929
      ;;
 
2930
    esac
 
2931
  done
 
2932
  IFS="$ac_save_IFS"
 
2933
 
 
2934
fi
 
2935
  if test "${ac_cv_path_install+set}" = set; then
 
2936
    INSTALL="$ac_cv_path_install"
 
2937
  else
 
2938
    # As a last resort, use the slow shell script.  We don't cache a
 
2939
    # path for INSTALL within a source directory, because that will
 
2940
    # break other packages using the cache if that directory is
 
2941
    # removed, or if the path is relative.
 
2942
    INSTALL="$ac_install_sh"
 
2943
  fi
 
2944
fi
 
2945
echo "$ac_t""$INSTALL" 1>&6
 
2946
 
 
2947
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2948
# It thinks the first close brace ends the variable substitution.
 
2949
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2950
 
 
2951
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
2952
 
 
2953
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2954
 
 
2955
 
 
2956
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
 
2957
echo "configure:2958: checking whether build environment is sane" >&5
 
2958
# Just in case
 
2959
sleep 1
 
2960
echo timestamp > conftestfile
 
2961
# Do `set' in a subshell so we don't clobber the current shell's
 
2962
# arguments.  Must try -L first in case configure is actually a
 
2963
# symlink; some systems play weird games with the mod time of symlinks
 
2964
# (eg FreeBSD returns the mod time of the symlink's containing
 
2965
# directory).
 
2966
if (
 
2967
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 
2968
   if test "$*" = "X"; then
 
2969
      # -L didn't work.
 
2970
      set X `ls -t $srcdir/configure conftestfile`
 
2971
   fi
 
2972
   if test "$*" != "X $srcdir/configure conftestfile" \
 
2973
      && test "$*" != "X conftestfile $srcdir/configure"; then
 
2974
 
 
2975
      # If neither matched, then we have a broken ls.  This can happen
 
2976
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2977
      # broken ls alias from the environment.  This has actually
 
2978
      # happened.  Such a system could not be considered "sane".
 
2979
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
 
2980
alias in your environment" 1>&2; exit 1; }
 
2981
   fi
 
2982
 
 
2983
   test "$2" = conftestfile
 
2984
   )
 
2985
then
 
2986
   # Ok.
 
2987
   :
 
2988
else
 
2989
   { echo "configure: error: newly created file is older than distributed files!
 
2990
Check your system clock" 1>&2; exit 1; }
 
2991
fi
 
2992
rm -f conftest*
 
2993
echo "$ac_t""yes" 1>&6
 
2994
if test "$program_transform_name" = s,x,x,; then
 
2995
  program_transform_name=
 
2996
else
 
2997
  # Double any \ or $.  echo might interpret backslashes.
 
2998
  cat <<\EOF_SED > conftestsed
 
2999
s,\\,\\\\,g; s,\$,$$,g
 
3000
EOF_SED
 
3001
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
 
3002
  rm -f conftestsed
 
3003
fi
 
3004
test "$program_prefix" != NONE &&
 
3005
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
 
3006
# Use a double $ so make ignores it.
 
3007
test "$program_suffix" != NONE &&
 
3008
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
 
3009
 
 
3010
# sed with no file args requires a program.
 
3011
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
 
3012
 
 
3013
 
 
3014
PACKAGE=gsmlib
 
3015
 
 
3016
VERSION=1.8
 
3017
 
 
3018
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
 
3019
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
 
3020
fi
 
3021
cat >> confdefs.h <<EOF
 
3022
#define PACKAGE "$PACKAGE"
 
3023
EOF
 
3024
 
 
3025
cat >> confdefs.h <<EOF
 
3026
#define VERSION "$VERSION"
 
3027
EOF
 
3028
 
 
3029
 
 
3030
 
 
3031
missing_dir=`cd $ac_aux_dir && pwd`
 
3032
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
 
3033
echo "configure:3034: checking for working aclocal" >&5
 
3034
# Run test in a subshell; some versions of sh will print an error if
 
3035
# an executable is not found, even if stderr is redirected.
 
3036
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
3037
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
 
3038
   ACLOCAL=aclocal
 
3039
   echo "$ac_t""found" 1>&6
 
3040
else
 
3041
   ACLOCAL="$missing_dir/missing aclocal"
 
3042
   echo "$ac_t""missing" 1>&6
 
3043
fi
 
3044
 
 
3045
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
 
3046
echo "configure:3047: checking for working autoconf" >&5
 
3047
# Run test in a subshell; some versions of sh will print an error if
 
3048
# an executable is not found, even if stderr is redirected.
 
3049
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
3050
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
 
3051
   AUTOCONF=autoconf
 
3052
   echo "$ac_t""found" 1>&6
 
3053
else
 
3054
   AUTOCONF="$missing_dir/missing autoconf"
 
3055
   echo "$ac_t""missing" 1>&6
 
3056
fi
 
3057
 
 
3058
echo $ac_n "checking for working automake""... $ac_c" 1>&6
 
3059
echo "configure:3060: checking for working automake" >&5
 
3060
# Run test in a subshell; some versions of sh will print an error if
 
3061
# an executable is not found, even if stderr is redirected.
 
3062
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
3063
if (automake --version) < /dev/null > /dev/null 2>&1; then
 
3064
   AUTOMAKE=automake
 
3065
   echo "$ac_t""found" 1>&6
 
3066
else
 
3067
   AUTOMAKE="$missing_dir/missing automake"
 
3068
   echo "$ac_t""missing" 1>&6
 
3069
fi
 
3070
 
 
3071
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
 
3072
echo "configure:3073: checking for working autoheader" >&5
 
3073
# Run test in a subshell; some versions of sh will print an error if
 
3074
# an executable is not found, even if stderr is redirected.
 
3075
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
3076
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
 
3077
   AUTOHEADER=autoheader
 
3078
   echo "$ac_t""found" 1>&6
 
3079
else
 
3080
   AUTOHEADER="$missing_dir/missing autoheader"
 
3081
   echo "$ac_t""missing" 1>&6
 
3082
fi
 
3083
 
 
3084
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
 
3085
echo "configure:3086: checking for working makeinfo" >&5
 
3086
# Run test in a subshell; some versions of sh will print an error if
 
3087
# an executable is not found, even if stderr is redirected.
 
3088
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
3089
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
 
3090
   MAKEINFO=makeinfo
 
3091
   echo "$ac_t""found" 1>&6
 
3092
else
 
3093
   MAKEINFO="$missing_dir/missing makeinfo"
 
3094
   echo "$ac_t""missing" 1>&6
 
3095
fi
 
3096
 
 
3097
 
 
3098
 
 
3099
# Check whether --enable-shared or --disable-shared was given.
 
3100
if test "${enable_shared+set}" = set; then
 
3101
  enableval="$enable_shared"
 
3102
  p=${PACKAGE-default}
 
3103
case "$enableval" in
 
3104
yes) enable_shared=yes ;;
 
3105
no) enable_shared=no ;;
 
3106
*)
 
3107
  enable_shared=no
 
3108
  # Look at the argument we got.  We use all the common list separators.
 
3109
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
3110
  for pkg in $enableval; do
 
3111
    if test "X$pkg" = "X$p"; then
 
3112
      enable_shared=yes
 
3113
    fi
 
3114
  done
 
3115
  IFS="$ac_save_ifs"
 
3116
  ;;
 
3117
esac
 
3118
else
 
3119
  enable_shared=yes
 
3120
fi
 
3121
 
 
3122
 
 
3123
if test "$CXXFLAGS" = ""; then
 
3124
   CXXFLAGS="-O2"
 
3125
fi
 
3126
 
 
3127
 
 
3128
 
 
3129
if test x"`egrep _REENTRANT /usr/include/features.h`" != x; then
 
3130
  CXXFLAGS="-D_REENTRANT $CXXFLAGS"
 
3131
  CFLAGS="-D_REENTRANT $CFLAGS"
 
3132
fi
 
3133
 
 
3134
CXXFLAGS="-Wall $CXXFLAGS"
 
3135
 
 
3136
# Check whether --enable-static or --disable-static was given.
 
3137
if test "${enable_static+set}" = set; then
 
3138
  enableval="$enable_static"
 
3139
  p=${PACKAGE-default}
 
3140
case "$enableval" in
 
3141
yes) enable_static=yes ;;
 
3142
no) enable_static=no ;;
 
3143
*)
 
3144
  enable_static=no
 
3145
  # Look at the argument we got.  We use all the common list separators.
 
3146
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
3147
  for pkg in $enableval; do
 
3148
    if test "X$pkg" = "X$p"; then
 
3149
      enable_static=yes
 
3150
    fi
 
3151
  done
 
3152
  IFS="$ac_save_ifs"
 
3153
  ;;
 
3154
esac
 
3155
else
 
3156
  enable_static=yes
 
3157
fi
 
3158
 
 
3159
 
 
3160
# Make sure we can run config.sub.
 
3161
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
 
3162
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
 
3163
fi
 
3164
 
 
3165
echo $ac_n "checking host system type""... $ac_c" 1>&6
 
3166
echo "configure:3167: checking host system type" >&5
 
3167
 
 
3168
host_alias=$host
 
3169
case "$host_alias" in
 
3170
NONE)
 
3171
  case $nonopt in
 
3172
  NONE)
 
3173
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
 
3174
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
 
3175
    fi ;;
 
3176
  *) host_alias=$nonopt ;;
 
3177
  esac ;;
 
3178
esac
 
3179
 
 
3180
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
 
3181
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3182
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3183
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3184
echo "$ac_t""$host" 1>&6
 
3185
 
 
3186
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3187
if test "${with_gnu_ld+set}" = set; then
 
3188
  withval="$with_gnu_ld"
 
3189
  test "$withval" = no || with_gnu_ld=yes
 
3190
else
 
3191
  with_gnu_ld=no
 
3192
fi
 
3193
 
 
3194
 
 
3195
ac_prog=ld
 
3196
if test "$ac_cv_prog_gcc" = yes; then
 
3197
  # Check if gcc -print-prog-name=ld gives a path.
 
3198
  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
 
3199
echo "configure:3200: checking for ld used by GCC" >&5
 
3200
  ac_prog=`($CC -print-prog-name=ld) 2>&5`
 
3201
  case "$ac_prog" in
 
3202
  # Accept absolute paths.
 
3203
  /* | [A-Za-z]:[\\/]*)
 
3204
    test -z "$LD" && LD="$ac_prog"
 
3205
    ;;
 
3206
  "")
 
3207
    # If it fails, then pretend we aren't using GCC.
 
3208
    ac_prog=ld
 
3209
    ;;
 
3210
  *)
 
3211
    # If it is relative, then search for the first ld in PATH.
 
3212
    with_gnu_ld=unknown
 
3213
    ;;
 
3214
  esac
 
3215
elif test "$with_gnu_ld" = yes; then
 
3216
  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
 
3217
echo "configure:3218: checking for GNU ld" >&5
 
3218
else
 
3219
  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
 
3220
echo "configure:3221: checking for non-GNU ld" >&5
 
3221
fi
 
3222
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
 
3223
  echo $ac_n "(cached) $ac_c" 1>&6
 
3224
else
 
3225
  if test -z "$LD"; then
 
3226
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
3227
  for ac_dir in $PATH; do
 
3228
    test -z "$ac_dir" && ac_dir=.
 
3229
    if test -f "$ac_dir/$ac_prog"; then
 
3230
      ac_cv_path_LD="$ac_dir/$ac_prog"
 
3231
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3232
      # but apparently some GNU ld's only accept -v.
 
3233
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3234
      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
3235
        test "$with_gnu_ld" != no && break
 
3236
      else
 
3237
        test "$with_gnu_ld" != yes && break
 
3238
      fi
 
3239
    fi
 
3240
  done
 
3241
  IFS="$ac_save_ifs"
 
3242
else
 
3243
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
 
3244
fi
 
3245
fi
 
3246
 
 
3247
LD="$ac_cv_path_LD"
 
3248
if test -n "$LD"; then
 
3249
  echo "$ac_t""$LD" 1>&6
 
3250
else
 
3251
  echo "$ac_t""no" 1>&6
 
3252
fi
 
3253
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
 
3254
 
 
3255
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
 
3256
echo "configure:3257: checking if the linker ($LD) is GNU ld" >&5
 
3257
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
 
3258
  echo $ac_n "(cached) $ac_c" 1>&6
 
3259
else
 
3260
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3261
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
3262
  ac_cv_prog_gnu_ld=yes
 
3263
else
 
3264
  ac_cv_prog_gnu_ld=no
 
3265
fi
 
3266
fi
 
3267
 
 
3268
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
 
3269
 
 
3270
 
 
3271
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
 
3272
echo "configure:3273: checking for BSD-compatible nm" >&5
 
3273
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
 
3274
  echo $ac_n "(cached) $ac_c" 1>&6
 
3275
else
 
3276
  if test -n "$NM"; then
 
3277
  # Let the user override the test.
 
3278
  ac_cv_path_NM="$NM"
 
3279
else
 
3280
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
3281
  for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
 
3282
    test -z "$ac_dir" && ac_dir=.
 
3283
    if test -f $ac_dir/nm; then
 
3284
      # Check to see if the nm accepts a BSD-compat flag.
 
3285
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3286
      #   nm: unknown option "B" ignored
 
3287
      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 
3288
        ac_cv_path_NM="$ac_dir/nm -B"
 
3289
      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 
3290
        ac_cv_path_NM="$ac_dir/nm -p"
 
3291
      else
 
3292
        ac_cv_path_NM="$ac_dir/nm"
 
3293
      fi
 
3294
      break
 
3295
    fi
 
3296
  done
 
3297
  IFS="$ac_save_ifs"
 
3298
  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
 
3299
fi
 
3300
fi
 
3301
 
 
3302
NM="$ac_cv_path_NM"
 
3303
echo "$ac_t""$NM" 1>&6
 
3304
 
 
3305
 
 
3306
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
 
3307
echo "configure:3308: checking whether ln -s works" >&5
 
3308
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
 
3309
  echo $ac_n "(cached) $ac_c" 1>&6
 
3310
else
 
3311
  rm -f conftestdata
 
3312
if ln -s X conftestdata 2>/dev/null
 
3313
then
 
3314
  rm -f conftestdata
 
3315
  ac_cv_prog_LN_S="ln -s"
 
3316
else
 
3317
  ac_cv_prog_LN_S=ln
 
3318
fi
 
3319
fi
 
3320
LN_S="$ac_cv_prog_LN_S"
 
3321
if test "$ac_cv_prog_LN_S" = "ln -s"; then
 
3322
  echo "$ac_t""yes" 1>&6
 
3323
else
 
3324
  echo "$ac_t""no" 1>&6
 
3325
fi
 
3326
 
 
3327
# Always use our own libtool.
 
3328
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
3329
 
 
3330
# Check for any special flags to pass to ltconfig.
 
3331
libtool_flags=
 
3332
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
 
3333
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
 
3334
test "$silent" = yes && libtool_flags="$libtool_flags --silent"
 
3335
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
 
3336
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
 
3337
 
 
3338
# Some flags need to be propagated to the compiler or linker for good
 
3339
# libtool support.
 
3340
case "$host" in
 
3341
*-*-irix6*)
 
3342
  # Find out which ABI we are using.
 
3343
  echo '#line 3344 "configure"' > conftest.$ac_ext
 
3344
  if { (eval echo configure:3345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
3345
    case "`/usr/bin/file conftest.o`" in
 
3346
    *32-bit*)
 
3347
      LD="${LD-ld} -32"
 
3348
      ;;
 
3349
    *N32*)
 
3350
      LD="${LD-ld} -n32"
 
3351
      ;;
 
3352
    *64-bit*)
 
3353
      LD="${LD-ld} -64"
 
3354
      ;;
 
3355
    esac
 
3356
  fi
 
3357
  rm -rf conftest*
 
3358
  ;;
 
3359
 
 
3360
*-*-sco3.2v5*)
 
3361
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
3362
  CFLAGS="$CFLAGS -belf"
 
3363
  ;;
 
3364
esac
 
3365
 
 
3366
# Actually configure libtool.  ac_aux_dir is where install-sh is found.
 
3367
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
 
3368
LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
 
3369
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
 
3370
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
 
3371
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
 
3372
 
 
3373
# Redirect the config.log output again, so that the ltconfig log is not
 
3374
# clobbered by the next message.
 
3375
exec 5>>./config.log
 
3376
 
 
3377
 
 
3378
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 
3379
echo "configure:3380: checking how to run the C preprocessor" >&5
 
3380
# On Suns, sometimes $CPP names a directory.
 
3381
if test -n "$CPP" && test -d "$CPP"; then
 
3382
  CPP=
 
3383
fi
 
3384
if test -z "$CPP"; then
 
3385
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 
3386
  echo $ac_n "(cached) $ac_c" 1>&6
 
3387
else
 
3388
    # This must be in double quotes, not single quotes, because CPP may get
 
3389
  # substituted into the Makefile and "${CC-cc}" will confuse make.
 
3390
  CPP="${CC-cc} -E"
 
3391
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3392
  # not just through cpp.
 
3393
  cat > conftest.$ac_ext <<EOF
 
3394
#line 3395 "configure"
 
3395
#include "confdefs.h"
 
3396
#include <assert.h>
 
3397
Syntax Error
 
3398
EOF
 
3399
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
3400
{ (eval echo configure:3401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3401
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
3402
if test -z "$ac_err"; then
 
3403
  :
 
3404
else
 
3405
  echo "$ac_err" >&5
 
3406
  echo "configure: failed program was:" >&5
 
3407
  cat conftest.$ac_ext >&5
 
3408
  rm -rf conftest*
 
3409
  CPP="${CC-cc} -E -traditional-cpp"
 
3410
  cat > conftest.$ac_ext <<EOF
 
3411
#line 3412 "configure"
 
3412
#include "confdefs.h"
 
3413
#include <assert.h>
 
3414
Syntax Error
 
3415
EOF
 
3416
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
3417
{ (eval echo configure:3418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3418
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
3419
if test -z "$ac_err"; then
 
3420
  :
 
3421
else
 
3422
  echo "$ac_err" >&5
 
3423
  echo "configure: failed program was:" >&5
 
3424
  cat conftest.$ac_ext >&5
 
3425
  rm -rf conftest*
 
3426
  CPP="${CC-cc} -nologo -E"
 
3427
  cat > conftest.$ac_ext <<EOF
 
3428
#line 3429 "configure"
 
3429
#include "confdefs.h"
 
3430
#include <assert.h>
 
3431
Syntax Error
 
3432
EOF
 
3433
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
3434
{ (eval echo configure:3435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3435
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
3436
if test -z "$ac_err"; then
 
3437
  :
 
3438
else
 
3439
  echo "$ac_err" >&5
 
3440
  echo "configure: failed program was:" >&5
 
3441
  cat conftest.$ac_ext >&5
 
3442
  rm -rf conftest*
 
3443
  CPP=/lib/cpp
 
3444
fi
 
3445
rm -f conftest*
 
3446
fi
 
3447
rm -f conftest*
 
3448
fi
 
3449
rm -f conftest*
 
3450
  ac_cv_prog_CPP="$CPP"
 
3451
fi
 
3452
  CPP="$ac_cv_prog_CPP"
 
3453
else
 
3454
  ac_cv_prog_CPP="$CPP"
 
3455
fi
 
3456
echo "$ac_t""$CPP" 1>&6
 
3457
 
 
3458
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
 
3459
do
 
3460
# Extract the first word of "$ac_prog", so it can be a program name with args.
 
3461
set dummy $ac_prog; ac_word=$2
 
3462
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
3463
echo "configure:3464: checking for $ac_word" >&5
 
3464
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
 
3465
  echo $ac_n "(cached) $ac_c" 1>&6
 
3466
else
 
3467
  if test -n "$CXX"; then
 
3468
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
3469
else
 
3470
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
3471
  ac_dummy="$PATH"
 
3472
  for ac_dir in $ac_dummy; do
 
3473
    test -z "$ac_dir" && ac_dir=.
 
3474
    if test -f $ac_dir/$ac_word; then
 
3475
      ac_cv_prog_CXX="$ac_prog"
 
3476
      break
 
3477
    fi
 
3478
  done
 
3479
  IFS="$ac_save_ifs"
 
3480
fi
 
3481
fi
 
3482
CXX="$ac_cv_prog_CXX"
 
3483
if test -n "$CXX"; then
 
3484
  echo "$ac_t""$CXX" 1>&6
 
3485
else
 
3486
  echo "$ac_t""no" 1>&6
 
3487
fi
 
3488
 
 
3489
test -n "$CXX" && break
 
3490
done
 
3491
test -n "$CXX" || CXX="gcc"
 
3492
 
 
3493
 
 
3494
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
3495
echo "configure:3496: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
 
3496
 
 
3497
ac_ext=C
 
3498
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
3499
ac_cpp='$CXXCPP $CPPFLAGS'
 
3500
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
3501
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
3502
cross_compiling=$ac_cv_prog_cxx_cross
 
3503
 
 
3504
cat > conftest.$ac_ext << EOF
 
3505
 
 
3506
#line 3507 "configure"
 
3507
#include "confdefs.h"
 
3508
 
 
3509
int main(){return(0);}
 
3510
EOF
 
3511
if { (eval echo configure:3512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3512
  ac_cv_prog_cxx_works=yes
 
3513
  # If we can't run a trivial program, we are probably using a cross compiler.
 
3514
  if (./conftest; exit) 2>/dev/null; then
 
3515
    ac_cv_prog_cxx_cross=no
 
3516
  else
 
3517
    ac_cv_prog_cxx_cross=yes
 
3518
  fi
 
3519
else
 
3520
  echo "configure: failed program was:" >&5
 
3521
  cat conftest.$ac_ext >&5
 
3522
  ac_cv_prog_cxx_works=no
 
3523
fi
 
3524
rm -fr conftest*
 
3525
ac_ext=c
 
3526
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
3527
ac_cpp='$CPP $CPPFLAGS'
 
3528
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
3529
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
3530
cross_compiling=$ac_cv_prog_cc_cross
 
3531
 
 
3532
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
 
3533
if test $ac_cv_prog_cxx_works = no; then
 
3534
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
 
3535
fi
 
3536
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
3537
echo "configure:3538: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
 
3538
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
 
3539
cross_compiling=$ac_cv_prog_cxx_cross
 
3540
 
 
3541
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
 
3542
echo "configure:3543: checking whether we are using GNU C++" >&5
 
3543
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
 
3544
  echo $ac_n "(cached) $ac_c" 1>&6
 
3545
else
 
3546
  cat > conftest.C <<EOF
 
3547
#ifdef __GNUC__
 
3548
  yes;
 
3549
#endif
 
3550
EOF
 
3551
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:3552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
3552
  ac_cv_prog_gxx=yes
 
3553
else
 
3554
  ac_cv_prog_gxx=no
 
3555
fi
 
3556
fi
 
3557
 
 
3558
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
 
3559
 
 
3560
if test $ac_cv_prog_gxx = yes; then
 
3561
  GXX=yes
 
3562
else
 
3563
  GXX=
 
3564
fi
 
3565
 
 
3566
ac_test_CXXFLAGS="${CXXFLAGS+set}"
 
3567
ac_save_CXXFLAGS="$CXXFLAGS"
 
3568
CXXFLAGS=
 
3569
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
 
3570
echo "configure:3571: checking whether ${CXX-g++} accepts -g" >&5
 
3571
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
 
3572
  echo $ac_n "(cached) $ac_c" 1>&6
 
3573
else
 
3574
  echo 'void f(){}' > conftest.cc
 
3575
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
 
3576
  ac_cv_prog_cxx_g=yes
 
3577
else
 
3578
  ac_cv_prog_cxx_g=no
 
3579
fi
 
3580
rm -f conftest*
 
3581
 
 
3582
fi
 
3583
 
 
3584
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
 
3585
if test "$ac_test_CXXFLAGS" = set; then
 
3586
  CXXFLAGS="$ac_save_CXXFLAGS"
 
3587
elif test $ac_cv_prog_cxx_g = yes; then
 
3588
  if test "$GXX" = yes; then
 
3589
    CXXFLAGS="-g -O2"
 
3590
  else
 
3591
    CXXFLAGS="-g"
 
3592
  fi
 
3593
else
 
3594
  if test "$GXX" = yes; then
 
3595
    CXXFLAGS="-O2"
 
3596
  else
 
3597
    CXXFLAGS=
 
3598
  fi
 
3599
fi
 
3600
 
 
3601
 
 
3602
if test "$cross_compiling" = yes; then
 
3603
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
 
3604
else
 
3605
  cat > conftest.$ac_ext <<EOF
 
3606
#line 3607 "configure"
 
3607
#include "confdefs.h"
 
3608
 
 
3609
#include <unistd.h>
 
3610
main()
 
3611
{
 
3612
#if defined(__GNUC__) && \
 
3613
    ! (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))
 
3614
    return 1;
 
3615
#endif
 
3616
  return 0;
 
3617
}
 
3618
 
 
3619
EOF
 
3620
if { (eval echo configure:3621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
3621
then
 
3622
  :
 
3623
else
 
3624
  echo "configure: failed program was:" >&5
 
3625
  cat conftest.$ac_ext >&5
 
3626
  rm -fr conftest*
 
3627
  echo "need at least gcc 2.95 to compile correctly"
 
3628
exit 1
 
3629
fi
 
3630
rm -fr conftest*
 
3631
fi
 
3632
 
 
3633
 
 
3634
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
3635
# for constant arguments.  Useless!
 
3636
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
 
3637
echo "configure:3638: checking for working alloca.h" >&5
 
3638
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
 
3639
  echo $ac_n "(cached) $ac_c" 1>&6
 
3640
else
 
3641
  cat > conftest.$ac_ext <<EOF
 
3642
#line 3643 "configure"
 
3643
#include "confdefs.h"
 
3644
#include <alloca.h>
 
3645
int main() {
 
3646
char *p = alloca(2 * sizeof(int));
 
3647
; return 0; }
 
3648
EOF
 
3649
if { (eval echo configure:3650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3650
  rm -rf conftest*
 
3651
  ac_cv_header_alloca_h=yes
 
3652
else
 
3653
  echo "configure: failed program was:" >&5
 
3654
  cat conftest.$ac_ext >&5
 
3655
  rm -rf conftest*
 
3656
  ac_cv_header_alloca_h=no
 
3657
fi
 
3658
rm -f conftest*
 
3659
fi
 
3660
 
 
3661
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
 
3662
if test $ac_cv_header_alloca_h = yes; then
 
3663
  cat >> confdefs.h <<\EOF
 
3664
#define HAVE_ALLOCA_H 1
 
3665
EOF
 
3666
 
 
3667
fi
 
3668
 
 
3669
echo $ac_n "checking for alloca""... $ac_c" 1>&6
 
3670
echo "configure:3671: checking for alloca" >&5
 
3671
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
 
3672
  echo $ac_n "(cached) $ac_c" 1>&6
 
3673
else
 
3674
  cat > conftest.$ac_ext <<EOF
 
3675
#line 3676 "configure"
 
3676
#include "confdefs.h"
 
3677
 
 
3678
#ifdef __GNUC__
 
3679
# define alloca __builtin_alloca
 
3680
#else
 
3681
# ifdef _MSC_VER
 
3682
#  include <malloc.h>
 
3683
#  define alloca _alloca
 
3684
# else
 
3685
#  if HAVE_ALLOCA_H
 
3686
#   include <alloca.h>
 
3687
#  else
 
3688
#   ifdef _AIX
 
3689
 #pragma alloca
 
3690
#   else
 
3691
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
3692
char *alloca ();
 
3693
#    endif
 
3694
#   endif
 
3695
#  endif
 
3696
# endif
 
3697
#endif
 
3698
 
 
3699
int main() {
 
3700
char *p = (char *) alloca(1);
 
3701
; return 0; }
 
3702
EOF
 
3703
if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3704
  rm -rf conftest*
 
3705
  ac_cv_func_alloca_works=yes
 
3706
else
 
3707
  echo "configure: failed program was:" >&5
 
3708
  cat conftest.$ac_ext >&5
 
3709
  rm -rf conftest*
 
3710
  ac_cv_func_alloca_works=no
 
3711
fi
 
3712
rm -f conftest*
 
3713
fi
 
3714
 
 
3715
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
 
3716
if test $ac_cv_func_alloca_works = yes; then
 
3717
  cat >> confdefs.h <<\EOF
 
3718
#define HAVE_ALLOCA 1
 
3719
EOF
 
3720
 
 
3721
fi
 
3722
 
 
3723
if test $ac_cv_func_alloca_works = no; then
 
3724
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
3725
  # that cause trouble.  Some versions do not even contain alloca or
 
3726
  # contain a buggy version.  If you still want to use their alloca,
 
3727
  # use ar to extract alloca.o from them instead of compiling alloca.c.
 
3728
  ALLOCA=alloca.${ac_objext}
 
3729
  cat >> confdefs.h <<\EOF
 
3730
#define C_ALLOCA 1
 
3731
EOF
 
3732
 
 
3733
 
 
3734
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
 
3735
echo "configure:3736: checking whether alloca needs Cray hooks" >&5
 
3736
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
 
3737
  echo $ac_n "(cached) $ac_c" 1>&6
 
3738
else
 
3739
  cat > conftest.$ac_ext <<EOF
 
3740
#line 3741 "configure"
 
3741
#include "confdefs.h"
 
3742
#if defined(CRAY) && ! defined(CRAY2)
 
3743
webecray
 
3744
#else
 
3745
wenotbecray
 
3746
#endif
 
3747
 
 
3748
EOF
 
3749
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3750
  egrep "webecray" >/dev/null 2>&1; then
 
3751
  rm -rf conftest*
 
3752
  ac_cv_os_cray=yes
 
3753
else
 
3754
  rm -rf conftest*
 
3755
  ac_cv_os_cray=no
 
3756
fi
 
3757
rm -f conftest*
 
3758
 
 
3759
fi
 
3760
 
 
3761
echo "$ac_t""$ac_cv_os_cray" 1>&6
 
3762
if test $ac_cv_os_cray = yes; then
 
3763
for ac_func in _getb67 GETB67 getb67; do
 
3764
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
3765
echo "configure:3766: checking for $ac_func" >&5
 
3766
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
3767
  echo $ac_n "(cached) $ac_c" 1>&6
 
3768
else
 
3769
  cat > conftest.$ac_ext <<EOF
 
3770
#line 3771 "configure"
 
3771
#include "confdefs.h"
 
3772
/* System header to define __stub macros and hopefully few prototypes,
 
3773
    which can conflict with char $ac_func(); below.  */
 
3774
#include <assert.h>
 
3775
/* Override any gcc2 internal prototype to avoid an error.  */
 
3776
/* We use char because int might match the return type of a gcc2
 
3777
    builtin and then its argument prototype would still apply.  */
 
3778
char $ac_func();
 
3779
 
 
3780
int main() {
 
3781
 
 
3782
/* The GNU C library defines this for functions which it implements
 
3783
    to always fail with ENOSYS.  Some functions are actually named
 
3784
    something starting with __ and the normal name is an alias.  */
 
3785
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
3786
choke me
 
3787
#else
 
3788
$ac_func();
 
3789
#endif
 
3790
 
 
3791
; return 0; }
 
3792
EOF
 
3793
if { (eval echo configure:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3794
  rm -rf conftest*
 
3795
  eval "ac_cv_func_$ac_func=yes"
 
3796
else
 
3797
  echo "configure: failed program was:" >&5
 
3798
  cat conftest.$ac_ext >&5
 
3799
  rm -rf conftest*
 
3800
  eval "ac_cv_func_$ac_func=no"
 
3801
fi
 
3802
rm -f conftest*
 
3803
fi
 
3804
 
 
3805
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
3806
  echo "$ac_t""yes" 1>&6
 
3807
  cat >> confdefs.h <<EOF
 
3808
#define CRAY_STACKSEG_END $ac_func
 
3809
EOF
 
3810
 
 
3811
  break
 
3812
else
 
3813
  echo "$ac_t""no" 1>&6
 
3814
fi
 
3815
 
 
3816
done
 
3817
fi
 
3818
 
 
3819
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
 
3820
echo "configure:3821: checking stack direction for C alloca" >&5
 
3821
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
 
3822
  echo $ac_n "(cached) $ac_c" 1>&6
 
3823
else
 
3824
  if test "$cross_compiling" = yes; then
 
3825
  ac_cv_c_stack_direction=0
 
3826
else
 
3827
  cat > conftest.$ac_ext <<EOF
 
3828
#line 3829 "configure"
 
3829
#include "confdefs.h"
 
3830
find_stack_direction ()
 
3831
{
 
3832
  static char *addr = 0;
 
3833
  auto char dummy;
 
3834
  if (addr == 0)
 
3835
    {
 
3836
      addr = &dummy;
 
3837
      return find_stack_direction ();
 
3838
    }
 
3839
  else
 
3840
    return (&dummy > addr) ? 1 : -1;
 
3841
}
 
3842
main ()
 
3843
{
 
3844
  exit (find_stack_direction() < 0);
 
3845
}
 
3846
EOF
 
3847
if { (eval echo configure:3848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
3848
then
 
3849
  ac_cv_c_stack_direction=1
 
3850
else
 
3851
  echo "configure: failed program was:" >&5
 
3852
  cat conftest.$ac_ext >&5
 
3853
  rm -fr conftest*
 
3854
  ac_cv_c_stack_direction=-1
 
3855
fi
 
3856
rm -fr conftest*
 
3857
fi
 
3858
 
 
3859
fi
 
3860
 
 
3861
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
 
3862
cat >> confdefs.h <<EOF
 
3863
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
3864
EOF
 
3865
 
 
3866
fi
 
3867
 
 
3868
 
 
3869
echo $ac_n "checking for getopt_long in -lc""... $ac_c" 1>&6
 
3870
echo "configure:3871: checking for getopt_long in -lc" >&5
 
3871
ac_lib_var=`echo c'_'getopt_long | sed 'y%./+-%__p_%'`
 
3872
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3873
  echo $ac_n "(cached) $ac_c" 1>&6
 
3874
else
 
3875
  ac_save_LIBS="$LIBS"
 
3876
LIBS="-lc  $LIBS"
 
3877
cat > conftest.$ac_ext <<EOF
 
3878
#line 3879 "configure"
 
3879
#include "confdefs.h"
 
3880
/* Override any gcc2 internal prototype to avoid an error.  */
 
3881
/* We use char because int might match the return type of a gcc2
 
3882
    builtin and then its argument prototype would still apply.  */
 
3883
char getopt_long();
 
3884
 
 
3885
int main() {
 
3886
getopt_long()
 
3887
; return 0; }
 
3888
EOF
 
3889
if { (eval echo configure:3890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3890
  rm -rf conftest*
 
3891
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3892
else
 
3893
  echo "configure: failed program was:" >&5
 
3894
  cat conftest.$ac_ext >&5
 
3895
  rm -rf conftest*
 
3896
  eval "ac_cv_lib_$ac_lib_var=no"
 
3897
fi
 
3898
rm -f conftest*
 
3899
LIBS="$ac_save_LIBS"
 
3900
 
 
3901
fi
 
3902
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3903
  echo "$ac_t""yes" 1>&6
 
3904
  cat >> confdefs.h <<\EOF
 
3905
#define HAVE_GETOPT_LONG 1
 
3906
EOF
 
3907
 
 
3908
else
 
3909
  echo "$ac_t""no" 1>&6
 
3910
fi
 
3911
 
 
3912
 
 
3913
echo $ac_n "checking for alarm in -lc""... $ac_c" 1>&6
 
3914
echo "configure:3915: checking for alarm in -lc" >&5
 
3915
ac_lib_var=`echo c'_'alarm | sed 'y%./+-%__p_%'`
 
3916
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3917
  echo $ac_n "(cached) $ac_c" 1>&6
 
3918
else
 
3919
  ac_save_LIBS="$LIBS"
 
3920
LIBS="-lc  $LIBS"
 
3921
cat > conftest.$ac_ext <<EOF
 
3922
#line 3923 "configure"
 
3923
#include "confdefs.h"
 
3924
/* Override any gcc2 internal prototype to avoid an error.  */
 
3925
/* We use char because int might match the return type of a gcc2
 
3926
    builtin and then its argument prototype would still apply.  */
 
3927
char alarm();
 
3928
 
 
3929
int main() {
 
3930
alarm()
 
3931
; return 0; }
 
3932
EOF
 
3933
if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3934
  rm -rf conftest*
 
3935
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3936
else
 
3937
  echo "configure: failed program was:" >&5
 
3938
  cat conftest.$ac_ext >&5
 
3939
  rm -rf conftest*
 
3940
  eval "ac_cv_lib_$ac_lib_var=no"
 
3941
fi
 
3942
rm -f conftest*
 
3943
LIBS="$ac_save_LIBS"
 
3944
 
 
3945
fi
 
3946
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3947
  echo "$ac_t""yes" 1>&6
 
3948
  cat >> confdefs.h <<\EOF
 
3949
#define HAVE_ALARM 1
 
3950
EOF
 
3951
 
 
3952
else
 
3953
  echo "$ac_t""no" 1>&6
 
3954
fi
 
3955
 
 
3956
 
 
3957
for ac_hdr in netinet/in.h
 
3958
do
 
3959
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
3960
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
3961
echo "configure:3962: checking for $ac_hdr" >&5
 
3962
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
3963
  echo $ac_n "(cached) $ac_c" 1>&6
 
3964
else
 
3965
  cat > conftest.$ac_ext <<EOF
 
3966
#line 3967 "configure"
 
3967
#include "confdefs.h"
 
3968
#include <$ac_hdr>
 
3969
EOF
 
3970
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
3971
{ (eval echo configure:3972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3972
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
3973
if test -z "$ac_err"; then
 
3974
  rm -rf conftest*
 
3975
  eval "ac_cv_header_$ac_safe=yes"
 
3976
else
 
3977
  echo "$ac_err" >&5
 
3978
  echo "configure: failed program was:" >&5
 
3979
  cat conftest.$ac_ext >&5
 
3980
  rm -rf conftest*
 
3981
  eval "ac_cv_header_$ac_safe=no"
 
3982
fi
 
3983
rm -f conftest*
 
3984
fi
 
3985
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
3986
  echo "$ac_t""yes" 1>&6
 
3987
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
3988
  cat >> confdefs.h <<EOF
 
3989
#define $ac_tr_hdr 1
 
3990
EOF
 
3991
 
 
3992
else
 
3993
  echo "$ac_t""no" 1>&6
 
3994
fi
 
3995
done
 
3996
 
 
3997
 
 
3998
for ac_hdr in string.h
 
3999
do
 
4000
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
4001
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
4002
echo "configure:4003: checking for $ac_hdr" >&5
 
4003
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
4004
  echo $ac_n "(cached) $ac_c" 1>&6
 
4005
else
 
4006
  cat > conftest.$ac_ext <<EOF
 
4007
#line 4008 "configure"
 
4008
#include "confdefs.h"
 
4009
#include <$ac_hdr>
 
4010
EOF
 
4011
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
4012
{ (eval echo configure:4013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4013
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
4014
if test -z "$ac_err"; then
 
4015
  rm -rf conftest*
 
4016
  eval "ac_cv_header_$ac_safe=yes"
 
4017
else
 
4018
  echo "$ac_err" >&5
 
4019
  echo "configure: failed program was:" >&5
 
4020
  cat conftest.$ac_ext >&5
 
4021
  rm -rf conftest*
 
4022
  eval "ac_cv_header_$ac_safe=no"
 
4023
fi
 
4024
rm -f conftest*
 
4025
fi
 
4026
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
4027
  echo "$ac_t""yes" 1>&6
 
4028
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
4029
  cat >> confdefs.h <<EOF
 
4030
#define $ac_tr_hdr 1
 
4031
EOF
 
4032
 
 
4033
else
 
4034
  echo "$ac_t""no" 1>&6
 
4035
fi
 
4036
done
 
4037
 
 
4038
 
 
4039
for ac_hdr in libintl.h
 
4040
do
 
4041
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
4042
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
4043
echo "configure:4044: checking for $ac_hdr" >&5
 
4044
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
4045
  echo $ac_n "(cached) $ac_c" 1>&6
 
4046
else
 
4047
  cat > conftest.$ac_ext <<EOF
 
4048
#line 4049 "configure"
 
4049
#include "confdefs.h"
 
4050
#include <$ac_hdr>
 
4051
EOF
 
4052
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
4053
{ (eval echo configure:4054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4054
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
4055
if test -z "$ac_err"; then
 
4056
  rm -rf conftest*
 
4057
  eval "ac_cv_header_$ac_safe=yes"
 
4058
else
 
4059
  echo "$ac_err" >&5
 
4060
  echo "configure: failed program was:" >&5
 
4061
  cat conftest.$ac_ext >&5
 
4062
  rm -rf conftest*
 
4063
  eval "ac_cv_header_$ac_safe=no"
 
4064
fi
 
4065
rm -f conftest*
 
4066
fi
 
4067
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
4068
  echo "$ac_t""yes" 1>&6
 
4069
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
4070
  cat >> confdefs.h <<EOF
 
4071
#define $ac_tr_hdr 1
 
4072
EOF
 
4073
 
 
4074
else
 
4075
  echo "$ac_t""no" 1>&6
 
4076
fi
 
4077
done
 
4078
 
 
4079
 
 
4080
echo $ac_n "checking for working const""... $ac_c" 1>&6
 
4081
echo "configure:4082: checking for working const" >&5
 
4082
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
 
4083
  echo $ac_n "(cached) $ac_c" 1>&6
 
4084
else
 
4085
  cat > conftest.$ac_ext <<EOF
 
4086
#line 4087 "configure"
 
4087
#include "confdefs.h"
 
4088
 
 
4089
int main() {
 
4090
 
 
4091
/* Ultrix mips cc rejects this.  */
 
4092
typedef int charset[2]; const charset x;
 
4093
/* SunOS 4.1.1 cc rejects this.  */
 
4094
char const *const *ccp;
 
4095
char **p;
 
4096
/* NEC SVR4.0.2 mips cc rejects this.  */
 
4097
struct point {int x, y;};
 
4098
static struct point const zero = {0,0};
 
4099
/* AIX XL C 1.02.0.0 rejects this.
 
4100
   It does not let you subtract one const X* pointer from another in an arm
 
4101
   of an if-expression whose if-part is not a constant expression */
 
4102
const char *g = "string";
 
4103
ccp = &g + (g ? g-g : 0);
 
4104
/* HPUX 7.0 cc rejects these. */
 
4105
++ccp;
 
4106
p = (char**) ccp;
 
4107
ccp = (char const *const *) p;
 
4108
{ /* SCO 3.2v4 cc rejects this.  */
 
4109
  char *t;
 
4110
  char const *s = 0 ? (char *) 0 : (char const *) 0;
 
4111
 
 
4112
  *t++ = 0;
 
4113
}
 
4114
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
4115
  int x[] = {25, 17};
 
4116
  const int *foo = &x[0];
 
4117
  ++foo;
 
4118
}
 
4119
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
4120
  typedef const int *iptr;
 
4121
  iptr p = 0;
 
4122
  ++p;
 
4123
}
 
4124
{ /* AIX XL C 1.02.0.0 rejects this saying
 
4125
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
4126
  struct s { int j; const int *ap[3]; };
 
4127
  struct s *b; b->j = 5;
 
4128
}
 
4129
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
4130
  const int foo = 10;
 
4131
}
 
4132
 
 
4133
; return 0; }
 
4134
EOF
 
4135
if { (eval echo configure:4136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
4136
  rm -rf conftest*
 
4137
  ac_cv_c_const=yes
 
4138
else
 
4139
  echo "configure: failed program was:" >&5
 
4140
  cat conftest.$ac_ext >&5
 
4141
  rm -rf conftest*
 
4142
  ac_cv_c_const=no
 
4143
fi
 
4144
rm -f conftest*
 
4145
fi
 
4146
 
 
4147
echo "$ac_t""$ac_cv_c_const" 1>&6
 
4148
if test $ac_cv_c_const = no; then
 
4149
  cat >> confdefs.h <<\EOF
 
4150
#define const 
 
4151
EOF
 
4152
 
 
4153
fi
 
4154
 
 
4155
 
 
4156
cat > conftest.$ac_ext <<EOF
 
4157
#line 4158 "configure"
 
4158
#include "confdefs.h"
 
4159
#include <stdio.h>
 
4160
EOF
 
4161
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4162
  egrep "vsnprintf" >/dev/null 2>&1; then
 
4163
  rm -rf conftest*
 
4164
  cat >> confdefs.h <<\EOF
 
4165
#define HAVE_VSNPRINTF 1
 
4166
EOF
 
4167
 
 
4168
fi
 
4169
rm -f conftest*
 
4170
 
 
4171
 
 
4172
echo $ac_n "checking size of unsigned short int""... $ac_c" 1>&6
 
4173
echo "configure:4174: checking size of unsigned short int" >&5
 
4174
if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short_int'+set}'`\" = set"; then
 
4175
  echo $ac_n "(cached) $ac_c" 1>&6
 
4176
else
 
4177
  if test "$cross_compiling" = yes; then
 
4178
  ac_cv_sizeof_unsigned_short_int=2
 
4179
else
 
4180
  cat > conftest.$ac_ext <<EOF
 
4181
#line 4182 "configure"
 
4182
#include "confdefs.h"
 
4183
#include <stdio.h>
 
4184
main()
 
4185
{
 
4186
  FILE *f=fopen("conftestval", "w");
 
4187
  if (!f) exit(1);
 
4188
  fprintf(f, "%d\n", sizeof(unsigned short int));
 
4189
  exit(0);
 
4190
}
 
4191
EOF
 
4192
if { (eval echo configure:4193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
4193
then
 
4194
  ac_cv_sizeof_unsigned_short_int=`cat conftestval`
 
4195
else
 
4196
  echo "configure: failed program was:" >&5
 
4197
  cat conftest.$ac_ext >&5
 
4198
  rm -fr conftest*
 
4199
  ac_cv_sizeof_unsigned_short_int=0
 
4200
fi
 
4201
rm -fr conftest*
 
4202
fi
 
4203
 
 
4204
fi
 
4205
echo "$ac_t""$ac_cv_sizeof_unsigned_short_int" 1>&6
 
4206
cat >> confdefs.h <<EOF
 
4207
#define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
 
4208
EOF
 
4209
 
 
4210
 
 
4211
echo $ac_n "checking size of unsigned long int""... $ac_c" 1>&6
 
4212
echo "configure:4213: checking size of unsigned long int" >&5
 
4213
if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_int'+set}'`\" = set"; then
 
4214
  echo $ac_n "(cached) $ac_c" 1>&6
 
4215
else
 
4216
  if test "$cross_compiling" = yes; then
 
4217
  ac_cv_sizeof_unsigned_long_int=4
 
4218
else
 
4219
  cat > conftest.$ac_ext <<EOF
 
4220
#line 4221 "configure"
 
4221
#include "confdefs.h"
 
4222
#include <stdio.h>
 
4223
main()
 
4224
{
 
4225
  FILE *f=fopen("conftestval", "w");
 
4226
  if (!f) exit(1);
 
4227
  fprintf(f, "%d\n", sizeof(unsigned long int));
 
4228
  exit(0);
 
4229
}
 
4230
EOF
 
4231
if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
4232
then
 
4233
  ac_cv_sizeof_unsigned_long_int=`cat conftestval`
 
4234
else
 
4235
  echo "configure: failed program was:" >&5
 
4236
  cat conftest.$ac_ext >&5
 
4237
  rm -fr conftest*
 
4238
  ac_cv_sizeof_unsigned_long_int=0
 
4239
fi
 
4240
rm -fr conftest*
 
4241
fi
 
4242
 
 
4243
fi
 
4244
echo "$ac_t""$ac_cv_sizeof_unsigned_long_int" 1>&6
 
4245
cat >> confdefs.h <<EOF
 
4246
#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
 
4247
EOF
 
4248
 
 
4249
 
 
4250
echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
 
4251
echo "configure:4252: checking size of unsigned int" >&5
 
4252
if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
 
4253
  echo $ac_n "(cached) $ac_c" 1>&6
 
4254
else
 
4255
  if test "$cross_compiling" = yes; then
 
4256
  ac_cv_sizeof_unsigned_int=4
 
4257
else
 
4258
  cat > conftest.$ac_ext <<EOF
 
4259
#line 4260 "configure"
 
4260
#include "confdefs.h"
 
4261
#include <stdio.h>
 
4262
main()
 
4263
{
 
4264
  FILE *f=fopen("conftestval", "w");
 
4265
  if (!f) exit(1);
 
4266
  fprintf(f, "%d\n", sizeof(unsigned int));
 
4267
  exit(0);
 
4268
}
 
4269
EOF
 
4270
if { (eval echo configure:4271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
4271
then
 
4272
  ac_cv_sizeof_unsigned_int=`cat conftestval`
 
4273
else
 
4274
  echo "configure: failed program was:" >&5
 
4275
  cat conftest.$ac_ext >&5
 
4276
  rm -fr conftest*
 
4277
  ac_cv_sizeof_unsigned_int=0
 
4278
fi
 
4279
rm -fr conftest*
 
4280
fi
 
4281
 
 
4282
fi
 
4283
echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
 
4284
cat >> confdefs.h <<EOF
 
4285
#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
 
4286
EOF
 
4287
 
 
4288
 
 
4289
 
 
4290
GSM_VERSION="1:2:0"
 
4291
 
 
4292
 
 
4293
_localedir=`eval "echo $datadir/locale"`
 
4294
if test "$_localedir" = "NONE/share/locale"; then
 
4295
   cat >> confdefs.h <<EOF
 
4296
#define LOCALEDIR "/usr/local/share/locale"
 
4297
EOF
 
4298
 
 
4299
else
 
4300
   _localedir=`echo \"$_localedir\"`
 
4301
   cat >> confdefs.h <<EOF
 
4302
#define LOCALEDIR $_localedir
 
4303
EOF
 
4304
 
 
4305
fi
 
4306
 
 
4307
 
 
4308
 
 
4309
if test x$USE_INCLUDED_LIBINTL = xyes; then
 
4310
  COMPILE_INTL_TRUE=
 
4311
  COMPILE_INTL_FALSE='#'
 
4312
else
 
4313
  COMPILE_INTL_TRUE='#'
 
4314
  COMPILE_INTL_FALSE=
 
4315
fi
 
4316
 
 
4317
trap '' 1 2 15
 
4318
cat > confcache <<\EOF
 
4319
# This file is a shell script that caches the results of configure
 
4320
# tests run on this system so they can be shared between configure
 
4321
# scripts and configure runs.  It is not useful on other systems.
 
4322
# If it contains results you don't want to keep, you may remove or edit it.
 
4323
#
 
4324
# By default, configure uses ./config.cache as the cache file,
 
4325
# creating it if it does not exist already.  You can give configure
 
4326
# the --cache-file=FILE option to use a different cache file; that is
 
4327
# what configure does when it calls configure scripts in
 
4328
# subdirectories, so they share the cache.
 
4329
# Giving --cache-file=/dev/null disables caching, for debugging configure.
 
4330
# config.status only pays attention to the cache file if you give it the
 
4331
# --recheck option to rerun configure.
 
4332
#
 
4333
EOF
 
4334
# The following way of writing the cache mishandles newlines in values,
 
4335
# but we know of no workaround that is simple, portable, and efficient.
 
4336
# So, don't put newlines in cache variables' values.
 
4337
# Ultrix sh set writes to stderr and can't be redirected directly,
 
4338
# and sets the high bit in the cache file unless we assign to the vars.
 
4339
(set) 2>&1 |
 
4340
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
4341
  *ac_space=\ *)
 
4342
    # `set' does not quote correctly, so add quotes (double-quote substitution
 
4343
    # turns \\\\ into \\, and sed turns \\ into \).
 
4344
    sed -n \
 
4345
      -e "s/'/'\\\\''/g" \
 
4346
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 
4347
    ;;
 
4348
  *)
 
4349
    # `set' quotes correctly as required by POSIX, so do not add quotes.
 
4350
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 
4351
    ;;
 
4352
  esac >> confcache
 
4353
if cmp -s $cache_file confcache; then
 
4354
  :
 
4355
else
 
4356
  if test -w $cache_file; then
 
4357
    echo "updating cache $cache_file"
 
4358
    cat confcache > $cache_file
 
4359
  else
 
4360
    echo "not updating unwritable cache $cache_file"
 
4361
  fi
 
4362
fi
 
4363
rm -f confcache
 
4364
 
 
4365
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
4366
 
 
4367
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
4368
# Let make expand exec_prefix.
 
4369
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
4370
 
 
4371
# Any assignment to VPATH causes Sun make to only execute
 
4372
# the first set of double-colon rules, so remove it if not needed.
 
4373
# If there is a colon in the path, we need to keep it.
 
4374
if test "x$srcdir" = x.; then
 
4375
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
4376
fi
 
4377
 
 
4378
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 
4379
 
 
4380
DEFS=-DHAVE_CONFIG_H
 
4381
 
 
4382
# Without the "./", some shells look in PATH for config.status.
 
4383
: ${CONFIG_STATUS=./config.status}
 
4384
 
 
4385
echo creating $CONFIG_STATUS
 
4386
rm -f $CONFIG_STATUS
 
4387
cat > $CONFIG_STATUS <<EOF
 
4388
#! /bin/sh
 
4389
# Generated automatically by configure.
 
4390
# Run this file to recreate the current configuration.
 
4391
# This directory was configured as follows,
 
4392
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
4393
#
 
4394
# $0 $ac_configure_args
 
4395
#
 
4396
# Compiler output produced by configure, useful for debugging
 
4397
# configure, is in ./config.log if it exists.
 
4398
 
 
4399
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 
4400
for ac_option
 
4401
do
 
4402
  case "\$ac_option" in
 
4403
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
4404
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
 
4405
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 
4406
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 
4407
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
 
4408
    exit 0 ;;
 
4409
  -help | --help | --hel | --he | --h)
 
4410
    echo "\$ac_cs_usage"; exit 0 ;;
 
4411
  *) echo "\$ac_cs_usage"; exit 1 ;;
 
4412
  esac
 
4413
done
 
4414
 
 
4415
ac_given_srcdir=$srcdir
 
4416
ac_given_INSTALL="$INSTALL"
 
4417
 
 
4418
trap 'rm -fr `echo "Makefile gsmlib/Makefile tests/Makefile apps/Makefile win32/Makefile
 
4419
          doc/Makefile scripts/Makefile intl/Makefile po/Makefile.in
 
4420
          ext/Makefile gsm_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 
4421
EOF
 
4422
cat >> $CONFIG_STATUS <<EOF
 
4423
 
 
4424
# Protect against being on the right side of a sed subst in config.status.
 
4425
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 
4426
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
 
4427
$ac_vpsub
 
4428
$extrasub
 
4429
s%@SHELL@%$SHELL%g
 
4430
s%@CFLAGS@%$CFLAGS%g
 
4431
s%@CPPFLAGS@%$CPPFLAGS%g
 
4432
s%@CXXFLAGS@%$CXXFLAGS%g
 
4433
s%@FFLAGS@%$FFLAGS%g
 
4434
s%@DEFS@%$DEFS%g
 
4435
s%@LDFLAGS@%$LDFLAGS%g
 
4436
s%@LIBS@%$LIBS%g
 
4437
s%@exec_prefix@%$exec_prefix%g
 
4438
s%@prefix@%$prefix%g
 
4439
s%@program_transform_name@%$program_transform_name%g
 
4440
s%@bindir@%$bindir%g
 
4441
s%@sbindir@%$sbindir%g
 
4442
s%@libexecdir@%$libexecdir%g
 
4443
s%@datadir@%$datadir%g
 
4444
s%@sysconfdir@%$sysconfdir%g
 
4445
s%@sharedstatedir@%$sharedstatedir%g
 
4446
s%@localstatedir@%$localstatedir%g
 
4447
s%@libdir@%$libdir%g
 
4448
s%@includedir@%$includedir%g
 
4449
s%@oldincludedir@%$oldincludedir%g
 
4450
s%@infodir@%$infodir%g
 
4451
s%@mandir@%$mandir%g
 
4452
s%@SET_MAKE@%$SET_MAKE%g
 
4453
s%@CC@%$CC%g
 
4454
s%@RANLIB@%$RANLIB%g
 
4455
s%@CPP@%$CPP%g
 
4456
s%@ALLOCA@%$ALLOCA%g
 
4457
s%@USE_NLS@%$USE_NLS%g
 
4458
s%@MSGFMT@%$MSGFMT%g
 
4459
s%@GMSGFMT@%$GMSGFMT%g
 
4460
s%@XGETTEXT@%$XGETTEXT%g
 
4461
s%@GENCAT@%$GENCAT%g
 
4462
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
 
4463
s%@CATALOGS@%$CATALOGS%g
 
4464
s%@CATOBJEXT@%$CATOBJEXT%g
 
4465
s%@DATADIRNAME@%$DATADIRNAME%g
 
4466
s%@GMOFILES@%$GMOFILES%g
 
4467
s%@INSTOBJEXT@%$INSTOBJEXT%g
 
4468
s%@INTLDEPS@%$INTLDEPS%g
 
4469
s%@INTLLIBS@%$INTLLIBS%g
 
4470
s%@INTLOBJS@%$INTLOBJS%g
 
4471
s%@POFILES@%$POFILES%g
 
4472
s%@POSUB@%$POSUB%g
 
4473
s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
 
4474
s%@GT_NO@%$GT_NO%g
 
4475
s%@GT_YES@%$GT_YES%g
 
4476
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
 
4477
s%@l@%$l%g
 
4478
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
 
4479
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
 
4480
s%@INSTALL_DATA@%$INSTALL_DATA%g
 
4481
s%@PACKAGE@%$PACKAGE%g
 
4482
s%@VERSION@%$VERSION%g
 
4483
s%@ACLOCAL@%$ACLOCAL%g
 
4484
s%@AUTOCONF@%$AUTOCONF%g
 
4485
s%@AUTOMAKE@%$AUTOMAKE%g
 
4486
s%@AUTOHEADER@%$AUTOHEADER%g
 
4487
s%@MAKEINFO@%$MAKEINFO%g
 
4488
s%@host@%$host%g
 
4489
s%@host_alias@%$host_alias%g
 
4490
s%@host_cpu@%$host_cpu%g
 
4491
s%@host_vendor@%$host_vendor%g
 
4492
s%@host_os@%$host_os%g
 
4493
s%@LD@%$LD%g
 
4494
s%@NM@%$NM%g
 
4495
s%@LN_S@%$LN_S%g
 
4496
s%@LIBTOOL@%$LIBTOOL%g
 
4497
s%@CXX@%$CXX%g
 
4498
s%@GSM_VERSION@%$GSM_VERSION%g
 
4499
s%@COMPILE_INTL_TRUE@%$COMPILE_INTL_TRUE%g
 
4500
s%@COMPILE_INTL_FALSE@%$COMPILE_INTL_FALSE%g
 
4501
 
 
4502
CEOF
 
4503
EOF
 
4504
 
 
4505
cat >> $CONFIG_STATUS <<\EOF
 
4506
 
 
4507
# Split the substitutions into bite-sized pieces for seds with
 
4508
# small command number limits, like on Digital OSF/1 and HP-UX.
 
4509
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
 
4510
ac_file=1 # Number of current file.
 
4511
ac_beg=1 # First line for current file.
 
4512
ac_end=$ac_max_sed_cmds # Line after last line for current file.
 
4513
ac_more_lines=:
 
4514
ac_sed_cmds=""
 
4515
while $ac_more_lines; do
 
4516
  if test $ac_beg -gt 1; then
 
4517
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
 
4518
  else
 
4519
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
 
4520
  fi
 
4521
  if test ! -s conftest.s$ac_file; then
 
4522
    ac_more_lines=false
 
4523
    rm -f conftest.s$ac_file
 
4524
  else
 
4525
    if test -z "$ac_sed_cmds"; then
 
4526
      ac_sed_cmds="sed -f conftest.s$ac_file"
 
4527
    else
 
4528
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
 
4529
    fi
 
4530
    ac_file=`expr $ac_file + 1`
 
4531
    ac_beg=$ac_end
 
4532
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
 
4533
  fi
 
4534
done
 
4535
if test -z "$ac_sed_cmds"; then
 
4536
  ac_sed_cmds=cat
 
4537
fi
 
4538
EOF
 
4539
 
 
4540
cat >> $CONFIG_STATUS <<EOF
 
4541
 
 
4542
CONFIG_FILES=\${CONFIG_FILES-"Makefile gsmlib/Makefile tests/Makefile apps/Makefile win32/Makefile
 
4543
          doc/Makefile scripts/Makefile intl/Makefile po/Makefile.in
 
4544
          ext/Makefile"}
 
4545
EOF
 
4546
cat >> $CONFIG_STATUS <<\EOF
 
4547
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 
4548
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
4549
  case "$ac_file" in
 
4550
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
4551
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
4552
  *) ac_file_in="${ac_file}.in" ;;
 
4553
  esac
 
4554
 
 
4555
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 
4556
 
 
4557
  # Remove last slash and all that follows it.  Not all systems have dirname.
 
4558
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
4559
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
4560
    # The file is in a subdirectory.
 
4561
    test ! -d "$ac_dir" && mkdir "$ac_dir"
 
4562
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 
4563
    # A "../" for each directory in $ac_dir_suffix.
 
4564
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 
4565
  else
 
4566
    ac_dir_suffix= ac_dots=
 
4567
  fi
 
4568
 
 
4569
  case "$ac_given_srcdir" in
 
4570
  .)  srcdir=.
 
4571
      if test -z "$ac_dots"; then top_srcdir=.
 
4572
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 
4573
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 
4574
  *) # Relative path.
 
4575
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 
4576
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
4577
  esac
 
4578
 
 
4579
  case "$ac_given_INSTALL" in
 
4580
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
 
4581
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
 
4582
  esac
 
4583
 
 
4584
  echo creating "$ac_file"
 
4585
  rm -f "$ac_file"
 
4586
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 
4587
  case "$ac_file" in
 
4588
  *Makefile*) ac_comsub="1i\\
 
4589
# $configure_input" ;;
 
4590
  *) ac_comsub= ;;
 
4591
  esac
 
4592
 
 
4593
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
4594
  sed -e "$ac_comsub
 
4595
s%@configure_input@%$configure_input%g
 
4596
s%@srcdir@%$srcdir%g
 
4597
s%@top_srcdir@%$top_srcdir%g
 
4598
s%@INSTALL@%$INSTALL%g
 
4599
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
 
4600
fi; done
 
4601
rm -f conftest.s*
 
4602
 
 
4603
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
4604
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
4605
#
 
4606
# ac_d sets the value in "#define NAME VALUE" lines.
 
4607
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
4608
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
 
4609
ac_dC='\3'
 
4610
ac_dD='%g'
 
4611
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
 
4612
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
4613
ac_uB='\([      ]\)%\1#\2define\3'
 
4614
ac_uC=' '
 
4615
ac_uD='\4%g'
 
4616
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
4617
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
4618
ac_eB='$%\1#\2define\3'
 
4619
ac_eC=' '
 
4620
ac_eD='%g'
 
4621
 
 
4622
if test "${CONFIG_HEADERS+set}" != set; then
 
4623
EOF
 
4624
cat >> $CONFIG_STATUS <<EOF
 
4625
  CONFIG_HEADERS="gsm_config.h"
 
4626
EOF
 
4627
cat >> $CONFIG_STATUS <<\EOF
 
4628
fi
 
4629
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 
4630
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
4631
  case "$ac_file" in
 
4632
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
4633
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
4634
  *) ac_file_in="${ac_file}.in" ;;
 
4635
  esac
 
4636
 
 
4637
  echo creating $ac_file
 
4638
 
 
4639
  rm -f conftest.frag conftest.in conftest.out
 
4640
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
4641
  cat $ac_file_inputs > conftest.in
 
4642
 
 
4643
EOF
 
4644
 
 
4645
# Transform confdefs.h into a sed script conftest.vals that substitutes
 
4646
# the proper values into config.h.in to produce config.h.  And first:
 
4647
# Protect against being on the right side of a sed subst in config.status.
 
4648
# Protect against being in an unquoted here document in config.status.
 
4649
rm -f conftest.vals
 
4650
cat > conftest.hdr <<\EOF
 
4651
s/[\\&%]/\\&/g
 
4652
s%[\\$`]%\\&%g
 
4653
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
 
4654
s%ac_d%ac_u%gp
 
4655
s%ac_u%ac_e%gp
 
4656
EOF
 
4657
sed -n -f conftest.hdr confdefs.h > conftest.vals
 
4658
rm -f conftest.hdr
 
4659
 
 
4660
# This sed command replaces #undef with comments.  This is necessary, for
 
4661
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
4662
# on some systems where configure will not decide to define it.
 
4663
cat >> conftest.vals <<\EOF
 
4664
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
 
4665
EOF
 
4666
 
 
4667
# Break up conftest.vals because some shells have a limit on
 
4668
# the size of here documents, and old seds have small limits too.
 
4669
 
 
4670
rm -f conftest.tail
 
4671
while :
 
4672
do
 
4673
  ac_lines=`grep -c . conftest.vals`
 
4674
  # grep -c gives empty output for an empty file on some AIX systems.
 
4675
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
 
4676
  # Write a limited-size here document to conftest.frag.
 
4677
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
 
4678
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
 
4679
  echo 'CEOF
 
4680
  sed -f conftest.frag conftest.in > conftest.out
 
4681
  rm -f conftest.in
 
4682
  mv conftest.out conftest.in
 
4683
' >> $CONFIG_STATUS
 
4684
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
 
4685
  rm -f conftest.vals
 
4686
  mv conftest.tail conftest.vals
 
4687
done
 
4688
rm -f conftest.vals
 
4689
 
 
4690
cat >> $CONFIG_STATUS <<\EOF
 
4691
  rm -f conftest.frag conftest.h
 
4692
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
 
4693
  cat conftest.in >> conftest.h
 
4694
  rm -f conftest.in
 
4695
  if cmp -s $ac_file conftest.h 2>/dev/null; then
 
4696
    echo "$ac_file is unchanged"
 
4697
    rm -f conftest.h
 
4698
  else
 
4699
    # Remove last slash and all that follows it.  Not all systems have dirname.
 
4700
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
4701
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
4702
      # The file is in a subdirectory.
 
4703
      test ! -d "$ac_dir" && mkdir "$ac_dir"
 
4704
    fi
 
4705
    rm -f $ac_file
 
4706
    mv conftest.h $ac_file
 
4707
  fi
 
4708
fi; done
 
4709
 
 
4710
EOF
 
4711
 
 
4712
cat >> $CONFIG_STATUS <<EOF
 
4713
ac_sources="$nls_cv_header_libgt"
 
4714
ac_dests="$nls_cv_header_intl"
 
4715
EOF
 
4716
 
 
4717
cat >> $CONFIG_STATUS <<\EOF
 
4718
srcdir=$ac_given_srcdir
 
4719
while test -n "$ac_sources"; do
 
4720
  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
 
4721
  set $ac_sources; ac_source=$1; shift; ac_sources=$*
 
4722
 
 
4723
  echo "linking $srcdir/$ac_source to $ac_dest"
 
4724
 
 
4725
  if test ! -r $srcdir/$ac_source; then
 
4726
    { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
 
4727
  fi
 
4728
  rm -f $ac_dest
 
4729
 
 
4730
  # Make relative symlinks.
 
4731
  # Remove last slash and all that follows it.  Not all systems have dirname.
 
4732
  ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
 
4733
  if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
 
4734
    # The dest file is in a subdirectory.
 
4735
    test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
 
4736
    ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
 
4737
    # A "../" for each directory in $ac_dest_dir_suffix.
 
4738
    ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
 
4739
  else
 
4740
    ac_dest_dir_suffix= ac_dots=
 
4741
  fi
 
4742
 
 
4743
  case "$srcdir" in
 
4744
  [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
 
4745
  *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
 
4746
  esac
 
4747
 
 
4748
  # Make a symlink if possible; otherwise try a hard link.
 
4749
  if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
 
4750
    ln $srcdir/$ac_source $ac_dest; then :
 
4751
  else
 
4752
    { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
 
4753
  fi
 
4754
done
 
4755
EOF
 
4756
cat >> $CONFIG_STATUS <<EOF
 
4757
 
 
4758
 
 
4759
 
 
4760
EOF
 
4761
cat >> $CONFIG_STATUS <<\EOF
 
4762
case "$CONFIG_FILES" in *po/Makefile.in*)
 
4763
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
4764
      esac
 
4765
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
 
4766
echo timestamp > stamp-h
 
4767
exit 0
 
4768
EOF
 
4769
chmod +x $CONFIG_STATUS
 
4770
rm -fr confdefs* $ac_clean_files
 
4771
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
4772
 
 
4773
 
 
4774
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile