~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/extras/FreeType/contrib/ttf2pk/configure

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

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
  --with-kpathsea-dir=DIR Location of the kpathsea base dir (/usr/local)"
 
16
 
 
17
# Initialize some variables set by options.
 
18
# The variables have the same names as the options, with
 
19
# dashes changed to underlines.
 
20
build=NONE
 
21
cache_file=./config.cache
 
22
exec_prefix=NONE
 
23
host=NONE
 
24
no_create=
 
25
nonopt=NONE
 
26
no_recursion=
 
27
prefix=NONE
 
28
program_prefix=NONE
 
29
program_suffix=NONE
 
30
program_transform_name=s,x,x,
 
31
silent=
 
32
site=
 
33
srcdir=
 
34
target=NONE
 
35
verbose=
 
36
x_includes=NONE
 
37
x_libraries=NONE
 
38
bindir='${exec_prefix}/bin'
 
39
sbindir='${exec_prefix}/sbin'
 
40
libexecdir='${exec_prefix}/libexec'
 
41
datadir='${prefix}/share'
 
42
sysconfdir='${prefix}/etc'
 
43
sharedstatedir='${prefix}/com'
 
44
localstatedir='${prefix}/var'
 
45
libdir='${exec_prefix}/lib'
 
46
includedir='${prefix}/include'
 
47
oldincludedir='/usr/include'
 
48
infodir='${prefix}/info'
 
49
mandir='${prefix}/man'
 
50
 
 
51
# Initialize some other variables.
 
52
subdirs=
 
53
MFLAGS= MAKEFLAGS=
 
54
SHELL=${CONFIG_SHELL-/bin/sh}
 
55
# Maximum number of lines to put in a shell here document.
 
56
ac_max_here_lines=12
 
57
 
 
58
ac_prev=
 
59
for ac_option
 
60
do
 
61
 
 
62
  # If the previous option needs an argument, assign it.
 
63
  if test -n "$ac_prev"; then
 
64
    eval "$ac_prev=\$ac_option"
 
65
    ac_prev=
 
66
    continue
 
67
  fi
 
68
 
 
69
  case "$ac_option" in
 
70
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 
71
  *) ac_optarg= ;;
 
72
  esac
 
73
 
 
74
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
75
 
 
76
  case "$ac_option" in
 
77
 
 
78
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
79
    ac_prev=bindir ;;
 
80
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
81
    bindir="$ac_optarg" ;;
 
82
 
 
83
  -build | --build | --buil | --bui | --bu)
 
84
    ac_prev=build ;;
 
85
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
86
    build="$ac_optarg" ;;
 
87
 
 
88
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
89
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
90
    ac_prev=cache_file ;;
 
91
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
92
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
93
    cache_file="$ac_optarg" ;;
 
94
 
 
95
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
96
    ac_prev=datadir ;;
 
97
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
98
  | --da=*)
 
99
    datadir="$ac_optarg" ;;
 
100
 
 
101
  -disable-* | --disable-*)
 
102
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
103
    # Reject names that are not valid shell variable names.
 
104
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
105
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
106
    fi
 
107
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
108
    eval "enable_${ac_feature}=no" ;;
 
109
 
 
110
  -enable-* | --enable-*)
 
111
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
112
    # Reject names that are not valid shell variable names.
 
113
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
114
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
115
    fi
 
116
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
117
    case "$ac_option" in
 
118
      *=*) ;;
 
119
      *) ac_optarg=yes ;;
 
120
    esac
 
121
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
122
 
 
123
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
124
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
125
  | --exec | --exe | --ex)
 
126
    ac_prev=exec_prefix ;;
 
127
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
128
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
129
  | --exec=* | --exe=* | --ex=*)
 
130
    exec_prefix="$ac_optarg" ;;
 
131
 
 
132
  -gas | --gas | --ga | --g)
 
133
    # Obsolete; use --with-gas.
 
134
    with_gas=yes ;;
 
135
 
 
136
  -help | --help | --hel | --he)
 
137
    # Omit some internal or obsolete options to make the list less imposing.
 
138
    # This message is too long to be a string in the A/UX 3.1 sh.
 
139
    cat << EOF
 
140
Usage: configure [options] [host]
 
141
Options: [defaults in brackets after descriptions]
 
142
Configuration:
 
143
  --cache-file=FILE       cache test results in FILE
 
144
  --help                  print this message
 
145
  --no-create             do not create output files
 
146
  --quiet, --silent       do not print \`checking...' messages
 
147
  --version               print the version of autoconf that created configure
 
148
Directory and file names:
 
149
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
150
                          [$ac_default_prefix]
 
151
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
152
                          [same as prefix]
 
153
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
 
154
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
 
155
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
 
156
  --datadir=DIR           read-only architecture-independent data in DIR
 
157
                          [PREFIX/share]
 
158
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
 
159
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
 
160
                          [PREFIX/com]
 
161
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
 
162
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
 
163
  --includedir=DIR        C header files in DIR [PREFIX/include]
 
164
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
 
165
  --infodir=DIR           info documentation in DIR [PREFIX/info]
 
166
  --mandir=DIR            man documentation in DIR [PREFIX/man]
 
167
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
 
168
  --program-prefix=PREFIX prepend PREFIX to installed program names
 
169
  --program-suffix=SUFFIX append SUFFIX to installed program names
 
170
  --program-transform-name=PROGRAM
 
171
                          run sed PROGRAM on installed program names
 
172
EOF
 
173
    cat << EOF
 
174
Host type:
 
175
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
 
176
  --host=HOST             configure for HOST [guessed]
 
177
  --target=TARGET         configure for TARGET [TARGET=HOST]
 
178
Features and packages:
 
179
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
180
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
181
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
182
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
183
  --x-includes=DIR        X include files are in DIR
 
184
  --x-libraries=DIR       X library files are in DIR
 
185
EOF
 
186
    if test -n "$ac_help"; then
 
187
      echo "--enable and --with options recognized:$ac_help"
 
188
    fi
 
189
    exit 0 ;;
 
190
 
 
191
  -host | --host | --hos | --ho)
 
192
    ac_prev=host ;;
 
193
  -host=* | --host=* | --hos=* | --ho=*)
 
194
    host="$ac_optarg" ;;
 
195
 
 
196
  -includedir | --includedir | --includedi | --included | --include \
 
197
  | --includ | --inclu | --incl | --inc)
 
198
    ac_prev=includedir ;;
 
199
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
200
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
201
    includedir="$ac_optarg" ;;
 
202
 
 
203
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
204
    ac_prev=infodir ;;
 
205
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
206
    infodir="$ac_optarg" ;;
 
207
 
 
208
  -libdir | --libdir | --libdi | --libd)
 
209
    ac_prev=libdir ;;
 
210
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
211
    libdir="$ac_optarg" ;;
 
212
 
 
213
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
214
  | --libexe | --libex | --libe)
 
215
    ac_prev=libexecdir ;;
 
216
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
217
  | --libexe=* | --libex=* | --libe=*)
 
218
    libexecdir="$ac_optarg" ;;
 
219
 
 
220
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
221
  | --localstate | --localstat | --localsta | --localst \
 
222
  | --locals | --local | --loca | --loc | --lo)
 
223
    ac_prev=localstatedir ;;
 
224
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
225
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
226
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
227
    localstatedir="$ac_optarg" ;;
 
228
 
 
229
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
230
    ac_prev=mandir ;;
 
231
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
232
    mandir="$ac_optarg" ;;
 
233
 
 
234
  -nfp | --nfp | --nf)
 
235
    # Obsolete; use --without-fp.
 
236
    with_fp=no ;;
 
237
 
 
238
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
239
  | --no-cr | --no-c)
 
240
    no_create=yes ;;
 
241
 
 
242
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
243
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
244
    no_recursion=yes ;;
 
245
 
 
246
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
247
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
248
  | --oldin | --oldi | --old | --ol | --o)
 
249
    ac_prev=oldincludedir ;;
 
250
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
251
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
252
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
253
    oldincludedir="$ac_optarg" ;;
 
254
 
 
255
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
256
    ac_prev=prefix ;;
 
257
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
258
    prefix="$ac_optarg" ;;
 
259
 
 
260
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
261
  | --program-pre | --program-pr | --program-p)
 
262
    ac_prev=program_prefix ;;
 
263
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
264
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
265
    program_prefix="$ac_optarg" ;;
 
266
 
 
267
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
268
  | --program-suf | --program-su | --program-s)
 
269
    ac_prev=program_suffix ;;
 
270
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
271
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
272
    program_suffix="$ac_optarg" ;;
 
273
 
 
274
  -program-transform-name | --program-transform-name \
 
275
  | --program-transform-nam | --program-transform-na \
 
276
  | --program-transform-n | --program-transform- \
 
277
  | --program-transform | --program-transfor \
 
278
  | --program-transfo | --program-transf \
 
279
  | --program-trans | --program-tran \
 
280
  | --progr-tra | --program-tr | --program-t)
 
281
    ac_prev=program_transform_name ;;
 
282
  -program-transform-name=* | --program-transform-name=* \
 
283
  | --program-transform-nam=* | --program-transform-na=* \
 
284
  | --program-transform-n=* | --program-transform-=* \
 
285
  | --program-transform=* | --program-transfor=* \
 
286
  | --program-transfo=* | --program-transf=* \
 
287
  | --program-trans=* | --program-tran=* \
 
288
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
289
    program_transform_name="$ac_optarg" ;;
 
290
 
 
291
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
292
  | -silent | --silent | --silen | --sile | --sil)
 
293
    silent=yes ;;
 
294
 
 
295
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
296
    ac_prev=sbindir ;;
 
297
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
298
  | --sbi=* | --sb=*)
 
299
    sbindir="$ac_optarg" ;;
 
300
 
 
301
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
302
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
303
  | --sharedst | --shareds | --shared | --share | --shar \
 
304
  | --sha | --sh)
 
305
    ac_prev=sharedstatedir ;;
 
306
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
307
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
308
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
309
  | --sha=* | --sh=*)
 
310
    sharedstatedir="$ac_optarg" ;;
 
311
 
 
312
  -site | --site | --sit)
 
313
    ac_prev=site ;;
 
314
  -site=* | --site=* | --sit=*)
 
315
    site="$ac_optarg" ;;
 
316
 
 
317
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
318
    ac_prev=srcdir ;;
 
319
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
320
    srcdir="$ac_optarg" ;;
 
321
 
 
322
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
323
  | --syscon | --sysco | --sysc | --sys | --sy)
 
324
    ac_prev=sysconfdir ;;
 
325
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
326
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
327
    sysconfdir="$ac_optarg" ;;
 
328
 
 
329
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
330
    ac_prev=target ;;
 
331
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
332
    target="$ac_optarg" ;;
 
333
 
 
334
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
335
    verbose=yes ;;
 
336
 
 
337
  -version | --version | --versio | --versi | --vers)
 
338
    echo "configure generated by autoconf version 2.13"
 
339
    exit 0 ;;
 
340
 
 
341
  -with-* | --with-*)
 
342
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
343
    # Reject names that are not valid shell variable names.
 
344
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
345
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
346
    fi
 
347
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
348
    case "$ac_option" in
 
349
      *=*) ;;
 
350
      *) ac_optarg=yes ;;
 
351
    esac
 
352
    eval "with_${ac_package}='$ac_optarg'" ;;
 
353
 
 
354
  -without-* | --without-*)
 
355
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
356
    # Reject names that are not valid shell variable names.
 
357
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
358
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
359
    fi
 
360
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
361
    eval "with_${ac_package}=no" ;;
 
362
 
 
363
  --x)
 
364
    # Obsolete; use --with-x.
 
365
    with_x=yes ;;
 
366
 
 
367
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
368
  | --x-incl | --x-inc | --x-in | --x-i)
 
369
    ac_prev=x_includes ;;
 
370
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
371
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
372
    x_includes="$ac_optarg" ;;
 
373
 
 
374
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
375
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
376
    ac_prev=x_libraries ;;
 
377
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
378
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
379
    x_libraries="$ac_optarg" ;;
 
380
 
 
381
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
382
    ;;
 
383
 
 
384
  *)
 
385
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
 
386
      echo "configure: warning: $ac_option: invalid host type" 1>&2
 
387
    fi
 
388
    if test "x$nonopt" != xNONE; then
 
389
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
 
390
    fi
 
391
    nonopt="$ac_option"
 
392
    ;;
 
393
 
 
394
  esac
 
395
done
 
396
 
 
397
if test -n "$ac_prev"; then
 
398
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
 
399
fi
 
400
 
 
401
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
402
 
 
403
# File descriptor usage:
 
404
# 0 standard input
 
405
# 1 file creation
 
406
# 2 errors and warnings
 
407
# 3 some systems may open it to /dev/tty
 
408
# 4 used on the Kubota Titan
 
409
# 6 checking for... messages and results
 
410
# 5 compiler messages saved in config.log
 
411
if test "$silent" = yes; then
 
412
  exec 6>/dev/null
 
413
else
 
414
  exec 6>&1
 
415
fi
 
416
exec 5>./config.log
 
417
 
 
418
echo "\
 
419
This file contains any messages produced by compilers while
 
420
running configure, to aid debugging if configure makes a mistake.
 
421
" 1>&5
 
422
 
 
423
# Strip out --no-create and --no-recursion so they do not pile up.
 
424
# Also quote any args containing shell metacharacters.
 
425
ac_configure_args=
 
426
for ac_arg
 
427
do
 
428
  case "$ac_arg" in
 
429
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
430
  | --no-cr | --no-c) ;;
 
431
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
432
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
433
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
 
434
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
435
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
 
436
  esac
 
437
done
 
438
 
 
439
# NLS nuisances.
 
440
# Only set these to C if already set.  These must not be set unconditionally
 
441
# because not all systems understand e.g. LANG=C (notably SCO).
 
442
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
 
443
# Non-C LC_CTYPE values break the ctype check.
 
444
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
 
445
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
 
446
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
 
447
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 
448
 
 
449
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
450
rm -rf conftest* confdefs.h
 
451
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
452
echo > confdefs.h
 
453
 
 
454
# A filename unique to this package, relative to the directory that
 
455
# configure is in, which we can look for to find out if srcdir is correct.
 
456
ac_unique_file=../../lib/freetype.h
 
457
 
 
458
# Find the source files, if location was not specified.
 
459
if test -z "$srcdir"; then
 
460
  ac_srcdir_defaulted=yes
 
461
  # Try the directory containing this script, then its parent.
 
462
  ac_prog=$0
 
463
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 
464
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
465
  srcdir=$ac_confdir
 
466
  if test ! -r $srcdir/$ac_unique_file; then
 
467
    srcdir=..
 
468
  fi
 
469
else
 
470
  ac_srcdir_defaulted=no
 
471
fi
 
472
if test ! -r $srcdir/$ac_unique_file; then
 
473
  if test "$ac_srcdir_defaulted" = yes; then
 
474
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
475
  else
 
476
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
477
  fi
 
478
fi
 
479
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
 
480
 
 
481
# Prefer explicitly selected file to automatically selected ones.
 
482
if test -z "$CONFIG_SITE"; then
 
483
  if test "x$prefix" != xNONE; then
 
484
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
485
  else
 
486
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
487
  fi
 
488
fi
 
489
for ac_site_file in $CONFIG_SITE; do
 
490
  if test -r "$ac_site_file"; then
 
491
    echo "loading site script $ac_site_file"
 
492
    . "$ac_site_file"
 
493
  fi
 
494
done
 
495
 
 
496
if test -r "$cache_file"; then
 
497
  echo "loading cache $cache_file"
 
498
  . $cache_file
 
499
else
 
500
  echo "creating cache $cache_file"
 
501
  > $cache_file
 
502
fi
 
503
 
 
504
ac_ext=c
 
505
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
506
ac_cpp='$CPP $CPPFLAGS'
 
507
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
508
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
509
cross_compiling=$ac_cv_prog_cc_cross
 
510
 
 
511
ac_exeext=
 
512
ac_objext=o
 
513
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
 
514
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
 
515
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
 
516
    ac_n= ac_c='
 
517
' ac_t='        '
 
518
  else
 
519
    ac_n=-n ac_c= ac_t=
 
520
  fi
 
521
else
 
522
  ac_n= ac_c='\c' ac_t=
 
523
fi
 
524
 
 
525
 
 
526
 
 
527
ac_aux_dir=
 
528
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
529
  if test -f $ac_dir/install-sh; then
 
530
    ac_aux_dir=$ac_dir
 
531
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
532
    break
 
533
  elif test -f $ac_dir/install.sh; then
 
534
    ac_aux_dir=$ac_dir
 
535
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
536
    break
 
537
  fi
 
538
done
 
539
if test -z "$ac_aux_dir"; then
 
540
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
 
541
fi
 
542
ac_config_guess=$ac_aux_dir/config.guess
 
543
ac_config_sub=$ac_aux_dir/config.sub
 
544
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
545
 
 
546
 
 
547
# Do some error checking and defaulting for the host and target type.
 
548
# The inputs are:
 
549
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
 
550
#
 
551
# The rules are:
 
552
# 1. You are not allowed to specify --host, --target, and nonopt at the
 
553
#    same time.
 
554
# 2. Host defaults to nonopt.
 
555
# 3. If nonopt is not specified, then host defaults to the current host,
 
556
#    as determined by config.guess.
 
557
# 4. Target and build default to nonopt.
 
558
# 5. If nonopt is not specified, then target and build default to host.
 
559
 
 
560
# The aliases save the names the user supplied, while $host etc.
 
561
# will get canonicalized.
 
562
case $host---$target---$nonopt in
 
563
NONE---*---* | *---NONE---* | *---*---NONE) ;;
 
564
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
 
565
esac
 
566
 
 
567
 
 
568
# Make sure we can run config.sub.
 
569
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
 
570
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
 
571
fi
 
572
 
 
573
echo $ac_n "checking host system type""... $ac_c" 1>&6
 
574
echo "configure:575: checking host system type" >&5
 
575
 
 
576
host_alias=$host
 
577
case "$host_alias" in
 
578
NONE)
 
579
  case $nonopt in
 
580
  NONE)
 
581
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
 
582
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
 
583
    fi ;;
 
584
  *) host_alias=$nonopt ;;
 
585
  esac ;;
 
586
esac
 
587
 
 
588
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
 
589
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
590
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
591
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
592
echo "$ac_t""$host" 1>&6
 
593
 
 
594
echo $ac_n "checking target system type""... $ac_c" 1>&6
 
595
echo "configure:596: checking target system type" >&5
 
596
 
 
597
target_alias=$target
 
598
case "$target_alias" in
 
599
NONE)
 
600
  case $nonopt in
 
601
  NONE) target_alias=$host_alias ;;
 
602
  *) target_alias=$nonopt ;;
 
603
  esac ;;
 
604
esac
 
605
 
 
606
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
 
607
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
608
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
609
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
610
echo "$ac_t""$target" 1>&6
 
611
 
 
612
echo $ac_n "checking build system type""... $ac_c" 1>&6
 
613
echo "configure:614: checking build system type" >&5
 
614
 
 
615
build_alias=$build
 
616
case "$build_alias" in
 
617
NONE)
 
618
  case $nonopt in
 
619
  NONE) build_alias=$host_alias ;;
 
620
  *) build_alias=$nonopt ;;
 
621
  esac ;;
 
622
esac
 
623
 
 
624
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
 
625
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
626
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
627
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
628
echo "$ac_t""$build" 1>&6
 
629
 
 
630
test "$host_alias" != "$target_alias" &&
 
631
  test "$program_prefix$program_suffix$program_transform_name" = \
 
632
    NONENONEs,x,x, &&
 
633
  program_prefix=${target_alias}-
 
634
 
 
635
 
 
636
# Extract the first word of "gcc", so it can be a program name with args.
 
637
set dummy gcc; ac_word=$2
 
638
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
639
echo "configure:640: checking for $ac_word" >&5
 
640
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
641
  echo $ac_n "(cached) $ac_c" 1>&6
 
642
else
 
643
  if test -n "$CC"; then
 
644
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
645
else
 
646
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
647
  ac_dummy="$PATH"
 
648
  for ac_dir in $ac_dummy; do
 
649
    test -z "$ac_dir" && ac_dir=.
 
650
    if test -f $ac_dir/$ac_word; then
 
651
      ac_cv_prog_CC="gcc"
 
652
      break
 
653
    fi
 
654
  done
 
655
  IFS="$ac_save_ifs"
 
656
fi
 
657
fi
 
658
CC="$ac_cv_prog_CC"
 
659
if test -n "$CC"; then
 
660
  echo "$ac_t""$CC" 1>&6
 
661
else
 
662
  echo "$ac_t""no" 1>&6
 
663
fi
 
664
 
 
665
if test -z "$CC"; then
 
666
  # Extract the first word of "cc", so it can be a program name with args.
 
667
set dummy cc; ac_word=$2
 
668
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
669
echo "configure:670: checking for $ac_word" >&5
 
670
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
671
  echo $ac_n "(cached) $ac_c" 1>&6
 
672
else
 
673
  if test -n "$CC"; then
 
674
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
675
else
 
676
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
677
  ac_prog_rejected=no
 
678
  ac_dummy="$PATH"
 
679
  for ac_dir in $ac_dummy; do
 
680
    test -z "$ac_dir" && ac_dir=.
 
681
    if test -f $ac_dir/$ac_word; then
 
682
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
683
        ac_prog_rejected=yes
 
684
        continue
 
685
      fi
 
686
      ac_cv_prog_CC="cc"
 
687
      break
 
688
    fi
 
689
  done
 
690
  IFS="$ac_save_ifs"
 
691
if test $ac_prog_rejected = yes; then
 
692
  # We found a bogon in the path, so make sure we never use it.
 
693
  set dummy $ac_cv_prog_CC
 
694
  shift
 
695
  if test $# -gt 0; then
 
696
    # We chose a different compiler from the bogus one.
 
697
    # However, it has the same basename, so the bogon will be chosen
 
698
    # first if we set CC to just the basename; use the full file name.
 
699
    shift
 
700
    set dummy "$ac_dir/$ac_word" "$@"
 
701
    shift
 
702
    ac_cv_prog_CC="$@"
 
703
  fi
 
704
fi
 
705
fi
 
706
fi
 
707
CC="$ac_cv_prog_CC"
 
708
if test -n "$CC"; then
 
709
  echo "$ac_t""$CC" 1>&6
 
710
else
 
711
  echo "$ac_t""no" 1>&6
 
712
fi
 
713
 
 
714
  if test -z "$CC"; then
 
715
    case "`uname -s`" in
 
716
    *win32* | *WIN32*)
 
717
      # Extract the first word of "cl", so it can be a program name with args.
 
718
set dummy cl; ac_word=$2
 
719
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
720
echo "configure:721: checking for $ac_word" >&5
 
721
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
722
  echo $ac_n "(cached) $ac_c" 1>&6
 
723
else
 
724
  if test -n "$CC"; then
 
725
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
726
else
 
727
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
728
  ac_dummy="$PATH"
 
729
  for ac_dir in $ac_dummy; do
 
730
    test -z "$ac_dir" && ac_dir=.
 
731
    if test -f $ac_dir/$ac_word; then
 
732
      ac_cv_prog_CC="cl"
 
733
      break
 
734
    fi
 
735
  done
 
736
  IFS="$ac_save_ifs"
 
737
fi
 
738
fi
 
739
CC="$ac_cv_prog_CC"
 
740
if test -n "$CC"; then
 
741
  echo "$ac_t""$CC" 1>&6
 
742
else
 
743
  echo "$ac_t""no" 1>&6
 
744
fi
 
745
 ;;
 
746
    esac
 
747
  fi
 
748
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 
749
fi
 
750
 
 
751
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
752
echo "configure:753: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
753
 
 
754
ac_ext=c
 
755
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
756
ac_cpp='$CPP $CPPFLAGS'
 
757
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
758
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
759
cross_compiling=$ac_cv_prog_cc_cross
 
760
 
 
761
cat > conftest.$ac_ext << EOF
 
762
 
 
763
#line 764 "configure"
 
764
#include "confdefs.h"
 
765
 
 
766
main(){return(0);}
 
767
EOF
 
768
if { (eval echo configure:769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
769
  ac_cv_prog_cc_works=yes
 
770
  # If we can't run a trivial program, we are probably using a cross compiler.
 
771
  if (./conftest; exit) 2>/dev/null; then
 
772
    ac_cv_prog_cc_cross=no
 
773
  else
 
774
    ac_cv_prog_cc_cross=yes
 
775
  fi
 
776
else
 
777
  echo "configure: failed program was:" >&5
 
778
  cat conftest.$ac_ext >&5
 
779
  ac_cv_prog_cc_works=no
 
780
fi
 
781
rm -fr conftest*
 
782
ac_ext=c
 
783
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
784
ac_cpp='$CPP $CPPFLAGS'
 
785
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
786
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
787
cross_compiling=$ac_cv_prog_cc_cross
 
788
 
 
789
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 
790
if test $ac_cv_prog_cc_works = no; then
 
791
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 
792
fi
 
793
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
794
echo "configure:795: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
795
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 
796
cross_compiling=$ac_cv_prog_cc_cross
 
797
 
 
798
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 
799
echo "configure:800: checking whether we are using GNU C" >&5
 
800
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 
801
  echo $ac_n "(cached) $ac_c" 1>&6
 
802
else
 
803
  cat > conftest.c <<EOF
 
804
#ifdef __GNUC__
 
805
  yes;
 
806
#endif
 
807
EOF
 
808
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
809
  ac_cv_prog_gcc=yes
 
810
else
 
811
  ac_cv_prog_gcc=no
 
812
fi
 
813
fi
 
814
 
 
815
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 
816
 
 
817
if test $ac_cv_prog_gcc = yes; then
 
818
  GCC=yes
 
819
else
 
820
  GCC=
 
821
fi
 
822
 
 
823
ac_test_CFLAGS="${CFLAGS+set}"
 
824
ac_save_CFLAGS="$CFLAGS"
 
825
CFLAGS=
 
826
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 
827
echo "configure:828: checking whether ${CC-cc} accepts -g" >&5
 
828
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 
829
  echo $ac_n "(cached) $ac_c" 1>&6
 
830
else
 
831
  echo 'void f(){}' > conftest.c
 
832
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
833
  ac_cv_prog_cc_g=yes
 
834
else
 
835
  ac_cv_prog_cc_g=no
 
836
fi
 
837
rm -f conftest*
 
838
 
 
839
fi
 
840
 
 
841
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
842
if test "$ac_test_CFLAGS" = set; then
 
843
  CFLAGS="$ac_save_CFLAGS"
 
844
elif test $ac_cv_prog_cc_g = yes; then
 
845
  if test "$GCC" = yes; then
 
846
    CFLAGS="-g -O2"
 
847
  else
 
848
    CFLAGS="-g"
 
849
  fi
 
850
else
 
851
  if test "$GCC" = yes; then
 
852
    CFLAGS="-O2"
 
853
  else
 
854
    CFLAGS=
 
855
  fi
 
856
fi
 
857
 
 
858
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 
859
echo "configure:860: checking how to run the C preprocessor" >&5
 
860
# On Suns, sometimes $CPP names a directory.
 
861
if test -n "$CPP" && test -d "$CPP"; then
 
862
  CPP=
 
863
fi
 
864
if test -z "$CPP"; then
 
865
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 
866
  echo $ac_n "(cached) $ac_c" 1>&6
 
867
else
 
868
    # This must be in double quotes, not single quotes, because CPP may get
 
869
  # substituted into the Makefile and "${CC-cc}" will confuse make.
 
870
  CPP="${CC-cc} -E"
 
871
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
872
  # not just through cpp.
 
873
  cat > conftest.$ac_ext <<EOF
 
874
#line 875 "configure"
 
875
#include "confdefs.h"
 
876
#include <assert.h>
 
877
Syntax Error
 
878
EOF
 
879
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
880
{ (eval echo configure:881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
881
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
882
if test -z "$ac_err"; then
 
883
  :
 
884
else
 
885
  echo "$ac_err" >&5
 
886
  echo "configure: failed program was:" >&5
 
887
  cat conftest.$ac_ext >&5
 
888
  rm -rf conftest*
 
889
  CPP="${CC-cc} -E -traditional-cpp"
 
890
  cat > conftest.$ac_ext <<EOF
 
891
#line 892 "configure"
 
892
#include "confdefs.h"
 
893
#include <assert.h>
 
894
Syntax Error
 
895
EOF
 
896
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
897
{ (eval echo configure:898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
898
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
899
if test -z "$ac_err"; then
 
900
  :
 
901
else
 
902
  echo "$ac_err" >&5
 
903
  echo "configure: failed program was:" >&5
 
904
  cat conftest.$ac_ext >&5
 
905
  rm -rf conftest*
 
906
  CPP="${CC-cc} -nologo -E"
 
907
  cat > conftest.$ac_ext <<EOF
 
908
#line 909 "configure"
 
909
#include "confdefs.h"
 
910
#include <assert.h>
 
911
Syntax Error
 
912
EOF
 
913
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
914
{ (eval echo configure:915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
915
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
916
if test -z "$ac_err"; then
 
917
  :
 
918
else
 
919
  echo "$ac_err" >&5
 
920
  echo "configure: failed program was:" >&5
 
921
  cat conftest.$ac_ext >&5
 
922
  rm -rf conftest*
 
923
  CPP=/lib/cpp
 
924
fi
 
925
rm -f conftest*
 
926
fi
 
927
rm -f conftest*
 
928
fi
 
929
rm -f conftest*
 
930
  ac_cv_prog_CPP="$CPP"
 
931
fi
 
932
  CPP="$ac_cv_prog_CPP"
 
933
else
 
934
  ac_cv_prog_CPP="$CPP"
 
935
fi
 
936
echo "$ac_t""$CPP" 1>&6
 
937
 
 
938
 
 
939
# Check whether --with-kpathsea-dir or --without-kpathsea-dir was given.
 
940
if test "${with_kpathsea_dir+set}" = set; then
 
941
  withval="$with_kpathsea_dir"
 
942
  
 
943
  if test x$withval = xyes; then
 
944
    echo "configure: warning: Usage is: --with-kpathsea-dir=basedir" 1>&2
 
945
  else
 
946
    if test x$withval = xno; then
 
947
      echo "configure: warning: Usage is: --with-kpathsea-dir=basedir" 1>&2
 
948
    else
 
949
      kpathsea_dir=$withval
 
950
    fi
 
951
  fi
 
952
 
 
953
fi
 
954
 
 
955
 
 
956
if test -n "$kpathsea_dir"; then
 
957
  LIBS="$LIBS -L$kpathsea_dir/lib"
 
958
  CPPFLAGS="$CPPFLAGS -I$kpathsea_dir/include -I$srcdir"
 
959
 
 
960
    echo $ac_n "checking for kpse_set_program_name in -lkpathsea""... $ac_c" 1>&6
 
961
echo "configure:962: checking for kpse_set_program_name in -lkpathsea" >&5
 
962
ac_lib_var=`echo kpathsea'_'kpse_set_program_name | sed 'y%./+-%__p_%'`
 
963
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
964
  echo $ac_n "(cached) $ac_c" 1>&6
 
965
else
 
966
  ac_save_LIBS="$LIBS"
 
967
LIBS="-lkpathsea  $LIBS"
 
968
cat > conftest.$ac_ext <<EOF
 
969
#line 970 "configure"
 
970
#include "confdefs.h"
 
971
/* Override any gcc2 internal prototype to avoid an error.  */
 
972
/* We use char because int might match the return type of a gcc2
 
973
    builtin and then its argument prototype would still apply.  */
 
974
char kpse_set_program_name();
 
975
 
 
976
int main() {
 
977
kpse_set_program_name()
 
978
; return 0; }
 
979
EOF
 
980
if { (eval echo configure:981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
981
  rm -rf conftest*
 
982
  eval "ac_cv_lib_$ac_lib_var=yes"
 
983
else
 
984
  echo "configure: failed program was:" >&5
 
985
  cat conftest.$ac_ext >&5
 
986
  rm -rf conftest*
 
987
  eval "ac_cv_lib_$ac_lib_var=no"
 
988
fi
 
989
rm -f conftest*
 
990
LIBS="$ac_save_LIBS"
 
991
 
 
992
fi
 
993
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
994
  echo "$ac_t""yes" 1>&6
 
995
  
 
996
else
 
997
  echo "$ac_t""no" 1>&6
 
998
cat >> confdefs.h <<\EOF
 
999
#define OLD_KPATHSEA 1
 
1000
EOF
 
1001
 
 
1002
fi
 
1003
 
 
1004
 
 
1005
  echo $ac_n "checking for kpse_init_prog in -lkpathsea""... $ac_c" 1>&6
 
1006
echo "configure:1007: checking for kpse_init_prog in -lkpathsea" >&5
 
1007
ac_lib_var=`echo kpathsea'_'kpse_init_prog | sed 'y%./+-%__p_%'`
 
1008
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1009
  echo $ac_n "(cached) $ac_c" 1>&6
 
1010
else
 
1011
  ac_save_LIBS="$LIBS"
 
1012
LIBS="-lkpathsea  $LIBS"
 
1013
cat > conftest.$ac_ext <<EOF
 
1014
#line 1015 "configure"
 
1015
#include "confdefs.h"
 
1016
/* Override any gcc2 internal prototype to avoid an error.  */
 
1017
/* We use char because int might match the return type of a gcc2
 
1018
    builtin and then its argument prototype would still apply.  */
 
1019
char kpse_init_prog();
 
1020
 
 
1021
int main() {
 
1022
kpse_init_prog()
 
1023
; return 0; }
 
1024
EOF
 
1025
if { (eval echo configure:1026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1026
  rm -rf conftest*
 
1027
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1028
else
 
1029
  echo "configure: failed program was:" >&5
 
1030
  cat conftest.$ac_ext >&5
 
1031
  rm -rf conftest*
 
1032
  eval "ac_cv_lib_$ac_lib_var=no"
 
1033
fi
 
1034
rm -f conftest*
 
1035
LIBS="$ac_save_LIBS"
 
1036
 
 
1037
fi
 
1038
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1039
  echo "$ac_t""yes" 1>&6
 
1040
    ac_tr_lib=HAVE_LIB`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
1041
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
1042
  cat >> confdefs.h <<EOF
 
1043
#define $ac_tr_lib 1
 
1044
EOF
 
1045
 
 
1046
  LIBS="-lkpathsea $LIBS"
 
1047
 
 
1048
else
 
1049
  echo "$ac_t""no" 1>&6
 
1050
 
 
1051
               { echo "configure: error: Can't find kpathsea library! Use --with-kpathsea-dir option." 1>&2; exit 1; }
 
1052
fi
 
1053
 
 
1054
 
 
1055
    ac_safe=`echo "kpathsea/kpathsea.h" | sed 'y%./+-%__p_%'`
 
1056
echo $ac_n "checking for kpathsea/kpathsea.h""... $ac_c" 1>&6
 
1057
echo "configure:1058: checking for kpathsea/kpathsea.h" >&5
 
1058
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
1059
  echo $ac_n "(cached) $ac_c" 1>&6
 
1060
else
 
1061
  cat > conftest.$ac_ext <<EOF
 
1062
#line 1063 "configure"
 
1063
#include "confdefs.h"
 
1064
#include <kpathsea/kpathsea.h>
 
1065
EOF
 
1066
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1067
{ (eval echo configure:1068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1068
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1069
if test -z "$ac_err"; then
 
1070
  rm -rf conftest*
 
1071
  eval "ac_cv_header_$ac_safe=yes"
 
1072
else
 
1073
  echo "$ac_err" >&5
 
1074
  echo "configure: failed program was:" >&5
 
1075
  cat conftest.$ac_ext >&5
 
1076
  rm -rf conftest*
 
1077
  eval "ac_cv_header_$ac_safe=no"
 
1078
fi
 
1079
rm -f conftest*
 
1080
fi
 
1081
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
1082
  echo "$ac_t""yes" 1>&6
 
1083
  
 
1084
else
 
1085
  echo "$ac_t""no" 1>&6
 
1086
cat >> confdefs.h <<\EOF
 
1087
#define VERY_OLD_KPATHSEA 1
 
1088
EOF
 
1089
 
 
1090
fi
 
1091
 
 
1092
 
 
1093
  ac_safe=`echo "kpathsea/c-auto.h" | sed 'y%./+-%__p_%'`
 
1094
echo $ac_n "checking for kpathsea/c-auto.h""... $ac_c" 1>&6
 
1095
echo "configure:1096: checking for kpathsea/c-auto.h" >&5
 
1096
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
1097
  echo $ac_n "(cached) $ac_c" 1>&6
 
1098
else
 
1099
  cat > conftest.$ac_ext <<EOF
 
1100
#line 1101 "configure"
 
1101
#include "confdefs.h"
 
1102
#include <kpathsea/c-auto.h>
 
1103
EOF
 
1104
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1105
{ (eval echo configure:1106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1106
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1107
if test -z "$ac_err"; then
 
1108
  rm -rf conftest*
 
1109
  eval "ac_cv_header_$ac_safe=yes"
 
1110
else
 
1111
  echo "$ac_err" >&5
 
1112
  echo "configure: failed program was:" >&5
 
1113
  cat conftest.$ac_ext >&5
 
1114
  rm -rf conftest*
 
1115
  eval "ac_cv_header_$ac_safe=no"
 
1116
fi
 
1117
rm -f conftest*
 
1118
fi
 
1119
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
1120
  echo "$ac_t""yes" 1>&6
 
1121
  :
 
1122
else
 
1123
  echo "$ac_t""no" 1>&6
 
1124
 
 
1125
                  { echo "configure: error: Can't find kpathsea include files! Use --with-kpathsea-dir option." 1>&2; exit 1; }
 
1126
fi
 
1127
 
 
1128
else
 
1129
  CPPFLAGS="$CPPFLAGS -I$srcdir"
 
1130
fi
 
1131
 
 
1132
echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6
 
1133
echo "configure:1134: checking for floor in -lm" >&5
 
1134
ac_lib_var=`echo m'_'floor | sed 'y%./+-%__p_%'`
 
1135
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1136
  echo $ac_n "(cached) $ac_c" 1>&6
 
1137
else
 
1138
  ac_save_LIBS="$LIBS"
 
1139
LIBS="-lm  $LIBS"
 
1140
cat > conftest.$ac_ext <<EOF
 
1141
#line 1142 "configure"
 
1142
#include "confdefs.h"
 
1143
/* Override any gcc2 internal prototype to avoid an error.  */
 
1144
/* We use char because int might match the return type of a gcc2
 
1145
    builtin and then its argument prototype would still apply.  */
 
1146
char floor();
 
1147
 
 
1148
int main() {
 
1149
floor()
 
1150
; return 0; }
 
1151
EOF
 
1152
if { (eval echo configure:1153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1153
  rm -rf conftest*
 
1154
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1155
else
 
1156
  echo "configure: failed program was:" >&5
 
1157
  cat conftest.$ac_ext >&5
 
1158
  rm -rf conftest*
 
1159
  eval "ac_cv_lib_$ac_lib_var=no"
 
1160
fi
 
1161
rm -f conftest*
 
1162
LIBS="$ac_save_LIBS"
 
1163
 
 
1164
fi
 
1165
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1166
  echo "$ac_t""yes" 1>&6
 
1167
    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
1168
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
1169
  cat >> confdefs.h <<EOF
 
1170
#define $ac_tr_lib 1
 
1171
EOF
 
1172
 
 
1173
  LIBS="-lm $LIBS"
 
1174
 
 
1175
else
 
1176
  echo "$ac_t""no" 1>&6
 
1177
fi
 
1178
 
 
1179
echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
 
1180
echo "configure:1181: checking for gettext in -lintl" >&5
 
1181
ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
 
1182
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1183
  echo $ac_n "(cached) $ac_c" 1>&6
 
1184
else
 
1185
  ac_save_LIBS="$LIBS"
 
1186
LIBS="-lintl  $LIBS"
 
1187
cat > conftest.$ac_ext <<EOF
 
1188
#line 1189 "configure"
 
1189
#include "confdefs.h"
 
1190
/* Override any gcc2 internal prototype to avoid an error.  */
 
1191
/* We use char because int might match the return type of a gcc2
 
1192
    builtin and then its argument prototype would still apply.  */
 
1193
char gettext();
 
1194
 
 
1195
int main() {
 
1196
gettext()
 
1197
; return 0; }
 
1198
EOF
 
1199
if { (eval echo configure:1200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1200
  rm -rf conftest*
 
1201
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1202
else
 
1203
  echo "configure: failed program was:" >&5
 
1204
  cat conftest.$ac_ext >&5
 
1205
  rm -rf conftest*
 
1206
  eval "ac_cv_lib_$ac_lib_var=no"
 
1207
fi
 
1208
rm -f conftest*
 
1209
LIBS="$ac_save_LIBS"
 
1210
 
 
1211
fi
 
1212
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1213
  echo "$ac_t""yes" 1>&6
 
1214
    ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
1215
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
1216
  cat >> confdefs.h <<EOF
 
1217
#define $ac_tr_lib 1
 
1218
EOF
 
1219
 
 
1220
  LIBS="-lintl $LIBS"
 
1221
 
 
1222
else
 
1223
  echo "$ac_t""no" 1>&6
 
1224
fi
 
1225
 
 
1226
 
 
1227
OLDLIBS=$LIBS
 
1228
LIBS="$LIBS -L../../lib/.libs"
 
1229
CPPFLAGS="-I$srcdir/../../lib $CPPFLAGS"
 
1230
echo $ac_n "checking for TT_Init_FreeType in -lttf""... $ac_c" 1>&6
 
1231
echo "configure:1232: checking for TT_Init_FreeType in -lttf" >&5
 
1232
ac_lib_var=`echo ttf'_'TT_Init_FreeType | sed 'y%./+-%__p_%'`
 
1233
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1234
  echo $ac_n "(cached) $ac_c" 1>&6
 
1235
else
 
1236
  ac_save_LIBS="$LIBS"
 
1237
LIBS="-lttf  $LIBS"
 
1238
cat > conftest.$ac_ext <<EOF
 
1239
#line 1240 "configure"
 
1240
#include "confdefs.h"
 
1241
/* Override any gcc2 internal prototype to avoid an error.  */
 
1242
/* We use char because int might match the return type of a gcc2
 
1243
    builtin and then its argument prototype would still apply.  */
 
1244
char TT_Init_FreeType();
 
1245
 
 
1246
int main() {
 
1247
TT_Init_FreeType()
 
1248
; return 0; }
 
1249
EOF
 
1250
if { (eval echo configure:1251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1251
  rm -rf conftest*
 
1252
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1253
else
 
1254
  echo "configure: failed program was:" >&5
 
1255
  cat conftest.$ac_ext >&5
 
1256
  rm -rf conftest*
 
1257
  eval "ac_cv_lib_$ac_lib_var=no"
 
1258
fi
 
1259
rm -f conftest*
 
1260
LIBS="$ac_save_LIBS"
 
1261
 
 
1262
fi
 
1263
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1264
  echo "$ac_t""yes" 1>&6
 
1265
  LIBS="$LIBS -lttf"
 
1266
else
 
1267
  echo "$ac_t""no" 1>&6
 
1268
 
 
1269
             { echo "configure: error: Can't find ttf library! Compile FreeType first." 1>&2; exit 1; }
 
1270
fi
 
1271
 
 
1272
LIBS=$OLDLIBS
 
1273
 
 
1274
 
 
1275
if test "x$CC" = xgcc; then
 
1276
        XX_CFLAGS="-Wall -pedantic"
 
1277
else
 
1278
        case "$host" in
 
1279
                alpha-dec-osf*)
 
1280
                XX_CFLAGS="-std1 -O2 -g3"
 
1281
                ;;
 
1282
                *)
 
1283
                XX_CFLAGS=
 
1284
                ;;
 
1285
        esac
 
1286
fi
 
1287
 
 
1288
 
 
1289
# Extract the first word of "rm", so it can be a program name with args.
 
1290
set dummy rm; ac_word=$2
 
1291
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1292
echo "configure:1293: checking for $ac_word" >&5
 
1293
if eval "test \"`echo '$''{'ac_cv_prog_RM'+set}'`\" = set"; then
 
1294
  echo $ac_n "(cached) $ac_c" 1>&6
 
1295
else
 
1296
  if test -n "$RM"; then
 
1297
  ac_cv_prog_RM="$RM" # Let the user override the test.
 
1298
else
 
1299
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1300
  ac_dummy="$PATH"
 
1301
  for ac_dir in $ac_dummy; do
 
1302
    test -z "$ac_dir" && ac_dir=.
 
1303
    if test -f $ac_dir/$ac_word; then
 
1304
      ac_cv_prog_RM="rm"
 
1305
      break
 
1306
    fi
 
1307
  done
 
1308
  IFS="$ac_save_ifs"
 
1309
fi
 
1310
fi
 
1311
RM="$ac_cv_prog_RM"
 
1312
if test -n "$RM"; then
 
1313
  echo "$ac_t""$RM" 1>&6
 
1314
else
 
1315
  echo "$ac_t""no" 1>&6
 
1316
fi
 
1317
 
 
1318
# Extract the first word of "rmdir", so it can be a program name with args.
 
1319
set dummy rmdir; ac_word=$2
 
1320
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1321
echo "configure:1322: checking for $ac_word" >&5
 
1322
if eval "test \"`echo '$''{'ac_cv_prog_RMDIR'+set}'`\" = set"; then
 
1323
  echo $ac_n "(cached) $ac_c" 1>&6
 
1324
else
 
1325
  if test -n "$RMDIR"; then
 
1326
  ac_cv_prog_RMDIR="$RMDIR" # Let the user override the test.
 
1327
else
 
1328
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1329
  ac_dummy="$PATH"
 
1330
  for ac_dir in $ac_dummy; do
 
1331
    test -z "$ac_dir" && ac_dir=.
 
1332
    if test -f $ac_dir/$ac_word; then
 
1333
      ac_cv_prog_RMDIR="rmdir"
 
1334
      break
 
1335
    fi
 
1336
  done
 
1337
  IFS="$ac_save_ifs"
 
1338
fi
 
1339
fi
 
1340
RMDIR="$ac_cv_prog_RMDIR"
 
1341
if test -n "$RMDIR"; then
 
1342
  echo "$ac_t""$RMDIR" 1>&6
 
1343
else
 
1344
  echo "$ac_t""no" 1>&6
 
1345
fi
 
1346
 
 
1347
# Find a good install program.  We prefer a C program (faster),
 
1348
# so one script is as good as another.  But avoid the broken or
 
1349
# incompatible versions:
 
1350
# SysV /etc/install, /usr/sbin/install
 
1351
# SunOS /usr/etc/install
 
1352
# IRIX /sbin/install
 
1353
# AIX /bin/install
 
1354
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1355
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1356
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1357
# ./install, which can be erroneously created by make from ./install.sh.
 
1358
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 
1359
echo "configure:1360: checking for a BSD compatible install" >&5
 
1360
if test -z "$INSTALL"; then
 
1361
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
 
1362
  echo $ac_n "(cached) $ac_c" 1>&6
 
1363
else
 
1364
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
 
1365
  for ac_dir in $PATH; do
 
1366
    # Account for people who put trailing slashes in PATH elements.
 
1367
    case "$ac_dir/" in
 
1368
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 
1369
    *)
 
1370
      # OSF1 and SCO ODT 3.0 have their own names for install.
 
1371
      # Don't use installbsd from OSF since it installs stuff as root
 
1372
      # by default.
 
1373
      for ac_prog in ginstall scoinst install; do
 
1374
        if test -f $ac_dir/$ac_prog; then
 
1375
          if test $ac_prog = install &&
 
1376
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
1377
            # AIX install.  It has an incompatible calling convention.
 
1378
            :
 
1379
          else
 
1380
            ac_cv_path_install="$ac_dir/$ac_prog -c"
 
1381
            break 2
 
1382
          fi
 
1383
        fi
 
1384
      done
 
1385
      ;;
 
1386
    esac
 
1387
  done
 
1388
  IFS="$ac_save_IFS"
 
1389
 
 
1390
fi
 
1391
  if test "${ac_cv_path_install+set}" = set; then
 
1392
    INSTALL="$ac_cv_path_install"
 
1393
  else
 
1394
    # As a last resort, use the slow shell script.  We don't cache a
 
1395
    # path for INSTALL within a source directory, because that will
 
1396
    # break other packages using the cache if that directory is
 
1397
    # removed, or if the path is relative.
 
1398
    INSTALL="$ac_install_sh"
 
1399
  fi
 
1400
fi
 
1401
echo "$ac_t""$INSTALL" 1>&6
 
1402
 
 
1403
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1404
# It thinks the first close brace ends the variable substitution.
 
1405
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1406
 
 
1407
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
1408
 
 
1409
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1410
 
 
1411
 
 
1412
if test -z "$kpathsea_dir"; then
 
1413
  echo "configure: warning: 
 
1414
 
 
1415
    The binaries will be compiled without file search library support!
 
1416
    For kpathsea support use the --with-kpathsea-dir option.
 
1417
              " 1>&2
 
1418
fi
 
1419
 
 
1420
trap '' 1 2 15
 
1421
cat > confcache <<\EOF
 
1422
# This file is a shell script that caches the results of configure
 
1423
# tests run on this system so they can be shared between configure
 
1424
# scripts and configure runs.  It is not useful on other systems.
 
1425
# If it contains results you don't want to keep, you may remove or edit it.
 
1426
#
 
1427
# By default, configure uses ./config.cache as the cache file,
 
1428
# creating it if it does not exist already.  You can give configure
 
1429
# the --cache-file=FILE option to use a different cache file; that is
 
1430
# what configure does when it calls configure scripts in
 
1431
# subdirectories, so they share the cache.
 
1432
# Giving --cache-file=/dev/null disables caching, for debugging configure.
 
1433
# config.status only pays attention to the cache file if you give it the
 
1434
# --recheck option to rerun configure.
 
1435
#
 
1436
EOF
 
1437
# The following way of writing the cache mishandles newlines in values,
 
1438
# but we know of no workaround that is simple, portable, and efficient.
 
1439
# So, don't put newlines in cache variables' values.
 
1440
# Ultrix sh set writes to stderr and can't be redirected directly,
 
1441
# and sets the high bit in the cache file unless we assign to the vars.
 
1442
(set) 2>&1 |
 
1443
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
1444
  *ac_space=\ *)
 
1445
    # `set' does not quote correctly, so add quotes (double-quote substitution
 
1446
    # turns \\\\ into \\, and sed turns \\ into \).
 
1447
    sed -n \
 
1448
      -e "s/'/'\\\\''/g" \
 
1449
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 
1450
    ;;
 
1451
  *)
 
1452
    # `set' quotes correctly as required by POSIX, so do not add quotes.
 
1453
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 
1454
    ;;
 
1455
  esac >> confcache
 
1456
if cmp -s $cache_file confcache; then
 
1457
  :
 
1458
else
 
1459
  if test -w $cache_file; then
 
1460
    echo "updating cache $cache_file"
 
1461
    cat confcache > $cache_file
 
1462
  else
 
1463
    echo "not updating unwritable cache $cache_file"
 
1464
  fi
 
1465
fi
 
1466
rm -f confcache
 
1467
 
 
1468
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
1469
 
 
1470
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
1471
# Let make expand exec_prefix.
 
1472
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
1473
 
 
1474
# Any assignment to VPATH causes Sun make to only execute
 
1475
# the first set of double-colon rules, so remove it if not needed.
 
1476
# If there is a colon in the path, we need to keep it.
 
1477
if test "x$srcdir" = x.; then
 
1478
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
1479
fi
 
1480
 
 
1481
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 
1482
 
 
1483
# Transform confdefs.h into DEFS.
 
1484
# Protect against shell expansion while executing Makefile rules.
 
1485
# Protect against Makefile macro expansion.
 
1486
cat > conftest.defs <<\EOF
 
1487
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
 
1488
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
 
1489
s%\[%\\&%g
 
1490
s%\]%\\&%g
 
1491
s%\$%$$%g
 
1492
EOF
 
1493
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
 
1494
rm -f conftest.defs
 
1495
 
 
1496
 
 
1497
# Without the "./", some shells look in PATH for config.status.
 
1498
: ${CONFIG_STATUS=./config.status}
 
1499
 
 
1500
echo creating $CONFIG_STATUS
 
1501
rm -f $CONFIG_STATUS
 
1502
cat > $CONFIG_STATUS <<EOF
 
1503
#! /bin/sh
 
1504
# Generated automatically by configure.
 
1505
# Run this file to recreate the current configuration.
 
1506
# This directory was configured as follows,
 
1507
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
1508
#
 
1509
# $0 $ac_configure_args
 
1510
#
 
1511
# Compiler output produced by configure, useful for debugging
 
1512
# configure, is in ./config.log if it exists.
 
1513
 
 
1514
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 
1515
for ac_option
 
1516
do
 
1517
  case "\$ac_option" in
 
1518
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
1519
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
 
1520
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 
1521
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 
1522
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
 
1523
    exit 0 ;;
 
1524
  -help | --help | --hel | --he | --h)
 
1525
    echo "\$ac_cs_usage"; exit 0 ;;
 
1526
  *) echo "\$ac_cs_usage"; exit 1 ;;
 
1527
  esac
 
1528
done
 
1529
 
 
1530
ac_given_srcdir=$srcdir
 
1531
ac_given_INSTALL="$INSTALL"
 
1532
 
 
1533
trap 'rm -fr `echo "Makefile MakeSub" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 
1534
EOF
 
1535
cat >> $CONFIG_STATUS <<EOF
 
1536
 
 
1537
# Protect against being on the right side of a sed subst in config.status.
 
1538
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 
1539
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
 
1540
$ac_vpsub
 
1541
$extrasub
 
1542
s%@SHELL@%$SHELL%g
 
1543
s%@CFLAGS@%$CFLAGS%g
 
1544
s%@CPPFLAGS@%$CPPFLAGS%g
 
1545
s%@CXXFLAGS@%$CXXFLAGS%g
 
1546
s%@FFLAGS@%$FFLAGS%g
 
1547
s%@DEFS@%$DEFS%g
 
1548
s%@LDFLAGS@%$LDFLAGS%g
 
1549
s%@LIBS@%$LIBS%g
 
1550
s%@exec_prefix@%$exec_prefix%g
 
1551
s%@prefix@%$prefix%g
 
1552
s%@program_transform_name@%$program_transform_name%g
 
1553
s%@bindir@%$bindir%g
 
1554
s%@sbindir@%$sbindir%g
 
1555
s%@libexecdir@%$libexecdir%g
 
1556
s%@datadir@%$datadir%g
 
1557
s%@sysconfdir@%$sysconfdir%g
 
1558
s%@sharedstatedir@%$sharedstatedir%g
 
1559
s%@localstatedir@%$localstatedir%g
 
1560
s%@libdir@%$libdir%g
 
1561
s%@includedir@%$includedir%g
 
1562
s%@oldincludedir@%$oldincludedir%g
 
1563
s%@infodir@%$infodir%g
 
1564
s%@mandir@%$mandir%g
 
1565
s%@host@%$host%g
 
1566
s%@host_alias@%$host_alias%g
 
1567
s%@host_cpu@%$host_cpu%g
 
1568
s%@host_vendor@%$host_vendor%g
 
1569
s%@host_os@%$host_os%g
 
1570
s%@target@%$target%g
 
1571
s%@target_alias@%$target_alias%g
 
1572
s%@target_cpu@%$target_cpu%g
 
1573
s%@target_vendor@%$target_vendor%g
 
1574
s%@target_os@%$target_os%g
 
1575
s%@build@%$build%g
 
1576
s%@build_alias@%$build_alias%g
 
1577
s%@build_cpu@%$build_cpu%g
 
1578
s%@build_vendor@%$build_vendor%g
 
1579
s%@build_os@%$build_os%g
 
1580
s%@CC@%$CC%g
 
1581
s%@CPP@%$CPP%g
 
1582
s%@XX_CFLAGS@%$XX_CFLAGS%g
 
1583
s%@RM@%$RM%g
 
1584
s%@RMDIR@%$RMDIR%g
 
1585
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
 
1586
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
 
1587
s%@INSTALL_DATA@%$INSTALL_DATA%g
 
1588
 
 
1589
CEOF
 
1590
EOF
 
1591
 
 
1592
cat >> $CONFIG_STATUS <<\EOF
 
1593
 
 
1594
# Split the substitutions into bite-sized pieces for seds with
 
1595
# small command number limits, like on Digital OSF/1 and HP-UX.
 
1596
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
 
1597
ac_file=1 # Number of current file.
 
1598
ac_beg=1 # First line for current file.
 
1599
ac_end=$ac_max_sed_cmds # Line after last line for current file.
 
1600
ac_more_lines=:
 
1601
ac_sed_cmds=""
 
1602
while $ac_more_lines; do
 
1603
  if test $ac_beg -gt 1; then
 
1604
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
 
1605
  else
 
1606
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
 
1607
  fi
 
1608
  if test ! -s conftest.s$ac_file; then
 
1609
    ac_more_lines=false
 
1610
    rm -f conftest.s$ac_file
 
1611
  else
 
1612
    if test -z "$ac_sed_cmds"; then
 
1613
      ac_sed_cmds="sed -f conftest.s$ac_file"
 
1614
    else
 
1615
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
 
1616
    fi
 
1617
    ac_file=`expr $ac_file + 1`
 
1618
    ac_beg=$ac_end
 
1619
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
 
1620
  fi
 
1621
done
 
1622
if test -z "$ac_sed_cmds"; then
 
1623
  ac_sed_cmds=cat
 
1624
fi
 
1625
EOF
 
1626
 
 
1627
cat >> $CONFIG_STATUS <<EOF
 
1628
 
 
1629
CONFIG_FILES=\${CONFIG_FILES-"Makefile MakeSub"}
 
1630
EOF
 
1631
cat >> $CONFIG_STATUS <<\EOF
 
1632
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 
1633
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
1634
  case "$ac_file" in
 
1635
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
1636
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
1637
  *) ac_file_in="${ac_file}.in" ;;
 
1638
  esac
 
1639
 
 
1640
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 
1641
 
 
1642
  # Remove last slash and all that follows it.  Not all systems have dirname.
 
1643
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
1644
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
1645
    # The file is in a subdirectory.
 
1646
    test ! -d "$ac_dir" && mkdir "$ac_dir"
 
1647
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 
1648
    # A "../" for each directory in $ac_dir_suffix.
 
1649
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 
1650
  else
 
1651
    ac_dir_suffix= ac_dots=
 
1652
  fi
 
1653
 
 
1654
  case "$ac_given_srcdir" in
 
1655
  .)  srcdir=.
 
1656
      if test -z "$ac_dots"; then top_srcdir=.
 
1657
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 
1658
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 
1659
  *) # Relative path.
 
1660
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 
1661
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
1662
  esac
 
1663
 
 
1664
  case "$ac_given_INSTALL" in
 
1665
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
 
1666
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
 
1667
  esac
 
1668
 
 
1669
  echo creating "$ac_file"
 
1670
  rm -f "$ac_file"
 
1671
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 
1672
  case "$ac_file" in
 
1673
  *Makefile*) ac_comsub="1i\\
 
1674
# $configure_input" ;;
 
1675
  *) ac_comsub= ;;
 
1676
  esac
 
1677
 
 
1678
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
1679
  sed -e "$ac_comsub
 
1680
s%@configure_input@%$configure_input%g
 
1681
s%@srcdir@%$srcdir%g
 
1682
s%@top_srcdir@%$top_srcdir%g
 
1683
s%@INSTALL@%$INSTALL%g
 
1684
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
 
1685
fi; done
 
1686
rm -f conftest.s*
 
1687
 
 
1688
EOF
 
1689
cat >> $CONFIG_STATUS <<EOF
 
1690
 
 
1691
EOF
 
1692
cat >> $CONFIG_STATUS <<\EOF
 
1693
 
 
1694
exit 0
 
1695
EOF
 
1696
chmod +x $CONFIG_STATUS
 
1697
rm -fr confdefs* $ac_clean_files
 
1698
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
1699
 
 
1700