]> git.donarmstrong.com Git - lilypond.git/blob - configure
release: 1.0.3
[lilypond.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12 
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   enable-config=FILE      put configure settings in config-FILE.make"
16 ac_help="$ac_help
17   enable-checking         set runtime checks (assert calls). Default: on"
18 ac_help="$ac_help
19   enable-optimise         use maximal speed optimisations. Default: off"
20 ac_help="$ac_help
21   enable-profiling        compile with gprof support. Default: off"
22 ac_help="$ac_help
23   enable-debugging        set debug info. Default: on"
24 ac_help="$ac_help
25   enable-mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)"
26 ac_help="$ac_help
27   enable-printing         turn on debug printing. Default: off"
28 ac_help="$ac_help
29   with-localedir=LOCALE   use LOCALE as locale dir. Default: PREFIX/share/locale "
30 ac_help="$ac_help
31   with-lang=LANG          use LANG as language to emit messages"
32 ac_help="$ac_help
33   enable-tex-prefix=DIR   set the tex-directory to find TeX subdirectories. (default: PREFIX)"
34 ac_help="$ac_help
35   enable-tex-dir=DIR      set the directory to put $PACKAGE_NAME TeX files in. "
36 ac_help="$ac_help
37   enable-mf-dir=DIR       set the directory to put $PACKAGE_NAME MetaFont files in. "
38
39 # Initialize some variables set by options.
40 # The variables have the same names as the options, with
41 # dashes changed to underlines.
42 build=NONE
43 cache_file=./config.cache
44 exec_prefix=NONE
45 host=NONE
46 no_create=
47 nonopt=NONE
48 no_recursion=
49 prefix=NONE
50 program_prefix=NONE
51 program_suffix=NONE
52 program_transform_name=s,x,x,
53 silent=
54 site=
55 srcdir=
56 target=NONE
57 verbose=
58 x_includes=NONE
59 x_libraries=NONE
60 bindir='${exec_prefix}/bin'
61 sbindir='${exec_prefix}/sbin'
62 libexecdir='${exec_prefix}/libexec'
63 datadir='${prefix}/share'
64 sysconfdir='${prefix}/etc'
65 sharedstatedir='${prefix}/com'
66 localstatedir='${prefix}/var'
67 libdir='${exec_prefix}/lib'
68 includedir='${prefix}/include'
69 oldincludedir='/usr/include'
70 infodir='${prefix}/info'
71 mandir='${prefix}/man'
72
73 # Initialize some other variables.
74 subdirs=
75 MFLAGS= MAKEFLAGS=
76 # Maximum number of lines to put in a shell here document.
77 ac_max_here_lines=12
78
79 ac_prev=
80 for ac_option
81 do
82
83   # If the previous option needs an argument, assign it.
84   if test -n "$ac_prev"; then
85     eval "$ac_prev=\$ac_option"
86     ac_prev=
87     continue
88   fi
89
90   case "$ac_option" in
91   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
92   *) ac_optarg= ;;
93   esac
94
95   # Accept the important Cygnus configure options, so we can diagnose typos.
96
97   case "$ac_option" in
98
99   -bindir | --bindir | --bindi | --bind | --bin | --bi)
100     ac_prev=bindir ;;
101   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
102     bindir="$ac_optarg" ;;
103
104   -build | --build | --buil | --bui | --bu)
105     ac_prev=build ;;
106   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
107     build="$ac_optarg" ;;
108
109   -cache-file | --cache-file | --cache-fil | --cache-fi \
110   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
111     ac_prev=cache_file ;;
112   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
113   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
114     cache_file="$ac_optarg" ;;
115
116   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
117     ac_prev=datadir ;;
118   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
119   | --da=*)
120     datadir="$ac_optarg" ;;
121
122   -disable-* | --disable-*)
123     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
124     # Reject names that are not valid shell variable names.
125     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
126       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127     fi
128     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129     eval "enable_${ac_feature}=no" ;;
130
131   -enable-* | --enable-*)
132     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
133     # Reject names that are not valid shell variable names.
134     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
135       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136     fi
137     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138     case "$ac_option" in
139       *=*) ;;
140       *) ac_optarg=yes ;;
141     esac
142     eval "enable_${ac_feature}='$ac_optarg'" ;;
143
144   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
145   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
146   | --exec | --exe | --ex)
147     ac_prev=exec_prefix ;;
148   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
149   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
150   | --exec=* | --exe=* | --ex=*)
151     exec_prefix="$ac_optarg" ;;
152
153   -gas | --gas | --ga | --g)
154     # Obsolete; use --with-gas.
155     with_gas=yes ;;
156
157   -help | --help | --hel | --he)
158     # Omit some internal or obsolete options to make the list less imposing.
159     # This message is too long to be a string in the A/UX 3.1 sh.
160     cat << EOF
161 Usage: configure [options] [host]
162 Options: [defaults in brackets after descriptions]
163 Configuration:
164   --cache-file=FILE       cache test results in FILE
165   --help                  print this message
166   --no-create             do not create output files
167   --quiet, --silent       do not print \`checking...' messages
168   --version               print the version of autoconf that created configure
169 Directory and file names:
170   --prefix=PREFIX         install architecture-independent files in PREFIX
171                           [$ac_default_prefix]
172   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
173                           [same as prefix]
174   --bindir=DIR            user executables in DIR [EPREFIX/bin]
175   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
176   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
177   --datadir=DIR           read-only architecture-independent data in DIR
178                           [PREFIX/share]
179   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
180   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
181                           [PREFIX/com]
182   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
183   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
184   --includedir=DIR        C header files in DIR [PREFIX/include]
185   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
186   --infodir=DIR           info documentation in DIR [PREFIX/info]
187   --mandir=DIR            man documentation in DIR [PREFIX/man]
188   --srcdir=DIR            find the sources in DIR [configure dir or ..]
189   --program-prefix=PREFIX prepend PREFIX to installed program names
190   --program-suffix=SUFFIX append SUFFIX to installed program names
191   --program-transform-name=PROGRAM
192                           run sed PROGRAM on installed program names
193 EOF
194     cat << EOF
195 Host type:
196   --build=BUILD           configure for building on BUILD [BUILD=HOST]
197   --host=HOST             configure for HOST [guessed]
198   --target=TARGET         configure for TARGET [TARGET=HOST]
199 Features and packages:
200   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
201   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
202   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
203   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
204   --x-includes=DIR        X include files are in DIR
205   --x-libraries=DIR       X library files are in DIR
206 EOF
207     if test -n "$ac_help"; then
208       echo "--enable and --with options recognized:$ac_help"
209     fi
210     exit 0 ;;
211
212   -host | --host | --hos | --ho)
213     ac_prev=host ;;
214   -host=* | --host=* | --hos=* | --ho=*)
215     host="$ac_optarg" ;;
216
217   -includedir | --includedir | --includedi | --included | --include \
218   | --includ | --inclu | --incl | --inc)
219     ac_prev=includedir ;;
220   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
221   | --includ=* | --inclu=* | --incl=* | --inc=*)
222     includedir="$ac_optarg" ;;
223
224   -infodir | --infodir | --infodi | --infod | --info | --inf)
225     ac_prev=infodir ;;
226   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227     infodir="$ac_optarg" ;;
228
229   -libdir | --libdir | --libdi | --libd)
230     ac_prev=libdir ;;
231   -libdir=* | --libdir=* | --libdi=* | --libd=*)
232     libdir="$ac_optarg" ;;
233
234   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
235   | --libexe | --libex | --libe)
236     ac_prev=libexecdir ;;
237   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
238   | --libexe=* | --libex=* | --libe=*)
239     libexecdir="$ac_optarg" ;;
240
241   -localstatedir | --localstatedir | --localstatedi | --localstated \
242   | --localstate | --localstat | --localsta | --localst \
243   | --locals | --local | --loca | --loc | --lo)
244     ac_prev=localstatedir ;;
245   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
246   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
247   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
248     localstatedir="$ac_optarg" ;;
249
250   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
251     ac_prev=mandir ;;
252   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253     mandir="$ac_optarg" ;;
254
255   -nfp | --nfp | --nf)
256     # Obsolete; use --without-fp.
257     with_fp=no ;;
258
259   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260   | --no-cr | --no-c)
261     no_create=yes ;;
262
263   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
264   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
265     no_recursion=yes ;;
266
267   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
268   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
269   | --oldin | --oldi | --old | --ol | --o)
270     ac_prev=oldincludedir ;;
271   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
272   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
273   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
274     oldincludedir="$ac_optarg" ;;
275
276   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
277     ac_prev=prefix ;;
278   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279     prefix="$ac_optarg" ;;
280
281   -program-prefix | --program-prefix | --program-prefi | --program-pref \
282   | --program-pre | --program-pr | --program-p)
283     ac_prev=program_prefix ;;
284   -program-prefix=* | --program-prefix=* | --program-prefi=* \
285   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
286     program_prefix="$ac_optarg" ;;
287
288   -program-suffix | --program-suffix | --program-suffi | --program-suff \
289   | --program-suf | --program-su | --program-s)
290     ac_prev=program_suffix ;;
291   -program-suffix=* | --program-suffix=* | --program-suffi=* \
292   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
293     program_suffix="$ac_optarg" ;;
294
295   -program-transform-name | --program-transform-name \
296   | --program-transform-nam | --program-transform-na \
297   | --program-transform-n | --program-transform- \
298   | --program-transform | --program-transfor \
299   | --program-transfo | --program-transf \
300   | --program-trans | --program-tran \
301   | --progr-tra | --program-tr | --program-t)
302     ac_prev=program_transform_name ;;
303   -program-transform-name=* | --program-transform-name=* \
304   | --program-transform-nam=* | --program-transform-na=* \
305   | --program-transform-n=* | --program-transform-=* \
306   | --program-transform=* | --program-transfor=* \
307   | --program-transfo=* | --program-transf=* \
308   | --program-trans=* | --program-tran=* \
309   | --progr-tra=* | --program-tr=* | --program-t=*)
310     program_transform_name="$ac_optarg" ;;
311
312   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313   | -silent | --silent | --silen | --sile | --sil)
314     silent=yes ;;
315
316   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
317     ac_prev=sbindir ;;
318   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
319   | --sbi=* | --sb=*)
320     sbindir="$ac_optarg" ;;
321
322   -sharedstatedir | --sharedstatedir | --sharedstatedi \
323   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
324   | --sharedst | --shareds | --shared | --share | --shar \
325   | --sha | --sh)
326     ac_prev=sharedstatedir ;;
327   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
328   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
329   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
330   | --sha=* | --sh=*)
331     sharedstatedir="$ac_optarg" ;;
332
333   -site | --site | --sit)
334     ac_prev=site ;;
335   -site=* | --site=* | --sit=*)
336     site="$ac_optarg" ;;
337
338   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
339     ac_prev=srcdir ;;
340   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
341     srcdir="$ac_optarg" ;;
342
343   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
344   | --syscon | --sysco | --sysc | --sys | --sy)
345     ac_prev=sysconfdir ;;
346   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
347   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
348     sysconfdir="$ac_optarg" ;;
349
350   -target | --target | --targe | --targ | --tar | --ta | --t)
351     ac_prev=target ;;
352   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
353     target="$ac_optarg" ;;
354
355   -v | -verbose | --verbose | --verbos | --verbo | --verb)
356     verbose=yes ;;
357
358   -version | --version | --versio | --versi | --vers)
359     echo "configure generated by autoconf version 2.12"
360     exit 0 ;;
361
362   -with-* | --with-*)
363     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
364     # Reject names that are not valid shell variable names.
365     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
366       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367     fi
368     ac_package=`echo $ac_package| sed 's/-/_/g'`
369     case "$ac_option" in
370       *=*) ;;
371       *) ac_optarg=yes ;;
372     esac
373     eval "with_${ac_package}='$ac_optarg'" ;;
374
375   -without-* | --without-*)
376     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
377     # Reject names that are not valid shell variable names.
378     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
379       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380     fi
381     ac_package=`echo $ac_package| sed 's/-/_/g'`
382     eval "with_${ac_package}=no" ;;
383
384   --x)
385     # Obsolete; use --with-x.
386     with_x=yes ;;
387
388   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
389   | --x-incl | --x-inc | --x-in | --x-i)
390     ac_prev=x_includes ;;
391   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
392   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
393     x_includes="$ac_optarg" ;;
394
395   -x-libraries | --x-libraries | --x-librarie | --x-librari \
396   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
397     ac_prev=x_libraries ;;
398   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
399   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
400     x_libraries="$ac_optarg" ;;
401
402   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
403     ;;
404
405   *)
406     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
407       echo "configure: warning: $ac_option: invalid host type" 1>&2
408     fi
409     if test "x$nonopt" != xNONE; then
410       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411     fi
412     nonopt="$ac_option"
413     ;;
414
415   esac
416 done
417
418 if test -n "$ac_prev"; then
419   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 fi
421
422 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
423
424 # File descriptor usage:
425 # 0 standard input
426 # 1 file creation
427 # 2 errors and warnings
428 # 3 some systems may open it to /dev/tty
429 # 4 used on the Kubota Titan
430 # 6 checking for... messages and results
431 # 5 compiler messages saved in config.log
432 if test "$silent" = yes; then
433   exec 6>/dev/null
434 else
435   exec 6>&1
436 fi
437 exec 5>./config.log
438
439 echo "\
440 This file contains any messages produced by compilers while
441 running configure, to aid debugging if configure makes a mistake.
442 " 1>&5
443
444 # Strip out --no-create and --no-recursion so they do not pile up.
445 # Also quote any args containing shell metacharacters.
446 ac_configure_args=
447 for ac_arg
448 do
449   case "$ac_arg" in
450   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
451   | --no-cr | --no-c) ;;
452   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
454   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
455   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
456   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
457   esac
458 done
459
460 # NLS nuisances.
461 # Only set these to C if already set.  These must not be set unconditionally
462 # because not all systems understand e.g. LANG=C (notably SCO).
463 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
464 # Non-C LC_CTYPE values break the ctype check.
465 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
466 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
467 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
468 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
469
470 # confdefs.h avoids OS command line length limits that DEFS can exceed.
471 rm -rf conftest* confdefs.h
472 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 echo > confdefs.h
474
475 # A filename unique to this package, relative to the directory that
476 # configure is in, which we can look for to find out if srcdir is correct.
477 ac_unique_file=make/lilypond.lsm.in
478
479 # Find the source files, if location was not specified.
480 if test -z "$srcdir"; then
481   ac_srcdir_defaulted=yes
482   # Try the directory containing this script, then its parent.
483   ac_prog=$0
484   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
485   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
486   srcdir=$ac_confdir
487   if test ! -r $srcdir/$ac_unique_file; then
488     srcdir=..
489   fi
490 else
491   ac_srcdir_defaulted=no
492 fi
493 if test ! -r $srcdir/$ac_unique_file; then
494   if test "$ac_srcdir_defaulted" = yes; then
495     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
496   else
497     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498   fi
499 fi
500 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
501
502 # Prefer explicitly selected file to automatically selected ones.
503 if test -z "$CONFIG_SITE"; then
504   if test "x$prefix" != xNONE; then
505     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
506   else
507     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508   fi
509 fi
510 for ac_site_file in $CONFIG_SITE; do
511   if test -r "$ac_site_file"; then
512     echo "loading site script $ac_site_file"
513     . "$ac_site_file"
514   fi
515 done
516
517 if test -r "$cache_file"; then
518   echo "loading cache $cache_file"
519   . $cache_file
520 else
521   echo "creating cache $cache_file"
522   > $cache_file
523 fi
524
525 ac_ext=c
526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
527 ac_cpp='$CPP $CPPFLAGS'
528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
529 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
530 cross_compiling=$ac_cv_prog_cc_cross
531
532 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
533   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535     ac_n= ac_c='
536 ' ac_t='        '
537   else
538     ac_n=-n ac_c= ac_t=
539   fi
540 else
541   ac_n= ac_c='\c' ac_t=
542 fi
543
544
545
546
547 # Bootstrap StepMake configure
548
549
550     . $srcdir/VERSION
551     FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
552     if test x$MY_PATCH_LEVEL != x; then
553         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
554     fi
555
556     # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
557         PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
558     package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
559     
560     if test "x$PACKAGE" = "xSTEPMAKE"; then
561         echo Stepmake package!
562         (cd stepmake; rm -f stepmake; ln -s ../stepmake .)
563         (cd stepmake; rm -f bin; ln -s ../bin .)
564         ac_aux_dir=
565 for ac_dir in bin $srcdir/bin; do
566   if test -f $ac_dir/install-sh; then
567     ac_aux_dir=$ac_dir
568     ac_install_sh="$ac_aux_dir/install-sh -c"
569     break
570   elif test -f $ac_dir/install.sh; then
571     ac_aux_dir=$ac_dir
572     ac_install_sh="$ac_aux_dir/install.sh -c"
573     break
574   fi
575 done
576 if test -z "$ac_aux_dir"; then
577   { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
578 fi
579 ac_config_guess=$ac_aux_dir/config.guess
580 ac_config_sub=$ac_aux_dir/config.sub
581 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
582
583     else
584         echo Package: $PACKAGE
585         ac_aux_dir=
586 for ac_dir in stepmake/bin $srcdir/stepmake/bin; do
587   if test -f $ac_dir/install-sh; then
588     ac_aux_dir=$ac_dir
589     ac_install_sh="$ac_aux_dir/install-sh -c"
590     break
591   elif test -f $ac_dir/install.sh; then
592     ac_aux_dir=$ac_dir
593     ac_install_sh="$ac_aux_dir/install.sh -c"
594     break
595   fi
596 done
597 if test -z "$ac_aux_dir"; then
598   { echo "configure: error: can not find install-sh or install.sh in stepmake/bin $srcdir/stepmake/bin" 1>&2; exit 1; }
599 fi
600 ac_config_guess=$ac_aux_dir/config.guess
601 ac_config_sub=$ac_aux_dir/config.sub
602 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
603
604     fi
605
606     
607     
608     
609     cat >> confdefs.h <<EOF
610 #define PACKAGE "${PACKAGE_NAME}"
611 EOF
612
613     cat >> confdefs.h <<EOF
614 #define TOPLEVEL_VERSION "${FULL_VERSION}"
615 EOF
616
617
618     package_depth=`dirname $cache_file`
619     
620
621     AUTOGENERATE="This file was automatically generated by configure"
622     
623     absolute_builddir="`pwd`"
624     
625
626     # No versioning on directory names of sub-packages 
627     stepmake=stepmake
628     
629
630     CONFIGSUFFIX=
631     # Check whether --enable-config or --disable-config was given.
632 if test "${enable_config+set}" = set; then
633   enableval="$enable_config"
634   CONFIGSUFFIX=$enableval
635 fi
636
637
638     if test "$CONFIGSUFFIX" != "" ; then
639         CONFIGFILE=config-$CONFIGSUFFIX
640     else
641         CONFIGFILE=config
642     fi
643     
644      
645     
646 # Make sure we can run config.sub.
647 if $ac_config_sub sun4 >/dev/null 2>&1; then :
648 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
649 fi
650
651 echo $ac_n "checking host system type""... $ac_c" 1>&6
652 echo "configure:653: checking host system type" >&5
653
654 host_alias=$host
655 case "$host_alias" in
656 NONE)
657   case $nonopt in
658   NONE)
659     if host_alias=`$ac_config_guess`; then :
660     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
661     fi ;;
662   *) host_alias=$nonopt ;;
663   esac ;;
664 esac
665
666 host=`$ac_config_sub $host_alias`
667 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
668 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
669 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
670 echo "$ac_t""$host" 1>&6
671
672     for ac_prog in make
673 do
674 # Extract the first word of "$ac_prog", so it can be a program name with args.
675 set dummy $ac_prog; ac_word=$2
676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
677 echo "configure:678: checking for $ac_word" >&5
678 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
679   echo $ac_n "(cached) $ac_c" 1>&6
680 else
681   if test -n "$MAKE"; then
682   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
683 else
684   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
685   for ac_dir in $PATH; do
686     test -z "$ac_dir" && ac_dir=.
687     if test -f $ac_dir/$ac_word; then
688       ac_cv_prog_MAKE="$ac_prog"
689       break
690     fi
691   done
692   IFS="$ac_save_ifs"
693 fi
694 fi
695 MAKE="$ac_cv_prog_MAKE"
696 if test -n "$MAKE"; then
697   echo "$ac_t""$MAKE" 1>&6
698 else
699   echo "$ac_t""no" 1>&6
700 fi
701
702 test -n "$MAKE" && break
703 done
704 test -n "$MAKE" || MAKE="error"
705
706     for ac_prog in find
707 do
708 # Extract the first word of "$ac_prog", so it can be a program name with args.
709 set dummy $ac_prog; ac_word=$2
710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
711 echo "configure:712: checking for $ac_word" >&5
712 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
713   echo $ac_n "(cached) $ac_c" 1>&6
714 else
715   if test -n "$FIND"; then
716   ac_cv_prog_FIND="$FIND" # Let the user override the test.
717 else
718   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
719   for ac_dir in $PATH; do
720     test -z "$ac_dir" && ac_dir=.
721     if test -f $ac_dir/$ac_word; then
722       ac_cv_prog_FIND="$ac_prog"
723       break
724     fi
725   done
726   IFS="$ac_save_ifs"
727 fi
728 fi
729 FIND="$ac_cv_prog_FIND"
730 if test -n "$FIND"; then
731   echo "$ac_t""$FIND" 1>&6
732 else
733   echo "$ac_t""no" 1>&6
734 fi
735
736 test -n "$FIND" && break
737 done
738 test -n "$FIND" || FIND="error"
739
740
741
742
743     for ac_prog in tar
744 do
745 # Extract the first word of "$ac_prog", so it can be a program name with args.
746 set dummy $ac_prog; ac_word=$2
747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
748 echo "configure:749: checking for $ac_word" >&5
749 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
750   echo $ac_n "(cached) $ac_c" 1>&6
751 else
752   if test -n "$TAR"; then
753   ac_cv_prog_TAR="$TAR" # Let the user override the test.
754 else
755   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
756   for ac_dir in $PATH; do
757     test -z "$ac_dir" && ac_dir=.
758     if test -f $ac_dir/$ac_word; then
759       ac_cv_prog_TAR="$ac_prog"
760       break
761     fi
762   done
763   IFS="$ac_save_ifs"
764 fi
765 fi
766 TAR="$ac_cv_prog_TAR"
767 if test -n "$TAR"; then
768   echo "$ac_t""$TAR" 1>&6
769 else
770   echo "$ac_t""no" 1>&6
771 fi
772
773 test -n "$TAR" && break
774 done
775 test -n "$TAR" || TAR="error"
776
777     for ac_prog in bash
778 do
779 # Extract the first word of "$ac_prog", so it can be a program name with args.
780 set dummy $ac_prog; ac_word=$2
781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
782 echo "configure:783: checking for $ac_word" >&5
783 if eval "test \"`echo '$''{'ac_cv_prog_BASH'+set}'`\" = set"; then
784   echo $ac_n "(cached) $ac_c" 1>&6
785 else
786   if test -n "$BASH"; then
787   ac_cv_prog_BASH="$BASH" # Let the user override the test.
788 else
789   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
790   for ac_dir in $PATH; do
791     test -z "$ac_dir" && ac_dir=.
792     if test -f $ac_dir/$ac_word; then
793       ac_cv_prog_BASH="$ac_prog"
794       break
795     fi
796   done
797   IFS="$ac_save_ifs"
798 fi
799 fi
800 BASH="$ac_cv_prog_BASH"
801 if test -n "$BASH"; then
802   echo "$ac_t""$BASH" 1>&6
803 else
804   echo "$ac_t""no" 1>&6
805 fi
806
807 test -n "$BASH" && break
808 done
809 test -n "$BASH" || BASH="/bin/sh"
810
811
812     # Extract the first word of "python", so it can be a program name with args.
813 set dummy python; ac_word=$2
814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
815 echo "configure:816: checking for $ac_word" >&5
816 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
817   echo $ac_n "(cached) $ac_c" 1>&6
818 else
819   case "$PYTHON" in
820   /*)
821   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
822   ;;
823   *)
824   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
825   for ac_dir in $PATH; do
826     test -z "$ac_dir" && ac_dir=.
827     if test -f $ac_dir/$ac_word; then
828       ac_cv_path_PYTHON="$ac_dir/$ac_word"
829       break
830     fi
831   done
832   IFS="$ac_save_ifs"
833   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
834   ;;
835 esac
836 fi
837 PYTHON="$ac_cv_path_PYTHON"
838 if test -n "$PYTHON"; then
839   echo "$ac_t""$PYTHON" 1>&6
840 else
841   echo "$ac_t""no" 1>&6
842 fi
843
844     
845
846
847     
848         result="`echo \"$MAKE\" | grep echo`"
849         if test "x$MAKE" = "xerror" -o "x$result" != "x"; then
850                 
851     echo "configure: warning: can\'t find GNU make. You should install GNU make" 1>&2
852     warn_b=yes
853
854         fi
855
856     if test $MAKE != "error" ; then
857         $MAKE -v| grep GNU > /dev/null
858         if test "$?" = 1
859         then
860                 
861     echo "configure: warning: Please install *GNU* make" 1>&2
862     warn_b=yes
863  
864         fi 
865     fi 
866
867     
868         result="`echo \"$PYTHON\" | grep echo`"
869         if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
870                 
871     echo "configure: warning: can\'t find python. You should install Python" 1>&2
872     warn_b=yes
873
874         fi
875
876
877     if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
878         LN=cp # hard link does not work under cygnus-nt (yet?)
879         ZIP="zip -r -9" #
880         DOTEXE=.exe
881         INSTALL="\$(stepdir)/../bin/install-dot-exe.sh -c"
882     else
883         LN=ln
884         ZIP="zip -r -9"
885         INSTALL="\$(stepdir)/../bin/install-sh -c"
886     fi
887     
888     
889     
890     
891
892     
893     if test "$datadir" = "\${prefix}/share"; then
894             datadir='${prefix}/share/'$package
895     fi
896     DIR_DATADIR=${datadir}
897     presome=${prefix}
898     if test "$prefix" = "NONE"; then
899             presome=${ac_default_prefix}
900     fi
901     DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
902     
903     
904     cat >> confdefs.h <<EOF
905 #define DIR_DATADIR "${DIR_DATADIR}"
906 EOF
907
908
909
910
911 # For all packages except the StepMake package itself
912 subdirs="stepmake"
913
914
915 # Uncomment the configuration options your package needs.
916
917     # -O is necessary to get inlining
918     OPTIMIZE="-O"
919     checking_b=yes
920     optimise_b=tja
921     profile_b=no
922     debug_b=yes
923
924     # Check whether --enable-checking or --disable-checking was given.
925 if test "${enable_checking+set}" = set; then
926   enableval="$enable_checking"
927   checking_b=$enableval 
928 fi
929
930
931     # actually, the default is: tja='-O' to get inlining...
932     # off=''
933     # Check whether --enable-optimise or --disable-optimise was given.
934 if test "${enable_optimise+set}" = set; then
935   enableval="$enable_optimise"
936   optimise_b=$enableval
937 fi
938
939     
940     # Check whether --enable-profiling or --disable-profiling was given.
941 if test "${enable_profiling+set}" = set; then
942   enableval="$enable_profiling"
943   profile_b=$enableval
944 fi
945
946     
947     # Check whether --enable-debugging or --disable-debugging was given.
948 if test "${enable_debugging+set}" = set; then
949   enableval="$enable_debugging"
950   debug_b=$enableval
951 fi
952
953
954     # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
955 if test "${enable_mingw_prefix+set}" = set; then
956   enableval="$enable_mingw_prefix"
957   MINGWPREFIX=$enableval
958 else
959   MINGWPREFIX=no
960 fi
961
962
963     if test "$printing_b" = no; then
964         # ugh
965         cat >> confdefs.h <<\EOF
966 #define NPRINT 1
967 EOF
968
969         DEFINES="$DEFINES -DNPRINT"
970     fi
971         
972     if test "$checking_b" = no; then
973         # ugh
974         cat >> confdefs.h <<\EOF
975 #define NDEBUG 1
976 EOF
977
978         DEFINES="$DEFINES -DNDEBUG"
979     fi
980
981     if test "$optimise_b" = yes; then
982         DEFINES="$DEFINES -finline-functions"
983         OPTIMIZE="-O2"
984     fi
985
986     if test "$optimise_b" = no; then
987         OPTIMIZE=""
988     fi
989
990     if test $profile_b = yes; then
991         EXTRA_LIBES="-pg"
992         DEFINES="$DEFINES -pg"
993     fi
994
995     if test $debug_b = yes; then        
996         DEFINES="$DEFINES -g"
997     fi
998
999     # however, C++ support in mingw32 v 0.1.4 is still flaky
1000     if test x$MINGWPREFIX != xno; then 
1001         ICFLAGS="-I$MINGWPREFIX/include"
1002         ILDFLAGS="-$MINGWPREFIX/lib"
1003     fi
1004
1005     # Extract the first word of "gcc", so it can be a program name with args.
1006 set dummy gcc; ac_word=$2
1007 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1008 echo "configure:1009: checking for $ac_word" >&5
1009 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1010   echo $ac_n "(cached) $ac_c" 1>&6
1011 else
1012   if test -n "$CC"; then
1013   ac_cv_prog_CC="$CC" # Let the user override the test.
1014 else
1015   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1016   for ac_dir in $PATH; do
1017     test -z "$ac_dir" && ac_dir=.
1018     if test -f $ac_dir/$ac_word; then
1019       ac_cv_prog_CC="gcc"
1020       break
1021     fi
1022   done
1023   IFS="$ac_save_ifs"
1024 fi
1025 fi
1026 CC="$ac_cv_prog_CC"
1027 if test -n "$CC"; then
1028   echo "$ac_t""$CC" 1>&6
1029 else
1030   echo "$ac_t""no" 1>&6
1031 fi
1032
1033 if test -z "$CC"; then
1034   # Extract the first word of "cc", so it can be a program name with args.
1035 set dummy cc; ac_word=$2
1036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1037 echo "configure:1038: checking for $ac_word" >&5
1038 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1039   echo $ac_n "(cached) $ac_c" 1>&6
1040 else
1041   if test -n "$CC"; then
1042   ac_cv_prog_CC="$CC" # Let the user override the test.
1043 else
1044   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1045   ac_prog_rejected=no
1046   for ac_dir in $PATH; do
1047     test -z "$ac_dir" && ac_dir=.
1048     if test -f $ac_dir/$ac_word; then
1049       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1050         ac_prog_rejected=yes
1051         continue
1052       fi
1053       ac_cv_prog_CC="cc"
1054       break
1055     fi
1056   done
1057   IFS="$ac_save_ifs"
1058 if test $ac_prog_rejected = yes; then
1059   # We found a bogon in the path, so make sure we never use it.
1060   set dummy $ac_cv_prog_CC
1061   shift
1062   if test $# -gt 0; then
1063     # We chose a different compiler from the bogus one.
1064     # However, it has the same basename, so the bogon will be chosen
1065     # first if we set CC to just the basename; use the full file name.
1066     shift
1067     set dummy "$ac_dir/$ac_word" "$@"
1068     shift
1069     ac_cv_prog_CC="$@"
1070   fi
1071 fi
1072 fi
1073 fi
1074 CC="$ac_cv_prog_CC"
1075 if test -n "$CC"; then
1076   echo "$ac_t""$CC" 1>&6
1077 else
1078   echo "$ac_t""no" 1>&6
1079 fi
1080
1081   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1082 fi
1083
1084 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1085 echo "configure:1086: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1086
1087 ac_ext=c
1088 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1089 ac_cpp='$CPP $CPPFLAGS'
1090 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1091 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1092 cross_compiling=$ac_cv_prog_cc_cross
1093
1094 cat > conftest.$ac_ext <<EOF
1095 #line 1096 "configure"
1096 #include "confdefs.h"
1097 main(){return(0);}
1098 EOF
1099 if { (eval echo configure:1100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1100   ac_cv_prog_cc_works=yes
1101   # If we can't run a trivial program, we are probably using a cross compiler.
1102   if (./conftest; exit) 2>/dev/null; then
1103     ac_cv_prog_cc_cross=no
1104   else
1105     ac_cv_prog_cc_cross=yes
1106   fi
1107 else
1108   echo "configure: failed program was:" >&5
1109   cat conftest.$ac_ext >&5
1110   ac_cv_prog_cc_works=no
1111 fi
1112 rm -fr conftest*
1113
1114 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1115 if test $ac_cv_prog_cc_works = no; then
1116   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1117 fi
1118 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1119 echo "configure:1120: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1120 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1121 cross_compiling=$ac_cv_prog_cc_cross
1122
1123 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1124 echo "configure:1125: checking whether we are using GNU C" >&5
1125 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1126   echo $ac_n "(cached) $ac_c" 1>&6
1127 else
1128   cat > conftest.c <<EOF
1129 #ifdef __GNUC__
1130   yes;
1131 #endif
1132 EOF
1133 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1134   ac_cv_prog_gcc=yes
1135 else
1136   ac_cv_prog_gcc=no
1137 fi
1138 fi
1139
1140 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1141
1142 if test $ac_cv_prog_gcc = yes; then
1143   GCC=yes
1144   ac_test_CFLAGS="${CFLAGS+set}"
1145   ac_save_CFLAGS="$CFLAGS"
1146   CFLAGS=
1147   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether ${CC-cc} accepts -g" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1150   echo $ac_n "(cached) $ac_c" 1>&6
1151 else
1152   echo 'void f(){}' > conftest.c
1153 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1154   ac_cv_prog_cc_g=yes
1155 else
1156   ac_cv_prog_cc_g=no
1157 fi
1158 rm -f conftest*
1159
1160 fi
1161
1162 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1163   if test "$ac_test_CFLAGS" = set; then
1164     CFLAGS="$ac_save_CFLAGS"
1165   elif test $ac_cv_prog_cc_g = yes; then
1166     CFLAGS="-g -O2"
1167   else
1168     CFLAGS="-O2"
1169   fi
1170 else
1171   GCC=
1172   test "${CFLAGS+set}" = set || CFLAGS="-g"
1173 fi
1174
1175     LD='$(CC)'
1176     
1177
1178     CPPFLAGS=${CPPFLAGS:-""}
1179     
1180     
1181     
1182     
1183     
1184     
1185
1186 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1187
1188 printing_b=no
1189 # Check whether --enable-printing or --disable-printing was given.
1190 if test "${enable_printing+set}" = set; then
1191   enableval="$enable_printing"
1192   printing_b=$enableval
1193 fi
1194
1195
1196 if test "$optimise_b" = yes; then
1197     DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
1198     cat >> confdefs.h <<\EOF
1199 #define STRINGS_UTILS_INLINED 1
1200 EOF
1201
1202 fi
1203
1204 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1205 echo "configure:1206: checking how to run the C++ preprocessor" >&5
1206 if test -z "$CXXCPP"; then
1207 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1208   echo $ac_n "(cached) $ac_c" 1>&6
1209 else
1210   ac_ext=C
1211 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1212 ac_cpp='$CXXCPP $CPPFLAGS'
1213 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1214 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1215 cross_compiling=$ac_cv_prog_cxx_cross
1216   CXXCPP="${CXX-g++} -E"
1217   cat > conftest.$ac_ext <<EOF
1218 #line 1219 "configure"
1219 #include "confdefs.h"
1220 #include <stdlib.h>
1221 EOF
1222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1223 { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1224 ac_err=`grep -v '^ *+' conftest.out`
1225 if test -z "$ac_err"; then
1226   :
1227 else
1228   echo "$ac_err" >&5
1229   echo "configure: failed program was:" >&5
1230   cat conftest.$ac_ext >&5
1231   rm -rf conftest*
1232   CXXCPP=/lib/cpp
1233 fi
1234 rm -f conftest*
1235   ac_cv_prog_CXXCPP="$CXXCPP"
1236 fi
1237 fi
1238 CXXCPP="$ac_cv_prog_CXXCPP"
1239 echo "$ac_t""$CXXCPP" 1>&6
1240
1241
1242     ac_ext=C
1243 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1244 ac_cpp='$CXXCPP $CPPFLAGS'
1245 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1246 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1247 cross_compiling=$ac_cv_prog_cxx_cross
1248
1249     for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1250 do
1251 # Extract the first word of "$ac_prog", so it can be a program name with args.
1252 set dummy $ac_prog; ac_word=$2
1253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1254 echo "configure:1255: checking for $ac_word" >&5
1255 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1256   echo $ac_n "(cached) $ac_c" 1>&6
1257 else
1258   if test -n "$CXX"; then
1259   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1260 else
1261   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1262   for ac_dir in $PATH; do
1263     test -z "$ac_dir" && ac_dir=.
1264     if test -f $ac_dir/$ac_word; then
1265       ac_cv_prog_CXX="$ac_prog"
1266       break
1267     fi
1268   done
1269   IFS="$ac_save_ifs"
1270 fi
1271 fi
1272 CXX="$ac_cv_prog_CXX"
1273 if test -n "$CXX"; then
1274   echo "$ac_t""$CXX" 1>&6
1275 else
1276   echo "$ac_t""no" 1>&6
1277 fi
1278
1279 test -n "$CXX" && break
1280 done
1281 test -n "$CXX" || CXX="gcc"
1282
1283
1284 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1285 echo "configure:1286: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1286
1287 ac_ext=C
1288 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1289 ac_cpp='$CXXCPP $CPPFLAGS'
1290 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1291 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1292 cross_compiling=$ac_cv_prog_cxx_cross
1293
1294 cat > conftest.$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1297 main(){return(0);}
1298 EOF
1299 if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1300   ac_cv_prog_cxx_works=yes
1301   # If we can't run a trivial program, we are probably using a cross compiler.
1302   if (./conftest; exit) 2>/dev/null; then
1303     ac_cv_prog_cxx_cross=no
1304   else
1305     ac_cv_prog_cxx_cross=yes
1306   fi
1307 else
1308   echo "configure: failed program was:" >&5
1309   cat conftest.$ac_ext >&5
1310   ac_cv_prog_cxx_works=no
1311 fi
1312 rm -fr conftest*
1313
1314 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1315 if test $ac_cv_prog_cxx_works = no; then
1316   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1317 fi
1318 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1319 echo "configure:1320: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1320 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1321 cross_compiling=$ac_cv_prog_cxx_cross
1322
1323 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1324 echo "configure:1325: checking whether we are using GNU C++" >&5
1325 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1326   echo $ac_n "(cached) $ac_c" 1>&6
1327 else
1328   cat > conftest.C <<EOF
1329 #ifdef __GNUC__
1330   yes;
1331 #endif
1332 EOF
1333 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1334   ac_cv_prog_gxx=yes
1335 else
1336   ac_cv_prog_gxx=no
1337 fi
1338 fi
1339
1340 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1341
1342 if test $ac_cv_prog_gxx = yes; then
1343   GXX=yes
1344   ac_test_CXXFLAGS="${CXXFLAGS+set}"
1345   ac_save_CXXFLAGS="$CXXFLAGS"
1346   CXXFLAGS=
1347   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1348 echo "configure:1349: checking whether ${CXX-g++} accepts -g" >&5
1349 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1350   echo $ac_n "(cached) $ac_c" 1>&6
1351 else
1352   echo 'void f(){}' > conftest.cc
1353 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1354   ac_cv_prog_cxx_g=yes
1355 else
1356   ac_cv_prog_cxx_g=no
1357 fi
1358 rm -f conftest*
1359
1360 fi
1361
1362 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1363   if test "$ac_test_CXXFLAGS" = set; then
1364     CXXFLAGS="$ac_save_CXXFLAGS"
1365   elif test $ac_cv_prog_cxx_g = yes; then
1366     CXXFLAGS="-g -O2"
1367   else
1368     CXXFLAGS="-O2"
1369   fi
1370 else
1371   GXX=
1372   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1373 fi
1374
1375
1376     ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1377 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1378 echo "configure:1379: checking for FlexLexer.h" >&5
1379 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1380   echo $ac_n "(cached) $ac_c" 1>&6
1381 else
1382   cat > conftest.$ac_ext <<EOF
1383 #line 1384 "configure"
1384 #include "confdefs.h"
1385 #include <FlexLexer.h>
1386 EOF
1387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1388 { (eval echo configure:1389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1389 ac_err=`grep -v '^ *+' conftest.out`
1390 if test -z "$ac_err"; then
1391   rm -rf conftest*
1392   eval "ac_cv_header_$ac_safe=yes"
1393 else
1394   echo "$ac_err" >&5
1395   echo "configure: failed program was:" >&5
1396   cat conftest.$ac_ext >&5
1397   rm -rf conftest*
1398   eval "ac_cv_header_$ac_safe=no"
1399 fi
1400 rm -f conftest*
1401 fi
1402 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1403   echo "$ac_t""yes" 1>&6
1404   true
1405 else
1406   echo "$ac_t""no" 1>&6
1407
1408     echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1409     warn_b=yes
1410
1411 fi
1412
1413
1414     CXXFLAGS="$DEFINES $OPTIMIZE"
1415     LDFLAGS=$EXTRA_LIBES
1416
1417     
1418     
1419     LD='$(CXX)'
1420     
1421
1422
1423     # ugh autoconf
1424         if $CXX --version | grep '2\.[78]' > /dev/null ||
1425         $CXX --version | grep 'egcs' > /dev/null
1426         then
1427             true
1428     else
1429             
1430     echo "configure: warning: can't find g++ 2.7" 1>&2
1431     warn_b=yes
1432
1433     fi
1434
1435
1436     echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
1437 echo "configure:1438: checking whether explicit instantiation is needed" >&5
1438 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
1439   echo $ac_n "(cached) $ac_c" 1>&6
1440 else
1441   cat > conftest.$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1444
1445     template <class T> struct foo { static int baz; };
1446     template <class T> int foo<T>::baz = 1;
1447     
1448 int main() {
1449  return foo<int>::baz; 
1450 ; return 0; }
1451 EOF
1452 if { (eval echo configure:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1453   rm -rf conftest*
1454   lily_cv_need_explicit_instantiation=no
1455 else
1456   echo "configure: failed program was:" >&5
1457   cat conftest.$ac_ext >&5
1458   rm -rf conftest*
1459   lily_cv_need_explicit_instantiation=yes
1460 fi
1461 rm -f conftest*
1462 fi
1463
1464 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
1465     if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
1466         cat >> confdefs.h <<\EOF
1467 #define NEED_EXPLICIT_INSTANTIATION 1
1468 EOF
1469
1470     fi
1471
1472
1473     # ugh, automake: we want (and check for) bison
1474     for ac_prog in 'bison -y' byacc
1475 do
1476 # Extract the first word of "$ac_prog", so it can be a program name with args.
1477 set dummy $ac_prog; ac_word=$2
1478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1479 echo "configure:1480: checking for $ac_word" >&5
1480 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1481   echo $ac_n "(cached) $ac_c" 1>&6
1482 else
1483   if test -n "$YACC"; then
1484   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1485 else
1486   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1487   for ac_dir in $PATH; do
1488     test -z "$ac_dir" && ac_dir=.
1489     if test -f $ac_dir/$ac_word; then
1490       ac_cv_prog_YACC="$ac_prog"
1491       break
1492     fi
1493   done
1494   IFS="$ac_save_ifs"
1495 fi
1496 fi
1497 YACC="$ac_cv_prog_YACC"
1498 if test -n "$YACC"; then
1499   echo "$ac_t""$YACC" 1>&6
1500 else
1501   echo "$ac_t""no" 1>&6
1502 fi
1503
1504 test -n "$YACC" && break
1505 done
1506 test -n "$YACC" || YACC="yacc"
1507
1508     # ugh, automake: we want (and check for) flex
1509     # AC_PROG_LEX
1510     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
1511
1512     # AC_DECL_YYTEXT
1513     # ugh, ugh
1514     ac_cv_prog_lex_root=lex.yy
1515
1516     for ac_prog in bison
1517 do
1518 # Extract the first word of "$ac_prog", so it can be a program name with args.
1519 set dummy $ac_prog; ac_word=$2
1520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1521 echo "configure:1522: checking for $ac_word" >&5
1522 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1523   echo $ac_n "(cached) $ac_c" 1>&6
1524 else
1525   if test -n "$BISON"; then
1526   ac_cv_prog_BISON="$BISON" # Let the user override the test.
1527 else
1528   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1529   for ac_dir in $PATH; do
1530     test -z "$ac_dir" && ac_dir=.
1531     if test -f $ac_dir/$ac_word; then
1532       ac_cv_prog_BISON="$ac_prog"
1533       break
1534     fi
1535   done
1536   IFS="$ac_save_ifs"
1537 fi
1538 fi
1539 BISON="$ac_cv_prog_BISON"
1540 if test -n "$BISON"; then
1541   echo "$ac_t""$BISON" 1>&6
1542 else
1543   echo "$ac_t""no" 1>&6
1544 fi
1545
1546 test -n "$BISON" && break
1547 done
1548 test -n "$BISON" || BISON="error"
1549
1550     for ac_prog in flex
1551 do
1552 # Extract the first word of "$ac_prog", so it can be a program name with args.
1553 set dummy $ac_prog; ac_word=$2
1554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1555 echo "configure:1556: checking for $ac_word" >&5
1556 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
1557   echo $ac_n "(cached) $ac_c" 1>&6
1558 else
1559   if test -n "$FLEX"; then
1560   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
1561 else
1562   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1563   for ac_dir in $PATH; do
1564     test -z "$ac_dir" && ac_dir=.
1565     if test -f $ac_dir/$ac_word; then
1566       ac_cv_prog_FLEX="$ac_prog"
1567       break
1568     fi
1569   done
1570   IFS="$ac_save_ifs"
1571 fi
1572 fi
1573 FLEX="$ac_cv_prog_FLEX"
1574 if test -n "$FLEX"; then
1575   echo "$ac_t""$FLEX" 1>&6
1576 else
1577   echo "$ac_t""no" 1>&6
1578 fi
1579
1580 test -n "$FLEX" && break
1581 done
1582 test -n "$FLEX" || FLEX="error"
1583
1584     
1585         result="`echo \"$BISON\" | grep echo`"
1586         if test "x$BISON" = "xerror" -o "x$result" != "x"; then
1587                 
1588     echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
1589     warn_b=yes
1590
1591         fi
1592
1593     
1594         result="`echo \"$FLEX\" | grep echo`"
1595         if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
1596                 
1597     echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
1598     warn_b=yes
1599
1600         fi
1601
1602
1603     if test $BISON != "error"; then
1604         bison_version=`$BISON --version| sed 's/^.*version 1.//g' `
1605         if test $bison_version -lt 25; then
1606             
1607     echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2
1608     warn_b=yes
1609
1610         fi      
1611     fi
1612
1613     
1614     
1615
1616
1617     for ac_prog in ar
1618 do
1619 # Extract the first word of "$ac_prog", so it can be a program name with args.
1620 set dummy $ac_prog; ac_word=$2
1621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1622 echo "configure:1623: checking for $ac_word" >&5
1623 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1624   echo $ac_n "(cached) $ac_c" 1>&6
1625 else
1626   if test -n "$AR"; then
1627   ac_cv_prog_AR="$AR" # Let the user override the test.
1628 else
1629   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1630   for ac_dir in $PATH; do
1631     test -z "$ac_dir" && ac_dir=.
1632     if test -f $ac_dir/$ac_word; then
1633       ac_cv_prog_AR="$ac_prog"
1634       break
1635     fi
1636   done
1637   IFS="$ac_save_ifs"
1638 fi
1639 fi
1640 AR="$ac_cv_prog_AR"
1641 if test -n "$AR"; then
1642   echo "$ac_t""$AR" 1>&6
1643 else
1644   echo "$ac_t""no" 1>&6
1645 fi
1646
1647 test -n "$AR" && break
1648 done
1649 test -n "$AR" || AR="error"
1650
1651     # Extract the first word of "ranlib", so it can be a program name with args.
1652 set dummy ranlib; ac_word=$2
1653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1654 echo "configure:1655: checking for $ac_word" >&5
1655 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1656   echo $ac_n "(cached) $ac_c" 1>&6
1657 else
1658   if test -n "$RANLIB"; then
1659   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1660 else
1661   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1662   for ac_dir in $PATH; do
1663     test -z "$ac_dir" && ac_dir=.
1664     if test -f $ac_dir/$ac_word; then
1665       ac_cv_prog_RANLIB="ranlib"
1666       break
1667     fi
1668   done
1669   IFS="$ac_save_ifs"
1670   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1671 fi
1672 fi
1673 RANLIB="$ac_cv_prog_RANLIB"
1674 if test -n "$RANLIB"; then
1675   echo "$ac_t""$RANLIB" 1>&6
1676 else
1677   echo "$ac_t""no" 1>&6
1678 fi
1679
1680
1681     
1682     
1683
1684 # AC_STEPMAKE_LIBTOOL
1685
1686     lang=English
1687     ALL_LINGUAS="en nl"
1688
1689     # with/enable ??
1690     # Check whether --with-localedir or --without-localedir was given.
1691 if test "${with_localedir+set}" = set; then
1692   withval="$with_localedir"
1693   localedir=$with_localedir
1694 else
1695   localedir='${prefix}/share/locale'
1696 fi
1697
1698
1699     # Check whether --with-lang or --without-lang was given.
1700 if test "${with_lang+set}" = set; then
1701   withval="$with_lang"
1702   language=$with_lang
1703 else
1704   language=English
1705 fi
1706
1707
1708     echo $ac_n "checking language""... $ac_c" 1>&6
1709 echo "configure:1710: checking language" >&5    
1710     case "$language" in
1711       En* | en* | Am* | am* | US* | us*)
1712             lang=English;;
1713       NL | nl | Du* | du* | Ned* | ned*)
1714             lang=Dutch;;
1715       "")
1716             lang=English;;
1717       *)
1718             lang=unknown;;
1719     esac
1720     echo "$ac_t""$lang" 1>&6
1721
1722     if test "$lang" = "unknown" ; then
1723         
1724     echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
1725     warn_b=yes
1726
1727     fi
1728
1729
1730
1731     DIR_LOCALEDIR=${localedir}
1732     presome=${prefix}
1733     if test "$prefix" = "NONE"; then
1734             presome=${ac_default_prefix}
1735     fi
1736     DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
1737     
1738     
1739     cat >> confdefs.h <<EOF
1740 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
1741 EOF
1742
1743
1744     echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
1745 echo "configure:1746: checking for gettext in -lintl" >&5
1746 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
1747 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1748   echo $ac_n "(cached) $ac_c" 1>&6
1749 else
1750   ac_save_LIBS="$LIBS"
1751 LIBS="-lintl  $LIBS"
1752 cat > conftest.$ac_ext <<EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1755 /* Override any gcc2 internal prototype to avoid an error.  */
1756 #ifdef __cplusplus
1757 extern "C"
1758 #endif
1759 /* We use char because int might match the return type of a gcc2
1760     builtin and then its argument prototype would still apply.  */
1761 char gettext();
1762
1763 int main() {
1764 gettext()
1765 ; return 0; }
1766 EOF
1767 if { (eval echo configure:1768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1768   rm -rf conftest*
1769   eval "ac_cv_lib_$ac_lib_var=yes"
1770 else
1771   echo "configure: failed program was:" >&5
1772   cat conftest.$ac_ext >&5
1773   rm -rf conftest*
1774   eval "ac_cv_lib_$ac_lib_var=no"
1775 fi
1776 rm -f conftest*
1777 LIBS="$ac_save_LIBS"
1778
1779 fi
1780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1781   echo "$ac_t""yes" 1>&6
1782     ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1783     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1784   cat >> confdefs.h <<EOF
1785 #define $ac_tr_lib 1
1786 EOF
1787
1788   LIBS="-lintl $LIBS"
1789
1790 else
1791   echo "$ac_t""no" 1>&6
1792 fi
1793
1794     for ac_func in gettext
1795 do
1796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1797 echo "configure:1798: checking for $ac_func" >&5
1798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1799   echo $ac_n "(cached) $ac_c" 1>&6
1800 else
1801   cat > conftest.$ac_ext <<EOF
1802 #line 1803 "configure"
1803 #include "confdefs.h"
1804 /* System header to define __stub macros and hopefully few prototypes,
1805     which can conflict with char $ac_func(); below.  */
1806 #include <assert.h>
1807 /* Override any gcc2 internal prototype to avoid an error.  */
1808 #ifdef __cplusplus
1809 extern "C"
1810 #endif
1811 /* We use char because int might match the return type of a gcc2
1812     builtin and then its argument prototype would still apply.  */
1813 char $ac_func();
1814
1815 int main() {
1816
1817 /* The GNU C library defines this for functions which it implements
1818     to always fail with ENOSYS.  Some functions are actually named
1819     something starting with __ and the normal name is an alias.  */
1820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1821 choke me
1822 #else
1823 $ac_func();
1824 #endif
1825
1826 ; return 0; }
1827 EOF
1828 if { (eval echo configure:1829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1829   rm -rf conftest*
1830   eval "ac_cv_func_$ac_func=yes"
1831 else
1832   echo "configure: failed program was:" >&5
1833   cat conftest.$ac_ext >&5
1834   rm -rf conftest*
1835   eval "ac_cv_func_$ac_func=no"
1836 fi
1837 rm -f conftest*
1838 fi
1839
1840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1841   echo "$ac_t""yes" 1>&6
1842     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1843   cat >> confdefs.h <<EOF
1844 #define $ac_tr_func 1
1845 EOF
1846  
1847 else
1848   echo "$ac_t""no" 1>&6
1849 fi
1850 done
1851
1852
1853
1854     # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
1855     for ac_prog in msgfmt
1856 do
1857 # Extract the first word of "$ac_prog", so it can be a program name with args.
1858 set dummy $ac_prog; ac_word=$2
1859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1860 echo "configure:1861: checking for $ac_word" >&5
1861 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1862   echo $ac_n "(cached) $ac_c" 1>&6
1863 else
1864   if test -n "$MSGFMT"; then
1865   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1866 else
1867   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1868   for ac_dir in $PATH; do
1869     test -z "$ac_dir" && ac_dir=.
1870     if test -f $ac_dir/$ac_word; then
1871       ac_cv_prog_MSGFMT="$ac_prog"
1872       break
1873     fi
1874   done
1875   IFS="$ac_save_ifs"
1876 fi
1877 fi
1878 MSGFMT="$ac_cv_prog_MSGFMT"
1879 if test -n "$MSGFMT"; then
1880   echo "$ac_t""$MSGFMT" 1>&6
1881 else
1882   echo "$ac_t""no" 1>&6
1883 fi
1884
1885 test -n "$MSGFMT" && break
1886 done
1887 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
1888
1889     echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
1890 echo "configure:1891: checking whether msgfmt accepts -o" >&5
1891     msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
1892     if test "$msgfmt_output" = ""; then
1893         echo "$ac_t""yes" 1>&6
1894     else
1895         # urg
1896         MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
1897         echo "$ac_t""no" 1>&6
1898         
1899     echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
1900     warn_b=yes
1901
1902     fi
1903     if test ! -n "$MSGFMT"; then
1904         
1905     echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
1906     warn_b=yes
1907
1908     fi
1909
1910
1911     # Check whether --enable-tex-prefix or --disable-tex-prefix was given.
1912 if test "${enable_tex_prefix+set}" = set; then
1913   enableval="$enable_tex_prefix"
1914   TEXPREFIX=$enableval
1915 else
1916   TEXPREFIX=auto 
1917 fi
1918
1919     
1920     # Check whether --enable-tex-dir or --disable-tex-dir was given.
1921 if test "${enable_tex_dir+set}" = set; then
1922   enableval="$enable_tex_dir"
1923   TEXDIR=$enableval
1924 else
1925   TEXDIR=auto 
1926 fi
1927
1928
1929     # Check whether --enable-mf-dir or --disable-mf-dir was given.
1930 if test "${enable_mf_dir+set}" = set; then
1931   enableval="$enable_mf_dir"
1932   MFDIR=$enableval
1933 else
1934   MFDIR=auto
1935 fi
1936
1937
1938     if test "x$TEXPREFIX" = xauto ; then
1939         
1940     
1941
1942     echo $ac_n "checking TeX/MF root dir directory""... $ac_c" 1>&6
1943 echo "configure:1944: checking TeX/MF root dir directory" >&5    
1944
1945     find_root_prefix="$prefix"
1946     
1947
1948     test "x$find_root_prefix" = xNONE && find_root_prefix="$ac_default_prefix"
1949     find_texpostfix="";
1950     for postfix in "/lib/tex/" "/lib/texmf" "/lib" "/tex" "/texmf"; do
1951         find_texprefix="$find_root_prefix$postfix"
1952         if test -d $find_texprefix; then
1953             find_texpostfix=$postfix
1954             break;
1955         fi
1956     done
1957     
1958     if test "x$find_texpostfix" = x; then
1959         find_texpostfix='/lib/texmf/tex'
1960         
1961     echo "configure: warning: Cannot determine the TeX-directory. Please use --enable-tex-prefix" 1>&2
1962     warn_b=yes
1963
1964     fi
1965
1966     find_texprefix="$find_root_prefix/$find_texpostfix"
1967
1968     # only assign if variablename not empty
1969     if test x != "x$TEXPREFIX"; then
1970         TEXPREFIX='${prefix}'/"$find_texpostfix"
1971     fi
1972     echo "$ac_t""$find_texprefix" 1>&6
1973
1974
1975     else
1976      find_texprefix=$TEXPREFIX
1977     fi
1978
1979     if test "x$MFDIR" = xauto; then
1980         
1981     
1982     
1983     echo $ac_n "checking MF input directory""... $ac_c" 1>&6
1984 echo "configure:1985: checking MF input directory" >&5    
1985     find_dirdir=`(cd $find_texprefix; 
1986       $FIND ./ -type d -a -name source -print |sort|head -1|sed 's#^\./##')`
1987     
1988
1989     if test "x$find_dirdir" = x; then
1990        find_dirdir="/source";
1991        
1992     echo "configure: warning: Cannot determine MF input subdirectory. Please set from command-line" 1>&2
1993     warn_b=yes
1994
1995         true
1996     fi
1997     MFDIR=$find_dirdir
1998     echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
1999
2000     MFDIR="$TEXPREFIX/$MFDIR"
2001
2002     fi
2003         
2004     if test "x$TEXDIR" = xauto ; then
2005         
2006     
2007     
2008     echo $ac_n "checking TeX input directory""... $ac_c" 1>&6
2009 echo "configure:2010: checking TeX input directory" >&5    
2010     find_dirdir=`(cd $find_texprefix; 
2011       $FIND ./ -type d -a -name tex -print |sort|head -1|sed 's#^\./##')`
2012     
2013
2014     if test "x$find_dirdir" = x; then
2015        find_dirdir="/tex";
2016        
2017     echo "configure: warning: Cannot determine TeX input subdirectory. Please set from command-line" 1>&2
2018     warn_b=yes
2019
2020         true
2021     fi
2022     TEXDIR=$find_dirdir
2023     echo "$ac_t""$find_texprefix/$find_dirdir" 1>&6
2024
2025     TEXDIR="$TEXPREFIX/$TEXDIR"
2026
2027     fi
2028
2029     
2030     
2031     
2032
2033
2034     if test "x$YODL" = "x"; then 
2035         for ac_prog in yodl
2036 do
2037 # Extract the first word of "$ac_prog", so it can be a program name with args.
2038 set dummy $ac_prog; ac_word=$2
2039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2040 echo "configure:2041: checking for $ac_word" >&5
2041 if eval "test \"`echo '$''{'ac_cv_prog_YODL'+set}'`\" = set"; then
2042   echo $ac_n "(cached) $ac_c" 1>&6
2043 else
2044   if test -n "$YODL"; then
2045   ac_cv_prog_YODL="$YODL" # Let the user override the test.
2046 else
2047   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2048   for ac_dir in $PATH; do
2049     test -z "$ac_dir" && ac_dir=.
2050     if test -f $ac_dir/$ac_word; then
2051       ac_cv_prog_YODL="$ac_prog"
2052       break
2053     fi
2054   done
2055   IFS="$ac_save_ifs"
2056 fi
2057 fi
2058 YODL="$ac_cv_prog_YODL"
2059 if test -n "$YODL"; then
2060   echo "$ac_t""$YODL" 1>&6
2061 else
2062   echo "$ac_t""no" 1>&6
2063 fi
2064
2065 test -n "$YODL" && break
2066 done
2067 test -n "$YODL" || YODL="-echo no yodl"
2068
2069         for ac_prog in yodl2html
2070 do
2071 # Extract the first word of "$ac_prog", so it can be a program name with args.
2072 set dummy $ac_prog; ac_word=$2
2073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2074 echo "configure:2075: checking for $ac_word" >&5
2075 if eval "test \"`echo '$''{'ac_cv_prog_YODL2HTML'+set}'`\" = set"; then
2076   echo $ac_n "(cached) $ac_c" 1>&6
2077 else
2078   if test -n "$YODL2HTML"; then
2079   ac_cv_prog_YODL2HTML="$YODL2HTML" # Let the user override the test.
2080 else
2081   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2082   for ac_dir in $PATH; do
2083     test -z "$ac_dir" && ac_dir=.
2084     if test -f $ac_dir/$ac_word; then
2085       ac_cv_prog_YODL2HTML="$ac_prog"
2086       break
2087     fi
2088   done
2089   IFS="$ac_save_ifs"
2090 fi
2091 fi
2092 YODL2HTML="$ac_cv_prog_YODL2HTML"
2093 if test -n "$YODL2HTML"; then
2094   echo "$ac_t""$YODL2HTML" 1>&6
2095 else
2096   echo "$ac_t""no" 1>&6
2097 fi
2098
2099 test -n "$YODL2HTML" && break
2100 done
2101 test -n "$YODL2HTML" || YODL2HTML="-echo no yodl"
2102
2103         for ac_prog in yodl2latex
2104 do
2105 # Extract the first word of "$ac_prog", so it can be a program name with args.
2106 set dummy $ac_prog; ac_word=$2
2107 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2108 echo "configure:2109: checking for $ac_word" >&5
2109 if eval "test \"`echo '$''{'ac_cv_prog_YODL2LATEX'+set}'`\" = set"; then
2110   echo $ac_n "(cached) $ac_c" 1>&6
2111 else
2112   if test -n "$YODL2LATEX"; then
2113   ac_cv_prog_YODL2LATEX="$YODL2LATEX" # Let the user override the test.
2114 else
2115   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2116   for ac_dir in $PATH; do
2117     test -z "$ac_dir" && ac_dir=.
2118     if test -f $ac_dir/$ac_word; then
2119       ac_cv_prog_YODL2LATEX="$ac_prog"
2120       break
2121     fi
2122   done
2123   IFS="$ac_save_ifs"
2124 fi
2125 fi
2126 YODL2LATEX="$ac_cv_prog_YODL2LATEX"
2127 if test -n "$YODL2LATEX"; then
2128   echo "$ac_t""$YODL2LATEX" 1>&6
2129 else
2130   echo "$ac_t""no" 1>&6
2131 fi
2132
2133 test -n "$YODL2LATEX" && break
2134 done
2135
2136         for ac_prog in yodl2man
2137 do
2138 # Extract the first word of "$ac_prog", so it can be a program name with args.
2139 set dummy $ac_prog; ac_word=$2
2140 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2141 echo "configure:2142: checking for $ac_word" >&5
2142 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MAN'+set}'`\" = set"; then
2143   echo $ac_n "(cached) $ac_c" 1>&6
2144 else
2145   if test -n "$YODL2MAN"; then
2146   ac_cv_prog_YODL2MAN="$YODL2MAN" # Let the user override the test.
2147 else
2148   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2149   for ac_dir in $PATH; do
2150     test -z "$ac_dir" && ac_dir=.
2151     if test -f $ac_dir/$ac_word; then
2152       ac_cv_prog_YODL2MAN="$ac_prog"
2153       break
2154     fi
2155   done
2156   IFS="$ac_save_ifs"
2157 fi
2158 fi
2159 YODL2MAN="$ac_cv_prog_YODL2MAN"
2160 if test -n "$YODL2MAN"; then
2161   echo "$ac_t""$YODL2MAN" 1>&6
2162 else
2163   echo "$ac_t""no" 1>&6
2164 fi
2165
2166 test -n "$YODL2MAN" && break
2167 done
2168 test -n "$YODL2MAN" || YODL2MAN="-echo no yodl"
2169
2170         for ac_prog in yodl2texinfo
2171 do
2172 # Extract the first word of "$ac_prog", so it can be a program name with args.
2173 set dummy $ac_prog; ac_word=$2
2174 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2175 echo "configure:2176: checking for $ac_word" >&5
2176 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TEXINFO'+set}'`\" = set"; then
2177   echo $ac_n "(cached) $ac_c" 1>&6
2178 else
2179   if test -n "$YODL2TEXINFO"; then
2180   ac_cv_prog_YODL2TEXINFO="$YODL2TEXINFO" # Let the user override the test.
2181 else
2182   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2183   for ac_dir in $PATH; do
2184     test -z "$ac_dir" && ac_dir=.
2185     if test -f $ac_dir/$ac_word; then
2186       ac_cv_prog_YODL2TEXINFO="$ac_prog"
2187       break
2188     fi
2189   done
2190   IFS="$ac_save_ifs"
2191 fi
2192 fi
2193 YODL2TEXINFO="$ac_cv_prog_YODL2TEXINFO"
2194 if test -n "$YODL2TEXINFO"; then
2195   echo "$ac_t""$YODL2TEXINFO" 1>&6
2196 else
2197   echo "$ac_t""no" 1>&6
2198 fi
2199
2200 test -n "$YODL2TEXINFO" && break
2201 done
2202 test -n "$YODL2TEXINFO" || YODL2TEXINFO="-echo no yodl"
2203
2204         for ac_prog in yodl2txt
2205 do
2206 # Extract the first word of "$ac_prog", so it can be a program name with args.
2207 set dummy $ac_prog; ac_word=$2
2208 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2209 echo "configure:2210: checking for $ac_word" >&5
2210 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TXT'+set}'`\" = set"; then
2211   echo $ac_n "(cached) $ac_c" 1>&6
2212 else
2213   if test -n "$YODL2TXT"; then
2214   ac_cv_prog_YODL2TXT="$YODL2TXT" # Let the user override the test.
2215 else
2216   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2217   for ac_dir in $PATH; do
2218     test -z "$ac_dir" && ac_dir=.
2219     if test -f $ac_dir/$ac_word; then
2220       ac_cv_prog_YODL2TXT="$ac_prog"
2221       break
2222     fi
2223   done
2224   IFS="$ac_save_ifs"
2225 fi
2226 fi
2227 YODL2TXT="$ac_cv_prog_YODL2TXT"
2228 if test -n "$YODL2TXT"; then
2229   echo "$ac_t""$YODL2TXT" 1>&6
2230 else
2231   echo "$ac_t""no" 1>&6
2232 fi
2233
2234 test -n "$YODL2TXT" && break
2235 done
2236 test -n "$YODL2TXT" || YODL2TXT="-echo no yodl"
2237
2238     else
2239         
2240         
2241         
2242         
2243         
2244         
2245         export YODL YODL2HTML YODL2LATEX YODL2MAN YODL2TEXINFO YODL2TXT
2246     fi
2247     if test "x$YODL" = "-echo no yodl"; then
2248         
2249     echo "configure: warning: Did not find YODL (Yodl is Yet Oneother Document Language, see http://www.cs.uu.nl/~hanwen/yodl)" 1>&2
2250     warn_b=yes
2251
2252     fi    
2253
2254
2255
2256
2257         result="`echo \"$FIND\" | grep echo`"
2258         if test "x$FIND" = "xerror" -o "x$result" != "x"; then
2259                 
2260     echo "configure: warning: can\'t find find. Please use --enable-tex-dir" 1>&2
2261     warn_b=yes
2262
2263         fi
2264
2265
2266 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2267 echo "configure:2268: checking for 8-bit clean memcmp" >&5
2268 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2269   echo $ac_n "(cached) $ac_c" 1>&6
2270 else
2271   if test "$cross_compiling" = yes; then
2272   ac_cv_func_memcmp_clean=no
2273 else
2274   cat > conftest.$ac_ext <<EOF
2275 #line 2276 "configure"
2276 #include "confdefs.h"
2277 #ifdef __cplusplus
2278 extern "C" void exit(int);
2279 #endif
2280
2281 main()
2282 {
2283   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2284   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2285 }
2286
2287 EOF
2288 if { (eval echo configure:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2289 then
2290   ac_cv_func_memcmp_clean=yes
2291 else
2292   echo "configure: failed program was:" >&5
2293   cat conftest.$ac_ext >&5
2294   rm -fr conftest*
2295   ac_cv_func_memcmp_clean=no
2296 fi
2297 rm -fr conftest*
2298 fi
2299
2300 fi
2301
2302 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2303 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2304
2305 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2306 echo "configure:2307: checking for vprintf" >&5
2307 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2308   echo $ac_n "(cached) $ac_c" 1>&6
2309 else
2310   cat > conftest.$ac_ext <<EOF
2311 #line 2312 "configure"
2312 #include "confdefs.h"
2313 /* System header to define __stub macros and hopefully few prototypes,
2314     which can conflict with char vprintf(); below.  */
2315 #include <assert.h>
2316 /* Override any gcc2 internal prototype to avoid an error.  */
2317 #ifdef __cplusplus
2318 extern "C"
2319 #endif
2320 /* We use char because int might match the return type of a gcc2
2321     builtin and then its argument prototype would still apply.  */
2322 char vprintf();
2323
2324 int main() {
2325
2326 /* The GNU C library defines this for functions which it implements
2327     to always fail with ENOSYS.  Some functions are actually named
2328     something starting with __ and the normal name is an alias.  */
2329 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2330 choke me
2331 #else
2332 vprintf();
2333 #endif
2334
2335 ; return 0; }
2336 EOF
2337 if { (eval echo configure:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2338   rm -rf conftest*
2339   eval "ac_cv_func_vprintf=yes"
2340 else
2341   echo "configure: failed program was:" >&5
2342   cat conftest.$ac_ext >&5
2343   rm -rf conftest*
2344   eval "ac_cv_func_vprintf=no"
2345 fi
2346 rm -f conftest*
2347 fi
2348
2349 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2350   echo "$ac_t""yes" 1>&6
2351   cat >> confdefs.h <<\EOF
2352 #define HAVE_VPRINTF 1
2353 EOF
2354
2355 else
2356   echo "$ac_t""no" 1>&6
2357 fi
2358
2359 if test "$ac_cv_func_vprintf" != yes; then
2360 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2361 echo "configure:2362: checking for _doprnt" >&5
2362 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2363   echo $ac_n "(cached) $ac_c" 1>&6
2364 else
2365   cat > conftest.$ac_ext <<EOF
2366 #line 2367 "configure"
2367 #include "confdefs.h"
2368 /* System header to define __stub macros and hopefully few prototypes,
2369     which can conflict with char _doprnt(); below.  */
2370 #include <assert.h>
2371 /* Override any gcc2 internal prototype to avoid an error.  */
2372 #ifdef __cplusplus
2373 extern "C"
2374 #endif
2375 /* We use char because int might match the return type of a gcc2
2376     builtin and then its argument prototype would still apply.  */
2377 char _doprnt();
2378
2379 int main() {
2380
2381 /* The GNU C library defines this for functions which it implements
2382     to always fail with ENOSYS.  Some functions are actually named
2383     something starting with __ and the normal name is an alias.  */
2384 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2385 choke me
2386 #else
2387 _doprnt();
2388 #endif
2389
2390 ; return 0; }
2391 EOF
2392 if { (eval echo configure:2393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2393   rm -rf conftest*
2394   eval "ac_cv_func__doprnt=yes"
2395 else
2396   echo "configure: failed program was:" >&5
2397   cat conftest.$ac_ext >&5
2398   rm -rf conftest*
2399   eval "ac_cv_func__doprnt=no"
2400 fi
2401 rm -f conftest*
2402 fi
2403
2404 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2405   echo "$ac_t""yes" 1>&6
2406   cat >> confdefs.h <<\EOF
2407 #define HAVE_DOPRNT 1
2408 EOF
2409
2410 else
2411   echo "$ac_t""no" 1>&6
2412 fi
2413
2414 fi
2415
2416 for ac_func in memmem snprintf vsnprintf gettext
2417 do
2418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2419 echo "configure:2420: checking for $ac_func" >&5
2420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2421   echo $ac_n "(cached) $ac_c" 1>&6
2422 else
2423   cat > conftest.$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2426 /* System header to define __stub macros and hopefully few prototypes,
2427     which can conflict with char $ac_func(); below.  */
2428 #include <assert.h>
2429 /* Override any gcc2 internal prototype to avoid an error.  */
2430 #ifdef __cplusplus
2431 extern "C"
2432 #endif
2433 /* We use char because int might match the return type of a gcc2
2434     builtin and then its argument prototype would still apply.  */
2435 char $ac_func();
2436
2437 int main() {
2438
2439 /* The GNU C library defines this for functions which it implements
2440     to always fail with ENOSYS.  Some functions are actually named
2441     something starting with __ and the normal name is an alias.  */
2442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2443 choke me
2444 #else
2445 $ac_func();
2446 #endif
2447
2448 ; return 0; }
2449 EOF
2450 if { (eval echo configure:2451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2451   rm -rf conftest*
2452   eval "ac_cv_func_$ac_func=yes"
2453 else
2454   echo "configure: failed program was:" >&5
2455   cat conftest.$ac_ext >&5
2456   rm -rf conftest*
2457   eval "ac_cv_func_$ac_func=no"
2458 fi
2459 rm -f conftest*
2460 fi
2461
2462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2463   echo "$ac_t""yes" 1>&6
2464     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2465   cat >> confdefs.h <<EOF
2466 #define $ac_tr_func 1
2467 EOF
2468  
2469 else
2470   echo "$ac_t""no" 1>&6
2471 fi
2472 done
2473
2474
2475 cat >> confdefs.h <<EOF
2476 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2477 EOF
2478
2479 cat >> confdefs.h <<EOF
2480 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
2481 EOF
2482
2483
2484 for ac_prog in makeinfo
2485 do
2486 # Extract the first word of "$ac_prog", so it can be a program name with args.
2487 set dummy $ac_prog; ac_word=$2
2488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2489 echo "configure:2490: checking for $ac_word" >&5
2490 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2491   echo $ac_n "(cached) $ac_c" 1>&6
2492 else
2493   if test -n "$MAKEINFO"; then
2494   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2495 else
2496   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2497   for ac_dir in $PATH; do
2498     test -z "$ac_dir" && ac_dir=.
2499     if test -f $ac_dir/$ac_word; then
2500       ac_cv_prog_MAKEINFO="$ac_prog"
2501       break
2502     fi
2503   done
2504   IFS="$ac_save_ifs"
2505 fi
2506 fi
2507 MAKEINFO="$ac_cv_prog_MAKEINFO"
2508 if test -n "$MAKEINFO"; then
2509   echo "$ac_t""$MAKEINFO" 1>&6
2510 else
2511   echo "$ac_t""no" 1>&6
2512 fi
2513
2514 test -n "$MAKEINFO" && break
2515 done
2516 test -n "$MAKEINFO" || MAKEINFO="error"
2517
2518
2519         result="`echo \"$YODL2TEXINFO\" | grep echo`"
2520         if test "x$YODL2TEXINFO" = "xerror" -o "x$result" != "x"; then
2521                 
2522     echo "configure: warning: can\'t find yodl. You should install Yodl 1.30.pre4 or better" 1>&2
2523     warn_b=yes
2524
2525         fi
2526
2527
2528
2529     trap '' 1 2 15
2530 cat > confcache <<\EOF
2531 # This file is a shell script that caches the results of configure
2532 # tests run on this system so they can be shared between configure
2533 # scripts and configure runs.  It is not useful on other systems.
2534 # If it contains results you don't want to keep, you may remove or edit it.
2535 #
2536 # By default, configure uses ./config.cache as the cache file,
2537 # creating it if it does not exist already.  You can give configure
2538 # the --cache-file=FILE option to use a different cache file; that is
2539 # what configure does when it calls configure scripts in
2540 # subdirectories, so they share the cache.
2541 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2542 # config.status only pays attention to the cache file if you give it the
2543 # --recheck option to rerun configure.
2544 #
2545 EOF
2546 # The following way of writing the cache mishandles newlines in values,
2547 # but we know of no workaround that is simple, portable, and efficient.
2548 # So, don't put newlines in cache variables' values.
2549 # Ultrix sh set writes to stderr and can't be redirected directly,
2550 # and sets the high bit in the cache file unless we assign to the vars.
2551 (set) 2>&1 |
2552   case `(ac_space=' '; set) 2>&1` in
2553   *ac_space=\ *)
2554     # `set' does not quote correctly, so add quotes (double-quote substitution
2555     # turns \\\\ into \\, and sed turns \\ into \).
2556     sed -n \
2557       -e "s/'/'\\\\''/g" \
2558       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2559     ;;
2560   *)
2561     # `set' quotes correctly as required by POSIX, so do not add quotes.
2562     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2563     ;;
2564   esac >> confcache
2565 if cmp -s $cache_file confcache; then
2566   :
2567 else
2568   if test -w $cache_file; then
2569     echo "updating cache $cache_file"
2570     cat confcache > $cache_file
2571   else
2572     echo "not updating unwritable cache $cache_file"
2573   fi
2574 fi
2575 rm -f confcache
2576
2577 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2578
2579 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2580 # Let make expand exec_prefix.
2581 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2582
2583 # Any assignment to VPATH causes Sun make to only execute
2584 # the first set of double-colon rules, so remove it if not needed.
2585 # If there is a colon in the path, we need to keep it.
2586 if test "x$srcdir" = x.; then
2587   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2588 fi
2589
2590 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2591
2592 DEFS=-DHAVE_CONFIG_H
2593
2594 # Without the "./", some shells look in PATH for config.status.
2595 : ${CONFIG_STATUS=./config.status}
2596
2597 echo creating $CONFIG_STATUS
2598 rm -f $CONFIG_STATUS
2599 cat > $CONFIG_STATUS <<EOF
2600 #! /bin/sh
2601 # Generated automatically by configure.
2602 # Run this file to recreate the current configuration.
2603 # This directory was configured as follows,
2604 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2605 #
2606 # $0 $ac_configure_args
2607 #
2608 # Compiler output produced by configure, useful for debugging
2609 # configure, is in ./config.log if it exists.
2610
2611 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2612 for ac_option
2613 do
2614   case "\$ac_option" in
2615   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2616     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2617     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2618   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2619     echo "$CONFIG_STATUS generated by autoconf version 2.12"
2620     exit 0 ;;
2621   -help | --help | --hel | --he | --h)
2622     echo "\$ac_cs_usage"; exit 0 ;;
2623   *) echo "\$ac_cs_usage"; exit 1 ;;
2624   esac
2625 done
2626
2627 ac_given_srcdir=$srcdir
2628
2629 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.hh:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2630 EOF
2631 cat >> $CONFIG_STATUS <<EOF
2632
2633 # Protect against being on the right side of a sed subst in config.status.
2634 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2635  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2636 $ac_vpsub
2637 $extrasub
2638 s%@CFLAGS@%$CFLAGS%g
2639 s%@CPPFLAGS@%$CPPFLAGS%g
2640 s%@CXXFLAGS@%$CXXFLAGS%g
2641 s%@DEFS@%$DEFS%g
2642 s%@LDFLAGS@%$LDFLAGS%g
2643 s%@LIBS@%$LIBS%g
2644 s%@exec_prefix@%$exec_prefix%g
2645 s%@prefix@%$prefix%g
2646 s%@program_transform_name@%$program_transform_name%g
2647 s%@bindir@%$bindir%g
2648 s%@sbindir@%$sbindir%g
2649 s%@libexecdir@%$libexecdir%g
2650 s%@datadir@%$datadir%g
2651 s%@sysconfdir@%$sysconfdir%g
2652 s%@sharedstatedir@%$sharedstatedir%g
2653 s%@localstatedir@%$localstatedir%g
2654 s%@libdir@%$libdir%g
2655 s%@includedir@%$includedir%g
2656 s%@oldincludedir@%$oldincludedir%g
2657 s%@infodir@%$infodir%g
2658 s%@mandir@%$mandir%g
2659 s%@package@%$package%g
2660 s%@PACKAGE@%$PACKAGE%g
2661 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
2662 s%@package_depth@%$package_depth%g
2663 s%@AUTOGENERATE@%$AUTOGENERATE%g
2664 s%@absolute_builddir@%$absolute_builddir%g
2665 s%@stepmake@%$stepmake%g
2666 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
2667 s%@host@%$host%g
2668 s%@host_alias@%$host_alias%g
2669 s%@host_cpu@%$host_cpu%g
2670 s%@host_vendor@%$host_vendor%g
2671 s%@host_os@%$host_os%g
2672 s%@MAKE@%$MAKE%g
2673 s%@FIND@%$FIND%g
2674 s%@TAR@%$TAR%g
2675 s%@BASH@%$BASH%g
2676 s%@PYTHON@%$PYTHON%g
2677 s%@DOTEXE@%$DOTEXE%g
2678 s%@ZIP@%$ZIP%g
2679 s%@LN@%$LN%g
2680 s%@INSTALL@%$INSTALL%g
2681 s%@DIR_DATADIR@%$DIR_DATADIR%g
2682 s%@subdirs@%$subdirs%g
2683 s%@CC@%$CC%g
2684 s%@LD@%$LD%g
2685 s%@ICFLAGS@%$ICFLAGS%g
2686 s%@ILDFLAGS@%$ILDFLAGS%g
2687 s%@DEFINES@%$DEFINES%g
2688 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
2689 s%@CXX@%$CXX%g
2690 s%@CXXCPP@%$CXXCPP%g
2691 s%@YACC@%$YACC%g
2692 s%@BISON@%$BISON%g
2693 s%@FLEX@%$FLEX%g
2694 s%@AR@%$AR%g
2695 s%@RANLIB@%$RANLIB%g
2696 s%@localedir@%$localedir%g
2697 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
2698 s%@MSGFMT@%$MSGFMT%g
2699 s%@TEXPREFIX@%$TEXPREFIX%g
2700 s%@TEXDIR@%$TEXDIR%g
2701 s%@MFDIR@%$MFDIR%g
2702 s%@YODL@%$YODL%g
2703 s%@YODL2HTML@%$YODL2HTML%g
2704 s%@YODL2LATEX@%$YODL2LATEX%g
2705 s%@YODL2MAN@%$YODL2MAN%g
2706 s%@YODL2TEXINFO@%$YODL2TEXINFO%g
2707 s%@YODL2TXT@%$YODL2TXT%g
2708 s%@LIBOBJS@%$LIBOBJS%g
2709 s%@MAKEINFO@%$MAKEINFO%g
2710
2711 CEOF
2712 EOF
2713
2714 cat >> $CONFIG_STATUS <<\EOF
2715
2716 # Split the substitutions into bite-sized pieces for seds with
2717 # small command number limits, like on Digital OSF/1 and HP-UX.
2718 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2719 ac_file=1 # Number of current file.
2720 ac_beg=1 # First line for current file.
2721 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2722 ac_more_lines=:
2723 ac_sed_cmds=""
2724 while $ac_more_lines; do
2725   if test $ac_beg -gt 1; then
2726     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2727   else
2728     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2729   fi
2730   if test ! -s conftest.s$ac_file; then
2731     ac_more_lines=false
2732     rm -f conftest.s$ac_file
2733   else
2734     if test -z "$ac_sed_cmds"; then
2735       ac_sed_cmds="sed -f conftest.s$ac_file"
2736     else
2737       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2738     fi
2739     ac_file=`expr $ac_file + 1`
2740     ac_beg=$ac_end
2741     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2742   fi
2743 done
2744 if test -z "$ac_sed_cmds"; then
2745   ac_sed_cmds=cat
2746 fi
2747 EOF
2748
2749 cat >> $CONFIG_STATUS <<EOF
2750
2751 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
2752 EOF
2753 cat >> $CONFIG_STATUS <<\EOF
2754 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2755   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2756   case "$ac_file" in
2757   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2758        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2759   *) ac_file_in="${ac_file}.in" ;;
2760   esac
2761
2762   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2763
2764   # Remove last slash and all that follows it.  Not all systems have dirname.
2765   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2766   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2767     # The file is in a subdirectory.
2768     test ! -d "$ac_dir" && mkdir "$ac_dir"
2769     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2770     # A "../" for each directory in $ac_dir_suffix.
2771     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2772   else
2773     ac_dir_suffix= ac_dots=
2774   fi
2775
2776   case "$ac_given_srcdir" in
2777   .)  srcdir=.
2778       if test -z "$ac_dots"; then top_srcdir=.
2779       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2780   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2781   *) # Relative path.
2782     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2783     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2784   esac
2785
2786
2787   echo creating "$ac_file"
2788   rm -f "$ac_file"
2789   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2790   case "$ac_file" in
2791   *Makefile*) ac_comsub="1i\\
2792 # $configure_input" ;;
2793   *) ac_comsub= ;;
2794   esac
2795
2796   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2797   sed -e "$ac_comsub
2798 s%@configure_input@%$configure_input%g
2799 s%@srcdir@%$srcdir%g
2800 s%@top_srcdir@%$top_srcdir%g
2801 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2802 fi; done
2803 rm -f conftest.s*
2804
2805 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2806 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2807 #
2808 # ac_d sets the value in "#define NAME VALUE" lines.
2809 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2810 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2811 ac_dC='\3'
2812 ac_dD='%g'
2813 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2814 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2815 ac_uB='\([      ]\)%\1#\2define\3'
2816 ac_uC=' '
2817 ac_uD='\4%g'
2818 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2819 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2820 ac_eB='$%\1#\2define\3'
2821 ac_eC=' '
2822 ac_eD='%g'
2823
2824 if test "${CONFIG_HEADERS+set}" != set; then
2825 EOF
2826 cat >> $CONFIG_STATUS <<EOF
2827   CONFIG_HEADERS="$CONFIGFILE.hh:config.hh.in"
2828 EOF
2829 cat >> $CONFIG_STATUS <<\EOF
2830 fi
2831 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2832   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2833   case "$ac_file" in
2834   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2835        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2836   *) ac_file_in="${ac_file}.in" ;;
2837   esac
2838
2839   echo creating $ac_file
2840
2841   rm -f conftest.frag conftest.in conftest.out
2842   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2843   cat $ac_file_inputs > conftest.in
2844
2845 EOF
2846
2847 # Transform confdefs.h into a sed script conftest.vals that substitutes
2848 # the proper values into config.h.in to produce config.h.  And first:
2849 # Protect against being on the right side of a sed subst in config.status.
2850 # Protect against being in an unquoted here document in config.status.
2851 rm -f conftest.vals
2852 cat > conftest.hdr <<\EOF
2853 s/[\\&%]/\\&/g
2854 s%[\\$`]%\\&%g
2855 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2856 s%ac_d%ac_u%gp
2857 s%ac_u%ac_e%gp
2858 EOF
2859 sed -n -f conftest.hdr confdefs.h > conftest.vals
2860 rm -f conftest.hdr
2861
2862 # This sed command replaces #undef with comments.  This is necessary, for
2863 # example, in the case of _POSIX_SOURCE, which is predefined and required
2864 # on some systems where configure will not decide to define it.
2865 cat >> conftest.vals <<\EOF
2866 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2867 EOF
2868
2869 # Break up conftest.vals because some shells have a limit on
2870 # the size of here documents, and old seds have small limits too.
2871
2872 rm -f conftest.tail
2873 while :
2874 do
2875   ac_lines=`grep -c . conftest.vals`
2876   # grep -c gives empty output for an empty file on some AIX systems.
2877   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2878   # Write a limited-size here document to conftest.frag.
2879   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2880   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2881   echo 'CEOF
2882   sed -f conftest.frag conftest.in > conftest.out
2883   rm -f conftest.in
2884   mv conftest.out conftest.in
2885 ' >> $CONFIG_STATUS
2886   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2887   rm -f conftest.vals
2888   mv conftest.tail conftest.vals
2889 done
2890 rm -f conftest.vals
2891
2892 cat >> $CONFIG_STATUS <<\EOF
2893   rm -f conftest.frag conftest.h
2894   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2895   cat conftest.in >> conftest.h
2896   rm -f conftest.in
2897   if cmp -s $ac_file conftest.h 2>/dev/null; then
2898     echo "$ac_file is unchanged"
2899     rm -f conftest.h
2900   else
2901     # Remove last slash and all that follows it.  Not all systems have dirname.
2902       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2903       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2904       # The file is in a subdirectory.
2905       test ! -d "$ac_dir" && mkdir "$ac_dir"
2906     fi
2907     rm -f $ac_file
2908     mv conftest.h $ac_file
2909   fi
2910 fi; done
2911
2912 EOF
2913 cat >> $CONFIG_STATUS <<EOF
2914
2915 EOF
2916 cat >> $CONFIG_STATUS <<\EOF
2917
2918 exit 0
2919 EOF
2920 chmod +x $CONFIG_STATUS
2921 rm -fr confdefs* $ac_clean_files
2922 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2923
2924 if test "$no_recursion" != yes; then
2925
2926   # Remove --cache-file and --srcdir arguments so they do not pile up.
2927   ac_sub_configure_args=
2928   ac_prev=
2929   for ac_arg in $ac_configure_args; do
2930     if test -n "$ac_prev"; then
2931       ac_prev=
2932       continue
2933     fi
2934     case "$ac_arg" in
2935     -cache-file | --cache-file | --cache-fil | --cache-fi \
2936     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2937       ac_prev=cache_file ;;
2938     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2939     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2940       ;;
2941     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2942       ac_prev=srcdir ;;
2943     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2944       ;;
2945     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2946     esac
2947   done
2948
2949   for ac_config_dir in stepmake; do
2950
2951     # Do not complain, so a configure script can configure whichever
2952     # parts of a large source tree are present.
2953     if test ! -d $srcdir/$ac_config_dir; then
2954       continue
2955     fi
2956
2957     echo configuring in $ac_config_dir
2958
2959     case "$srcdir" in
2960     .) ;;
2961     *)
2962       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2963       else
2964         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2965       fi
2966       ;;
2967     esac
2968
2969     ac_popdir=`pwd`
2970     cd $ac_config_dir
2971
2972       # A "../" for each directory in /$ac_config_dir.
2973       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2974
2975     case "$srcdir" in
2976     .) # No --srcdir option.  We are building in place.
2977       ac_sub_srcdir=$srcdir ;;
2978     /*) # Absolute path.
2979       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2980     *) # Relative path.
2981       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2982     esac
2983
2984     # Check for guested configure; otherwise get Cygnus style configure.
2985     if test -f $ac_sub_srcdir/configure; then
2986       ac_sub_configure=$ac_sub_srcdir/configure
2987     elif test -f $ac_sub_srcdir/configure.in; then
2988       ac_sub_configure=$ac_configure
2989     else
2990       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2991       ac_sub_configure=
2992     fi
2993
2994     # The recursion is here.
2995     if test -n "$ac_sub_configure"; then
2996
2997       # Make the cache file name correct relative to the subdirectory.
2998       case "$cache_file" in
2999       /*) ac_sub_cache_file=$cache_file ;;
3000       *) # Relative path.
3001         ac_sub_cache_file="$ac_dots$cache_file" ;;
3002       esac
3003
3004       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3005       # The eval makes quoting arguments work.
3006       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3007       then :
3008       else
3009         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3010       fi
3011     fi
3012
3013     cd $ac_popdir
3014   done
3015 fi
3016
3017
3018     rm -f Makefile
3019     cp make/Toplevel.make.in ./Makefile
3020     chmod 444 Makefile
3021
3022