]> git.donarmstrong.com Git - lilypond.git/blob - configure
Typo fix.
[lilypond.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-config=CONF    put settings in config-CONF.make and config-CONF.h;
16                             do \`make conf=CONF' to get output in ./out-CONF"
17 ac_help="$ac_help
18   --enable-checking       set runtime checks (assert calls).  Default: on"
19 ac_help="$ac_help
20   --enable-debugging      compile with debugging info.  Default: on"
21 ac_help="$ac_help
22   --enable-optimising      compile with optimising.  Default: on"
23 ac_help="$ac_help
24   --enable-profiling      compile with gprof support.  Default: off"
25 ac_help="$ac_help
26   --with-localedir=LOCALE use LOCALE as locale dir.  Default:
27                             PREFIX/share/locale "
28 ac_help="$ac_help
29   --with-lang=LANG        use LANG as language to emit messages"
30 ac_help="$ac_help
31   --enable-tfm-path=PATH  set path of tex directories where tfm files live,
32                             esp.: cmr10.tfm.  Default: use kpsewhich"
33 ac_help="$ac_help
34   --with-kpathsea         use kpathsea lib.  Default: on"
35
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
39 build=NONE
40 cache_file=./config.cache
41 exec_prefix=NONE
42 host=NONE
43 no_create=
44 nonopt=NONE
45 no_recursion=
46 prefix=NONE
47 program_prefix=NONE
48 program_suffix=NONE
49 program_transform_name=s,x,x,
50 silent=
51 site=
52 srcdir=
53 target=NONE
54 verbose=
55 x_includes=NONE
56 x_libraries=NONE
57 bindir='${exec_prefix}/bin'
58 sbindir='${exec_prefix}/sbin'
59 libexecdir='${exec_prefix}/libexec'
60 datadir='${prefix}/share'
61 sysconfdir='${prefix}/etc'
62 sharedstatedir='${prefix}/com'
63 localstatedir='${prefix}/var'
64 libdir='${exec_prefix}/lib'
65 includedir='${prefix}/include'
66 oldincludedir='/usr/include'
67 infodir='${prefix}/info'
68 mandir='${prefix}/man'
69
70 # Initialize some other variables.
71 subdirs=
72 MFLAGS= MAKEFLAGS=
73 SHELL=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
75 ac_max_here_lines=12
76
77 ac_prev=
78 for ac_option
79 do
80
81   # If the previous option needs an argument, assign it.
82   if test -n "$ac_prev"; then
83     eval "$ac_prev=\$ac_option"
84     ac_prev=
85     continue
86   fi
87
88   case "$ac_option" in
89   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90   *) ac_optarg= ;;
91   esac
92
93   # Accept the important Cygnus configure options, so we can diagnose typos.
94
95   case "$ac_option" in
96
97   -bindir | --bindir | --bindi | --bind | --bin | --bi)
98     ac_prev=bindir ;;
99   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100     bindir="$ac_optarg" ;;
101
102   -build | --build | --buil | --bui | --bu)
103     ac_prev=build ;;
104   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105     build="$ac_optarg" ;;
106
107   -cache-file | --cache-file | --cache-fil | --cache-fi \
108   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109     ac_prev=cache_file ;;
110   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112     cache_file="$ac_optarg" ;;
113
114   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115     ac_prev=datadir ;;
116   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117   | --da=*)
118     datadir="$ac_optarg" ;;
119
120   -disable-* | --disable-*)
121     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122     # Reject names that are not valid shell variable names.
123     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125     fi
126     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127     eval "enable_${ac_feature}=no" ;;
128
129   -enable-* | --enable-*)
130     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131     # Reject names that are not valid shell variable names.
132     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134     fi
135     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136     case "$ac_option" in
137       *=*) ;;
138       *) ac_optarg=yes ;;
139     esac
140     eval "enable_${ac_feature}='$ac_optarg'" ;;
141
142   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144   | --exec | --exe | --ex)
145     ac_prev=exec_prefix ;;
146   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148   | --exec=* | --exe=* | --ex=*)
149     exec_prefix="$ac_optarg" ;;
150
151   -gas | --gas | --ga | --g)
152     # Obsolete; use --with-gas.
153     with_gas=yes ;;
154
155   -help | --help | --hel | --he)
156     # Omit some internal or obsolete options to make the list less imposing.
157     # This message is too long to be a string in the A/UX 3.1 sh.
158     cat << EOF
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
161 Configuration:
162   --cache-file=FILE       cache test results in FILE
163   --help                  print this message
164   --no-create             do not create output files
165   --quiet, --silent       do not print \`checking...' messages
166   --version               print the version of autoconf that created configure
167 Directory and file names:
168   --prefix=PREFIX         install architecture-independent files in PREFIX
169                           [$ac_default_prefix]
170   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
171                           [same as prefix]
172   --bindir=DIR            user executables in DIR [EPREFIX/bin]
173   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
174   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
175   --datadir=DIR           read-only architecture-independent data in DIR
176                           [PREFIX/share]
177   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
178   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
179                           [PREFIX/com]
180   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
181   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
182   --includedir=DIR        C header files in DIR [PREFIX/include]
183   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
184   --infodir=DIR           info documentation in DIR [PREFIX/info]
185   --mandir=DIR            man documentation in DIR [PREFIX/man]
186   --srcdir=DIR            find the sources in DIR [configure dir or ..]
187   --program-prefix=PREFIX prepend PREFIX to installed program names
188   --program-suffix=SUFFIX append SUFFIX to installed program names
189   --program-transform-name=PROGRAM
190                           run sed PROGRAM on installed program names
191 EOF
192     cat << EOF
193 Host type:
194   --build=BUILD           configure for building on BUILD [BUILD=HOST]
195   --host=HOST             configure for HOST [guessed]
196   --target=TARGET         configure for TARGET [TARGET=HOST]
197 Features and packages:
198   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
199   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
200   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
201   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
202   --x-includes=DIR        X include files are in DIR
203   --x-libraries=DIR       X library files are in DIR
204 EOF
205     if test -n "$ac_help"; then
206       echo "--enable and --with options recognized:$ac_help"
207     fi
208     exit 0 ;;
209
210   -host | --host | --hos | --ho)
211     ac_prev=host ;;
212   -host=* | --host=* | --hos=* | --ho=*)
213     host="$ac_optarg" ;;
214
215   -includedir | --includedir | --includedi | --included | --include \
216   | --includ | --inclu | --incl | --inc)
217     ac_prev=includedir ;;
218   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219   | --includ=* | --inclu=* | --incl=* | --inc=*)
220     includedir="$ac_optarg" ;;
221
222   -infodir | --infodir | --infodi | --infod | --info | --inf)
223     ac_prev=infodir ;;
224   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225     infodir="$ac_optarg" ;;
226
227   -libdir | --libdir | --libdi | --libd)
228     ac_prev=libdir ;;
229   -libdir=* | --libdir=* | --libdi=* | --libd=*)
230     libdir="$ac_optarg" ;;
231
232   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233   | --libexe | --libex | --libe)
234     ac_prev=libexecdir ;;
235   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236   | --libexe=* | --libex=* | --libe=*)
237     libexecdir="$ac_optarg" ;;
238
239   -localstatedir | --localstatedir | --localstatedi | --localstated \
240   | --localstate | --localstat | --localsta | --localst \
241   | --locals | --local | --loca | --loc | --lo)
242     ac_prev=localstatedir ;;
243   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246     localstatedir="$ac_optarg" ;;
247
248   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249     ac_prev=mandir ;;
250   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251     mandir="$ac_optarg" ;;
252
253   -nfp | --nfp | --nf)
254     # Obsolete; use --without-fp.
255     with_fp=no ;;
256
257   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258   | --no-cr | --no-c)
259     no_create=yes ;;
260
261   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263     no_recursion=yes ;;
264
265   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267   | --oldin | --oldi | --old | --ol | --o)
268     ac_prev=oldincludedir ;;
269   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272     oldincludedir="$ac_optarg" ;;
273
274   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275     ac_prev=prefix ;;
276   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277     prefix="$ac_optarg" ;;
278
279   -program-prefix | --program-prefix | --program-prefi | --program-pref \
280   | --program-pre | --program-pr | --program-p)
281     ac_prev=program_prefix ;;
282   -program-prefix=* | --program-prefix=* | --program-prefi=* \
283   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284     program_prefix="$ac_optarg" ;;
285
286   -program-suffix | --program-suffix | --program-suffi | --program-suff \
287   | --program-suf | --program-su | --program-s)
288     ac_prev=program_suffix ;;
289   -program-suffix=* | --program-suffix=* | --program-suffi=* \
290   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291     program_suffix="$ac_optarg" ;;
292
293   -program-transform-name | --program-transform-name \
294   | --program-transform-nam | --program-transform-na \
295   | --program-transform-n | --program-transform- \
296   | --program-transform | --program-transfor \
297   | --program-transfo | --program-transf \
298   | --program-trans | --program-tran \
299   | --progr-tra | --program-tr | --program-t)
300     ac_prev=program_transform_name ;;
301   -program-transform-name=* | --program-transform-name=* \
302   | --program-transform-nam=* | --program-transform-na=* \
303   | --program-transform-n=* | --program-transform-=* \
304   | --program-transform=* | --program-transfor=* \
305   | --program-transfo=* | --program-transf=* \
306   | --program-trans=* | --program-tran=* \
307   | --progr-tra=* | --program-tr=* | --program-t=*)
308     program_transform_name="$ac_optarg" ;;
309
310   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311   | -silent | --silent | --silen | --sile | --sil)
312     silent=yes ;;
313
314   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315     ac_prev=sbindir ;;
316   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317   | --sbi=* | --sb=*)
318     sbindir="$ac_optarg" ;;
319
320   -sharedstatedir | --sharedstatedir | --sharedstatedi \
321   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322   | --sharedst | --shareds | --shared | --share | --shar \
323   | --sha | --sh)
324     ac_prev=sharedstatedir ;;
325   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328   | --sha=* | --sh=*)
329     sharedstatedir="$ac_optarg" ;;
330
331   -site | --site | --sit)
332     ac_prev=site ;;
333   -site=* | --site=* | --sit=*)
334     site="$ac_optarg" ;;
335
336   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337     ac_prev=srcdir ;;
338   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339     srcdir="$ac_optarg" ;;
340
341   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342   | --syscon | --sysco | --sysc | --sys | --sy)
343     ac_prev=sysconfdir ;;
344   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346     sysconfdir="$ac_optarg" ;;
347
348   -target | --target | --targe | --targ | --tar | --ta | --t)
349     ac_prev=target ;;
350   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351     target="$ac_optarg" ;;
352
353   -v | -verbose | --verbose | --verbos | --verbo | --verb)
354     verbose=yes ;;
355
356   -version | --version | --versio | --versi | --vers)
357     echo "configure generated by autoconf version 2.13"
358     exit 0 ;;
359
360   -with-* | --with-*)
361     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362     # Reject names that are not valid shell variable names.
363     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365     fi
366     ac_package=`echo $ac_package| sed 's/-/_/g'`
367     case "$ac_option" in
368       *=*) ;;
369       *) ac_optarg=yes ;;
370     esac
371     eval "with_${ac_package}='$ac_optarg'" ;;
372
373   -without-* | --without-*)
374     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
375     # Reject names that are not valid shell variable names.
376     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378     fi
379     ac_package=`echo $ac_package| sed 's/-/_/g'`
380     eval "with_${ac_package}=no" ;;
381
382   --x)
383     # Obsolete; use --with-x.
384     with_x=yes ;;
385
386   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387   | --x-incl | --x-inc | --x-in | --x-i)
388     ac_prev=x_includes ;;
389   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391     x_includes="$ac_optarg" ;;
392
393   -x-libraries | --x-libraries | --x-librarie | --x-librari \
394   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395     ac_prev=x_libraries ;;
396   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398     x_libraries="$ac_optarg" ;;
399
400   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401     ;;
402
403   *)
404     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405       echo "configure: warning: $ac_option: invalid host type" 1>&2
406     fi
407     if test "x$nonopt" != xNONE; then
408       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409     fi
410     nonopt="$ac_option"
411     ;;
412
413   esac
414 done
415
416 if test -n "$ac_prev"; then
417   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418 fi
419
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421
422 # File descriptor usage:
423 # 0 standard input
424 # 1 file creation
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
431   exec 6>/dev/null
432 else
433   exec 6>&1
434 fi
435 exec 5>./config.log
436
437 echo "\
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
440 " 1>&5
441
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
444 ac_configure_args=
445 for ac_arg
446 do
447   case "$ac_arg" in
448   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449   | --no-cr | --no-c) ;;
450   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
454   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455   esac
456 done
457
458 # NLS nuisances.
459 # Only set these to C if already set.  These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
464 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
466 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
467
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
471 echo > confdefs.h
472
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file=make/lilypond.lsm.in
476
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479   ac_srcdir_defaulted=yes
480   # Try the directory containing this script, then its parent.
481   ac_prog=$0
482   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484   srcdir=$ac_confdir
485   if test ! -r $srcdir/$ac_unique_file; then
486     srcdir=..
487   fi
488 else
489   ac_srcdir_defaulted=no
490 fi
491 if test ! -r $srcdir/$ac_unique_file; then
492   if test "$ac_srcdir_defaulted" = yes; then
493     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494   else
495     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496   fi
497 fi
498 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502   if test "x$prefix" != xNONE; then
503     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
504   else
505     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506   fi
507 fi
508 for ac_site_file in $CONFIG_SITE; do
509   if test -r "$ac_site_file"; then
510     echo "loading site script $ac_site_file"
511     . "$ac_site_file"
512   fi
513 done
514
515 if test -r "$cache_file"; then
516   echo "loading cache $cache_file"
517   . $cache_file
518 else
519   echo "creating cache $cache_file"
520   > $cache_file
521 fi
522
523 ac_ext=c
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp='$CPP $CPPFLAGS'
526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling=$ac_cv_prog_cc_cross
529
530 ac_exeext=
531 ac_objext=o
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     # No versioning on directory names of sub-packages 
561     # urg, urg
562     stepmake=${datadir}/stepmake
563     presome=${prefix}
564     if test "$prefix" = "NONE"; then
565             presome=${ac_default_prefix}
566     fi
567     stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
568
569     # urg, how is this supposed to work?
570     if test "$program_prefix" = "NONE"; then
571           program_prefix=
572     fi
573     if test "$program_suffix" = "NONE"; then
574           program_suffix=
575     fi
576
577     echo $ac_n "checking Package""... $ac_c" 1>&6
578 echo "configure:579: checking Package" >&5
579     if test "x$PACKAGE" = "xSTEPMAKE"; then
580         echo "$ac_t""Stepmake package!" 1>&6
581
582         echo $ac_n "checking builddir""... $ac_c" 1>&6
583 echo "configure:584: checking builddir" >&5
584         if test "$srcdir" = "."; then
585             builddir=.
586         else
587             absolute_builddir="`pwd`"
588             package_absolute_builddir="`dirname $absolute_builddir`"
589             package_srcdir="`dirname  $srcdir`"
590             builddir="`dirname $package_srcdir`/`basename $package_absolute_builddir`/`basename $absolute_builddir`"
591         fi
592         echo "$ac_t""$builddir" 1>&6
593
594         (cd stepmake 2>/dev/null || mkdir stepmake)
595         (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
596         ac_aux_dir=
597 for ac_dir in bin $srcdir/bin; do
598   if test -f $ac_dir/install-sh; then
599     ac_aux_dir=$ac_dir
600     ac_install_sh="$ac_aux_dir/install-sh -c"
601     break
602   elif test -f $ac_dir/install.sh; then
603     ac_aux_dir=$ac_dir
604     ac_install_sh="$ac_aux_dir/install.sh -c"
605     break
606   fi
607 done
608 if test -z "$ac_aux_dir"; then
609   { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
610 fi
611 ac_config_guess=$ac_aux_dir/config.guess
612 ac_config_sub=$ac_aux_dir/config.sub
613 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
614
615         stepmake=stepmake
616     else
617         echo "$ac_t""$PACKAGE" 1>&6
618
619         echo $ac_n "checking builddir""... $ac_c" 1>&6
620 echo "configure:621: checking builddir" >&5
621         if test "$srcdir" = "."; then
622             builddir=.
623             srcdir_build=no
624         else
625             absolute_builddir="`pwd`"
626 #           builddir="`dirname  $srcdir`/`basename $absolute_builddir`"
627             builddir="`bash $srcdir/buildscripts/walk.sh \"$srcdir\"`"
628             srcdir_build=yes
629         fi
630         echo "$ac_t""$builddir" 1>&6
631         if expr "$srcdir" : '/' > /dev/null 2>&1; then
632             absolute_srcdir=yes
633             
634     echo "configure: warning: Absolute --srcdir specified: $srcdir" 1>&2
635     warn_b=yes
636
637         fi
638
639         echo $ac_n "checking for stepmake""... $ac_c" 1>&6
640 echo "configure:641: checking for stepmake" >&5
641         # Check for installed stepmake
642         if test -d $stepmake; then
643             echo "$ac_t""$stepmake" 1>&6
644         else
645             if test "$absolute_srcdir" != "yes"; then
646                 stepmake='$(depth)'/$srcdir/stepmake
647             else
648                 stepmake=$srcdir/stepmake
649             fi
650             echo "$ac_t""$srcdir/stepmake  ($datadir/stepmake not found)" 1>&6
651         fi
652
653         ac_aux_dir=
654 for ac_dir in \
655           $HOME/usr/local/share/stepmake/bin\
656           $HOME/usr/local/lib/stepmake/bin\
657           $HOME/usr/share/stepmake/bin\
658           $HOME/usr/lib/stepmake/bin\
659           /usr/local/share/stepmake/bin\
660           /usr/local/lib/stepmake/bin\
661           /usr/share/stepmake/bin\
662           /usr/lib/stepmake/bin\
663           stepmake/bin\
664           $srcdir/stepmake/bin\
665          $srcdir/\
666           $HOME/usr/local/share/stepmake/bin\
667           $HOME/usr/local/lib/stepmake/bin\
668           $HOME/usr/share/stepmake/bin\
669           $HOME/usr/lib/stepmake/bin\
670           /usr/local/share/stepmake/bin\
671           /usr/local/lib/stepmake/bin\
672           /usr/share/stepmake/bin\
673           /usr/lib/stepmake/bin\
674           stepmake/bin\
675           $srcdir/stepmake/bin\
676         ; do
677   if test -f $ac_dir/install-sh; then
678     ac_aux_dir=$ac_dir
679     ac_install_sh="$ac_aux_dir/install-sh -c"
680     break
681   elif test -f $ac_dir/install.sh; then
682     ac_aux_dir=$ac_dir
683     ac_install_sh="$ac_aux_dir/install.sh -c"
684     break
685   fi
686 done
687 if test -z "$ac_aux_dir"; then
688   { echo "configure: error: can not find install-sh or install.sh in \
689           $HOME/usr/local/share/stepmake/bin\
690           $HOME/usr/local/lib/stepmake/bin\
691           $HOME/usr/share/stepmake/bin\
692           $HOME/usr/lib/stepmake/bin\
693           /usr/local/share/stepmake/bin\
694           /usr/local/lib/stepmake/bin\
695           /usr/share/stepmake/bin\
696           /usr/lib/stepmake/bin\
697           stepmake/bin\
698           $srcdir/stepmake/bin\
699          $srcdir/\
700           $HOME/usr/local/share/stepmake/bin\
701           $HOME/usr/local/lib/stepmake/bin\
702           $HOME/usr/share/stepmake/bin\
703           $HOME/usr/lib/stepmake/bin\
704           /usr/local/share/stepmake/bin\
705           /usr/local/lib/stepmake/bin\
706           /usr/share/stepmake/bin\
707           /usr/lib/stepmake/bin\
708           stepmake/bin\
709           $srcdir/stepmake/bin\
710         " 1>&2; exit 1; }
711 fi
712 ac_config_guess=$ac_aux_dir/config.guess
713 ac_config_sub=$ac_aux_dir/config.sub
714 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
715
716     fi
717
718     
719     
720     
721     
722     
723     cat >> confdefs.h <<EOF
724 #define PACKAGE "${PACKAGE_NAME}"
725 EOF
726
727     cat >> confdefs.h <<EOF
728 #define TOPLEVEL_VERSION "${FULL_VERSION}"
729 EOF
730
731
732     if test "$package_depth" = "" ; then
733         package_depth="."
734     else
735         package_depth="../$package_depth"
736     fi
737     export package_depth
738     
739
740     AUTOGENERATE="This file was automatically generated by configure"
741     
742
743     CONFIGSUFFIX=
744     # Check whether --enable-config or --disable-config was given.
745 if test "${enable_config+set}" = set; then
746   enableval="$enable_config"
747   CONFIGURATION=$enableval
748 fi
749
750
751     ##'
752
753     test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
754     CONFIGFILE=config$CONFIGSUFFIX
755     
756      
757     
758 # Make sure we can run config.sub.
759 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
760 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
761 fi
762
763 echo $ac_n "checking host system type""... $ac_c" 1>&6
764 echo "configure:765: checking host system type" >&5
765
766 host_alias=$host
767 case "$host_alias" in
768 NONE)
769   case $nonopt in
770   NONE)
771     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
772     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
773     fi ;;
774   *) host_alias=$nonopt ;;
775   esac ;;
776 esac
777
778 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
779 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
780 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
781 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
782 echo "$ac_t""$host" 1>&6
783
784     
785     for ac_prog in gmake make
786 do
787 # Extract the first word of "$ac_prog", so it can be a program name with args.
788 set dummy $ac_prog; ac_word=$2
789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
790 echo "configure:791: checking for $ac_word" >&5
791 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
792   echo $ac_n "(cached) $ac_c" 1>&6
793 else
794   if test -n "$MAKE"; then
795   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
796 else
797   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
798   ac_dummy="$PATH"
799   for ac_dir in $ac_dummy; do
800     test -z "$ac_dir" && ac_dir=.
801     if test -f $ac_dir/$ac_word; then
802       ac_cv_prog_MAKE="$ac_prog"
803       break
804     fi
805   done
806   IFS="$ac_save_ifs"
807 fi
808 fi
809 MAKE="$ac_cv_prog_MAKE"
810 if test -n "$MAKE"; then
811   echo "$ac_t""$MAKE" 1>&6
812 else
813   echo "$ac_t""no" 1>&6
814 fi
815
816 test -n "$MAKE" && break
817 done
818 test -n "$MAKE" || MAKE="no"
819
820     
821     
822     r="`eval echo '$'"MAKE"`"
823     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then
824         ##STEPMAKE_WARN(cannot find . )
825         false
826     else
827         true
828     fi
829
830     if test $? -ne 0; then
831         
832     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\"
833
834         if test "REQUIRED" = "REQUIRED"; then
835             command="echo ERROR: gmake make not found"
836             # abort configure process here?
837         else
838             command="- echo gmake make not found"
839         fi
840         eval "MAKE"='$command'
841         false
842     else
843         true
844     fi
845
846     if test $? -eq 0 -a -n ""; then
847         
848     r="`eval echo '$'"MAKE"`"
849     echo $ac_n "checking "$r version"""... $ac_c" 1>&6
850 echo "configure:851: checking "$r version"" >&5
851     exe=`
852     type -p "$r" 2>&1 | awk '{print $NF}'
853 `
854     ver=`
855     "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
856 `
857     num=`
858     echo "$ver" | awk -F. '
859     {
860       if ($3) {last = $3}
861       else {last =0}
862     }
863     {printf "%s%s%s\n",$1*100, $2*10,last}'
864 `
865     req=`
866     echo "" | awk -F. '
867     {
868       if ($3) {last = $3}
869       else {last =0}
870     }
871     {printf "%s%s%s\n",$1*100, $2*10,last}'
872 `
873     echo "$ac_t"""$ver"" 1>&6
874     if test "$num" -lt "$req"; then
875         
876     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r  (installed: $ver)"\"`\"
877
878     fi
879
880     fi
881
882     
883     for ac_prog in find
884 do
885 # Extract the first word of "$ac_prog", so it can be a program name with args.
886 set dummy $ac_prog; ac_word=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
890   echo $ac_n "(cached) $ac_c" 1>&6
891 else
892   if test -n "$FIND"; then
893   ac_cv_prog_FIND="$FIND" # Let the user override the test.
894 else
895   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
896   ac_dummy="$PATH"
897   for ac_dir in $ac_dummy; do
898     test -z "$ac_dir" && ac_dir=.
899     if test -f $ac_dir/$ac_word; then
900       ac_cv_prog_FIND="$ac_prog"
901       break
902     fi
903   done
904   IFS="$ac_save_ifs"
905 fi
906 fi
907 FIND="$ac_cv_prog_FIND"
908 if test -n "$FIND"; then
909   echo "$ac_t""$FIND" 1>&6
910 else
911   echo "$ac_t""no" 1>&6
912 fi
913
914 test -n "$FIND" && break
915 done
916 test -n "$FIND" || FIND="no"
917
918     
919     
920     r="`eval echo '$'"FIND"`"
921     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
922         ##STEPMAKE_WARN(cannot find . )
923         false
924     else
925         true
926     fi
927
928     if test $? -ne 0; then
929         
930     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
931
932         if test "REQUIRED" = "REQUIRED"; then
933             command="echo ERROR: find not found"
934             # abort configure process here?
935         else
936             command="- echo find not found"
937         fi
938         eval "FIND"='$command'
939         false
940     else
941         true
942     fi
943
944     if test $? -eq 0 -a -n ""; then
945         
946     r="`eval echo '$'"FIND"`"
947     echo $ac_n "checking "$r version"""... $ac_c" 1>&6
948 echo "configure:949: checking "$r version"" >&5
949     exe=`
950     type -p "$r" 2>&1 | awk '{print $NF}'
951 `
952     ver=`
953     "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
954 `
955     num=`
956     echo "$ver" | awk -F. '
957     {
958       if ($3) {last = $3}
959       else {last =0}
960     }
961     {printf "%s%s%s\n",$1*100, $2*10,last}'
962 `
963     req=`
964     echo "" | awk -F. '
965     {
966       if ($3) {last = $3}
967       else {last =0}
968     }
969     {printf "%s%s%s\n",$1*100, $2*10,last}'
970 `
971     echo "$ac_t"""$ver"" 1>&6
972     if test "$num" -lt "$req"; then
973         
974     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r  (installed: $ver)"\"`\"
975
976     fi
977
978     fi
979
980
981     
982     for ac_prog in tar
983 do
984 # Extract the first word of "$ac_prog", so it can be a program name with args.
985 set dummy $ac_prog; ac_word=$2
986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
987 echo "configure:988: checking for $ac_word" >&5
988 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
989   echo $ac_n "(cached) $ac_c" 1>&6
990 else
991   if test -n "$TAR"; then
992   ac_cv_prog_TAR="$TAR" # Let the user override the test.
993 else
994   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
995   ac_dummy="$PATH"
996   for ac_dir in $ac_dummy; do
997     test -z "$ac_dir" && ac_dir=.
998     if test -f $ac_dir/$ac_word; then
999       ac_cv_prog_TAR="$ac_prog"
1000       break
1001     fi
1002   done
1003   IFS="$ac_save_ifs"
1004 fi
1005 fi
1006 TAR="$ac_cv_prog_TAR"
1007 if test -n "$TAR"; then
1008   echo "$ac_t""$TAR" 1>&6
1009 else
1010   echo "$ac_t""no" 1>&6
1011 fi
1012
1013 test -n "$TAR" && break
1014 done
1015 test -n "$TAR" || TAR="no"
1016
1017     
1018     
1019     r="`eval echo '$'"TAR"`"
1020     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
1021         ##STEPMAKE_WARN(cannot find . )
1022         false
1023     else
1024         true
1025     fi
1026
1027     if test $? -ne 0; then
1028         
1029     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
1030
1031         if test "REQUIRED" = "REQUIRED"; then
1032             command="echo ERROR: tar not found"
1033             # abort configure process here?
1034         else
1035             command="- echo tar not found"
1036         fi
1037         eval "TAR"='$command'
1038         false
1039     else
1040         true
1041     fi
1042
1043     if test $? -eq 0 -a -n ""; then
1044         
1045     r="`eval echo '$'"TAR"`"
1046     echo $ac_n "checking "$r version"""... $ac_c" 1>&6
1047 echo "configure:1048: checking "$r version"" >&5
1048     exe=`
1049     type -p "$r" 2>&1 | awk '{print $NF}'
1050 `
1051     ver=`
1052     "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
1053 `
1054     num=`
1055     echo "$ver" | awk -F. '
1056     {
1057       if ($3) {last = $3}
1058       else {last =0}
1059     }
1060     {printf "%s%s%s\n",$1*100, $2*10,last}'
1061 `
1062     req=`
1063     echo "" | awk -F. '
1064     {
1065       if ($3) {last = $3}
1066       else {last =0}
1067     }
1068     {printf "%s%s%s\n",$1*100, $2*10,last}'
1069 `
1070     echo "$ac_t"""$ver"" 1>&6
1071     if test "$num" -lt "$req"; then
1072         
1073     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r  (installed: $ver)"\"`\"
1074
1075     fi
1076
1077     fi
1078
1079
1080     if test "x`uname`" = "xHP-UX"; then
1081         # Extract the first word of "bash", so it can be a program name with args.
1082 set dummy bash; ac_word=$2
1083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1084 echo "configure:1085: checking for $ac_word" >&5
1085 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1086   echo $ac_n "(cached) $ac_c" 1>&6
1087 else
1088   case "$BASH" in
1089   /*)
1090   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1091   ;;
1092   ?:/*)                  
1093   ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1094   ;;
1095   *)
1096   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1097   ac_dummy="$PATH"
1098   for ac_dir in $ac_dummy; do 
1099     test -z "$ac_dir" && ac_dir=.
1100     if test -f $ac_dir/$ac_word; then
1101       ac_cv_path_BASH="$ac_dir/$ac_word"
1102       break
1103     fi
1104   done
1105   IFS="$ac_save_ifs"
1106   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
1107   ;;
1108 esac
1109 fi
1110 BASH="$ac_cv_path_BASH"
1111 if test -n "$BASH"; then
1112   echo "$ac_t""$BASH" 1>&6
1113 else
1114   echo "$ac_t""no" 1>&6
1115 fi
1116
1117         
1118     echo "configure: warning: avoiding buggy /bin/sh" 1>&2
1119     warn_b=yes
1120
1121         # Extract the first word of "bash", so it can be a program name with args.
1122 set dummy bash; ac_word=$2
1123 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1124 echo "configure:1125: checking for $ac_word" >&5
1125 if eval "test \"`echo '$''{'ac_cv_path_SHELL'+set}'`\" = set"; then
1126   echo $ac_n "(cached) $ac_c" 1>&6
1127 else
1128   case "$SHELL" in
1129   /*)
1130   ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
1131   ;;
1132   ?:/*)                  
1133   ac_cv_path_SHELL="$SHELL" # Let the user override the test with a dos path.
1134   ;;
1135   *)
1136   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1137   ac_dummy="$PATH"
1138   for ac_dir in $ac_dummy; do 
1139     test -z "$ac_dir" && ac_dir=.
1140     if test -f $ac_dir/$ac_word; then
1141       ac_cv_path_SHELL="$ac_dir/$ac_word"
1142       break
1143     fi
1144   done
1145   IFS="$ac_save_ifs"
1146   test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/ksh"
1147   ;;
1148 esac
1149 fi
1150 SHELL="$ac_cv_path_SHELL"
1151 if test -n "$SHELL"; then
1152   echo "$ac_t""$SHELL" 1>&6
1153 else
1154   echo "$ac_t""no" 1>&6
1155 fi
1156
1157     else
1158         # Extract the first word of "bash", so it can be a program name with args.
1159 set dummy bash; ac_word=$2
1160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161 echo "configure:1162: checking for $ac_word" >&5
1162 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1163   echo $ac_n "(cached) $ac_c" 1>&6
1164 else
1165   case "$BASH" in
1166   /*)
1167   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1168   ;;
1169   ?:/*)                  
1170   ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1171   ;;
1172   *)
1173   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1174   ac_dummy="$PATH"
1175   for ac_dir in $ac_dummy; do 
1176     test -z "$ac_dir" && ac_dir=.
1177     if test -f $ac_dir/$ac_word; then
1178       ac_cv_path_BASH="$ac_dir/$ac_word"
1179       break
1180     fi
1181   done
1182   IFS="$ac_save_ifs"
1183   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
1184   ;;
1185 esac
1186 fi
1187 BASH="$ac_cv_path_BASH"
1188 if test -n "$BASH"; then
1189   echo "$ac_t""$BASH" 1>&6
1190 else
1191   echo "$ac_t""no" 1>&6
1192 fi
1193
1194         SHELL=/bin/sh
1195         
1196     fi
1197
1198     
1199     for ac_prog in python
1200 do
1201 # Extract the first word of "$ac_prog", so it can be a program name with args.
1202 set dummy $ac_prog; ac_word=$2
1203 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1204 echo "configure:1205: checking for $ac_word" >&5
1205 if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then
1206   echo $ac_n "(cached) $ac_c" 1>&6
1207 else
1208   if test -n "$PYTHON"; then
1209   ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
1210 else
1211   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1212   ac_dummy="$PATH"
1213   for ac_dir in $ac_dummy; do
1214     test -z "$ac_dir" && ac_dir=.
1215     if test -f $ac_dir/$ac_word; then
1216       ac_cv_prog_PYTHON="$ac_prog"
1217       break
1218     fi
1219   done
1220   IFS="$ac_save_ifs"
1221 fi
1222 fi
1223 PYTHON="$ac_cv_prog_PYTHON"
1224 if test -n "$PYTHON"; then
1225   echo "$ac_t""$PYTHON" 1>&6
1226 else
1227   echo "$ac_t""no" 1>&6
1228 fi
1229
1230 test -n "$PYTHON" && break
1231 done
1232 test -n "$PYTHON" || PYTHON="no"
1233
1234     
1235     
1236     r="`eval echo '$'"PYTHON"`"
1237     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"PYTHON"`' : '.*\(echo\)' > /dev/null; then
1238         ##STEPMAKE_WARN(cannot find . )
1239         false
1240     else
1241         true
1242     fi
1243
1244     if test $? -ne 0; then
1245         
1246     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"python\"`\"
1247
1248         if test "REQUIRED" = "REQUIRED"; then
1249             command="echo ERROR: python not found"
1250             # abort configure process here?
1251         else
1252             command="- echo python not found"
1253         fi
1254         eval "PYTHON"='$command'
1255         false
1256     else
1257         true
1258     fi
1259
1260     if test $? -eq 0; then
1261         # Extract the first word of "python", so it can be a program name with args.
1262 set dummy python; ac_word=$2
1263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1264 echo "configure:1265: checking for $ac_word" >&5
1265 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1266   echo $ac_n "(cached) $ac_c" 1>&6
1267 else
1268   case "$PYTHON" in
1269   /*)
1270   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1271   ;;
1272   ?:/*)                  
1273   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
1274   ;;
1275   *)
1276   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1277   ac_dummy="$PATH"
1278   for ac_dir in $ac_dummy; do 
1279     test -z "$ac_dir" && ac_dir=.
1280     if test -f $ac_dir/$ac_word; then
1281       ac_cv_path_PYTHON="$ac_dir/$ac_word"
1282       break
1283     fi
1284   done
1285   IFS="$ac_save_ifs"
1286   ;;
1287 esac
1288 fi
1289 PYTHON="$ac_cv_path_PYTHON"
1290 if test -n "$PYTHON"; then
1291   echo "$ac_t""$PYTHON" 1>&6
1292 else
1293   echo "$ac_t""no" 1>&6
1294 fi
1295
1296         if test -n ""; then
1297             
1298     r="`eval echo '$'"PYTHON"`"
1299     echo $ac_n "checking "$r version"""... $ac_c" 1>&6
1300 echo "configure:1301: checking "$r version"" >&5
1301     exe=`
1302     type -p "$r" 2>&1 | awk '{print $NF}'
1303 `
1304     ver=`
1305     "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
1306 `
1307     num=`
1308     echo "$ver" | awk -F. '
1309     {
1310       if ($3) {last = $3}
1311       else {last =0}
1312     }
1313     {printf "%s%s%s\n",$1*100, $2*10,last}'
1314 `
1315     req=`
1316     echo "" | awk -F. '
1317     {
1318       if ($3) {last = $3}
1319       else {last =0}
1320     }
1321     {printf "%s%s%s\n",$1*100, $2*10,last}'
1322 `
1323     echo "$ac_t"""$ver"" 1>&6
1324     if test "$num" -lt "$req"; then
1325         
1326     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r  (installed: $ver)"\"`\"
1327
1328     fi
1329
1330         fi
1331     fi
1332
1333
1334     if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
1335         $MAKE -v 2> /dev/null | grep GNU > /dev/null
1336         if test "$?" = 1; then
1337             warn='make (Please install *GNU* make)'
1338             
1339     echo "configure: warning: $warn" 1>&2
1340     warn_b=yes
1341
1342             
1343     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
1344
1345         fi
1346     fi 
1347
1348     if test "$OSTYPE" = "cygwin" -o "$OSTYPE" = "cygwin32" -o "$OSTYPE" = "Windows_NT"; then
1349         LN=cp # hard link does not work under cygnus-nt
1350         LN_S='cp -r' # symbolic link does not work for native nt
1351         ZIP="zip -r -9" #
1352         program_suffix=.exe
1353         ROOTSEP=':'
1354         DIRSEP='/'
1355         PATHSEP=':'
1356         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1357     else
1358         ROOTSEP=':'
1359         DIRSEP='/'
1360         PATHSEP=':'
1361         LN=ln
1362         LN_S='ln -s'
1363         ZIP="zip -r -9"
1364         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1365     fi
1366     
1367     
1368     
1369     
1370     
1371     
1372     cat >> confdefs.h <<EOF
1373 #define DIRSEP '${DIRSEP}'
1374 EOF
1375
1376     cat >> confdefs.h <<EOF
1377 #define PATHSEP '${PATHSEP}'
1378 EOF
1379
1380     
1381     
1382   
1383     
1384     if test "$datadir" = "\${prefix}/share"; then
1385             datadir='${prefix}/share/'$package
1386     fi
1387     DIR_DATADIR=${datadir}
1388     presome=${prefix}
1389     if test "$prefix" = "NONE"; then
1390             presome=${ac_default_prefix}
1391     fi
1392     DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1393
1394     
1395     
1396     
1397                         
1398     cat >> confdefs.h <<EOF
1399 #define DIR_DATADIR "${DIR_DATADIR}"
1400 EOF
1401
1402
1403
1404
1405 # For all packages except the StepMake package itself
1406 subdirs="stepmake"
1407
1408
1409 # Uncomment the configuration options your package needs.
1410
1411     # -O is necessary to get inlining
1412     CFLAGS=${CFLAGS-""}
1413     CXXFLAGS=${CXXFLAGS-$CFLAGS}
1414     LDFLAGS=${LDFLAGS-""}
1415     checking_b=yes
1416     optimise_b=yes
1417     profile_b=no
1418     debug_b=yes
1419
1420     # Check whether --enable-checking or --disable-checking was given.
1421 if test "${enable_checking+set}" = set; then
1422   enableval="$enable_checking"
1423   checking_b=$enableval 
1424 fi
1425
1426
1427     # Check whether --enable-debugging or --disable-debugging was given.
1428 if test "${enable_debugging+set}" = set; then
1429   enableval="$enable_debugging"
1430   debug_b=$enableval
1431 fi
1432
1433
1434     # Check whether --enable-optimising or --disable-optimising was given.
1435 if test "${enable_optimising+set}" = set; then
1436   enableval="$enable_optimising"
1437   optimise_b=$enableval
1438 fi
1439
1440
1441     # Check whether --enable-profiling or --disable-profiling was given.
1442 if test "${enable_profiling+set}" = set; then
1443   enableval="$enable_profiling"
1444   profile_b=$enableval
1445 fi
1446
1447     
1448
1449     if test "$checking_b" = no; then
1450         # ugh
1451         cat >> confdefs.h <<\EOF
1452 #define NDEBUG 1
1453 EOF
1454
1455         DEFINES="$DEFINES -DNDEBUG"
1456     fi
1457
1458     if test "$optimise_b" = yes; then
1459         OPTIMIZE="-O2 -finline-functions"
1460     fi
1461
1462
1463     if test $profile_b = yes; then
1464         EXTRA_LIBES="-pg"
1465         OPTIMIZE="$OPTIMIZE -pg"
1466     fi
1467
1468     if test $debug_b = yes; then        
1469         OPTIMIZE="$OPTIMIZE -g"
1470     fi
1471
1472
1473     # Extract the first word of "gcc", so it can be a program name with args.
1474 set dummy gcc; ac_word=$2
1475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1476 echo "configure:1477: checking for $ac_word" >&5
1477 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1478   echo $ac_n "(cached) $ac_c" 1>&6
1479 else
1480   if test -n "$CC"; then
1481   ac_cv_prog_CC="$CC" # Let the user override the test.
1482 else
1483   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1484   ac_dummy="$PATH"
1485   for ac_dir in $ac_dummy; do
1486     test -z "$ac_dir" && ac_dir=.
1487     if test -f $ac_dir/$ac_word; then
1488       ac_cv_prog_CC="gcc"
1489       break
1490     fi
1491   done
1492   IFS="$ac_save_ifs"
1493 fi
1494 fi
1495 CC="$ac_cv_prog_CC"
1496 if test -n "$CC"; then
1497   echo "$ac_t""$CC" 1>&6
1498 else
1499   echo "$ac_t""no" 1>&6
1500 fi
1501
1502 if test -z "$CC"; then
1503   # Extract the first word of "cc", so it can be a program name with args.
1504 set dummy cc; ac_word=$2
1505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1506 echo "configure:1507: checking for $ac_word" >&5
1507 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1508   echo $ac_n "(cached) $ac_c" 1>&6
1509 else
1510   if test -n "$CC"; then
1511   ac_cv_prog_CC="$CC" # Let the user override the test.
1512 else
1513   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1514   ac_prog_rejected=no
1515   ac_dummy="$PATH"
1516   for ac_dir in $ac_dummy; do
1517     test -z "$ac_dir" && ac_dir=.
1518     if test -f $ac_dir/$ac_word; then
1519       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1520         ac_prog_rejected=yes
1521         continue
1522       fi
1523       ac_cv_prog_CC="cc"
1524       break
1525     fi
1526   done
1527   IFS="$ac_save_ifs"
1528 if test $ac_prog_rejected = yes; then
1529   # We found a bogon in the path, so make sure we never use it.
1530   set dummy $ac_cv_prog_CC
1531   shift
1532   if test $# -gt 0; then
1533     # We chose a different compiler from the bogus one.
1534     # However, it has the same basename, so the bogon will be chosen
1535     # first if we set CC to just the basename; use the full file name.
1536     shift
1537     set dummy "$ac_dir/$ac_word" "$@"
1538     shift
1539     ac_cv_prog_CC="$@"
1540   fi
1541 fi
1542 fi
1543 fi
1544 CC="$ac_cv_prog_CC"
1545 if test -n "$CC"; then
1546   echo "$ac_t""$CC" 1>&6
1547 else
1548   echo "$ac_t""no" 1>&6
1549 fi
1550
1551   if test -z "$CC"; then
1552     case "`uname -s`" in
1553     *win32* | *WIN32*)
1554       # Extract the first word of "cl", so it can be a program name with args.
1555 set dummy cl; ac_word=$2
1556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1557 echo "configure:1558: checking for $ac_word" >&5
1558 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1559   echo $ac_n "(cached) $ac_c" 1>&6
1560 else
1561   if test -n "$CC"; then
1562   ac_cv_prog_CC="$CC" # Let the user override the test.
1563 else
1564   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1565   ac_dummy="$PATH"
1566   for ac_dir in $ac_dummy; do
1567     test -z "$ac_dir" && ac_dir=.
1568     if test -f $ac_dir/$ac_word; then
1569       ac_cv_prog_CC="cl"
1570       break
1571     fi
1572   done
1573   IFS="$ac_save_ifs"
1574 fi
1575 fi
1576 CC="$ac_cv_prog_CC"
1577 if test -n "$CC"; then
1578   echo "$ac_t""$CC" 1>&6
1579 else
1580   echo "$ac_t""no" 1>&6
1581 fi
1582  ;;
1583     esac
1584   fi
1585   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1586 fi
1587
1588 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1589 echo "configure:1590: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1590
1591 ac_ext=c
1592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1593 ac_cpp='$CPP $CPPFLAGS'
1594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1596 cross_compiling=$ac_cv_prog_cc_cross
1597
1598 cat > conftest.$ac_ext << EOF
1599
1600 #line 1601 "configure"
1601 #include "confdefs.h"
1602
1603 main(){return(0);}
1604 EOF
1605 if { (eval echo configure:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1606   ac_cv_prog_cc_works=yes
1607   # If we can't run a trivial program, we are probably using a cross compiler.
1608   if (./conftest; exit) 2>/dev/null; then
1609     ac_cv_prog_cc_cross=no
1610   else
1611     ac_cv_prog_cc_cross=yes
1612   fi
1613 else
1614   echo "configure: failed program was:" >&5
1615   cat conftest.$ac_ext >&5
1616   ac_cv_prog_cc_works=no
1617 fi
1618 rm -fr conftest*
1619 ac_ext=c
1620 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1621 ac_cpp='$CPP $CPPFLAGS'
1622 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1623 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1624 cross_compiling=$ac_cv_prog_cc_cross
1625
1626 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1627 if test $ac_cv_prog_cc_works = no; then
1628   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1629 fi
1630 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1631 echo "configure:1632: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1632 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1633 cross_compiling=$ac_cv_prog_cc_cross
1634
1635 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1636 echo "configure:1637: checking whether we are using GNU C" >&5
1637 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1638   echo $ac_n "(cached) $ac_c" 1>&6
1639 else
1640   cat > conftest.c <<EOF
1641 #ifdef __GNUC__
1642   yes;
1643 #endif
1644 EOF
1645 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1646   ac_cv_prog_gcc=yes
1647 else
1648   ac_cv_prog_gcc=no
1649 fi
1650 fi
1651
1652 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1653
1654 if test $ac_cv_prog_gcc = yes; then
1655   GCC=yes
1656 else
1657   GCC=
1658 fi
1659
1660 ac_test_CFLAGS="${CFLAGS+set}"
1661 ac_save_CFLAGS="$CFLAGS"
1662 CFLAGS=
1663 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1664 echo "configure:1665: checking whether ${CC-cc} accepts -g" >&5
1665 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1666   echo $ac_n "(cached) $ac_c" 1>&6
1667 else
1668   echo 'void f(){}' > conftest.c
1669 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1670   ac_cv_prog_cc_g=yes
1671 else
1672   ac_cv_prog_cc_g=no
1673 fi
1674 rm -f conftest*
1675
1676 fi
1677
1678 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1679 if test "$ac_test_CFLAGS" = set; then
1680   CFLAGS="$ac_save_CFLAGS"
1681 elif test $ac_cv_prog_cc_g = yes; then
1682   if test "$GCC" = yes; then
1683     CFLAGS="-g -O2"
1684   else
1685     CFLAGS="-g"
1686   fi
1687 else
1688   if test "$GCC" = yes; then
1689     CFLAGS="-O2"
1690   else
1691     CFLAGS=
1692   fi
1693 fi
1694
1695     
1696     
1697     r="`eval echo '$'"CC"`"
1698     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
1699         ##STEPMAKE_WARN(cannot find . )
1700         false
1701     else
1702         true
1703     fi
1704
1705     if test $? -ne 0; then
1706         
1707     eval ""=\"`eval echo \"'$'\" \"cc\"`\"
1708
1709         if test "" = "REQUIRED"; then
1710             command="echo ERROR: cc not found"
1711             # abort configure process here?
1712         else
1713             command="- echo cc not found"
1714         fi
1715         eval "CC"='$command'
1716         false
1717     else
1718         true
1719     fi
1720
1721     LD='$(CC)'
1722     
1723
1724     CFLAGS="$CFLAGS $OPTIMIZE"
1725     CPPFLAGS=${CPPFLAGS-""}
1726
1727     echo $ac_n "checking for IEEE-conformance compiler flags""... $ac_c" 1>&6
1728 echo "configure:1729: checking for IEEE-conformance compiler flags" >&5
1729     save_cflags="$CFLAGS"
1730     case "$host" in
1731         alpha*-*-*)
1732                     echo "$ac_t""-mieee" 1>&6
1733             CFLAGS="-mieee $CFLAGS"
1734             ;;
1735         *)
1736             echo "$ac_t""none" 1>&6
1737             ;;
1738     esac
1739     
1740     
1741     
1742     
1743     
1744     
1745     
1746     
1747
1748 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1749 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1750 echo "configure:1751: checking how to run the C preprocessor" >&5
1751 # On Suns, sometimes $CPP names a directory.
1752 if test -n "$CPP" && test -d "$CPP"; then
1753   CPP=
1754 fi
1755 if test -z "$CPP"; then
1756 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1757   echo $ac_n "(cached) $ac_c" 1>&6
1758 else
1759     # This must be in double quotes, not single quotes, because CPP may get
1760   # substituted into the Makefile and "${CC-cc}" will confuse make.
1761   CPP="${CC-cc} -E"
1762   # On the NeXT, cc -E runs the code through the compiler's parser,
1763   # not just through cpp.
1764   cat > conftest.$ac_ext <<EOF
1765 #line 1766 "configure"
1766 #include "confdefs.h"
1767 #include <assert.h>
1768 Syntax Error
1769 EOF
1770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1771 { (eval echo configure:1772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1773 if test -z "$ac_err"; then
1774   :
1775 else
1776   echo "$ac_err" >&5
1777   echo "configure: failed program was:" >&5
1778   cat conftest.$ac_ext >&5
1779   rm -rf conftest*
1780   CPP="${CC-cc} -E -traditional-cpp"
1781   cat > conftest.$ac_ext <<EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1784 #include <assert.h>
1785 Syntax Error
1786 EOF
1787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1788 { (eval echo configure:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1790 if test -z "$ac_err"; then
1791   :
1792 else
1793   echo "$ac_err" >&5
1794   echo "configure: failed program was:" >&5
1795   cat conftest.$ac_ext >&5
1796   rm -rf conftest*
1797   CPP="${CC-cc} -nologo -E"
1798   cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1801 #include <assert.h>
1802 Syntax Error
1803 EOF
1804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1805 { (eval echo configure:1806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1807 if test -z "$ac_err"; then
1808   :
1809 else
1810   echo "$ac_err" >&5
1811   echo "configure: failed program was:" >&5
1812   cat conftest.$ac_ext >&5
1813   rm -rf conftest*
1814   CPP=/lib/cpp
1815 fi
1816 rm -f conftest*
1817 fi
1818 rm -f conftest*
1819 fi
1820 rm -f conftest*
1821   ac_cv_prog_CPP="$CPP"
1822 fi
1823   CPP="$ac_cv_prog_CPP"
1824 else
1825   ac_cv_prog_CPP="$CPP"
1826 fi
1827 echo "$ac_t""$CPP" 1>&6
1828
1829 for ac_hdr in assert.h sys/stat.h
1830 do
1831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1833 echo "configure:1834: checking for $ac_hdr" >&5
1834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1835   echo $ac_n "(cached) $ac_c" 1>&6
1836 else
1837   cat > conftest.$ac_ext <<EOF
1838 #line 1839 "configure"
1839 #include "confdefs.h"
1840 #include <$ac_hdr>
1841 EOF
1842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1843 { (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1845 if test -z "$ac_err"; then
1846   rm -rf conftest*
1847   eval "ac_cv_header_$ac_safe=yes"
1848 else
1849   echo "$ac_err" >&5
1850   echo "configure: failed program was:" >&5
1851   cat conftest.$ac_ext >&5
1852   rm -rf conftest*
1853   eval "ac_cv_header_$ac_safe=no"
1854 fi
1855 rm -f conftest*
1856 fi
1857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1858   echo "$ac_t""yes" 1>&6
1859     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1860   cat >> confdefs.h <<EOF
1861 #define $ac_tr_hdr 1
1862 EOF
1863  
1864 else
1865   echo "$ac_t""no" 1>&6
1866 fi
1867 done
1868
1869 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1870 echo "configure:1871: checking whether stat file-mode macros are broken" >&5
1871 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1872   echo $ac_n "(cached) $ac_c" 1>&6
1873 else
1874   cat > conftest.$ac_ext <<EOF
1875 #line 1876 "configure"
1876 #include "confdefs.h"
1877 #include <sys/types.h>
1878 #include <sys/stat.h>
1879
1880 #if defined(S_ISBLK) && defined(S_IFDIR)
1881 # if S_ISBLK (S_IFDIR)
1882 You lose.
1883 # endif
1884 #endif
1885
1886 #if defined(S_ISBLK) && defined(S_IFCHR)
1887 # if S_ISBLK (S_IFCHR)
1888 You lose.
1889 # endif
1890 #endif
1891
1892 #if defined(S_ISLNK) && defined(S_IFREG)
1893 # if S_ISLNK (S_IFREG)
1894 You lose.
1895 # endif
1896 #endif
1897
1898 #if defined(S_ISSOCK) && defined(S_IFREG)
1899 # if S_ISSOCK (S_IFREG)
1900 You lose.
1901 # endif
1902 #endif
1903
1904 EOF
1905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1906   egrep "You lose" >/dev/null 2>&1; then
1907   rm -rf conftest*
1908   ac_cv_header_stat_broken=yes
1909 else
1910   rm -rf conftest*
1911   ac_cv_header_stat_broken=no
1912 fi
1913 rm -f conftest*
1914
1915 fi
1916
1917 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1918 if test $ac_cv_header_stat_broken = yes; then
1919   cat >> confdefs.h <<\EOF
1920 #define STAT_MACROS_BROKEN 1
1921 EOF
1922
1923 fi
1924
1925
1926 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1927 echo "configure:1928: checking how to run the C++ preprocessor" >&5
1928 if test -z "$CXXCPP"; then
1929 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1930   echo $ac_n "(cached) $ac_c" 1>&6
1931 else
1932   ac_ext=C
1933 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1934 ac_cpp='$CXXCPP $CPPFLAGS'
1935 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1936 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1937 cross_compiling=$ac_cv_prog_cxx_cross
1938   CXXCPP="${CXX-g++} -E"
1939   cat > conftest.$ac_ext <<EOF
1940 #line 1941 "configure"
1941 #include "confdefs.h"
1942 #include <stdlib.h>
1943 EOF
1944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1945 { (eval echo configure:1946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1947 if test -z "$ac_err"; then
1948   :
1949 else
1950   echo "$ac_err" >&5
1951   echo "configure: failed program was:" >&5
1952   cat conftest.$ac_ext >&5
1953   rm -rf conftest*
1954   CXXCPP=/lib/cpp
1955 fi
1956 rm -f conftest*
1957   ac_cv_prog_CXXCPP="$CXXCPP"
1958 ac_ext=C
1959 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1960 ac_cpp='$CXXCPP $CPPFLAGS'
1961 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1962 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1963 cross_compiling=$ac_cv_prog_cxx_cross
1964 fi
1965 fi
1966 CXXCPP="$ac_cv_prog_CXXCPP"
1967 echo "$ac_t""$CXXCPP" 1>&6
1968
1969
1970     ac_ext=C
1971 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1972 ac_cpp='$CXXCPP $CPPFLAGS'
1973 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1974 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1975 cross_compiling=$ac_cv_prog_cxx_cross
1976
1977     for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1978 do
1979 # Extract the first word of "$ac_prog", so it can be a program name with args.
1980 set dummy $ac_prog; ac_word=$2
1981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1982 echo "configure:1983: checking for $ac_word" >&5
1983 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1984   echo $ac_n "(cached) $ac_c" 1>&6
1985 else
1986   if test -n "$CXX"; then
1987   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1988 else
1989   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1990   ac_dummy="$PATH"
1991   for ac_dir in $ac_dummy; do
1992     test -z "$ac_dir" && ac_dir=.
1993     if test -f $ac_dir/$ac_word; then
1994       ac_cv_prog_CXX="$ac_prog"
1995       break
1996     fi
1997   done
1998   IFS="$ac_save_ifs"
1999 fi
2000 fi
2001 CXX="$ac_cv_prog_CXX"
2002 if test -n "$CXX"; then
2003   echo "$ac_t""$CXX" 1>&6
2004 else
2005   echo "$ac_t""no" 1>&6
2006 fi
2007
2008 test -n "$CXX" && break
2009 done
2010 test -n "$CXX" || CXX="gcc"
2011
2012
2013 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2014 echo "configure:2015: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2015
2016 ac_ext=C
2017 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2018 ac_cpp='$CXXCPP $CPPFLAGS'
2019 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2020 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2021 cross_compiling=$ac_cv_prog_cxx_cross
2022
2023 cat > conftest.$ac_ext << EOF
2024
2025 #line 2026 "configure"
2026 #include "confdefs.h"
2027
2028 int main(){return(0);}
2029 EOF
2030 if { (eval echo configure:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2031   ac_cv_prog_cxx_works=yes
2032   # If we can't run a trivial program, we are probably using a cross compiler.
2033   if (./conftest; exit) 2>/dev/null; then
2034     ac_cv_prog_cxx_cross=no
2035   else
2036     ac_cv_prog_cxx_cross=yes
2037   fi
2038 else
2039   echo "configure: failed program was:" >&5
2040   cat conftest.$ac_ext >&5
2041   ac_cv_prog_cxx_works=no
2042 fi
2043 rm -fr conftest*
2044 ac_ext=C
2045 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2046 ac_cpp='$CXXCPP $CPPFLAGS'
2047 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2048 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2049 cross_compiling=$ac_cv_prog_cxx_cross
2050
2051 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2052 if test $ac_cv_prog_cxx_works = no; then
2053   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2054 fi
2055 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2056 echo "configure:2057: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2057 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2058 cross_compiling=$ac_cv_prog_cxx_cross
2059
2060 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2061 echo "configure:2062: checking whether we are using GNU C++" >&5
2062 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2063   echo $ac_n "(cached) $ac_c" 1>&6
2064 else
2065   cat > conftest.C <<EOF
2066 #ifdef __GNUC__
2067   yes;
2068 #endif
2069 EOF
2070 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2071   ac_cv_prog_gxx=yes
2072 else
2073   ac_cv_prog_gxx=no
2074 fi
2075 fi
2076
2077 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2078
2079 if test $ac_cv_prog_gxx = yes; then
2080   GXX=yes
2081 else
2082   GXX=
2083 fi
2084
2085 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2086 ac_save_CXXFLAGS="$CXXFLAGS"
2087 CXXFLAGS=
2088 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2089 echo "configure:2090: checking whether ${CXX-g++} accepts -g" >&5
2090 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2091   echo $ac_n "(cached) $ac_c" 1>&6
2092 else
2093   echo 'void f(){}' > conftest.cc
2094 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2095   ac_cv_prog_cxx_g=yes
2096 else
2097   ac_cv_prog_cxx_g=no
2098 fi
2099 rm -f conftest*
2100
2101 fi
2102
2103 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2104 if test "$ac_test_CXXFLAGS" = set; then
2105   CXXFLAGS="$ac_save_CXXFLAGS"
2106 elif test $ac_cv_prog_cxx_g = yes; then
2107   if test "$GXX" = yes; then
2108     CXXFLAGS="-g -O2"
2109   else
2110     CXXFLAGS="-g"
2111   fi
2112 else
2113   if test "$GXX" = yes; then
2114     CXXFLAGS="-O2"
2115   else
2116     CXXFLAGS=
2117   fi
2118 fi
2119
2120 for ac_declaration in \
2121    ''\
2122    '#include <stdlib.h>' \
2123    'extern "C" void std::exit (int) throw (); using std::exit;' \
2124    'extern "C" void std::exit (int); using std::exit;' \
2125    'extern "C" void exit (int) throw ();' \
2126    'extern "C" void exit (int);' \
2127    'void exit (int);'
2128 do
2129   cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 #include <stdlib.h>
2133 $ac_declaration
2134 int main() {
2135 exit (42);
2136 ; return 0; }
2137 EOF
2138 if { (eval echo configure:2139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2139   :
2140 else
2141   echo "configure: failed program was:" >&5
2142   cat conftest.$ac_ext >&5
2143   rm -rf conftest*
2144   continue
2145 fi
2146 rm -f conftest*
2147   cat > conftest.$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2150 $ac_declaration
2151 int main() {
2152 exit (42);
2153 ; return 0; }
2154 EOF
2155 if { (eval echo configure:2156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2156   rm -rf conftest*
2157   break
2158 else
2159   echo "configure: failed program was:" >&5
2160   cat conftest.$ac_ext >&5
2161 fi
2162 rm -f conftest*
2163 done
2164 if test -n "$ac_declaration"; then
2165   echo '#ifdef __cplusplus' >>confdefs.h
2166   echo $ac_declaration      >>confdefs.h
2167   echo '#endif'             >>confdefs.h
2168 fi
2169
2170
2171     
2172     
2173     r="`eval echo '$'"CXX"`"
2174     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
2175         ##STEPMAKE_WARN(cannot find . )
2176         false
2177     else
2178         true
2179     fi
2180
2181     if test $? -ne 0; then
2182         
2183     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
2184
2185         if test "REQUIRED" = "REQUIRED"; then
2186             command="echo ERROR: c++ not found"
2187             # abort configure process here?
2188         else
2189             command="- echo c++ not found"
2190         fi
2191         eval "CXX"='$command'
2192         false
2193     else
2194         true
2195     fi
2196
2197
2198     ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
2199 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
2200 echo "configure:2201: checking for FlexLexer.h" >&5
2201 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2202   echo $ac_n "(cached) $ac_c" 1>&6
2203 else
2204   cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2207 #include <FlexLexer.h>
2208 EOF
2209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2210 { (eval echo configure:2211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2212 if test -z "$ac_err"; then
2213   rm -rf conftest*
2214   eval "ac_cv_header_$ac_safe=yes"
2215 else
2216   echo "$ac_err" >&5
2217   echo "configure: failed program was:" >&5
2218   cat conftest.$ac_ext >&5
2219   rm -rf conftest*
2220   eval "ac_cv_header_$ac_safe=no"
2221 fi
2222 rm -f conftest*
2223 fi
2224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2225   echo "$ac_t""yes" 1>&6
2226   true
2227 else
2228   echo "$ac_t""no" 1>&6
2229
2230     echo "configure: warning: cannot find flex header.  Please install Flex headers correctly" 1>&2
2231     warn_b=yes
2232
2233 fi
2234
2235
2236     CPPFLAGS="$CPPFLAGS $DEFINES"
2237     CXXFLAGS="$CXXFLAGS $OPTIMIZE"
2238     LDFLAGS="$LDFLAGS $EXTRA_LIBES"
2239
2240     
2241     
2242     LD='$(CXX)'
2243     
2244
2245
2246     echo $ac_n "checking "g++ version"""... $ac_c" 1>&6
2247 echo "configure:2248: checking "g++ version"" >&5
2248     cxx_version=`$CXX --version`
2249     echo "$ac_t"""$cxx_version"" 1>&6
2250         # urg, egcs: how to check for egcs >= 1.1?
2251     if expr "$cxx_version" : '.*2\.[89]' > /dev/null ||
2252         expr "$cxx_version" : '.*egcs' > /dev/null ||
2253         expr "$cxx_version" : '3\.[0-9]' > /dev/null
2254         then
2255             true
2256     else
2257         
2258     echo "configure: warning: cannot find g++ 2.8" 1>&2
2259     warn_b=yes
2260
2261         
2262     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'g++ >= 2.95 (gcc package)'\"`\"
2263
2264     fi
2265
2266
2267     echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
2268 echo "configure:2269: checking whether explicit instantiation is needed" >&5
2269 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
2270   echo $ac_n "(cached) $ac_c" 1>&6
2271 else
2272   cat > conftest.$ac_ext <<EOF
2273 #line 2274 "configure"
2274 #include "confdefs.h"
2275
2276     template <class T> struct foo { static int baz; };
2277     template <class T> int foo<T>::baz = 1;
2278     
2279 int main() {
2280  return foo<int>::baz; 
2281 ; return 0; }
2282 EOF
2283 if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2284   rm -rf conftest*
2285   lily_cv_need_explicit_instantiation=no
2286 else
2287   echo "configure: failed program was:" >&5
2288   cat conftest.$ac_ext >&5
2289   rm -rf conftest*
2290   lily_cv_need_explicit_instantiation=yes
2291 fi
2292 rm -f conftest*
2293 fi
2294
2295 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
2296     if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
2297         cat >> confdefs.h <<\EOF
2298 #define NEED_EXPLICIT_INSTANTIATION 1
2299 EOF
2300
2301     fi
2302
2303
2304     # ugh, automake: we want (and check for) bison
2305     for ac_prog in 'bison -y' byacc
2306 do
2307 # Extract the first word of "$ac_prog", so it can be a program name with args.
2308 set dummy $ac_prog; ac_word=$2
2309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2310 echo "configure:2311: checking for $ac_word" >&5
2311 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2312   echo $ac_n "(cached) $ac_c" 1>&6
2313 else
2314   if test -n "$YACC"; then
2315   ac_cv_prog_YACC="$YACC" # Let the user override the test.
2316 else
2317   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2318   ac_dummy="$PATH"
2319   for ac_dir in $ac_dummy; do
2320     test -z "$ac_dir" && ac_dir=.
2321     if test -f $ac_dir/$ac_word; then
2322       ac_cv_prog_YACC="$ac_prog"
2323       break
2324     fi
2325   done
2326   IFS="$ac_save_ifs"
2327 fi
2328 fi
2329 YACC="$ac_cv_prog_YACC"
2330 if test -n "$YACC"; then
2331   echo "$ac_t""$YACC" 1>&6
2332 else
2333   echo "$ac_t""no" 1>&6
2334 fi
2335
2336 test -n "$YACC" && break
2337 done
2338 test -n "$YACC" || YACC="yacc"
2339
2340     
2341     
2342     for ac_prog in bison
2343 do
2344 # Extract the first word of "$ac_prog", so it can be a program name with args.
2345 set dummy $ac_prog; ac_word=$2
2346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2347 echo "configure:2348: checking for $ac_word" >&5
2348 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2349   echo $ac_n "(cached) $ac_c" 1>&6
2350 else
2351   if test -n "$BISON"; then
2352   ac_cv_prog_BISON="$BISON" # Let the user override the test.
2353 else
2354   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2355   ac_dummy="$PATH"
2356   for ac_dir in $ac_dummy; do
2357     test -z "$ac_dir" && ac_dir=.
2358     if test -f $ac_dir/$ac_word; then
2359       ac_cv_prog_BISON="$ac_prog"
2360       break
2361     fi
2362   done
2363   IFS="$ac_save_ifs"
2364 fi
2365 fi
2366 BISON="$ac_cv_prog_BISON"
2367 if test -n "$BISON"; then
2368   echo "$ac_t""$BISON" 1>&6
2369 else
2370   echo "$ac_t""no" 1>&6
2371 fi
2372
2373 test -n "$BISON" && break
2374 done
2375 test -n "$BISON" || BISON="no"
2376
2377     
2378     
2379     r="`eval echo '$'"BISON"`"
2380     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
2381         ##STEPMAKE_WARN(cannot find . )
2382         false
2383     else
2384         true
2385     fi
2386
2387     if test $? -ne 0; then
2388         
2389     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"bison\"`\"
2390
2391         if test "REQUIRED" = "REQUIRED"; then
2392             command="echo ERROR: bison not found"
2393             # abort configure process here?
2394         else
2395             command="- echo bison not found"
2396         fi
2397         eval "BISON"='$command'
2398         false
2399     else
2400         true
2401     fi
2402
2403     if test $? -eq 0 -a -n ""; then
2404         
2405     r="`eval echo '$'"BISON"`"
2406     echo $ac_n "checking "$r version"""... $ac_c" 1>&6
2407 echo "configure:2408: checking "$r version"" >&5
2408     exe=`
2409     type -p "$r" 2>&1 | awk '{print $NF}'
2410 `
2411     ver=`
2412     "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
2413 `
2414     num=`
2415     echo "$ver" | awk -F. '
2416     {
2417       if ($3) {last = $3}
2418       else {last =0}
2419     }
2420     {printf "%s%s%s\n",$1*100, $2*10,last}'
2421 `
2422     req=`
2423     echo "" | awk -F. '
2424     {
2425       if ($3) {last = $3}
2426       else {last =0}
2427     }
2428     {printf "%s%s%s\n",$1*100, $2*10,last}'
2429 `
2430     echo "$ac_t"""$ver"" 1>&6
2431     if test "$num" -lt "$req"; then
2432         
2433     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r  (installed: $ver)"\"`\"
2434
2435     fi
2436
2437     fi
2438
2439     
2440     # urg.  should test functionality rather than version.
2441     if test "$BISON" = "bison" -a -n "1.25"; then
2442         
2443     r="`eval echo '$'"BISON"`"
2444     echo $ac_n "checking "$r version"""... $ac_c" 1>&6
2445 echo "configure:2446: checking "$r version"" >&5
2446     exe=`
2447     type -p "$r" 2>&1 | awk '{print $NF}'
2448 `
2449     ver=`
2450     "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
2451 `
2452     num=`
2453     echo "$ver" | awk -F. '
2454     {
2455       if ($3) {last = $3}
2456       else {last =0}
2457     }
2458     {printf "%s%s%s\n",$1*100, $2*10,last}'
2459 `
2460     req=`
2461     echo "1.25" | awk -F. '
2462     {
2463       if ($3) {last = $3}
2464       else {last =0}
2465     }
2466     {printf "%s%s%s\n",$1*100, $2*10,last}'
2467 `
2468     echo "$ac_t"""$ver"" 1>&6
2469     if test "$num" -lt "$req"; then
2470         
2471     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r 1.25 (installed: $ver)"\"`\"
2472
2473     fi
2474
2475     fi
2476
2477
2478     # ugh, automake: we want (and check for) flex
2479     # AC_PROG_LEX
2480     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
2481
2482     # AC_DECL_YYTEXT
2483     # ugh, ugh
2484     ac_cv_prog_lex_root=lex.yy
2485     
2486     for ac_prog in flex
2487 do
2488 # Extract the first word of "$ac_prog", so it can be a program name with args.
2489 set dummy $ac_prog; ac_word=$2
2490 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2491 echo "configure:2492: checking for $ac_word" >&5
2492 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2493   echo $ac_n "(cached) $ac_c" 1>&6
2494 else
2495   if test -n "$FLEX"; then
2496   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2497 else
2498   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2499   ac_dummy="$PATH"
2500   for ac_dir in $ac_dummy; do
2501     test -z "$ac_dir" && ac_dir=.
2502     if test -f $ac_dir/$ac_word; then
2503       ac_cv_prog_FLEX="$ac_prog"
2504       break
2505     fi
2506   done
2507   IFS="$ac_save_ifs"
2508 fi
2509 fi
2510 FLEX="$ac_cv_prog_FLEX"
2511 if test -n "$FLEX"; then
2512   echo "$ac_t""$FLEX" 1>&6
2513 else
2514   echo "$ac_t""no" 1>&6
2515 fi
2516
2517 test -n "$FLEX" && break
2518 done
2519 test -n "$FLEX" || FLEX="no"
2520
2521     
2522     
2523     r="`eval echo '$'"FLEX"`"
2524     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
2525         ##STEPMAKE_WARN(cannot find . )
2526         false
2527     else
2528         true
2529     fi
2530
2531     if test $? -ne 0; then
2532         
2533     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
2534
2535         if test "REQUIRED" = "REQUIRED"; then
2536             command="echo ERROR: flex not found"
2537             # abort configure process here?
2538         else
2539             command="- echo flex not found"
2540         fi
2541         eval "FLEX"='$command'
2542         false
2543     else
2544         true
2545     fi
2546
2547     if test $? -eq 0 -a -n ""; then
2548         
2549     r="`eval echo '$'"FLEX"`"
2550     echo $ac_n "checking "$r version"""... $ac_c" 1>&6
2551 echo "configure:2552: checking "$r version"" >&5
2552     exe=`
2553     type -p "$r" 2>&1 | awk '{print $NF}'
2554 `
2555     ver=`
2556     "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
2557 `
2558     num=`
2559     echo "$ver" | awk -F. '
2560     {
2561       if ($3) {last = $3}
2562       else {last =0}
2563     }
2564     {printf "%s%s%s\n",$1*100, $2*10,last}'
2565 `
2566     req=`
2567     echo "" | awk -F. '
2568     {
2569       if ($3) {last = $3}
2570       else {last =0}
2571     }
2572     {printf "%s%s%s\n",$1*100, $2*10,last}'
2573 `
2574     echo "$ac_t"""$ver"" 1>&6
2575     if test "$num" -lt "$req"; then
2576         
2577     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r  (installed: $ver)"\"`\"
2578
2579     fi
2580
2581     fi
2582
2583
2584
2585     
2586     for ac_prog in ar
2587 do
2588 # Extract the first word of "$ac_prog", so it can be a program name with args.
2589 set dummy $ac_prog; ac_word=$2
2590 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2591 echo "configure:2592: checking for $ac_word" >&5
2592 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2593   echo $ac_n "(cached) $ac_c" 1>&6
2594 else
2595   if test -n "$AR"; then
2596   ac_cv_prog_AR="$AR" # Let the user override the test.
2597 else
2598   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2599   ac_dummy="$PATH"
2600   for ac_dir in $ac_dummy; do
2601     test -z "$ac_dir" && ac_dir=.
2602     if test -f $ac_dir/$ac_word; then
2603       ac_cv_prog_AR="$ac_prog"
2604       break
2605     fi
2606   done
2607   IFS="$ac_save_ifs"
2608 fi
2609 fi
2610 AR="$ac_cv_prog_AR"
2611 if test -n "$AR"; then
2612   echo "$ac_t""$AR" 1>&6
2613 else
2614   echo "$ac_t""no" 1>&6
2615 fi
2616
2617 test -n "$AR" && break
2618 done
2619 test -n "$AR" || AR="no"
2620
2621     
2622     
2623     r="`eval echo '$'"AR"`"
2624     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
2625         ##STEPMAKE_WARN(cannot find . )
2626         false
2627     else
2628         true
2629     fi
2630
2631     if test $? -ne 0; then
2632         
2633     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
2634
2635         if test "REQUIRED" = "REQUIRED"; then
2636             command="echo ERROR: ar not found"
2637             # abort configure process here?
2638         else
2639             command="- echo ar not found"
2640         fi
2641         eval "AR"='$command'
2642         false
2643     else
2644         true
2645     fi
2646
2647     if test $? -eq 0 -a -n ""; then
2648         
2649     r="`eval echo '$'"AR"`"
2650     echo $ac_n "checking "$r version"""... $ac_c" 1>&6
2651 echo "configure:2652: checking "$r version"" >&5
2652     exe=`
2653     type -p "$r" 2>&1 | awk '{print $NF}'
2654 `
2655     ver=`
2656     "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
2657 `
2658     num=`
2659     echo "$ver" | awk -F. '
2660     {
2661       if ($3) {last = $3}
2662       else {last =0}
2663     }
2664     {printf "%s%s%s\n",$1*100, $2*10,last}'
2665 `
2666     req=`
2667     echo "" | awk -F. '
2668     {
2669       if ($3) {last = $3}
2670       else {last =0}
2671     }
2672     {printf "%s%s%s\n",$1*100, $2*10,last}'
2673 `
2674     echo "$ac_t"""$ver"" 1>&6
2675     if test "$num" -lt "$req"; then
2676         
2677     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r  (installed: $ver)"\"`\"
2678
2679     fi
2680
2681     fi
2682
2683     # Extract the first word of "ranlib", so it can be a program name with args.
2684 set dummy ranlib; ac_word=$2
2685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2686 echo "configure:2687: checking for $ac_word" >&5
2687 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2688   echo $ac_n "(cached) $ac_c" 1>&6
2689 else
2690   if test -n "$RANLIB"; then
2691   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2692 else
2693   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2694   ac_dummy="$PATH"
2695   for ac_dir in $ac_dummy; do
2696     test -z "$ac_dir" && ac_dir=.
2697     if test -f $ac_dir/$ac_word; then
2698       ac_cv_prog_RANLIB="ranlib"
2699       break
2700     fi
2701   done
2702   IFS="$ac_save_ifs"
2703   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2704 fi
2705 fi
2706 RANLIB="$ac_cv_prog_RANLIB"
2707 if test -n "$RANLIB"; then
2708   echo "$ac_t""$RANLIB" 1>&6
2709 else
2710   echo "$ac_t""no" 1>&6
2711 fi
2712
2713     
2714     
2715     r="`eval echo '$'"RANLIB"`"
2716     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
2717         ##STEPMAKE_WARN(cannot find . )
2718         false
2719     else
2720         true
2721     fi
2722
2723     if test $? -ne 0; then
2724         
2725     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
2726
2727         if test "REQUIRED" = "REQUIRED"; then
2728             command="echo ERROR: ranlib not found"
2729             # abort configure process here?
2730         else
2731             command="- echo ranlib not found"
2732         fi
2733         eval "RANLIB"='$command'
2734         false
2735     else
2736         true
2737     fi
2738
2739
2740
2741     lang=English
2742     ALL_LINGUAS="en nl"
2743
2744     # with/enable ??
2745     # Check whether --with-localedir or --without-localedir was given.
2746 if test "${with_localedir+set}" = set; then
2747   withval="$with_localedir"
2748   localedir=$with_localedir
2749 else
2750   localedir='${prefix}/share/locale'
2751 fi
2752
2753
2754     # Check whether --with-lang or --without-lang was given.
2755 if test "${with_lang+set}" = set; then
2756   withval="$with_lang"
2757   language=$with_lang
2758 else
2759   language=English
2760 fi
2761
2762
2763     echo $ac_n "checking language""... $ac_c" 1>&6
2764 echo "configure:2765: checking language" >&5    
2765     case "$language" in
2766       En* | en* | Am* | am* | US* | us*)
2767             lang=English;;
2768       NL | nl | Du* | du* | Ned* | ned*)
2769             lang=Dutch;;
2770       "")
2771             lang=English;;
2772       *)
2773             lang=unknown;;
2774     esac
2775     echo "$ac_t""$lang" 1>&6
2776
2777     if test "$lang" = "unknown" ; then
2778         
2779     echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2780     warn_b=yes
2781
2782     fi
2783
2784
2785
2786     DIR_LOCALEDIR=${localedir}
2787     presome=${prefix}
2788     if test "$prefix" = "NONE"; then
2789             presome=${ac_default_prefix}
2790     fi
2791     DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2792     
2793     
2794     cat >> confdefs.h <<EOF
2795 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2796 EOF
2797
2798
2799     echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2800 echo "configure:2801: checking for gettext in -lintl" >&5
2801 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2803   echo $ac_n "(cached) $ac_c" 1>&6
2804 else
2805   ac_save_LIBS="$LIBS"
2806 LIBS="-lintl  $LIBS"
2807 cat > conftest.$ac_ext <<EOF
2808 #line 2809 "configure"
2809 #include "confdefs.h"
2810 /* Override any gcc2 internal prototype to avoid an error.  */
2811 #ifdef __cplusplus
2812 extern "C"
2813 #endif
2814 /* We use char because int might match the return type of a gcc2
2815     builtin and then its argument prototype would still apply.  */
2816 char gettext();
2817
2818 int main() {
2819 gettext()
2820 ; return 0; }
2821 EOF
2822 if { (eval echo configure:2823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2823   rm -rf conftest*
2824   eval "ac_cv_lib_$ac_lib_var=yes"
2825 else
2826   echo "configure: failed program was:" >&5
2827   cat conftest.$ac_ext >&5
2828   rm -rf conftest*
2829   eval "ac_cv_lib_$ac_lib_var=no"
2830 fi
2831 rm -f conftest*
2832 LIBS="$ac_save_LIBS"
2833
2834 fi
2835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2836   echo "$ac_t""yes" 1>&6
2837     ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2838     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2839   cat >> confdefs.h <<EOF
2840 #define $ac_tr_lib 1
2841 EOF
2842
2843   LIBS="-lintl $LIBS"
2844
2845 else
2846   echo "$ac_t""no" 1>&6
2847 fi
2848
2849     for ac_func in gettext
2850 do
2851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2852 echo "configure:2853: checking for $ac_func" >&5
2853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2854   echo $ac_n "(cached) $ac_c" 1>&6
2855 else
2856   cat > conftest.$ac_ext <<EOF
2857 #line 2858 "configure"
2858 #include "confdefs.h"
2859 /* System header to define __stub macros and hopefully few prototypes,
2860     which can conflict with char $ac_func(); below.  */
2861 #include <assert.h>
2862 /* Override any gcc2 internal prototype to avoid an error.  */
2863 #ifdef __cplusplus
2864 extern "C"
2865 #endif
2866 /* We use char because int might match the return type of a gcc2
2867     builtin and then its argument prototype would still apply.  */
2868 char $ac_func();
2869
2870 int main() {
2871
2872 /* The GNU C library defines this for functions which it implements
2873     to always fail with ENOSYS.  Some functions are actually named
2874     something starting with __ and the normal name is an alias.  */
2875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2876 choke me
2877 #else
2878 $ac_func();
2879 #endif
2880
2881 ; return 0; }
2882 EOF
2883 if { (eval echo configure:2884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2884   rm -rf conftest*
2885   eval "ac_cv_func_$ac_func=yes"
2886 else
2887   echo "configure: failed program was:" >&5
2888   cat conftest.$ac_ext >&5
2889   rm -rf conftest*
2890   eval "ac_cv_func_$ac_func=no"
2891 fi
2892 rm -f conftest*
2893 fi
2894
2895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2896   echo "$ac_t""yes" 1>&6
2897     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2898   cat >> confdefs.h <<EOF
2899 #define $ac_tr_func 1
2900 EOF
2901  
2902 else
2903   echo "$ac_t""no" 1>&6
2904 fi
2905 done
2906
2907
2908
2909     
2910     for ac_prog in msgfmt
2911 do
2912 # Extract the first word of "$ac_prog", so it can be a program name with args.
2913 set dummy $ac_prog; ac_word=$2
2914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2915 echo "configure:2916: checking for $ac_word" >&5
2916 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2917   echo $ac_n "(cached) $ac_c" 1>&6
2918 else
2919   if test -n "$MSGFMT"; then
2920   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2921 else
2922   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2923   ac_dummy="$PATH"
2924   for ac_dir in $ac_dummy; do
2925     test -z "$ac_dir" && ac_dir=.
2926     if test -f $ac_dir/$ac_word; then
2927       ac_cv_prog_MSGFMT="$ac_prog"
2928       break
2929     fi
2930   done
2931   IFS="$ac_save_ifs"
2932 fi
2933 fi
2934 MSGFMT="$ac_cv_prog_MSGFMT"
2935 if test -n "$MSGFMT"; then
2936   echo "$ac_t""$MSGFMT" 1>&6
2937 else
2938   echo "$ac_t""no" 1>&6
2939 fi
2940
2941 test -n "$MSGFMT" && break
2942 done
2943 test -n "$MSGFMT" || MSGFMT="no"
2944
2945     
2946     
2947     r="`eval echo '$'"MSGFMT"`"
2948     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
2949         ##STEPMAKE_WARN(cannot find . )
2950         false
2951     else
2952         true
2953     fi
2954
2955     if test $? -ne 0; then
2956         
2957     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
2958
2959         if test "REQUIRED" = "REQUIRED"; then
2960             command="echo ERROR: msgfmt not found"
2961             # abort configure process here?
2962         else
2963             command="- echo msgfmt not found"
2964         fi
2965         eval "MSGFMT"='$command'
2966         false
2967     else
2968         true
2969     fi
2970
2971     if test $? -eq 0 -a -n ""; then
2972         
2973     r="`eval echo '$'"MSGFMT"`"
2974     echo $ac_n "checking "$r version"""... $ac_c" 1>&6
2975 echo "configure:2976: checking "$r version"" >&5
2976     exe=`
2977     type -p "$r" 2>&1 | awk '{print $NF}'
2978 `
2979     ver=`
2980     "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
2981 `
2982     num=`
2983     echo "$ver" | awk -F. '
2984     {
2985       if ($3) {last = $3}
2986       else {last =0}
2987     }
2988     {printf "%s%s%s\n",$1*100, $2*10,last}'
2989 `
2990     req=`
2991     echo "" | awk -F. '
2992     {
2993       if ($3) {last = $3}
2994       else {last =0}
2995     }
2996     {printf "%s%s%s\n",$1*100, $2*10,last}'
2997 `
2998     echo "$ac_t"""$ver"" 1>&6
2999     if test "$num" -lt "$req"; then
3000         
3001     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r  (installed: $ver)"\"`\"
3002
3003     fi
3004
3005     fi
3006
3007
3008
3009     # urg, never know what names these teTeX guys will think up
3010
3011     
3012     for ac_prog in mf mfont
3013 do
3014 # Extract the first word of "$ac_prog", so it can be a program name with args.
3015 set dummy $ac_prog; ac_word=$2
3016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3017 echo "configure:3018: checking for $ac_word" >&5
3018 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
3019   echo $ac_n "(cached) $ac_c" 1>&6
3020 else
3021   if test -n "$METAFONT"; then
3022   ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
3023 else
3024   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3025   ac_dummy="$PATH"
3026   for ac_dir in $ac_dummy; do
3027     test -z "$ac_dir" && ac_dir=.
3028     if test -f $ac_dir/$ac_word; then
3029       ac_cv_prog_METAFONT="$ac_prog"
3030       break
3031     fi
3032   done
3033   IFS="$ac_save_ifs"
3034 fi
3035 fi
3036 METAFONT="$ac_cv_prog_METAFONT"
3037 if test -n "$METAFONT"; then
3038   echo "$ac_t""$METAFONT" 1>&6
3039 else
3040   echo "$ac_t""no" 1>&6
3041 fi
3042
3043 test -n "$METAFONT" && break
3044 done
3045 test -n "$METAFONT" || METAFONT="no"
3046
3047     
3048     
3049     r="`eval echo '$'"METAFONT"`"
3050     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
3051         ##STEPMAKE_WARN(cannot find . )
3052         false
3053     else
3054         true
3055     fi
3056
3057     if test $? -ne 0; then
3058         
3059     eval ""=\"`eval echo \"'$'\" \"mf mfont\"`\"
3060
3061         if test "" = "REQUIRED"; then
3062             command="echo ERROR: mf mfont not found"
3063             # abort configure process here?
3064         else
3065             command="- echo mf mfont not found"
3066         fi
3067         eval "METAFONT"='$command'
3068         false
3069     else
3070         true
3071     fi
3072
3073     if test $? -eq 0 -a -n ""; then
3074         
3075     r="`eval echo '$'"METAFONT"`"
3076     echo $ac_n "checking "$r version"""... $ac_c" 1>&6
3077 echo "configure:3078: checking "$r version"" >&5
3078     exe=`
3079     type -p "$r" 2>&1 | awk '{print $NF}'
3080 `
3081     ver=`
3082     "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
3083 `
3084     num=`
3085     echo "$ver" | awk -F. '
3086     {
3087       if ($3) {last = $3}
3088       else {last =0}
3089     }
3090     {printf "%s%s%s\n",$1*100, $2*10,last}'
3091 `
3092     req=`
3093     echo "" | awk -F. '
3094     {
3095       if ($3) {last = $3}
3096       else {last =0}
3097     }
3098     {printf "%s%s%s\n",$1*100, $2*10,last}'
3099 `
3100     echo "$ac_t"""$ver"" 1>&6
3101     if test "$num" -lt "$req"; then
3102         
3103     eval ""=\"`eval echo \"'$'\" \""$r  (installed: $ver)"\"`\"
3104
3105     fi
3106
3107     fi
3108
3109     
3110     for ac_prog in inimf inimfont
3111 do
3112 # Extract the first word of "$ac_prog", so it can be a program name with args.
3113 set dummy $ac_prog; ac_word=$2
3114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3115 echo "configure:3116: checking for $ac_word" >&5
3116 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then
3117   echo $ac_n "(cached) $ac_c" 1>&6
3118 else
3119   if test -n "$INIMETAFONT"; then
3120   ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test.
3121 else
3122   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3123   ac_dummy="$PATH"
3124   for ac_dir in $ac_dummy; do
3125     test -z "$ac_dir" && ac_dir=.
3126     if test -f $ac_dir/$ac_word; then
3127       ac_cv_prog_INIMETAFONT="$ac_prog"
3128       break
3129     fi
3130   done
3131   IFS="$ac_save_ifs"
3132 fi
3133 fi
3134 INIMETAFONT="$ac_cv_prog_INIMETAFONT"
3135 if test -n "$INIMETAFONT"; then
3136   echo "$ac_t""$INIMETAFONT" 1>&6
3137 else
3138   echo "$ac_t""no" 1>&6
3139 fi
3140
3141 test -n "$INIMETAFONT" && break
3142 done
3143 test -n "$INIMETAFONT" || INIMETAFONT="no"
3144
3145     
3146     
3147     r="`eval echo '$'"INIMETAFONT"`"
3148     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"INIMETAFONT"`' : '.*\(echo\)' > /dev/null; then
3149         ##STEPMAKE_WARN(cannot find . )
3150         false
3151     else
3152         true
3153     fi
3154
3155     if test $? -ne 0; then
3156         
3157     eval ""=\"`eval echo \"'$'\" \"inimf inimfont\"`\"
3158
3159         if test "" = "REQUIRED"; then
3160             command="echo ERROR: inimf inimfont not found"
3161             # abort configure process here?
3162         else
3163             command="- echo inimf inimfont not found"
3164         fi
3165         eval "INIMETAFONT"='$command'
3166         false
3167     else
3168         true
3169     fi
3170
3171     if test $? -eq 0 -a -n ""; then
3172         
3173     r="`eval echo '$'"INIMETAFONT"`"
3174     echo $ac_n "checking "$r version"""... $ac_c" 1>&6
3175 echo "configure:3176: checking "$r version"" >&5
3176     exe=`
3177     type -p "$r" 2>&1 | awk '{print $NF}'
3178 `
3179     ver=`
3180     "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
3181 `
3182     num=`
3183     echo "$ver" | awk -F. '
3184     {
3185       if ($3) {last = $3}
3186       else {last =0}
3187     }
3188     {printf "%s%s%s\n",$1*100, $2*10,last}'
3189 `
3190     req=`
3191     echo "" | awk -F. '
3192     {
3193       if ($3) {last = $3}
3194       else {last =0}
3195     }
3196     {printf "%s%s%s\n",$1*100, $2*10,last}'
3197 `
3198     echo "$ac_t"""$ver"" 1>&6
3199     if test "$num" -lt "$req"; then
3200         
3201     eval ""=\"`eval echo \"'$'\" \""$r  (installed: $ver)"\"`\"
3202
3203     fi
3204
3205     fi
3206
3207
3208     echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
3209 echo "configure:3210: checking for working metafont mode" >&5
3210     modelist='ljfour lj4 lj3 lj2 ljet laserjet'
3211     for MFMODE in $modelist; do
3212         $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
3213         if test -f mfput.tfm; then
3214             break;
3215         fi
3216     done
3217     echo "$ac_t""$MFMODE" 1>&6
3218
3219     rm -f mfput.*
3220
3221     
3222
3223
3224     # Check whether --enable-tfm-path or --disable-tfm-path was given.
3225 if test "${enable_tfm_path+set}" = set; then
3226   enableval="$enable_tfm_path"
3227   tfm_path=$enableval
3228 else
3229   tfm_path=auto 
3230 fi
3231
3232
3233     # ugh
3234     
3235     for ac_prog in kpsewhich
3236 do
3237 # Extract the first word of "$ac_prog", so it can be a program name with args.
3238 set dummy $ac_prog; ac_word=$2
3239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3240 echo "configure:3241: checking for $ac_word" >&5
3241 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
3242   echo $ac_n "(cached) $ac_c" 1>&6
3243 else
3244   if test -n "$KPSEWHICH"; then
3245   ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
3246 else
3247   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3248   ac_dummy="$PATH"
3249   for ac_dir in $ac_dummy; do
3250     test -z "$ac_dir" && ac_dir=.
3251     if test -f $ac_dir/$ac_word; then
3252       ac_cv_prog_KPSEWHICH="$ac_prog"
3253       break
3254     fi
3255   done
3256   IFS="$ac_save_ifs"
3257 fi
3258 fi
3259 KPSEWHICH="$ac_cv_prog_KPSEWHICH"
3260 if test -n "$KPSEWHICH"; then
3261   echo "$ac_t""$KPSEWHICH" 1>&6
3262 else
3263   echo "$ac_t""no" 1>&6
3264 fi
3265
3266 test -n "$KPSEWHICH" && break
3267 done
3268 test -n "$KPSEWHICH" || KPSEWHICH="no"
3269
3270     
3271     
3272     r="`eval echo '$'"KPSEWHICH"`"
3273     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
3274         ##STEPMAKE_WARN(cannot find . )
3275         false
3276     else
3277         true
3278     fi
3279
3280     if test $? -ne 0; then
3281         
3282     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"kpsewhich\"`\"
3283
3284         if test "OPTIONAL" = "REQUIRED"; then
3285             command="echo ERROR: kpsewhich not found"
3286             # abort configure process here?
3287         else
3288             command="- echo kpsewhich not found"
3289         fi
3290         eval "KPSEWHICH"='$command'
3291         false
3292     else
3293         true
3294     fi
3295
3296     if test $? -eq 0 -a -n ""; then
3297         
3298     r="`eval echo '$'"KPSEWHICH"`"
3299     echo $ac_n "checking "$r version"""... $ac_c" 1>&6
3300 echo "configure:3301: checking "$r version"" >&5
3301     exe=`
3302     type -p "$r" 2>&1 | awk '{print $NF}'
3303 `
3304     ver=`
3305     "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
3306 `
3307     num=`
3308     echo "$ver" | awk -F. '
3309     {
3310       if ($3) {last = $3}
3311       else {last =0}
3312     }
3313     {printf "%s%s%s\n",$1*100, $2*10,last}'
3314 `
3315     req=`
3316     echo "" | awk -F. '
3317     {
3318       if ($3) {last = $3}
3319       else {last =0}
3320     }
3321     {printf "%s%s%s\n",$1*100, $2*10,last}'
3322 `
3323     echo "$ac_t"""$ver"" 1>&6
3324     if test "$num" -lt "$req"; then
3325         
3326     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r  (installed: $ver)"\"`\"
3327
3328     fi
3329
3330     fi
3331
3332     echo $ac_n "checking for tfm path""... $ac_c" 1>&6
3333 echo "configure:3334: checking for tfm path" >&5
3334
3335     TFM_FONTS="cmr msam"
3336
3337     if test "x$tfm_path" = xauto ; then
3338         if test "x$KPSEWHICH" != "xno" ; then
3339             for i in $TFM_FONTS; do
3340                 dir=`$KPSEWHICH tfm ${i}10.tfm`
3341                 TFM_PATH="$TFM_PATH `dirname $dir`"
3342             done
3343         else
3344             
3345     echo "configure: warning: Please specify where cmr10.tfm lives:
3346     ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts" 1>&2
3347     warn_b=yes
3348
3349         fi
3350     else
3351          TFM_PATH=$tfm_path
3352     fi
3353
3354     TFM_PATH=`echo $TFM_PATH | tr ':' ' '`
3355     echo "$ac_t""$TFM_PATH" 1>&6
3356     
3357
3358
3359     ## First, let's just see if we can find Guile at all.
3360     echo $ac_n "checking "for guile-config"""... $ac_c" 1>&6
3361 echo "configure:3362: checking "for guile-config"" >&5
3362     for guile_config in guile-config $target-guile-config $build-guile-config; do
3363         echo "$ac_t"""$guile_config"" 1>&6
3364         if ! $guile_config --version > /dev/null 2>&1 ; then
3365             echo "configure: warning: "cannot execute $guile_config"" 1>&2
3366             echo $ac_n "checking "if we are cross compiling"""... $ac_c" 1>&6
3367 echo "configure:3368: checking "if we are cross compiling"" >&5
3368             GUILE_CONFIG='echo no guile-config'
3369         else
3370             GUILE_CONFIG=$guile_config
3371             break
3372         fi
3373     done
3374     
3375     
3376     r="`eval echo '$'"GUILE_CONFIG"`"
3377     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
3378         ##STEPMAKE_WARN(cannot find . )
3379         false
3380     else
3381         true
3382     fi
3383
3384     if test $? -ne 0; then
3385         
3386     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$guile_config\"`\"
3387
3388         if test "REQUIRED" = "REQUIRED"; then
3389             command="echo ERROR: $guile_config not found"
3390             # abort configure process here?
3391         else
3392             command="- echo $guile_config not found"
3393         fi
3394         eval "GUILE_CONFIG"='$command'
3395         false
3396     else
3397         true
3398     fi
3399
3400     #if expr "$GUILE_CONFIG" : '.*\(echo\)' >/dev/null; then
3401     if test $? -ne 0; then
3402         
3403     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'guile-config (guile-devel, guile-dev or libguile-dev package)'\"`\"
3404
3405     fi 
3406
3407     
3408     r="`eval echo '$'"GUILE_CONFIG"`"
3409     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
3410         ##STEPMAKE_WARN(cannot find . )
3411         false
3412     else
3413         true
3414     fi
3415
3416     # urg.  should test functionality rather than version.
3417     if test $? -eq 0 -a -n "1.3.4"; then
3418         
3419     r="`eval echo '$'"GUILE_CONFIG"`"
3420     echo $ac_n "checking "$r version"""... $ac_c" 1>&6
3421 echo "configure:3422: checking "$r version"" >&5
3422     exe=`
3423     type -p "$r" 2>&1 | awk '{print $NF}'
3424 `
3425     ver=`
3426     "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
3427 `
3428     num=`
3429     echo "$ver" | awk -F. '
3430     {
3431       if ($3) {last = $3}
3432       else {last =0}
3433     }
3434     {printf "%s%s%s\n",$1*100, $2*10,last}'
3435 `
3436     req=`
3437     echo "1.3.4" | awk -F. '
3438     {
3439       if ($3) {last = $3}
3440       else {last =0}
3441     }
3442     {printf "%s%s%s\n",$1*100, $2*10,last}'
3443 `
3444     echo "$ac_t"""$ver"" 1>&6
3445     if test "$num" -lt "$req"; then
3446         
3447     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r 1.3.4 (installed: $ver)"\"`\"
3448
3449     fi
3450
3451     fi
3452
3453     
3454     
3455     guile_version="$ver"
3456         GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
3457     GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
3458         
3459     exe=`
3460     type -p "$guile_config" 2>&1 | awk '{print $NF}'
3461 `
3462     if test -x $exe; then
3463         echo $ac_n "checking "guile compile flags"""... $ac_c" 1>&6
3464 echo "configure:3465: checking "guile compile flags"" >&5
3465         GUILE_CFLAGS="`$guile_config compile`"
3466         echo "$ac_t""$GUILE_CFLAGS" 1>&6
3467         echo $ac_n "checking "guile link flags"""... $ac_c" 1>&6
3468 echo "configure:3469: checking "guile link flags"" >&5
3469         GUILE_LDFLAGS="`$guile_config link`"
3470         echo "$ac_t""$GUILE_LDFLAGS" 1>&6
3471     fi
3472     
3473     
3474
3475     cat >> confdefs.h <<EOF
3476 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
3477 EOF
3478
3479     cat >> confdefs.h <<EOF
3480 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
3481 EOF
3482
3483
3484
3485
3486     kpathsea_b=yes
3487     #FIXME --with-xxx is meant for specifying a PATH too,
3488     # so this should read: --enable-kpathsea,
3489     # or --with-kpathsea-include=PATH --with-kpathsea-lib=PATH
3490     # Check whether --with-kpathsea or --without-kpathsea was given.
3491 if test "${with_kpathsea+set}" = set; then
3492   withval="$with_kpathsea"
3493   kpathsea_b=$with_kpathsea
3494 fi
3495
3496
3497     if test "$kpathsea_b" != "no"; then 
3498         for ac_hdr in kpathsea/kpathsea.h
3499 do
3500 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3501 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3502 echo "configure:3503: checking for $ac_hdr" >&5
3503 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3504   echo $ac_n "(cached) $ac_c" 1>&6
3505 else
3506   cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3509 #include <$ac_hdr>
3510 EOF
3511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3512 { (eval echo configure:3513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3514 if test -z "$ac_err"; then
3515   rm -rf conftest*
3516   eval "ac_cv_header_$ac_safe=yes"
3517 else
3518   echo "$ac_err" >&5
3519   echo "configure: failed program was:" >&5
3520   cat conftest.$ac_ext >&5
3521   rm -rf conftest*
3522   eval "ac_cv_header_$ac_safe=no"
3523 fi
3524 rm -f conftest*
3525 fi
3526 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3527   echo "$ac_t""yes" 1>&6
3528     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3529   cat >> confdefs.h <<EOF
3530 #define $ac_tr_hdr 1
3531 EOF
3532  
3533 else
3534   echo "$ac_t""no" 1>&6
3535 fi
3536 done
3537
3538         echo $ac_n "checking for kpse_find_file in -lkpathsea""... $ac_c" 1>&6
3539 echo "configure:3540: checking for kpse_find_file in -lkpathsea" >&5
3540 ac_lib_var=`echo kpathsea'_'kpse_find_file | sed 'y%./+-%__p_%'`
3541 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3542   echo $ac_n "(cached) $ac_c" 1>&6
3543 else
3544   ac_save_LIBS="$LIBS"
3545 LIBS="-lkpathsea  $LIBS"
3546 cat > conftest.$ac_ext <<EOF
3547 #line 3548 "configure"
3548 #include "confdefs.h"
3549 /* Override any gcc2 internal prototype to avoid an error.  */
3550 #ifdef __cplusplus
3551 extern "C"
3552 #endif
3553 /* We use char because int might match the return type of a gcc2
3554     builtin and then its argument prototype would still apply.  */
3555 char kpse_find_file();
3556
3557 int main() {
3558 kpse_find_file()
3559 ; return 0; }
3560 EOF
3561 if { (eval echo configure:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3562   rm -rf conftest*
3563   eval "ac_cv_lib_$ac_lib_var=yes"
3564 else
3565   echo "configure: failed program was:" >&5
3566   cat conftest.$ac_ext >&5
3567   rm -rf conftest*
3568   eval "ac_cv_lib_$ac_lib_var=no"
3569 fi
3570 rm -f conftest*
3571 LIBS="$ac_save_LIBS"
3572
3573 fi
3574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3575   echo "$ac_t""yes" 1>&6
3576     ac_tr_lib=HAVE_LIB`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3577     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3578   cat >> confdefs.h <<EOF
3579 #define $ac_tr_lib 1
3580 EOF
3581
3582   LIBS="-lkpathsea $LIBS"
3583
3584 else
3585   echo "$ac_t""no" 1>&6
3586 fi
3587
3588         for ac_func in kpse_find_file
3589 do
3590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3591 echo "configure:3592: checking for $ac_func" >&5
3592 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3593   echo $ac_n "(cached) $ac_c" 1>&6
3594 else
3595   cat > conftest.$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3598 /* System header to define __stub macros and hopefully few prototypes,
3599     which can conflict with char $ac_func(); below.  */
3600 #include <assert.h>
3601 /* Override any gcc2 internal prototype to avoid an error.  */
3602 #ifdef __cplusplus
3603 extern "C"
3604 #endif
3605 /* We use char because int might match the return type of a gcc2
3606     builtin and then its argument prototype would still apply.  */
3607 char $ac_func();
3608
3609 int main() {
3610
3611 /* The GNU C library defines this for functions which it implements
3612     to always fail with ENOSYS.  Some functions are actually named
3613     something starting with __ and the normal name is an alias.  */
3614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3615 choke me
3616 #else
3617 $ac_func();
3618 #endif
3619
3620 ; return 0; }
3621 EOF
3622 if { (eval echo configure:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3623   rm -rf conftest*
3624   eval "ac_cv_func_$ac_func=yes"
3625 else
3626   echo "configure: failed program was:" >&5
3627   cat conftest.$ac_ext >&5
3628   rm -rf conftest*
3629   eval "ac_cv_func_$ac_func=no"
3630 fi
3631 rm -f conftest*
3632 fi
3633
3634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3635   echo "$ac_t""yes" 1>&6
3636     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3637   cat >> confdefs.h <<EOF
3638 #define $ac_tr_func 1
3639 EOF
3640  
3641 else
3642   echo "$ac_t""no" 1>&6
3643 { echo "configure: error: Cannot find kpathsea functions.  You should install kpathsea; see INSTALL.txt.  Rerun ./configure --without-kpathsea only if kpathsea is not available for your platform." 1>&2; exit 1; }
3644 fi
3645 done
3646
3647     fi
3648     echo $ac_n "checking whether to use kpathsea""... $ac_c" 1>&6
3649 echo "configure:3650: checking whether to use kpathsea" >&5
3650     if test "$kpathsea_b" != no; then
3651         echo "$ac_t""yes" 1>&6
3652         KPATHSEA=1
3653     else
3654         echo "$ac_t""no" 1>&6
3655         KPATHSEA=0
3656     fi
3657
3658     
3659     cat >> confdefs.h <<EOF
3660 #define KPATHSEA $KPATHSEA
3661 EOF
3662
3663
3664
3665     
3666     for ac_prog in makeinfo
3667 do
3668 # Extract the first word of "$ac_prog", so it can be a program name with args.
3669 set dummy $ac_prog; ac_word=$2
3670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3671 echo "configure:3672: checking for $ac_word" >&5
3672 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3673   echo $ac_n "(cached) $ac_c" 1>&6
3674 else
3675   if test -n "$MAKEINFO"; then
3676   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3677 else
3678   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3679   ac_dummy="$PATH"
3680   for ac_dir in $ac_dummy; do
3681     test -z "$ac_dir" && ac_dir=.
3682     if test -f $ac_dir/$ac_word; then
3683       ac_cv_prog_MAKEINFO="$ac_prog"
3684       break
3685     fi
3686   done
3687   IFS="$ac_save_ifs"
3688 fi
3689 fi
3690 MAKEINFO="$ac_cv_prog_MAKEINFO"
3691 if test -n "$MAKEINFO"; then
3692   echo "$ac_t""$MAKEINFO" 1>&6
3693 else
3694   echo "$ac_t""no" 1>&6
3695 fi
3696
3697 test -n "$MAKEINFO" && break
3698 done
3699 test -n "$MAKEINFO" || MAKEINFO="no"
3700
3701     
3702     
3703     r="`eval echo '$'"MAKEINFO"`"
3704     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
3705         ##STEPMAKE_WARN(cannot find . )
3706         false
3707     else
3708         true
3709     fi
3710
3711     if test $? -ne 0; then
3712         
3713     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
3714
3715         if test "REQUIRED" = "REQUIRED"; then
3716             command="echo ERROR: makeinfo not found"
3717             # abort configure process here?
3718         else
3719             command="- echo makeinfo not found"
3720         fi
3721         eval "MAKEINFO"='$command'
3722         false
3723     else
3724         true
3725     fi
3726
3727     if test $? -eq 0 -a -n ""; then
3728         
3729     r="`eval echo '$'"MAKEINFO"`"
3730     echo $ac_n "checking "$r version"""... $ac_c" 1>&6
3731 echo "configure:3732: checking "$r version"" >&5
3732     exe=`
3733     type -p "$r" 2>&1 | awk '{print $NF}'
3734 `
3735     ver=`
3736     "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
3737 `
3738     num=`
3739     echo "$ver" | awk -F. '
3740     {
3741       if ($3) {last = $3}
3742       else {last =0}
3743     }
3744     {printf "%s%s%s\n",$1*100, $2*10,last}'
3745 `
3746     req=`
3747     echo "" | awk -F. '
3748     {
3749       if ($3) {last = $3}
3750       else {last =0}
3751     }
3752     {printf "%s%s%s\n",$1*100, $2*10,last}'
3753 `
3754     echo "$ac_t"""$ver"" 1>&6
3755     if test "$num" -lt "$req"; then
3756         
3757     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r  (installed: $ver)"\"`\"
3758
3759     fi
3760
3761     fi
3762
3763     if test "$MAKEINFO" = "makeinfo"; then
3764         echo $ac_n "checking whether makeinfo can split html by @node""... $ac_c" 1>&6
3765 echo "configure:3766: checking whether makeinfo can split html by @node" >&5
3766         mkdir -p out
3767         makeinfo --html --output=out/split <<EOF
3768 \input texinfo
3769 \input texinfo @c -*-texinfo-*-
3770 @setfilename split.info
3771 @settitle split.info
3772 @bye
3773 EOF
3774         if test -d out/split; then
3775             SPLITTING_MAKEINFO=yes
3776             echo "$ac_t""yes" 1>&6
3777             rm -rf out/split
3778         else
3779             echo "$ac_t""no" 1>&6
3780             
3781     echo "configure: warning: your html documentation will be one large file" 1>&2
3782     warn_b=yes
3783
3784             rm -rf out/split
3785         fi
3786     fi
3787     
3788
3789
3790     for ac_hdr in python2.2/Python.h python2.1/Python.h python2.0/Python.h python2/Python.h python/Python.h python1.5/Python.h Python.h
3791 do
3792 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3794 echo "configure:3795: checking for $ac_hdr" >&5
3795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3796   echo $ac_n "(cached) $ac_c" 1>&6
3797 else
3798   cat > conftest.$ac_ext <<EOF
3799 #line 3800 "configure"
3800 #include "confdefs.h"
3801 #include <$ac_hdr>
3802 EOF
3803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3804 { (eval echo configure:3805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3806 if test -z "$ac_err"; then
3807   rm -rf conftest*
3808   eval "ac_cv_header_$ac_safe=yes"
3809 else
3810   echo "$ac_err" >&5
3811   echo "configure: failed program was:" >&5
3812   cat conftest.$ac_ext >&5
3813   rm -rf conftest*
3814   eval "ac_cv_header_$ac_safe=no"
3815 fi
3816 rm -f conftest*
3817 fi
3818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3819   echo "$ac_t""yes" 1>&6
3820     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3821   cat >> confdefs.h <<EOF
3822 #define $ac_tr_hdr 1
3823 EOF
3824  
3825 else
3826   echo "$ac_t""no" 1>&6
3827 fi
3828 done
3829
3830     if test $? -ne 0; then
3831         
3832     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'python.h (python-devel, python-dev or libpython-dev package)'\"`\"
3833
3834     fi
3835
3836
3837
3838 ## Optional tools for building documentation, website, extra fonts.
3839
3840 # guile executable for some scripts
3841
3842     
3843     for ac_prog in guile
3844 do
3845 # Extract the first word of "$ac_prog", so it can be a program name with args.
3846 set dummy $ac_prog; ac_word=$2
3847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3848 echo "configure:3849: checking for $ac_word" >&5
3849 if eval "test \"`echo '$''{'ac_cv_prog_GUILE'+set}'`\" = set"; then
3850   echo $ac_n "(cached) $ac_c" 1>&6
3851 else
3852   if test -n "$GUILE"; then
3853   ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
3854 else
3855   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3856   ac_dummy="$PATH"
3857   for ac_dir in $ac_dummy; do
3858     test -z "$ac_dir" && ac_dir=.
3859     if test -f $ac_dir/$ac_word; then
3860       ac_cv_prog_GUILE="$ac_prog"
3861       break
3862     fi
3863   done
3864   IFS="$ac_save_ifs"
3865 fi
3866 fi
3867 GUILE="$ac_cv_prog_GUILE"
3868 if test -n "$GUILE"; then
3869   echo "$ac_t""$GUILE" 1>&6
3870 else
3871   echo "$ac_t""no" 1>&6
3872 fi
3873
3874 test -n "$GUILE" && break
3875 done
3876 test -n "$GUILE" || GUILE="no"
3877
3878     
3879     
3880     r="`eval echo '$'"GUILE"`"
3881     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
3882         ##STEPMAKE_WARN(cannot find . )
3883         false
3884     else
3885         true
3886     fi
3887
3888     if test $? -ne 0; then
3889         
3890     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"guile\"`\"
3891
3892         if test "OPTIONAL" = "REQUIRED"; then
3893             command="echo ERROR: guile not found"
3894             # abort configure process here?
3895         else
3896             command="- echo guile not found"
3897         fi
3898         eval "GUILE"='$command'
3899         false
3900     else
3901         true
3902     fi
3903
3904     if test $? -eq 0; then
3905         # Extract the first word of "guile", so it can be a program name with args.
3906 set dummy guile; ac_word=$2
3907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3908 echo "configure:3909: checking for $ac_word" >&5
3909 if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then
3910   echo $ac_n "(cached) $ac_c" 1>&6
3911 else
3912   case "$GUILE" in
3913   /*)
3914   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
3915   ;;
3916   ?:/*)                  
3917   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a dos path.
3918   ;;
3919   *)
3920   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3921   ac_dummy="$PATH"
3922   for ac_dir in $ac_dummy; do 
3923     test -z "$ac_dir" && ac_dir=.
3924     if test -f $ac_dir/$ac_word; then
3925       ac_cv_path_GUILE="$ac_dir/$ac_word"
3926       break
3927     fi
3928   done
3929   IFS="$ac_save_ifs"
3930   ;;
3931 esac
3932 fi
3933 GUILE="$ac_cv_path_GUILE"
3934 if test -n "$GUILE"; then
3935   echo "$ac_t""$GUILE" 1>&6
3936 else
3937   echo "$ac_t""no" 1>&6
3938 fi
3939
3940         if test -n ""; then
3941             
3942     r="`eval echo '$'"GUILE"`"
3943     echo $ac_n "checking "$r version"""... $ac_c" 1>&6
3944 echo "configure:3945: checking "$r version"" >&5
3945     exe=`
3946     type -p "$r" 2>&1 | awk '{print $NF}'
3947 `
3948     ver=`
3949     "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
3950 `
3951     num=`
3952     echo "$ver" | awk -F. '
3953     {
3954       if ($3) {last = $3}
3955       else {last =0}
3956     }
3957     {printf "%s%s%s\n",$1*100, $2*10,last}'
3958 `
3959     req=`
3960     echo "" | awk -F. '
3961     {
3962       if ($3) {last = $3}
3963       else {last =0}
3964     }
3965     {printf "%s%s%s\n",$1*100, $2*10,last}'
3966 `
3967     echo "$ac_t"""$ver"" 1>&6
3968     if test "$num" -lt "$req"; then
3969         
3970     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r  (installed: $ver)"\"`\"
3971
3972     fi
3973
3974         fi
3975     fi
3976
3977
3978 # perl for help2man.
3979
3980     
3981     for ac_prog in perl
3982 do
3983 # Extract the first word of "$ac_prog", so it can be a program name with args.
3984 set dummy $ac_prog; ac_word=$2
3985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3986 echo "configure:3987: checking for $ac_word" >&5
3987 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
3988   echo $ac_n "(cached) $ac_c" 1>&6
3989 else
3990   if test -n "$PERL"; then
3991   ac_cv_prog_PERL="$PERL" # Let the user override the test.
3992 else
3993   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3994   ac_dummy="$PATH"
3995   for ac_dir in $ac_dummy; do
3996     test -z "$ac_dir" && ac_dir=.
3997     if test -f $ac_dir/$ac_word; then
3998       ac_cv_prog_PERL="$ac_prog"
3999       break
4000     fi
4001   done
4002   IFS="$ac_save_ifs"
4003 fi
4004 fi
4005 PERL="$ac_cv_prog_PERL"
4006 if test -n "$PERL"; then
4007   echo "$ac_t""$PERL" 1>&6
4008 else
4009   echo "$ac_t""no" 1>&6
4010 fi
4011
4012 test -n "$PERL" && break
4013 done
4014 test -n "$PERL" || PERL="no"
4015
4016     
4017     
4018     r="`eval echo '$'"PERL"`"
4019     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
4020         ##STEPMAKE_WARN(cannot find . )
4021         false
4022     else
4023         true
4024     fi
4025
4026     if test $? -ne 0; then
4027         
4028     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"perl\"`\"
4029
4030         if test "OPTIONAL" = "REQUIRED"; then
4031             command="echo ERROR: perl not found"
4032             # abort configure process here?
4033         else
4034             command="- echo perl not found"
4035         fi
4036         eval "PERL"='$command'
4037         false
4038     else
4039         true
4040     fi
4041
4042     if test $? -eq 0; then
4043         # Extract the first word of "perl", so it can be a program name with args.
4044 set dummy perl; ac_word=$2
4045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4046 echo "configure:4047: checking for $ac_word" >&5
4047 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
4048   echo $ac_n "(cached) $ac_c" 1>&6
4049 else
4050   case "$PERL" in
4051   /*)
4052   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4053   ;;
4054   ?:/*)                  
4055   ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
4056   ;;
4057   *)
4058   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4059   ac_dummy="$PATH"
4060   for ac_dir in $ac_dummy; do 
4061     test -z "$ac_dir" && ac_dir=.
4062     if test -f $ac_dir/$ac_word; then
4063       ac_cv_path_PERL="$ac_dir/$ac_word"
4064       break
4065     fi
4066   done
4067   IFS="$ac_save_ifs"
4068   ;;
4069 esac
4070 fi
4071 PERL="$ac_cv_path_PERL"
4072 if test -n "$PERL"; then
4073   echo "$ac_t""$PERL" 1>&6
4074 else
4075   echo "$ac_t""no" 1>&6
4076 fi
4077
4078         if test -n ""; then
4079             
4080     r="`eval echo '$'"PERL"`"
4081     echo $ac_n "checking "$r version"""... $ac_c" 1>&6
4082 echo "configure:4083: checking "$r version"" >&5
4083     exe=`
4084     type -p "$r" 2>&1 | awk '{print $NF}'
4085 `
4086     ver=`
4087     "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
4088 `
4089     num=`
4090     echo "$ver" | awk -F. '
4091     {
4092       if ($3) {last = $3}
4093       else {last =0}
4094     }
4095     {printf "%s%s%s\n",$1*100, $2*10,last}'
4096 `
4097     req=`
4098     echo "" | awk -F. '
4099     {
4100       if ($3) {last = $3}
4101       else {last =0}
4102     }
4103     {printf "%s%s%s\n",$1*100, $2*10,last}'
4104 `
4105     echo "$ac_t"""$ver"" 1>&6
4106     if test "$num" -lt "$req"; then
4107         
4108     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r  (installed: $ver)"\"`\"
4109
4110     fi
4111
4112         fi
4113     fi
4114
4115
4116 # pktrace for generating pfa's, pfb's
4117
4118     for ac_prog in pktrace
4119 do
4120 # Extract the first word of "$ac_prog", so it can be a program name with args.
4121 set dummy $ac_prog; ac_word=$2
4122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4123 echo "configure:4124: checking for $ac_word" >&5
4124 if eval "test \"`echo '$''{'ac_cv_prog_PKTRACE'+set}'`\" = set"; then
4125   echo $ac_n "(cached) $ac_c" 1>&6
4126 else
4127   if test -n "$PKTRACE"; then
4128   ac_cv_prog_PKTRACE="$PKTRACE" # Let the user override the test.
4129 else
4130   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4131   ac_dummy="$PATH"
4132   for ac_dir in $ac_dummy; do
4133     test -z "$ac_dir" && ac_dir=.
4134     if test -f $ac_dir/$ac_word; then
4135       ac_cv_prog_PKTRACE="$ac_prog"
4136       break
4137     fi
4138   done
4139   IFS="$ac_save_ifs"
4140 fi
4141 fi
4142 PKTRACE="$ac_cv_prog_PKTRACE"
4143 if test -n "$PKTRACE"; then
4144   echo "$ac_t""$PKTRACE" 1>&6
4145 else
4146   echo "$ac_t""no" 1>&6
4147 fi
4148
4149 test -n "$PKTRACE" && break
4150 done
4151 test -n "$PKTRACE" || PKTRACE="no"
4152
4153     
4154     
4155     r="`eval echo '$'"PKTRACE"`"
4156     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"PKTRACE"`' : '.*\(echo\)' > /dev/null; then
4157         ##STEPMAKE_WARN(cannot find . )
4158         false
4159     else
4160         true
4161     fi
4162
4163     if test $? -ne 0; then
4164         
4165     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"pktrace\"`\"
4166
4167         if test "OPTIONAL" = "REQUIRED"; then
4168             command="echo ERROR: pktrace not found"
4169             # abort configure process here?
4170         else
4171             command="- echo pktrace not found"
4172         fi
4173         eval "PKTRACE"='$command'
4174         false
4175     else
4176         true
4177     fi
4178
4179     if test $? -eq 0 -a -n "1.0.3"; then
4180         
4181     r="`eval echo '$'"PKTRACE"`"
4182     echo $ac_n "checking "$r version"""... $ac_c" 1>&6
4183 echo "configure:4184: checking "$r version"" >&5
4184     exe=`
4185     type -p "$r" 2>&1 | awk '{print $NF}'
4186 `
4187     ver=`
4188     "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
4189 `
4190     num=`
4191     echo "$ver" | awk -F. '
4192     {
4193       if ($3) {last = $3}
4194       else {last =0}
4195     }
4196     {printf "%s%s%s\n",$1*100, $2*10,last}'
4197 `
4198     req=`
4199     echo "1.0.3" | awk -F. '
4200     {
4201       if ($3) {last = $3}
4202       else {last =0}
4203     }
4204     {printf "%s%s%s\n",$1*100, $2*10,last}'
4205 `
4206     echo "$ac_t"""$ver"" 1>&6
4207     if test "$num" -lt "$req"; then
4208         
4209     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r 1.0.3 (installed: $ver)"\"`\"
4210
4211     fi
4212
4213     fi
4214
4215 # new makeinfo for multi-page website docs
4216
4217     for ac_prog in makeinfo
4218 do
4219 # Extract the first word of "$ac_prog", so it can be a program name with args.
4220 set dummy $ac_prog; ac_word=$2
4221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4222 echo "configure:4223: checking for $ac_word" >&5
4223 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
4224   echo $ac_n "(cached) $ac_c" 1>&6
4225 else
4226   if test -n "$MAKEINFO"; then
4227   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4228 else
4229   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4230   ac_dummy="$PATH"
4231   for ac_dir in $ac_dummy; do
4232     test -z "$ac_dir" && ac_dir=.
4233     if test -f $ac_dir/$ac_word; then
4234       ac_cv_prog_MAKEINFO="$ac_prog"
4235       break
4236     fi
4237   done
4238   IFS="$ac_save_ifs"
4239 fi
4240 fi
4241 MAKEINFO="$ac_cv_prog_MAKEINFO"
4242 if test -n "$MAKEINFO"; then
4243   echo "$ac_t""$MAKEINFO" 1>&6
4244 else
4245   echo "$ac_t""no" 1>&6
4246 fi
4247
4248 test -n "$MAKEINFO" && break
4249 done
4250 test -n "$MAKEINFO" || MAKEINFO="no"
4251
4252     
4253     
4254     r="`eval echo '$'"MAKEINFO"`"
4255     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
4256         ##STEPMAKE_WARN(cannot find . )
4257         false
4258     else
4259         true
4260     fi
4261
4262     if test $? -ne 0; then
4263         
4264     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"makeinfo\"`\"
4265
4266         if test "OPTIONAL" = "REQUIRED"; then
4267             command="echo ERROR: makeinfo not found"
4268             # abort configure process here?
4269         else
4270             command="- echo makeinfo not found"
4271         fi
4272         eval "MAKEINFO"='$command'
4273         false
4274     else
4275         true
4276     fi
4277
4278     if test $? -eq 0 -a -n "4.1"; then
4279         
4280     r="`eval echo '$'"MAKEINFO"`"
4281     echo $ac_n "checking "$r version"""... $ac_c" 1>&6
4282 echo "configure:4283: checking "$r version"" >&5
4283     exe=`
4284     type -p "$r" 2>&1 | awk '{print $NF}'
4285 `
4286     ver=`
4287     "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
4288 `
4289     num=`
4290     echo "$ver" | awk -F. '
4291     {
4292       if ($3) {last = $3}
4293       else {last =0}
4294     }
4295     {printf "%s%s%s\n",$1*100, $2*10,last}'
4296 `
4297     req=`
4298     echo "4.1" | awk -F. '
4299     {
4300       if ($3) {last = $3}
4301       else {last =0}
4302     }
4303     {printf "%s%s%s\n",$1*100, $2*10,last}'
4304 `
4305     echo "$ac_t"""$ver"" 1>&6
4306     if test "$num" -lt "$req"; then
4307         
4308     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r 4.1 (installed: $ver)"\"`\"
4309
4310     fi
4311
4312     fi
4313
4314
4315
4316 if test "$optimise_b" = yes; then
4317     DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
4318     cat >> confdefs.h <<\EOF
4319 #define STRINGS_UTILS_INLINED 1
4320 EOF
4321
4322 fi
4323
4324
4325 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4326 echo "configure:4327: checking for 8-bit clean memcmp" >&5
4327 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4328   echo $ac_n "(cached) $ac_c" 1>&6
4329 else
4330   if test "$cross_compiling" = yes; then
4331   ac_cv_func_memcmp_clean=no
4332 else
4333   cat > conftest.$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4336
4337 main()
4338 {
4339   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4340   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4341 }
4342
4343 EOF
4344 if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4345 then
4346   ac_cv_func_memcmp_clean=yes
4347 else
4348   echo "configure: failed program was:" >&5
4349   cat conftest.$ac_ext >&5
4350   rm -fr conftest*
4351   ac_cv_func_memcmp_clean=no
4352 fi
4353 rm -fr conftest*
4354 fi
4355
4356 fi
4357
4358 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4359 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4360
4361 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
4362 echo "configure:4363: checking for vprintf" >&5
4363 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4364   echo $ac_n "(cached) $ac_c" 1>&6
4365 else
4366   cat > conftest.$ac_ext <<EOF
4367 #line 4368 "configure"
4368 #include "confdefs.h"
4369 /* System header to define __stub macros and hopefully few prototypes,
4370     which can conflict with char vprintf(); below.  */
4371 #include <assert.h>
4372 /* Override any gcc2 internal prototype to avoid an error.  */
4373 #ifdef __cplusplus
4374 extern "C"
4375 #endif
4376 /* We use char because int might match the return type of a gcc2
4377     builtin and then its argument prototype would still apply.  */
4378 char vprintf();
4379
4380 int main() {
4381
4382 /* The GNU C library defines this for functions which it implements
4383     to always fail with ENOSYS.  Some functions are actually named
4384     something starting with __ and the normal name is an alias.  */
4385 #if defined (__stub_vprintf) || defined (__stub___vprintf)
4386 choke me
4387 #else
4388 vprintf();
4389 #endif
4390
4391 ; return 0; }
4392 EOF
4393 if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4394   rm -rf conftest*
4395   eval "ac_cv_func_vprintf=yes"
4396 else
4397   echo "configure: failed program was:" >&5
4398   cat conftest.$ac_ext >&5
4399   rm -rf conftest*
4400   eval "ac_cv_func_vprintf=no"
4401 fi
4402 rm -f conftest*
4403 fi
4404
4405 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4406   echo "$ac_t""yes" 1>&6
4407   cat >> confdefs.h <<\EOF
4408 #define HAVE_VPRINTF 1
4409 EOF
4410
4411 else
4412   echo "$ac_t""no" 1>&6
4413 fi
4414
4415 if test "$ac_cv_func_vprintf" != yes; then
4416 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4417 echo "configure:4418: checking for _doprnt" >&5
4418 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4419   echo $ac_n "(cached) $ac_c" 1>&6
4420 else
4421   cat > conftest.$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4424 /* System header to define __stub macros and hopefully few prototypes,
4425     which can conflict with char _doprnt(); below.  */
4426 #include <assert.h>
4427 /* Override any gcc2 internal prototype to avoid an error.  */
4428 #ifdef __cplusplus
4429 extern "C"
4430 #endif
4431 /* We use char because int might match the return type of a gcc2
4432     builtin and then its argument prototype would still apply.  */
4433 char _doprnt();
4434
4435 int main() {
4436
4437 /* The GNU C library defines this for functions which it implements
4438     to always fail with ENOSYS.  Some functions are actually named
4439     something starting with __ and the normal name is an alias.  */
4440 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4441 choke me
4442 #else
4443 _doprnt();
4444 #endif
4445
4446 ; return 0; }
4447 EOF
4448 if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4449   rm -rf conftest*
4450   eval "ac_cv_func__doprnt=yes"
4451 else
4452   echo "configure: failed program was:" >&5
4453   cat conftest.$ac_ext >&5
4454   rm -rf conftest*
4455   eval "ac_cv_func__doprnt=no"
4456 fi
4457 rm -f conftest*
4458 fi
4459
4460 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4461   echo "$ac_t""yes" 1>&6
4462   cat >> confdefs.h <<\EOF
4463 #define HAVE_DOPRNT 1
4464 EOF
4465
4466 else
4467   echo "$ac_t""no" 1>&6
4468 fi
4469
4470 fi
4471
4472 for ac_func in memmem snprintf vsnprintf gettext isinf
4473 do
4474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4475 echo "configure:4476: checking for $ac_func" >&5
4476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4477   echo $ac_n "(cached) $ac_c" 1>&6
4478 else
4479   cat > conftest.$ac_ext <<EOF
4480 #line 4481 "configure"
4481 #include "confdefs.h"
4482 /* System header to define __stub macros and hopefully few prototypes,
4483     which can conflict with char $ac_func(); below.  */
4484 #include <assert.h>
4485 /* Override any gcc2 internal prototype to avoid an error.  */
4486 #ifdef __cplusplus
4487 extern "C"
4488 #endif
4489 /* We use char because int might match the return type of a gcc2
4490     builtin and then its argument prototype would still apply.  */
4491 char $ac_func();
4492
4493 int main() {
4494
4495 /* The GNU C library defines this for functions which it implements
4496     to always fail with ENOSYS.  Some functions are actually named
4497     something starting with __ and the normal name is an alias.  */
4498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4499 choke me
4500 #else
4501 $ac_func();
4502 #endif
4503
4504 ; return 0; }
4505 EOF
4506 if { (eval echo configure:4507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4507   rm -rf conftest*
4508   eval "ac_cv_func_$ac_func=yes"
4509 else
4510   echo "configure: failed program was:" >&5
4511   cat conftest.$ac_ext >&5
4512   rm -rf conftest*
4513   eval "ac_cv_func_$ac_func=no"
4514 fi
4515 rm -f conftest*
4516 fi
4517
4518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4519   echo "$ac_t""yes" 1>&6
4520     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4521   cat >> confdefs.h <<EOF
4522 #define $ac_tr_func 1
4523 EOF
4524  
4525 else
4526   echo "$ac_t""no" 1>&6
4527 fi
4528 done
4529
4530
4531 cat >> confdefs.h <<EOF
4532 #define TOPLEVEL_VERSION "${FULL_VERSION}"
4533 EOF
4534
4535 cat >> confdefs.h <<EOF
4536 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
4537 EOF
4538
4539
4540 # Gather requirements and generate output.
4541
4542     
4543     
4544     
4545     trap '' 1 2 15
4546 cat > confcache <<\EOF
4547 # This file is a shell script that caches the results of configure
4548 # tests run on this system so they can be shared between configure
4549 # scripts and configure runs.  It is not useful on other systems.
4550 # If it contains results you don't want to keep, you may remove or edit it.
4551 #
4552 # By default, configure uses ./config.cache as the cache file,
4553 # creating it if it does not exist already.  You can give configure
4554 # the --cache-file=FILE option to use a different cache file; that is
4555 # what configure does when it calls configure scripts in
4556 # subdirectories, so they share the cache.
4557 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4558 # config.status only pays attention to the cache file if you give it the
4559 # --recheck option to rerun configure.
4560 #
4561 EOF
4562 # The following way of writing the cache mishandles newlines in values,
4563 # but we know of no workaround that is simple, portable, and efficient.
4564 # So, don't put newlines in cache variables' values.
4565 # Ultrix sh set writes to stderr and can't be redirected directly,
4566 # and sets the high bit in the cache file unless we assign to the vars.
4567 (set) 2>&1 |
4568   case `(ac_space=' '; set | grep ac_space) 2>&1` in
4569   *ac_space=\ *)
4570     # `set' does not quote correctly, so add quotes (double-quote substitution
4571     # turns \\\\ into \\, and sed turns \\ into \).
4572     sed -n \
4573       -e "s/'/'\\\\''/g" \
4574       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4575     ;;
4576   *)
4577     # `set' quotes correctly as required by POSIX, so do not add quotes.
4578     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4579     ;;
4580   esac >> confcache
4581 if cmp -s $cache_file confcache; then
4582   :
4583 else
4584   if test -w $cache_file; then
4585     echo "updating cache $cache_file"
4586     cat confcache > $cache_file
4587   else
4588     echo "not updating unwritable cache $cache_file"
4589   fi
4590 fi
4591 rm -f confcache
4592
4593 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4594
4595 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4596 # Let make expand exec_prefix.
4597 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4598
4599 # Any assignment to VPATH causes Sun make to only execute
4600 # the first set of double-colon rules, so remove it if not needed.
4601 # If there is a colon in the path, we need to keep it.
4602 if test "x$srcdir" = x.; then
4603   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
4604 fi
4605
4606 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4607
4608 DEFS=-DHAVE_CONFIG_H
4609
4610 # Without the "./", some shells look in PATH for config.status.
4611 : ${CONFIG_STATUS=./config.status}
4612
4613 echo creating $CONFIG_STATUS
4614 rm -f $CONFIG_STATUS
4615 cat > $CONFIG_STATUS <<EOF
4616 #! /bin/sh
4617 # Generated automatically by configure.
4618 # Run this file to recreate the current configuration.
4619 # This directory was configured as follows,
4620 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4621 #
4622 # $0 $ac_configure_args
4623 #
4624 # Compiler output produced by configure, useful for debugging
4625 # configure, is in ./config.log if it exists.
4626
4627 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4628 for ac_option
4629 do
4630   case "\$ac_option" in
4631   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4632     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4633     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4634   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4635     echo "$CONFIG_STATUS generated by autoconf version 2.13"
4636     exit 0 ;;
4637   -help | --help | --hel | --he | --h)
4638     echo "\$ac_cs_usage"; exit 0 ;;
4639   *) echo "\$ac_cs_usage"; exit 1 ;;
4640   esac
4641 done
4642
4643 ac_given_srcdir=$srcdir
4644
4645 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4646 EOF
4647 cat >> $CONFIG_STATUS <<EOF
4648
4649 # Protect against being on the right side of a sed subst in config.status.
4650 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4651  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4652 $ac_vpsub
4653 $extrasub
4654 s%@SHELL@%$SHELL%g
4655 s%@CFLAGS@%$CFLAGS%g
4656 s%@CPPFLAGS@%$CPPFLAGS%g
4657 s%@CXXFLAGS@%$CXXFLAGS%g
4658 s%@FFLAGS@%$FFLAGS%g
4659 s%@DEFS@%$DEFS%g
4660 s%@LDFLAGS@%$LDFLAGS%g
4661 s%@LIBS@%$LIBS%g
4662 s%@exec_prefix@%$exec_prefix%g
4663 s%@prefix@%$prefix%g
4664 s%@program_transform_name@%$program_transform_name%g
4665 s%@bindir@%$bindir%g
4666 s%@sbindir@%$sbindir%g
4667 s%@libexecdir@%$libexecdir%g
4668 s%@datadir@%$datadir%g
4669 s%@sysconfdir@%$sysconfdir%g
4670 s%@sharedstatedir@%$sharedstatedir%g
4671 s%@localstatedir@%$localstatedir%g
4672 s%@libdir@%$libdir%g
4673 s%@includedir@%$includedir%g
4674 s%@oldincludedir@%$oldincludedir%g
4675 s%@infodir@%$infodir%g
4676 s%@mandir@%$mandir%g
4677 s%@builddir@%$builddir%g
4678 s%@stepmake@%$stepmake%g
4679 s%@package@%$package%g
4680 s%@PACKAGE@%$PACKAGE%g
4681 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
4682 s%@package_depth@%$package_depth%g
4683 s%@AUTOGENERATE@%$AUTOGENERATE%g
4684 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
4685 s%@host@%$host%g
4686 s%@host_alias@%$host_alias%g
4687 s%@host_cpu@%$host_cpu%g
4688 s%@host_vendor@%$host_vendor%g
4689 s%@host_os@%$host_os%g
4690 s%@MAKE@%$MAKE%g
4691 s%@FIND@%$FIND%g
4692 s%@TAR@%$TAR%g
4693 s%@BASH@%$BASH%g
4694 s%@PYTHON@%$PYTHON%g
4695 s%@program_prefix@%$program_prefix%g
4696 s%@program_suffix@%$program_suffix%g
4697 s%@ZIP@%$ZIP%g
4698 s%@LN@%$LN%g
4699 s%@LN_S@%$LN_S%g
4700 s%@INSTALL@%$INSTALL%g
4701 s%@PATHSEP@%$PATHSEP%g
4702 s%@DIRSEP@%$DIRSEP%g
4703 s%@DIR_DATADIR@%$DIR_DATADIR%g
4704 s%@subdirs@%$subdirs%g
4705 s%@CC@%$CC%g
4706 s%@LD@%$LD%g
4707 s%@cross_compiling@%$cross_compiling%g
4708 s%@ICFLAGS@%$ICFLAGS%g
4709 s%@ILDFLAGS@%$ILDFLAGS%g
4710 s%@DEFINES@%$DEFINES%g
4711 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
4712 s%@CPP@%$CPP%g
4713 s%@CXX@%$CXX%g
4714 s%@CXXCPP@%$CXXCPP%g
4715 s%@YACC@%$YACC%g
4716 s%@BISON@%$BISON%g
4717 s%@FLEX@%$FLEX%g
4718 s%@AR@%$AR%g
4719 s%@RANLIB@%$RANLIB%g
4720 s%@localedir@%$localedir%g
4721 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
4722 s%@MSGFMT@%$MSGFMT%g
4723 s%@METAFONT@%$METAFONT%g
4724 s%@INIMETAFONT@%$INIMETAFONT%g
4725 s%@MFMODE@%$MFMODE%g
4726 s%@KPSEWHICH@%$KPSEWHICH%g
4727 s%@TFM_PATH@%$TFM_PATH%g
4728 s%@GUILE_CONFIG@%$GUILE_CONFIG%g
4729 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
4730 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
4731 s%@KPATHSEA@%$KPATHSEA%g
4732 s%@MAKEINFO@%$MAKEINFO%g
4733 s%@SPLITTING_MAKEINFO@%$SPLITTING_MAKEINFO%g
4734 s%@GUILE@%$GUILE%g
4735 s%@PERL@%$PERL%g
4736 s%@PKTRACE@%$PKTRACE%g
4737 s%@LIBOBJS@%$LIBOBJS%g
4738 s%@OPTIONAL@%$OPTIONAL%g
4739 s%@REQUIRED@%$REQUIRED%g
4740
4741 CEOF
4742 EOF
4743
4744 cat >> $CONFIG_STATUS <<\EOF
4745
4746 # Split the substitutions into bite-sized pieces for seds with
4747 # small command number limits, like on Digital OSF/1 and HP-UX.
4748 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4749 ac_file=1 # Number of current file.
4750 ac_beg=1 # First line for current file.
4751 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4752 ac_more_lines=:
4753 ac_sed_cmds=""
4754 while $ac_more_lines; do
4755   if test $ac_beg -gt 1; then
4756     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4757   else
4758     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4759   fi
4760   if test ! -s conftest.s$ac_file; then
4761     ac_more_lines=false
4762     rm -f conftest.s$ac_file
4763   else
4764     if test -z "$ac_sed_cmds"; then
4765       ac_sed_cmds="sed -f conftest.s$ac_file"
4766     else
4767       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4768     fi
4769     ac_file=`expr $ac_file + 1`
4770     ac_beg=$ac_end
4771     ac_end=`expr $ac_end + $ac_max_sed_cmds`
4772   fi
4773 done
4774 if test -z "$ac_sed_cmds"; then
4775   ac_sed_cmds=cat
4776 fi
4777 EOF
4778
4779 cat >> $CONFIG_STATUS <<EOF
4780
4781 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
4782 EOF
4783 cat >> $CONFIG_STATUS <<\EOF
4784 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4785   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4786   case "$ac_file" in
4787   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4788        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4789   *) ac_file_in="${ac_file}.in" ;;
4790   esac
4791
4792   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4793
4794   # Remove last slash and all that follows it.  Not all systems have dirname.
4795   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4796   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4797     # The file is in a subdirectory.
4798     test ! -d "$ac_dir" && mkdir "$ac_dir"
4799     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4800     # A "../" for each directory in $ac_dir_suffix.
4801     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4802   else
4803     ac_dir_suffix= ac_dots=
4804   fi
4805
4806   case "$ac_given_srcdir" in
4807   .)  srcdir=.
4808       if test -z "$ac_dots"; then top_srcdir=.
4809       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4810   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4811   *) # Relative path.
4812     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4813     top_srcdir="$ac_dots$ac_given_srcdir" ;;
4814   esac
4815
4816
4817   echo creating "$ac_file"
4818   rm -f "$ac_file"
4819   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4820   case "$ac_file" in
4821   *Makefile*) ac_comsub="1i\\
4822 # $configure_input" ;;
4823   *) ac_comsub= ;;
4824   esac
4825
4826   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4827   sed -e "$ac_comsub
4828 s%@configure_input@%$configure_input%g
4829 s%@srcdir@%$srcdir%g
4830 s%@top_srcdir@%$top_srcdir%g
4831 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4832 fi; done
4833 rm -f conftest.s*
4834
4835 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4836 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4837 #
4838 # ac_d sets the value in "#define NAME VALUE" lines.
4839 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4840 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4841 ac_dC='\3'
4842 ac_dD='%g'
4843 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4844 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4845 ac_uB='\([      ]\)%\1#\2define\3'
4846 ac_uC=' '
4847 ac_uD='\4%g'
4848 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4849 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4850 ac_eB='$%\1#\2define\3'
4851 ac_eC=' '
4852 ac_eD='%g'
4853
4854 if test "${CONFIG_HEADERS+set}" != set; then
4855 EOF
4856 cat >> $CONFIG_STATUS <<EOF
4857   CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
4858 EOF
4859 cat >> $CONFIG_STATUS <<\EOF
4860 fi
4861 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4862   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4863   case "$ac_file" in
4864   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4865        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4866   *) ac_file_in="${ac_file}.in" ;;
4867   esac
4868
4869   echo creating $ac_file
4870
4871   rm -f conftest.frag conftest.in conftest.out
4872   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4873   cat $ac_file_inputs > conftest.in
4874
4875 EOF
4876
4877 # Transform confdefs.h into a sed script conftest.vals that substitutes
4878 # the proper values into config.h.in to produce config.h.  And first:
4879 # Protect against being on the right side of a sed subst in config.status.
4880 # Protect against being in an unquoted here document in config.status.
4881 rm -f conftest.vals
4882 cat > conftest.hdr <<\EOF
4883 s/[\\&%]/\\&/g
4884 s%[\\$`]%\\&%g
4885 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4886 s%ac_d%ac_u%gp
4887 s%ac_u%ac_e%gp
4888 EOF
4889 sed -n -f conftest.hdr confdefs.h > conftest.vals
4890 rm -f conftest.hdr
4891
4892 # This sed command replaces #undef with comments.  This is necessary, for
4893 # example, in the case of _POSIX_SOURCE, which is predefined and required
4894 # on some systems where configure will not decide to define it.
4895 cat >> conftest.vals <<\EOF
4896 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4897 EOF
4898
4899 # Break up conftest.vals because some shells have a limit on
4900 # the size of here documents, and old seds have small limits too.
4901
4902 rm -f conftest.tail
4903 while :
4904 do
4905   ac_lines=`grep -c . conftest.vals`
4906   # grep -c gives empty output for an empty file on some AIX systems.
4907   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4908   # Write a limited-size here document to conftest.frag.
4909   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4910   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4911   echo 'CEOF
4912   sed -f conftest.frag conftest.in > conftest.out
4913   rm -f conftest.in
4914   mv conftest.out conftest.in
4915 ' >> $CONFIG_STATUS
4916   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4917   rm -f conftest.vals
4918   mv conftest.tail conftest.vals
4919 done
4920 rm -f conftest.vals
4921
4922 cat >> $CONFIG_STATUS <<\EOF
4923   rm -f conftest.frag conftest.h
4924   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4925   cat conftest.in >> conftest.h
4926   rm -f conftest.in
4927   if cmp -s $ac_file conftest.h 2>/dev/null; then
4928     echo "$ac_file is unchanged"
4929     rm -f conftest.h
4930   else
4931     # Remove last slash and all that follows it.  Not all systems have dirname.
4932       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4933       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4934       # The file is in a subdirectory.
4935       test ! -d "$ac_dir" && mkdir "$ac_dir"
4936     fi
4937     rm -f $ac_file
4938     mv conftest.h $ac_file
4939   fi
4940 fi; done
4941
4942 EOF
4943 cat >> $CONFIG_STATUS <<EOF
4944
4945 EOF
4946 cat >> $CONFIG_STATUS <<\EOF
4947
4948 exit 0
4949 EOF
4950 chmod +x $CONFIG_STATUS
4951 rm -fr confdefs* $ac_clean_files
4952 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4953
4954 if test "$no_recursion" != yes; then
4955
4956   # Remove --cache-file and --srcdir arguments so they do not pile up.
4957   ac_sub_configure_args=
4958   ac_prev=
4959   for ac_arg in $ac_configure_args; do
4960     if test -n "$ac_prev"; then
4961       ac_prev=
4962       continue
4963     fi
4964     case "$ac_arg" in
4965     -cache-file | --cache-file | --cache-fil | --cache-fi \
4966     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4967       ac_prev=cache_file ;;
4968     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4969     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4970       ;;
4971     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4972       ac_prev=srcdir ;;
4973     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4974       ;;
4975     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4976     esac
4977   done
4978
4979   for ac_config_dir in stepmake; do
4980
4981     # Do not complain, so a configure script can configure whichever
4982     # parts of a large source tree are present.
4983     if test ! -d $srcdir/$ac_config_dir; then
4984       continue
4985     fi
4986
4987     echo configuring in $ac_config_dir
4988
4989     case "$srcdir" in
4990     .) ;;
4991     *)
4992       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4993       else
4994         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4995       fi
4996       ;;
4997     esac
4998
4999     ac_popdir=`pwd`
5000     cd $ac_config_dir
5001
5002       # A "../" for each directory in /$ac_config_dir.
5003       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
5004
5005     case "$srcdir" in
5006     .) # No --srcdir option.  We are building in place.
5007       ac_sub_srcdir=$srcdir ;;
5008     /*) # Absolute path.
5009       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
5010     *) # Relative path.
5011       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
5012     esac
5013
5014     # Check for guested configure; otherwise get Cygnus style configure.
5015     if test -f $ac_sub_srcdir/configure; then
5016       ac_sub_configure=$ac_sub_srcdir/configure
5017     elif test -f $ac_sub_srcdir/configure.in; then
5018       ac_sub_configure=$ac_configure
5019     else
5020       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
5021       ac_sub_configure=
5022     fi
5023
5024     # The recursion is here.
5025     if test -n "$ac_sub_configure"; then
5026
5027       # Make the cache file name correct relative to the subdirectory.
5028       case "$cache_file" in
5029       /*) ac_sub_cache_file=$cache_file ;;
5030       *) # Relative path.
5031         ac_sub_cache_file="$ac_dots$cache_file" ;;
5032       esac
5033
5034       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
5035       # The eval makes quoting arguments work.
5036       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
5037       then :
5038       else
5039         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
5040       fi
5041     fi
5042
5043     cd $ac_popdir
5044   done
5045 fi
5046
5047
5048     
5049     if test -n "$OPTIONAL"; then
5050         echo
5051         echo "WARNING: Please consider installing optional programs: $OPTIONAL"
5052     fi
5053
5054     if test -n "$REQUIRED"; then
5055         echo
5056         echo "ERROR: Please install required programs: $REQUIRED"
5057     fi
5058     
5059     if test -n "$OPTIONAL$REQUIRED"; then
5060         echo
5061         echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
5062         echo "Remove config.cache before rerunning ./configure"
5063     fi
5064     
5065     if test -n "$REQUIRED"; then
5066         rm -f $srcdir/GNUmakefile
5067         exit 1
5068     fi
5069
5070     # regular in-place build
5071     # test for srcdir_build = yes ?
5072     if test "$builddir" = "."; then
5073         rm -f $srcdir/GNUmakefile
5074         cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
5075         chmod 444 $srcdir/GNUmakefile
5076     else # --srcdir build
5077         rm -f GNUmakefile
5078         cp $srcdir/make/srcdir.make.in GNUmakefile
5079         chmod 444 GNUmakefile
5080     fi
5081
5082
5083
5084 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
5085
5086 cat <<EOF
5087
5088 Type:
5089     make$mc all       to build LilyPond
5090     make$mc install   to install LilyPond
5091     make$mc help      to see all possible targets
5092
5093 Do not worry if ./Documentation or ./mutopia should not build.
5094 EOF