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.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
15
--enable-maintainer-mode enable make rules and dependencies not useful
16
(and sometimes confusing) to the casual installer"
18
--without-mktexmf-default do not run mktexmf if MF source missing"
20
--without-mktexpk-default do not run mktexpk if PK font missing"
22
--without-mktextfm-default do not run mktextfm if TFM file missing"
24
--without-mkocp-default do not run mkocp if OCP file missing"
26
--without-mkofm-default do not run mkofm if OFM file missing"
28
--with-mktexfmt-default run mktexfmt if format file missing"
30
--with-mktextex-default run mktextex if TeX source missing"
32
# Initialize some variables set by options.
33
# The variables have the same names as the options, with
34
# dashes changed to underlines.
36
cache_file=./config.cache
45
program_transform_name=s,x,x,
53
bindir='${exec_prefix}/bin'
54
sbindir='${exec_prefix}/sbin'
55
libexecdir='${exec_prefix}/libexec'
56
datadir='${prefix}/share'
57
sysconfdir='${prefix}/etc'
58
sharedstatedir='${prefix}/com'
59
localstatedir='${prefix}/var'
60
libdir='${exec_prefix}/lib'
61
includedir='${prefix}/include'
62
oldincludedir='/usr/include'
63
infodir='${prefix}/info'
64
mandir='${prefix}/man'
66
# Initialize some other variables.
70
SHELL=${CONFIG_SHELL-/bin/sh}
71
# Maximum number of lines to put in a shell here document.
78
# If the previous option needs an argument, assign it.
79
if test -n "$ac_prev"; then
80
eval "$ac_prev=\$ac_option"
86
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90
# Accept the important Cygnus configure options, so we can diagnose typos.
94
-bindir | --bindir | --bindi | --bind | --bin | --bi)
96
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97
bindir="$ac_optarg" ;;
99
-build | --build | --buil | --bui | --bu)
101
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
102
build="$ac_optarg" ;;
104
-cache-file | --cache-file | --cache-fil | --cache-fi \
105
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106
ac_prev=cache_file ;;
107
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109
cache_file="$ac_optarg" ;;
111
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115
datadir="$ac_optarg" ;;
117
-disable-* | --disable-*)
118
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
119
# Reject names that are not valid shell variable names.
120
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124
eval "enable_${ac_feature}=no" ;;
126
-enable-* | --enable-*)
127
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128
# Reject names that are not valid shell variable names.
129
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137
eval "enable_${ac_feature}='$ac_optarg'" ;;
139
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141
| --exec | --exe | --ex)
142
ac_prev=exec_prefix ;;
143
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145
| --exec=* | --exe=* | --ex=*)
146
exec_prefix="$ac_optarg" ;;
148
-gas | --gas | --ga | --g)
149
# Obsolete; use --with-gas.
152
-help | --help | --hel | --he)
153
# Omit some internal or obsolete options to make the list less imposing.
154
# This message is too long to be a string in the A/UX 3.1 sh.
156
Usage: configure [options] [host]
157
Options: [defaults in brackets after descriptions]
159
--cache-file=FILE cache test results in FILE
160
--help print this message
161
--no-create do not create output files
162
--quiet, --silent do not print \`checking...' messages
163
--version print the version of autoconf that created configure
164
Directory and file names:
165
--prefix=PREFIX install architecture-independent files in PREFIX
167
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
169
--bindir=DIR user executables in DIR [EPREFIX/bin]
170
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
171
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
172
--datadir=DIR read-only architecture-independent data in DIR
174
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
175
--sharedstatedir=DIR modifiable architecture-independent data in DIR
177
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
178
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
179
--includedir=DIR C header files in DIR [PREFIX/include]
180
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
181
--infodir=DIR info documentation in DIR [PREFIX/info]
182
--mandir=DIR man documentation in DIR [PREFIX/man]
183
--srcdir=DIR find the sources in DIR [configure dir or ..]
184
--program-prefix=PREFIX prepend PREFIX to installed program names
185
--program-suffix=SUFFIX append SUFFIX to installed program names
186
--program-transform-name=PROGRAM
187
run sed PROGRAM on installed program names
191
--build=BUILD configure for building on BUILD [BUILD=HOST]
192
--host=HOST configure for HOST [guessed]
193
--target=TARGET configure for TARGET [TARGET=HOST]
194
Features and packages:
195
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
196
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
197
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
198
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
199
--x-includes=DIR X include files are in DIR
200
--x-libraries=DIR X library files are in DIR
202
if test -n "$ac_help"; then
203
echo "--enable and --with options recognized:$ac_help"
207
-host | --host | --hos | --ho)
209
-host=* | --host=* | --hos=* | --ho=*)
212
-includedir | --includedir | --includedi | --included | --include \
213
| --includ | --inclu | --incl | --inc)
214
ac_prev=includedir ;;
215
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
216
| --includ=* | --inclu=* | --incl=* | --inc=*)
217
includedir="$ac_optarg" ;;
219
-infodir | --infodir | --infodi | --infod | --info | --inf)
221
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
222
infodir="$ac_optarg" ;;
224
-libdir | --libdir | --libdi | --libd)
226
-libdir=* | --libdir=* | --libdi=* | --libd=*)
227
libdir="$ac_optarg" ;;
229
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
230
| --libexe | --libex | --libe)
231
ac_prev=libexecdir ;;
232
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
233
| --libexe=* | --libex=* | --libe=*)
234
libexecdir="$ac_optarg" ;;
236
-localstatedir | --localstatedir | --localstatedi | --localstated \
237
| --localstate | --localstat | --localsta | --localst \
238
| --locals | --local | --loca | --loc | --lo)
239
ac_prev=localstatedir ;;
240
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
241
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
242
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
243
localstatedir="$ac_optarg" ;;
245
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
247
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
248
mandir="$ac_optarg" ;;
251
# Obsolete; use --without-fp.
254
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
258
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
259
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
262
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
263
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
264
| --oldin | --oldi | --old | --ol | --o)
265
ac_prev=oldincludedir ;;
266
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
267
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
268
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
269
oldincludedir="$ac_optarg" ;;
271
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
273
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
274
prefix="$ac_optarg" ;;
276
-program-prefix | --program-prefix | --program-prefi | --program-pref \
277
| --program-pre | --program-pr | --program-p)
278
ac_prev=program_prefix ;;
279
-program-prefix=* | --program-prefix=* | --program-prefi=* \
280
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
281
program_prefix="$ac_optarg" ;;
283
-program-suffix | --program-suffix | --program-suffi | --program-suff \
284
| --program-suf | --program-su | --program-s)
285
ac_prev=program_suffix ;;
286
-program-suffix=* | --program-suffix=* | --program-suffi=* \
287
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
288
program_suffix="$ac_optarg" ;;
290
-program-transform-name | --program-transform-name \
291
| --program-transform-nam | --program-transform-na \
292
| --program-transform-n | --program-transform- \
293
| --program-transform | --program-transfor \
294
| --program-transfo | --program-transf \
295
| --program-trans | --program-tran \
296
| --progr-tra | --program-tr | --program-t)
297
ac_prev=program_transform_name ;;
298
-program-transform-name=* | --program-transform-name=* \
299
| --program-transform-nam=* | --program-transform-na=* \
300
| --program-transform-n=* | --program-transform-=* \
301
| --program-transform=* | --program-transfor=* \
302
| --program-transfo=* | --program-transf=* \
303
| --program-trans=* | --program-tran=* \
304
| --progr-tra=* | --program-tr=* | --program-t=*)
305
program_transform_name="$ac_optarg" ;;
307
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
308
| -silent | --silent | --silen | --sile | --sil)
311
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
313
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
315
sbindir="$ac_optarg" ;;
317
-sharedstatedir | --sharedstatedir | --sharedstatedi \
318
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
319
| --sharedst | --shareds | --shared | --share | --shar \
321
ac_prev=sharedstatedir ;;
322
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
323
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
324
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
326
sharedstatedir="$ac_optarg" ;;
328
-site | --site | --sit)
330
-site=* | --site=* | --sit=*)
333
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
335
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
336
srcdir="$ac_optarg" ;;
338
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
339
| --syscon | --sysco | --sysc | --sys | --sy)
340
ac_prev=sysconfdir ;;
341
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
342
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
343
sysconfdir="$ac_optarg" ;;
345
-target | --target | --targe | --targ | --tar | --ta | --t)
347
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
348
target="$ac_optarg" ;;
350
-v | -verbose | --verbose | --verbos | --verbo | --verb)
353
-version | --version | --versio | --versi | --vers)
354
echo "configure generated by autoconf version 2.13"
358
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
359
# Reject names that are not valid shell variable names.
360
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
361
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363
ac_package=`echo $ac_package| sed 's/-/_/g'`
368
eval "with_${ac_package}='$ac_optarg'" ;;
370
-without-* | --without-*)
371
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
372
# Reject names that are not valid shell variable names.
373
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376
ac_package=`echo $ac_package| sed 's/-/_/g'`
377
eval "with_${ac_package}=no" ;;
380
# Obsolete; use --with-x.
383
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
384
| --x-incl | --x-inc | --x-in | --x-i)
385
ac_prev=x_includes ;;
386
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
387
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
388
x_includes="$ac_optarg" ;;
390
-x-libraries | --x-libraries | --x-librarie | --x-librari \
391
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
392
ac_prev=x_libraries ;;
393
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
394
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
395
x_libraries="$ac_optarg" ;;
397
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
402
# Reject names that are not valid shell variable names.
403
if test -n "`echo $ac_envvar| sed 's/[_a-zA-Z0-9]//g'`"; then
404
{ echo "configure: error: invalid variable name: $ac_envvar" 1>&2; exit 1; }
406
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
407
eval "$ac_envvar='$ac_optarg'"
411
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412
echo "configure: warning: $ac_option: invalid host type" 1>&2
414
if test "x$nonopt" != xNONE; then
415
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423
if test -n "$ac_prev"; then
424
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429
# File descriptor usage:
432
# 2 errors and warnings
433
# 3 some systems may open it to /dev/tty
434
# 4 used on the Kubota Titan
435
# 6 checking for... messages and results
436
# 5 compiler messages saved in config.log
437
if test "$silent" = yes; then
445
This file contains any messages produced by compilers while
446
running configure, to aid debugging if configure makes a mistake.
449
# Strip out --no-create and --no-recursion so they do not pile up.
450
# Also quote any args containing shell metacharacters.
455
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
456
| --no-cr | --no-c) ;;
457
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
458
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
466
# Only set these to C if already set. These must not be set unconditionally
467
# because not all systems understand e.g. LANG=C (notably SCO).
468
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469
# Non-C LC_CTYPE values break the ctype check.
470
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
471
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
475
# confdefs.h avoids OS command line length limits that DEFS can exceed.
476
rm -rf conftest* confdefs.h
477
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
480
# A filename unique to this package, relative to the directory that
481
# configure is in, which we can look for to find out if srcdir is correct.
482
ac_unique_file=mkind.c
484
# Find the source files, if location was not specified.
485
if test -z "$srcdir"; then
486
ac_srcdir_defaulted=yes
487
# Try the directory containing this script, then its parent.
489
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492
if test ! -r $srcdir/$ac_unique_file; then
496
ac_srcdir_defaulted=no
498
if test ! -r $srcdir/$ac_unique_file; then
499
if test "$ac_srcdir_defaulted" = yes; then
500
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507
# Prefer explicitly selected file to automatically selected ones.
508
if test -z "$CONFIG_SITE"; then
509
if test "x$prefix" != xNONE; then
510
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
512
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
515
for ac_site_file in $CONFIG_SITE; do
516
if test -r "$ac_site_file"; then
517
echo "loading site script $ac_site_file"
522
if test -r "$cache_file"; then
523
echo "loading cache $cache_file"
526
echo "creating cache $cache_file"
531
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532
ac_cpp='$CPP $CPPFLAGS'
533
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
534
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
535
cross_compiling=$ac_cv_prog_cc_cross
539
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
540
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
548
ac_n= ac_c='\c' ac_t=
555
# Extract the first word of "gcc", so it can be a program name with args.
556
set dummy gcc; ac_word=$2
557
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
558
echo "configure:559: checking for $ac_word" >&5
559
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
560
echo $ac_n "(cached) $ac_c" 1>&6
562
if test -n "$CC"; then
563
ac_cv_prog_CC="$CC" # Let the user override the test.
565
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
566
if test -z "$COMSPEC"; then ac_x=-f; else ac_x=-x; fi
568
for ac_dir in $ac_dummy; do
569
test -z "$ac_dir" && ac_dir=.
570
if test $ac_x $ac_dir/$ac_word; then
579
if test -n "$CC"; then
580
echo "$ac_t""$CC" 1>&6
582
echo "$ac_t""no" 1>&6
585
if test -z "$CC"; then
586
# Extract the first word of "cc", so it can be a program name with args.
587
set dummy cc; ac_word=$2
588
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
589
echo "configure:590: checking for $ac_word" >&5
590
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
591
echo $ac_n "(cached) $ac_c" 1>&6
593
if test -n "$CC"; then
594
ac_cv_prog_CC="$CC" # Let the user override the test.
596
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
598
if test -z "$COMSPEC"; then ac_x=-f; else ac_x=-x; fi
600
for ac_dir in $ac_dummy; do
601
test -z "$ac_dir" && ac_dir=.
602
if test $ac_x $ac_dir/$ac_word; then
603
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
612
if test $ac_prog_rejected = yes; then
613
# We found a bogon in the path, so make sure we never use it.
614
set dummy $ac_cv_prog_CC
616
if test $# -gt 0; then
617
# We chose a different compiler from the bogus one.
618
# However, it has the same basename, so the bogon will be chosen
619
# first if we set CC to just the basename; use the full file name.
621
set dummy "$ac_dir/$ac_word" "$@"
629
if test -n "$CC"; then
630
echo "$ac_t""$CC" 1>&6
632
echo "$ac_t""no" 1>&6
635
if test -z "$CC"; then
638
# Extract the first word of "cl", so it can be a program name with args.
639
set dummy cl; ac_word=$2
640
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
641
echo "configure:642: checking for $ac_word" >&5
642
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
643
echo $ac_n "(cached) $ac_c" 1>&6
645
if test -n "$CC"; then
646
ac_cv_prog_CC="$CC" # Let the user override the test.
648
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
649
if test -z "$COMSPEC"; then ac_x=-f; else ac_x=-x; fi
651
for ac_dir in $ac_dummy; do
652
test -z "$ac_dir" && ac_dir=.
653
if test $ac_x $ac_dir/$ac_word; then
662
if test -n "$CC"; then
663
echo "$ac_t""$CC" 1>&6
665
echo "$ac_t""no" 1>&6
670
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
673
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
674
echo "configure:675: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
677
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
678
ac_cpp='$CPP $CPPFLAGS'
679
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
680
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
681
cross_compiling=$ac_cv_prog_cc_cross
683
cat > conftest.$ac_ext << EOF
685
#line 686 "configure"
686
#include "confdefs.h"
690
if { (eval echo configure:691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
691
ac_cv_prog_cc_works=yes
692
# If we can't run a trivial program, we are probably using a cross compiler.
693
if (./conftest; exit) 2>/dev/null; then
694
ac_cv_prog_cc_cross=no
696
ac_cv_prog_cc_cross=yes
699
echo "configure: failed program was:" >&5
700
cat conftest.$ac_ext >&5
701
ac_cv_prog_cc_works=no
705
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
706
ac_cpp='$CPP $CPPFLAGS'
707
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
708
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
709
cross_compiling=$ac_cv_prog_cc_cross
711
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
712
if test $ac_cv_prog_cc_works = no; then
713
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
715
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
716
echo "configure:717: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
717
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
718
cross_compiling=$ac_cv_prog_cc_cross
720
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
721
echo "configure:722: checking whether we are using GNU C" >&5
722
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
723
echo $ac_n "(cached) $ac_c" 1>&6
725
cat > conftest.c <<EOF
730
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
737
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
739
if test $ac_cv_prog_gcc = yes; then
745
ac_test_CFLAGS="${CFLAGS+set}"
746
ac_save_CFLAGS="$CFLAGS"
748
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
749
echo "configure:750: checking whether ${CC-cc} accepts -g" >&5
750
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
751
echo $ac_n "(cached) $ac_c" 1>&6
753
echo 'void f(){}' > conftest.c
754
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
763
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
764
if test "$ac_test_CFLAGS" = set; then
765
CFLAGS="$ac_save_CFLAGS"
766
elif test $ac_cv_prog_cc_g = yes; then
767
if test "$GCC" = yes; then
773
if test "$GCC" = yes; then
781
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
782
if test -f $ac_dir/install-sh; then
784
/*|[A-z]:/*) ac_aux_dir=$ac_dir;;
785
*) ac_aux_dir=`pwd`/$ac_dir;;
787
ac_install_sh="$ac_aux_dir/install-sh -c"
789
elif test -f $ac_dir/install.sh; then
791
/*|[A-z]:/*) ac_aux_dir=$ac_dir;;
792
*) ac_aux_dir=`pwd`/$ac_dir;;
794
ac_install_sh="$ac_aux_dir/install.sh -c"
798
if test -z "$ac_aux_dir"; then
799
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
801
ac_config_guess=$ac_aux_dir/config.guess
802
ac_config_sub=$ac_aux_dir/config.sub
803
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
805
# Find a good install program. We prefer a C program (faster),
806
# so one script is as good as another. But avoid the broken or
807
# incompatible versions:
808
# SysV /etc/install, /usr/sbin/install
809
# SunOS /usr/etc/install
812
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
813
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
814
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
815
# ./install, which can be erroneously created by make from ./install.sh.
816
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
817
echo "configure:818: checking for a BSD compatible install" >&5
818
if test -z "$INSTALL"; then
819
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
820
echo $ac_n "(cached) $ac_c" 1>&6
822
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
823
# Hack for MSDOS and descendants.
824
if test -z "$COMSPEC"; then ac_x=-f; else ac_x=-x; fi
825
for ac_dir in $PATH; do
826
# Account for people who put trailing slashes in PATH elements.
828
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
830
# OSF1 and SCO ODT 3.0 have their own names for install.
831
# Don't use installbsd from OSF since it installs stuff as root
833
for ac_prog in ginstall scoinst install; do
834
if test $ac_x $ac_dir/$ac_prog; then
835
if test $ac_prog = install &&
836
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
837
# AIX install. It has an incompatible calling convention.
840
ac_cv_path_install="$ac_dir/$ac_prog -c"
851
if test "${ac_cv_path_install+set}" = set; then
852
INSTALL="$ac_cv_path_install"
854
# As a last resort, use the slow shell script. We don't cache a
855
# path for INSTALL within a source directory, because that will
856
# break other packages using the cache if that directory is
857
# removed, or if the path is relative.
858
INSTALL="$ac_install_sh"
861
echo "$ac_t""$INSTALL" 1>&6
863
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
864
# It thinks the first close brace ends the variable substitution.
865
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
867
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
869
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
871
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
872
echo "configure:873: checking whether ${MAKE-make} sets \${MAKE}" >&5
873
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
874
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
875
echo $ac_n "(cached) $ac_c" 1>&6
877
cat > conftestmake <<\EOF
879
@echo 'ac_maketemp="${MAKE}"'
881
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
882
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
883
if test -n "$ac_maketemp"; then
884
eval ac_cv_prog_make_${ac_make}_set=yes
886
eval ac_cv_prog_make_${ac_make}_set=no
890
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
891
echo "$ac_t""yes" 1>&6
894
echo "$ac_t""no" 1>&6
895
SET_MAKE="MAKE=${MAKE-make}"
898
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
899
echo "configure:900: checking whether ln -s works" >&5
900
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
901
echo $ac_n "(cached) $ac_c" 1>&6
904
# MS-DOS is a special case, because it sort of pretends that ln -s
905
# works for executables.
906
if test -z "$COMSPEC" && ln -s X conftestdata 2>/dev/null
909
ac_cv_prog_LN_S="ln -s"
914
LN_S="$ac_cv_prog_LN_S"
915
if test "$ac_cv_prog_LN_S" = "ln -s"; then
916
echo "$ac_t""yes" 1>&6
918
echo "$ac_t""no" 1>&6
923
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
924
echo "configure:925: checking whether to enable maintainer-specific portions of Makefiles" >&5
925
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
926
if test "${enable_maintainer_mode+set}" = set; then
927
enableval="$enable_maintainer_mode"
928
USE_MAINTAINER_MODE=$enableval
930
USE_MAINTAINER_MODE=no
933
echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
934
if test "x$USE_MAINTAINER_MODE" = xyes; then
942
echo $ac_n "checking for loader (symbol LD)""... $ac_c" 1>&6
943
echo "configure:944: checking for loader (symbol LD)" >&5
944
if eval "test \"`echo '$''{'cf_cv_subst_LD'+set}'`\" = set"; then
945
echo $ac_n "(cached) $ac_c" 1>&6
948
test -z "$LD" && LD=ld
953
echo "$ac_t""$LD" 1>&6
956
echo $ac_n "checking for archiver (symbol AR)""... $ac_c" 1>&6
957
echo "configure:958: checking for archiver (symbol AR)" >&5
958
if eval "test \"`echo '$''{'cf_cv_subst_AR'+set}'`\" = set"; then
959
echo $ac_n "(cached) $ac_c" 1>&6
962
test -z "$AR" && AR=ar
967
echo "$ac_t""$AR" 1>&6
970
echo $ac_n "checking for archiver options (symbol ARFLAGS)""... $ac_c" 1>&6
971
echo "configure:972: checking for archiver options (symbol ARFLAGS)" >&5
972
if eval "test \"`echo '$''{'cf_cv_subst_ARFLAGS'+set}'`\" = set"; then
973
echo $ac_n "(cached) $ac_c" 1>&6
976
test -z "$ARFLAGS" && ARFLAGS=rc
977
cf_cv_subst_ARFLAGS=$ARFLAGS
980
ARFLAGS=${cf_cv_subst_ARFLAGS}
981
echo "$ac_t""$ARFLAGS" 1>&6
985
# Check whether --with-mktexmf-default or --without-mktexmf-default was given.
986
if test "${with_mktexmf_default+set}" = set; then
987
withval="$with_mktexmf_default"
990
with_mktexmf_default=yes
993
# Check whether --with-mktexpk-default or --without-mktexpk-default was given.
994
if test "${with_mktexpk_default+set}" = set; then
995
withval="$with_mktexpk_default"
998
with_mktexpk_default=yes
1001
# Check whether --with-mktextfm-default or --without-mktextfm-default was given.
1002
if test "${with_mktextfm_default+set}" = set; then
1003
withval="$with_mktextfm_default"
1006
with_mktextfm_default=yes
1009
# Check whether --with-mkocp-default or --without-mkocp-default was given.
1010
if test "${with_mkocp_default+set}" = set; then
1011
withval="$with_mkocp_default"
1014
with_mkocp_default=yes
1017
# Check whether --with-mkofm-default or --without-mkofm-default was given.
1018
if test "${with_mkofm_default+set}" = set; then
1019
withval="$with_mkofm_default"
1022
with_mkofm_default=yes
1025
# Check whether --with-mktexfmt-default or --without-mktexfmt-default was given.
1026
if test "${with_mktexfmt_default+set}" = set; then
1027
withval="$with_mktexfmt_default"
1031
# Check whether --with-mktextex-default or --without-mktextex-default was given.
1032
if test "${with_mktextex_default+set}" = set; then
1033
withval="$with_mktextex_default"
1034
with_mktextex_default=yes
1036
with_mktextex_default=no
1040
echo $ac_n "checking where the main texmf tree is located""... $ac_c" 1>&6
1041
echo "configure:1042: checking where the main texmf tree is located" >&5
1043
if test "x$datadir" != 'x${prefix}/share'; then
1044
# First case, datadir is defined...
1046
# Unconditionally set the directory, but...
1047
texmfmain=`echo "$p/texmf" | sed 's,//*,/,g'`
1048
# ... do complain if it wasn't found.
1049
if test -d "$texmfmain"; then
1050
echo "$ac_t"""$texmfmain"" 1>&6
1052
echo "$ac_t""not found" 1>&6
1053
echo "configure: warning: No texmf tree found at $texmfmain.
1054
*****************************************************************
1055
* Error: The main texmf tree was not found. *
1056
* If you do not have the files, you should be able to them from *
1057
* the same place you got these sources from, or from one of the *
1059
*****************************************************************
1063
# Second case, datadir is default...
1064
if test "x$prefix" = "xNONE"; then
1065
p="$ac_default_prefix"
1069
for e in share/texmf lib/texmf texmf; do
1070
if test -d "$p/$e"; then
1071
texmfmain='${prefix}'/"$e"
1075
if test -z "$texmfmain" && test "x$prefix" = "xNONE"; then
1076
# Still no texmfmain found, no prefix set, perhaps kpsewhich is
1077
# installed and can help us out.
1078
texmfmain=`kpsewhich --expand-path='$TEXMFMAIN'` 2>/dev/null
1080
texmfmain=`echo "$texmfmain" | sed 's,//*,/,g'`
1081
if test -n "$texmfmain"; then
1082
echo "$ac_t"""$texmfmain"" 1>&6
1084
eval texmfmain="$datadir/texmf"
1085
echo "$ac_t""not found" 1>&6
1086
echo "configure: warning: The main texmf tree was not found at $texmfmain.
1087
*****************************************************************
1088
* Error: The main texmf tree was not found. *
1089
* Use the --datadir option to specify its parent directory. *
1090
* If you do not have the files, you should be able to them from *
1091
* the same place you got these sources from, or from one of the *
1093
*****************************************************************
1094
Winging it by pretending $texmfmain is correct." 1>&2
1100
if test "$program_transform_name" = s,x,x,; then
1101
program_transform_name=
1103
# Double any \ or $. echo might interpret backslashes.
1104
cat <<\EOF_SED > conftestsed
1105
s,\\,\\\\,g; s,\$,$$,g
1107
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1110
test "$program_prefix" != NONE &&
1111
program_transform_name="s,^,${program_prefix},; $program_transform_name"
1112
# Use a double $ so make ignores it.
1113
test "$program_suffix" != NONE &&
1114
program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1116
# sed with no file args requires a program.
1117
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1119
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1120
echo "configure:1121: checking how to run the C preprocessor" >&5
1121
# On Suns, sometimes $CPP names a directory.
1122
if test -n "$CPP" && test -d "$CPP"; then
1125
if test -z "$CPP"; then
1126
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1127
echo $ac_n "(cached) $ac_c" 1>&6
1129
# This must be in double quotes, not single quotes, because CPP may get
1130
# substituted into the Makefile and "${CC-cc}" will confuse make.
1132
# On the NeXT, cc -E runs the code through the compiler's parser,
1133
# not just through cpp.
1134
cat > conftest.$ac_ext <<EOF
1135
#line 1136 "configure"
1136
#include "confdefs.h"
1140
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1141
{ (eval echo configure:1142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1142
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1143
if test -z "$ac_err"; then
1147
echo "configure: failed program was:" >&5
1148
cat conftest.$ac_ext >&5
1150
CPP="${CC-cc} -E -traditional-cpp"
1151
cat > conftest.$ac_ext <<EOF
1152
#line 1153 "configure"
1153
#include "confdefs.h"
1157
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1158
{ (eval echo configure:1159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1159
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1160
if test -z "$ac_err"; then
1164
echo "configure: failed program was:" >&5
1165
cat conftest.$ac_ext >&5
1167
CPP="${CC-cc} -nologo -E"
1168
cat > conftest.$ac_ext <<EOF
1169
#line 1170 "configure"
1170
#include "confdefs.h"
1174
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1175
{ (eval echo configure:1176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1176
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1177
if test -z "$ac_err"; then
1181
echo "configure: failed program was:" >&5
1182
cat conftest.$ac_ext >&5
1191
ac_cv_prog_CPP="$CPP"
1193
CPP="$ac_cv_prog_CPP"
1195
ac_cv_prog_CPP="$CPP"
1197
echo "$ac_t""$CPP" 1>&6
1199
for ac_hdr in ctype.h types.h locale.h
1201
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1202
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1203
echo "configure:1204: checking for $ac_hdr" >&5
1204
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1205
echo $ac_n "(cached) $ac_c" 1>&6
1207
cat > conftest.$ac_ext <<EOF
1208
#line 1209 "configure"
1209
#include "confdefs.h"
1212
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1213
{ (eval echo configure:1214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1214
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1215
if test -z "$ac_err"; then
1217
eval "ac_cv_header_$ac_safe=yes"
1220
echo "configure: failed program was:" >&5
1221
cat conftest.$ac_ext >&5
1223
eval "ac_cv_header_$ac_safe=no"
1227
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1228
echo "$ac_t""yes" 1>&6
1229
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1230
cat >> confdefs.h <<EOF
1231
#define $ac_tr_hdr 1
1235
echo "$ac_t""no" 1>&6
1239
for ac_func in strchr strrchr setlocale
1241
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1242
echo "configure:1243: checking for $ac_func" >&5
1243
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1244
echo $ac_n "(cached) $ac_c" 1>&6
1246
cat > conftest.$ac_ext <<EOF
1247
#line 1248 "configure"
1248
#include "confdefs.h"
1249
/* System header to define __stub macros and hopefully few prototypes,
1250
which can conflict with char $ac_func(); below. */
1252
/* Override any gcc2 internal prototype to avoid an error. */
1253
/* We use char because int might match the return type of a gcc2
1254
builtin and then its argument prototype would still apply. */
1259
/* The GNU C library defines this for functions which it implements
1260
to always fail with ENOSYS. Some functions are actually named
1261
something starting with __ and the normal name is an alias. */
1262
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1270
if { (eval echo configure:1271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1272
eval "ac_cv_func_$ac_func=yes"
1274
echo "configure: failed program was:" >&5
1275
cat conftest.$ac_ext >&5
1277
eval "ac_cv_func_$ac_func=no"
1282
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1283
echo "$ac_t""yes" 1>&6
1284
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1285
cat >> confdefs.h <<EOF
1286
#define $ac_tr_func 1
1290
echo "$ac_t""no" 1>&6
1295
ac_config_files="$ac_config_files Makefile"
1298
cat > confcache <<\EOF
1299
# This file is a shell script that caches the results of configure
1300
# tests run on this system so they can be shared between configure
1301
# scripts and configure runs. It is not useful on other systems.
1302
# If it contains results you don't want to keep, you may remove or edit it.
1304
# By default, configure uses ./config.cache as the cache file,
1305
# creating it if it does not exist already. You can give configure
1306
# the --cache-file=FILE option to use a different cache file; that is
1307
# what configure does when it calls configure scripts in
1308
# subdirectories, so they share the cache.
1309
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1310
# config.status only pays attention to the cache file if you give it the
1311
# --recheck option to rerun configure.
1314
# The following way of writing the cache mishandles newlines in values,
1315
# but we know of no workaround that is simple, portable, and efficient.
1316
# So, don't put newlines in cache variables' values.
1317
# Ultrix sh set writes to stderr and can't be redirected directly,
1318
# and sets the high bit in the cache file unless we assign to the vars.
1320
case `(ac_space=' '; set | grep ac_space) 2>&1` in
1322
# `set' does not quote correctly, so add quotes (double-quote substitution
1323
# turns \\\\ into \\, and sed turns \\ into \).
1325
-e "s/'/'\\\\''/g" \
1326
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1329
# `set' quotes correctly as required by POSIX, so do not add quotes.
1330
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1333
if cmp -s $cache_file confcache; then
1336
if test -w $cache_file; then
1337
echo "updating cache $cache_file"
1338
cat confcache > $cache_file
1340
echo "not updating unwritable cache $cache_file"
1345
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1347
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1348
# Let make expand exec_prefix.
1349
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1351
# Any assignment to VPATH causes Sun make to only execute
1352
# the first set of double-colon rules, so remove it if not needed.
1353
# If there is a colon in the path, we need to keep it.
1354
if test "x$srcdir" = x.; then
1355
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1358
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1360
DEFS=-DHAVE_CONFIG_H
1362
# Without the "./", some shells look in PATH for config.status.
1363
: ${CONFIG_STATUS=./config.status}
1365
echo creating $CONFIG_STATUS
1366
rm -f $CONFIG_STATUS
1367
cat > $CONFIG_STATUS <<EOF
1369
# Generated automatically by configure.
1370
# Run this file to recreate the current configuration.
1371
# This directory was configured as follows,
1372
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1374
# $0 $ac_configure_args
1376
# Compiler output produced by configure, useful for debugging
1377
# configure, is in ./config.log if it exists.
1379
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1382
case "\$ac_option" in
1383
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1384
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1385
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1386
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1387
echo "$CONFIG_STATUS generated by autoconf version 2.13"
1389
-help | --help | --hel | --he | --h)
1390
echo "\$ac_cs_usage"; exit 0 ;;
1391
*) echo "\$ac_cs_usage"; exit 1 ;;
1395
ac_given_srcdir=$srcdir
1396
ac_given_INSTALL="$INSTALL"
1399
trap 'rm -fr `echo "$ac_config_files c-auto.h:c-auto.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1401
cat >> $CONFIG_STATUS <<EOF
1403
# Protect against being on the right side of a sed subst in config.status.
1404
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1405
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1409
s%@CFLAGS@%$CFLAGS%g
1410
s%@CPPFLAGS@%$CPPFLAGS%g
1411
s%@CXXFLAGS@%$CXXFLAGS%g
1412
s%@FFLAGS@%$FFLAGS%g
1414
s%@LDFLAGS@%$LDFLAGS%g
1416
s%@exec_prefix@%$exec_prefix%g
1417
s%@prefix@%$prefix%g
1418
s%@program_transform_name@%$program_transform_name%g
1419
s%@bindir@%$bindir%g
1420
s%@sbindir@%$sbindir%g
1421
s%@libexecdir@%$libexecdir%g
1422
s%@datadir@%$datadir%g
1423
s%@sysconfdir@%$sysconfdir%g
1424
s%@sharedstatedir@%$sharedstatedir%g
1425
s%@localstatedir@%$localstatedir%g
1426
s%@libdir@%$libdir%g
1427
s%@includedir@%$includedir%g
1428
s%@oldincludedir@%$oldincludedir%g
1429
s%@infodir@%$infodir%g
1430
s%@mandir@%$mandir%g
1432
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1433
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1434
s%@INSTALL_DATA@%$INSTALL_DATA%g
1435
s%@SET_MAKE@%$SET_MAKE%g
1440
s%@ARFLAGS@%$ARFLAGS%g
1441
s%@texmfmain@%$texmfmain%g
1447
cat >> $CONFIG_STATUS <<\EOF
1449
# Split the substitutions into bite-sized pieces for seds with
1450
# small command number limits, like on Digital OSF/1 and HP-UX.
1451
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1452
ac_file=1 # Number of current file.
1453
ac_beg=1 # First line for current file.
1454
ac_end=$ac_max_sed_cmds # Line after last line for current file.
1457
while $ac_more_lines; do
1458
if test $ac_beg -gt 1; then
1459
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1461
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1463
if test ! -s conftest.s$ac_file; then
1465
rm -f conftest.s$ac_file
1467
if test -z "$ac_sed_cmds"; then
1468
ac_sed_cmds="sed -f conftest.s$ac_file"
1470
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1472
ac_file=`expr $ac_file + 1`
1474
ac_end=`expr $ac_end + $ac_max_sed_cmds`
1477
if test -z "$ac_sed_cmds"; then
1482
cat >> $CONFIG_STATUS <<EOF
1484
CONFIG_FILES=\${CONFIG_FILES-"$ac_config_files"}
1486
cat >> $CONFIG_STATUS <<\EOF
1487
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1488
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1490
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1491
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1492
*) ac_file_in="${ac_file}.in" ;;
1495
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1497
# Remove last slash and all that follows it. Not all systems have dirname.
1498
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1499
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1500
# The file is in a subdirectory.
1501
test ! -d "$ac_dir" && mkdir "$ac_dir"
1502
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1503
# A "../" for each directory in $ac_dir_suffix.
1504
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1506
ac_dir_suffix= ac_dots=
1509
case "$ac_given_srcdir" in
1511
if test -z "$ac_dots"; then top_srcdir=.
1512
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1513
/*|[A-z]:/*) # Absolute path.
1514
srcdir="$ac_given_srcdir$ac_dir_suffix"
1515
top_srcdir="$ac_given_srcdir" ;;
1517
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1518
top_srcdir="$ac_dots$ac_given_srcdir" ;;
1521
case "$ac_given_INSTALL" in
1523
[/$]*|[A-z]:/*) INSTALL="$ac_given_INSTALL" ;;
1524
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1527
echo creating "$ac_file"
1529
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1531
*Makefile*) ac_comsub="1i\\
1532
# $configure_input" ;;
1537
ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%"`
1538
cat $ac_file_inputs > conftest.in
1540
# Replace lines of the form ac_include foo with the contents of foo:
1541
# first, from the ac_include lines construct a list of file names.
1542
# From that list, we construct a second list of those files that exist.
1543
# Then we construct lists of sed commands for including those files,
1544
# and a sed command that removes the ac_include lines. We don't attempt
1545
# to read non-existent files because some (buggy) versions of sed choke
1546
# on this. Have to use sed because old (Ultrix, SunOS) awk does not support
1547
# getline or system. (Anyway, configure scripts aren't supposed to use awk.)
1548
# Can't use only one -e and commands {dr foo} because foo has to be last.
1549
# Be careful, because the filename may contain /. Be careful with
1550
# whitespace; we need to use echo.
1552
file_substs=`sed -n '/^ac_include/s%ac_include[ ]*\(.*\)%\1%p' conftest.in`
1553
# Create the sed command line ...
1554
if test -n "$file_substs"; then
1555
echo "configure: warning: ac_include is obsolete; instead use kpse_include" 1>&2
1556
file_subst_cmd="sed -e 's/^ac_include/kpse_include/'"
1558
file_subst_cmd='sed'
1560
kpse_substs=`sed -n '/^kpse_include/s%kpse_include[ ]*\(.*\)%\1%p' conftest.in`
1561
for ac_inc in $file_substs $kpse_substs; do
1562
if test -f "$ac_given_srcdir/$ac_inc"; then
1563
ac_mung=`echo $ac_inc | sed 's,/,%,g'`
1564
file_subst_cmd="$file_subst_cmd -e '/^kpse_include $ac_mung$/r $ac_given_srcdir/$ac_inc'"
1567
file_subst_cmd="$file_subst_cmd -e '/^kpse_include/d'"
1568
# ... and fix the whitespace and escaped slashes.
1569
file_subst_cmd=`echo "$file_subst_cmd" | sed -e 's,%,\\\/,g' \
1570
-e 's/kpse_include /kpse_include[ ]*/g'`
1571
# I can't find any way to do variable substitution in the sed commands
1572
# (so the user could have, e.g., $top_srcdir in their ac_include line).
1573
(eval $file_subst_cmd conftest.in) \
1574
| sed -e "$ac_comsub
1575
s%@configure_input@%$configure_input%g
1576
s%@srcdir@%$srcdir%g
1577
s%@top_srcdir@%$top_srcdir%g
1578
s%@INSTALL@%$INSTALL%g
1579
" | (eval "$ac_sed_cmds") > $ac_file
1581
rm -f conftest.s* conftest.in
1583
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1584
# NAME is the cpp macro being defined and VALUE is the value it is being given.
1586
# ac_d sets the value in "#define NAME VALUE" lines.
1587
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1588
ac_dB='\([ ][ ]*\)[^ ].*$%\1#\2'
1591
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1592
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1593
ac_uB='\([ ]\)%\1#\2define\3'
1596
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1597
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1598
ac_eB='$%\1#\2define\3'
1602
if test "${CONFIG_HEADERS+set}" != set; then
1604
cat >> $CONFIG_STATUS <<EOF
1605
CONFIG_HEADERS=" c-auto.h:c-auto.in"
1607
cat >> $CONFIG_STATUS <<\EOF
1609
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1610
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1612
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1613
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1614
*) ac_file_in="${ac_file}.in" ;;
1617
echo creating $ac_file
1619
rm -f conftest.frag conftest.in conftest.out
1620
ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%"`
1621
cat $ac_file_inputs > conftest.in
1625
# Transform confdefs.h into a sed script conftest.vals that substitutes
1626
# the proper values into config.h.in to produce config.h. And first:
1627
# Protect against being on the right side of a sed subst in config.status.
1628
# Protect against being in an unquoted here document in config.status.
1630
cat > conftest.hdr <<\EOF
1633
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1637
sed -n -f conftest.hdr confdefs.h > conftest.vals
1640
# This sed command replaces #undef with comments. This is necessary, for
1641
# example, in the case of _POSIX_SOURCE, which is predefined and required
1642
# on some systems where configure will not decide to define it.
1643
cat >> conftest.vals <<\EOF
1644
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1647
# Break up conftest.vals because some shells have a limit on
1648
# the size of here documents, and old seds have small limits too.
1653
ac_lines=`grep -c . conftest.vals`
1654
# grep -c gives empty output for an empty file on some AIX systems.
1655
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1656
# Write a limited-size here document to conftest.frag.
1657
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1658
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1660
sed -f conftest.frag conftest.in > conftest.out
1662
mv conftest.out conftest.in
1664
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1666
mv conftest.tail conftest.vals
1670
cat >> $CONFIG_STATUS <<\EOF
1671
rm -f conftest.frag conftest.h
1672
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1673
cat conftest.in >> conftest.h
1675
if cmp -s $ac_file conftest.h 2>/dev/null; then
1676
echo "$ac_file is unchanged"
1679
# Remove last slash and all that follows it. Not all systems have dirname.
1680
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1681
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1682
# The file is in a subdirectory.
1683
test ! -d "$ac_dir" && mkdir "$ac_dir"
1686
mv conftest.h $ac_file
1691
cat >> $CONFIG_STATUS <<EOF
1696
cat >> $CONFIG_STATUS <<\EOF
1702
chmod +x $CONFIG_STATUS
1703
rm -fr confdefs* $ac_clean_files
1704
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1706
if test "$no_recursion" != yes; then
1708
# Remove --cache-file and --srcdir arguments so they do not pile up.
1709
ac_sub_configure_args=
1711
for ac_arg in $ac_configure_args; do
1712
if test -n "$ac_prev"; then
1717
-cache-file | --cache-file | --cache-fil | --cache-fi \
1718
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1719
ac_prev=cache_file ;;
1720
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1721
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1723
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1725
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1727
*) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1731
for ac_config_dir in : $subdirs; do
1733
# Do not complain, so a configure script can configure whichever
1734
# parts of a large source tree are present.
1735
if test ! -d $srcdir/$ac_config_dir; then
1739
echo configuring in $ac_config_dir
1744
if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1746
{ echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1754
# A "../" for each directory in /$ac_config_dir.
1755
ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1758
.) # No --srcdir option. We are building in place.
1759
ac_sub_srcdir=$srcdir ;;
1760
/*|[A-z]:/*) # Absolute path.
1761
ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1763
ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1766
# Check for guested configure; otherwise get Cygnus style configure.
1767
if test -f ./configure; then
1768
ac_sub_configure=./configure
1769
elif test -f $ac_sub_srcdir/configure; then
1770
ac_sub_configure=$ac_sub_srcdir/configure
1771
elif test -f $ac_sub_srcdir/configure.in; then
1772
ac_sub_configure=$ac_configure
1774
echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1778
# The recursion is here.
1779
if test -n "$ac_sub_configure"; then
1781
# Make the cache file name correct relative to the subdirectory.
1782
case "$cache_file" in
1783
/*|[A-z]:/*) ac_sub_cache_file=$cache_file ;;
1785
ac_sub_cache_file="$ac_dots$cache_file" ;;
1787
case "$ac_given_INSTALL" in
1789
[/$]*|[A-z]:/*) INSTALL="$ac_given_INSTALL" ;;
1790
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1793
echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1794
# The eval makes quoting arguments work.
1795
if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1798
{ echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }