]> git.donarmstrong.com Git - lilypond.git/blob - configure
''
[lilypond.git] / configure
1 #! /bin/sh
2
3 ac_help="$ac_help
4   --with-gtkmm-prefix=PREFIX
5                           Prefix where GTK-- is installed (optional)"
6 # Check whether --with-gtkmm-prefix or --without-gtkmm-prefix was given.
7 if test "${with_gtkmm_prefix+set}" = set; then
8   withval="$with_gtkmm_prefix"
9   gtkmm_config_prefix="$withval"
10 else
11   gtkmm_config_prefix=""
12 fi
13
14 ac_help="$ac_help
15   --with-gtkmm-exec-prefix=PREFIX
16                           Exec prefix where GTK-- is installed (optional)"
17 # Check whether --with-gtkmm-exec-prefix or --without-gtkmm-exec-prefix was given.
18 if test "${with_gtkmm_exec_prefix+set}" = set; then
19   withval="$with_gtkmm_exec_prefix"
20   gtkmm_config_exec_prefix="$withval"
21 else
22   gtkmm_config_exec_prefix=""
23 fi
24
25 ac_help="$ac_help
26   --disable-gtkmmtest     Do not try to compile and run a test GTK-- program"
27 # Check whether --enable-gtkmmtest or --disable-gtkmmtest was given.
28 if test "${enable_gtkmmtest+set}" = set; then
29   enableval="$enable_gtkmmtest"
30   :
31 else
32   enable_gtkmmtest=yes
33 fi
34
35
36   if test x$gtkmm_config_exec_prefix != x ; then
37      gtkmm_config_args="$gtkmm_config_args --exec-prefix=$gtkmm_config_exec_prefix"
38      if test x${GTKMM_CONFIG+set} != xset ; then
39         GTKMM_CONFIG=$gtkmm_config_exec_prefix/bin/gtkmm-config
40      fi
41   fi
42   if test x$gtkmm_config_prefix != x ; then
43      gtkmm_config_args="$gtkmm_config_args --prefix=$gtkmm_config_prefix"
44      if test x${GTKMM_CONFIG+set} != xset ; then
45         GTKMM_CONFIG=$gtkmm_config_prefix/bin/gtkmm-config
46      fi
47   fi
48
49
50
51
52 # Configure paths for GTK--DRAW
53 # Derek Quinn Wyatt   98-08-21  (adapted from Jan Nieuwenhuizen's code)
54
55
56 # Guess values for system-dependent variables and create Makefiles.
57 # Generated automatically using autoconf version 2.13 
58 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
59 #
60 # This configure script is free software; the Free Software Foundation
61 # gives unlimited permission to copy, distribute and modify it.
62
63 # Defaults:
64 ac_help=
65 ac_default_prefix=/usr/local
66 # Any additions from configure.in:
67 ac_help="$ac_help
68   --enable-config=CONF    put settings in config-CONF.make and config-CONF.h;
69                             do \`make conf=CONF' to get output in ./out-CONF"
70 ac_help="$ac_help
71   --enable-checking       set runtime checks (assert calls).  Default: on"
72 ac_help="$ac_help
73   --enable-debugging      compile with debugging info.  Default: on"
74 ac_help="$ac_help
75   --enable-optimising      compile with optimising.  Default: on"
76 ac_help="$ac_help
77   --enable-profiling      compile with gprof support.  Default: off"
78 ac_help="$ac_help
79   --with-localedir=LOCALE use LOCALE as locale dir.  Default:
80                             PREFIX/share/locale "
81 ac_help="$ac_help
82   --with-lang=LANG        use LANG as language to emit messages"
83 ac_help="$ac_help
84   --enable-tfm-path=PATH  set path of tex directories where tfm files live,
85                             esp.: cmr10.tfm.  Default: use kpsewhich"
86 ac_help="$ac_help
87   --with-kpathsea         use kpathsea lib.  Default: on"
88
89 # Initialize some variables set by options.
90 # The variables have the same names as the options, with
91 # dashes changed to underlines.
92 build=NONE
93 cache_file=./config.cache
94 exec_prefix=NONE
95 host=NONE
96 no_create=
97 nonopt=NONE
98 no_recursion=
99 prefix=NONE
100 program_prefix=NONE
101 program_suffix=NONE
102 program_transform_name=s,x,x,
103 silent=
104 site=
105 srcdir=
106 target=NONE
107 verbose=
108 x_includes=NONE
109 x_libraries=NONE
110 bindir='${exec_prefix}/bin'
111 sbindir='${exec_prefix}/sbin'
112 libexecdir='${exec_prefix}/libexec'
113 datadir='${prefix}/share'
114 sysconfdir='${prefix}/etc'
115 sharedstatedir='${prefix}/com'
116 localstatedir='${prefix}/var'
117 libdir='${exec_prefix}/lib'
118 includedir='${prefix}/include'
119 oldincludedir='/usr/include'
120 infodir='${prefix}/info'
121 mandir='${prefix}/man'
122
123 # Initialize some other variables.
124 subdirs=
125 MFLAGS= MAKEFLAGS=
126 SHELL=${CONFIG_SHELL-/bin/sh}
127 # Maximum number of lines to put in a shell here document.
128 ac_max_here_lines=12
129
130 ac_prev=
131 for ac_option
132 do
133
134   # If the previous option needs an argument, assign it.
135   if test -n "$ac_prev"; then
136     eval "$ac_prev=\$ac_option"
137     ac_prev=
138     continue
139   fi
140
141   case "$ac_option" in
142   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
143   *) ac_optarg= ;;
144   esac
145
146   # Accept the important Cygnus configure options, so we can diagnose typos.
147
148   case "$ac_option" in
149
150   -bindir | --bindir | --bindi | --bind | --bin | --bi)
151     ac_prev=bindir ;;
152   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
153     bindir="$ac_optarg" ;;
154
155   -build | --build | --buil | --bui | --bu)
156     ac_prev=build ;;
157   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
158     build="$ac_optarg" ;;
159
160   -cache-file | --cache-file | --cache-fil | --cache-fi \
161   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
162     ac_prev=cache_file ;;
163   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
164   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
165     cache_file="$ac_optarg" ;;
166
167   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
168     ac_prev=datadir ;;
169   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
170   | --da=*)
171     datadir="$ac_optarg" ;;
172
173   -disable-* | --disable-*)
174     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
175     # Reject names that are not valid shell variable names.
176     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
177       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178     fi
179     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180     eval "enable_${ac_feature}=no" ;;
181
182   -enable-* | --enable-*)
183     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
184     # Reject names that are not valid shell variable names.
185     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
186       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187     fi
188     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
189     case "$ac_option" in
190       *=*) ;;
191       *) ac_optarg=yes ;;
192     esac
193     eval "enable_${ac_feature}='$ac_optarg'" ;;
194
195   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
196   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
197   | --exec | --exe | --ex)
198     ac_prev=exec_prefix ;;
199   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
200   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
201   | --exec=* | --exe=* | --ex=*)
202     exec_prefix="$ac_optarg" ;;
203
204   -gas | --gas | --ga | --g)
205     # Obsolete; use --with-gas.
206     with_gas=yes ;;
207
208   -help | --help | --hel | --he)
209     # Omit some internal or obsolete options to make the list less imposing.
210     # This message is too long to be a string in the A/UX 3.1 sh.
211     cat << EOF
212 Usage: configure [options] [host]
213 Options: [defaults in brackets after descriptions]
214 Configuration:
215   --cache-file=FILE       cache test results in FILE
216   --help                  print this message
217   --no-create             do not create output files
218   --quiet, --silent       do not print \`checking...' messages
219   --version               print the version of autoconf that created configure
220 Directory and file names:
221   --prefix=PREFIX         install architecture-independent files in PREFIX
222                           [$ac_default_prefix]
223   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
224                           [same as prefix]
225   --bindir=DIR            user executables in DIR [EPREFIX/bin]
226   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
227   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
228   --datadir=DIR           read-only architecture-independent data in DIR
229                           [PREFIX/share]
230   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
231   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
232                           [PREFIX/com]
233   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
234   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
235   --includedir=DIR        C header files in DIR [PREFIX/include]
236   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
237   --infodir=DIR           info documentation in DIR [PREFIX/info]
238   --mandir=DIR            man documentation in DIR [PREFIX/man]
239   --srcdir=DIR            find the sources in DIR [configure dir or ..]
240   --program-prefix=PREFIX prepend PREFIX to installed program names
241   --program-suffix=SUFFIX append SUFFIX to installed program names
242   --program-transform-name=PROGRAM
243                           run sed PROGRAM on installed program names
244 EOF
245     cat << EOF
246 Host type:
247   --build=BUILD           configure for building on BUILD [BUILD=HOST]
248   --host=HOST             configure for HOST [guessed]
249   --target=TARGET         configure for TARGET [TARGET=HOST]
250 Features and packages:
251   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
252   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
253   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
254   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
255   --x-includes=DIR        X include files are in DIR
256   --x-libraries=DIR       X library files are in DIR
257 EOF
258     if test -n "$ac_help"; then
259       echo "--enable and --with options recognized:$ac_help"
260     fi
261     exit 0 ;;
262
263   -host | --host | --hos | --ho)
264     ac_prev=host ;;
265   -host=* | --host=* | --hos=* | --ho=*)
266     host="$ac_optarg" ;;
267
268   -includedir | --includedir | --includedi | --included | --include \
269   | --includ | --inclu | --incl | --inc)
270     ac_prev=includedir ;;
271   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
272   | --includ=* | --inclu=* | --incl=* | --inc=*)
273     includedir="$ac_optarg" ;;
274
275   -infodir | --infodir | --infodi | --infod | --info | --inf)
276     ac_prev=infodir ;;
277   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
278     infodir="$ac_optarg" ;;
279
280   -libdir | --libdir | --libdi | --libd)
281     ac_prev=libdir ;;
282   -libdir=* | --libdir=* | --libdi=* | --libd=*)
283     libdir="$ac_optarg" ;;
284
285   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
286   | --libexe | --libex | --libe)
287     ac_prev=libexecdir ;;
288   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
289   | --libexe=* | --libex=* | --libe=*)
290     libexecdir="$ac_optarg" ;;
291
292   -localstatedir | --localstatedir | --localstatedi | --localstated \
293   | --localstate | --localstat | --localsta | --localst \
294   | --locals | --local | --loca | --loc | --lo)
295     ac_prev=localstatedir ;;
296   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
297   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
298   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
299     localstatedir="$ac_optarg" ;;
300
301   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
302     ac_prev=mandir ;;
303   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
304     mandir="$ac_optarg" ;;
305
306   -nfp | --nfp | --nf)
307     # Obsolete; use --without-fp.
308     with_fp=no ;;
309
310   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
311   | --no-cr | --no-c)
312     no_create=yes ;;
313
314   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
315   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
316     no_recursion=yes ;;
317
318   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
319   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
320   | --oldin | --oldi | --old | --ol | --o)
321     ac_prev=oldincludedir ;;
322   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
323   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
324   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
325     oldincludedir="$ac_optarg" ;;
326
327   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
328     ac_prev=prefix ;;
329   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
330     prefix="$ac_optarg" ;;
331
332   -program-prefix | --program-prefix | --program-prefi | --program-pref \
333   | --program-pre | --program-pr | --program-p)
334     ac_prev=program_prefix ;;
335   -program-prefix=* | --program-prefix=* | --program-prefi=* \
336   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
337     program_prefix="$ac_optarg" ;;
338
339   -program-suffix | --program-suffix | --program-suffi | --program-suff \
340   | --program-suf | --program-su | --program-s)
341     ac_prev=program_suffix ;;
342   -program-suffix=* | --program-suffix=* | --program-suffi=* \
343   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
344     program_suffix="$ac_optarg" ;;
345
346   -program-transform-name | --program-transform-name \
347   | --program-transform-nam | --program-transform-na \
348   | --program-transform-n | --program-transform- \
349   | --program-transform | --program-transfor \
350   | --program-transfo | --program-transf \
351   | --program-trans | --program-tran \
352   | --progr-tra | --program-tr | --program-t)
353     ac_prev=program_transform_name ;;
354   -program-transform-name=* | --program-transform-name=* \
355   | --program-transform-nam=* | --program-transform-na=* \
356   | --program-transform-n=* | --program-transform-=* \
357   | --program-transform=* | --program-transfor=* \
358   | --program-transfo=* | --program-transf=* \
359   | --program-trans=* | --program-tran=* \
360   | --progr-tra=* | --program-tr=* | --program-t=*)
361     program_transform_name="$ac_optarg" ;;
362
363   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
364   | -silent | --silent | --silen | --sile | --sil)
365     silent=yes ;;
366
367   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
368     ac_prev=sbindir ;;
369   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
370   | --sbi=* | --sb=*)
371     sbindir="$ac_optarg" ;;
372
373   -sharedstatedir | --sharedstatedir | --sharedstatedi \
374   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
375   | --sharedst | --shareds | --shared | --share | --shar \
376   | --sha | --sh)
377     ac_prev=sharedstatedir ;;
378   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
379   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
380   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
381   | --sha=* | --sh=*)
382     sharedstatedir="$ac_optarg" ;;
383
384   -site | --site | --sit)
385     ac_prev=site ;;
386   -site=* | --site=* | --sit=*)
387     site="$ac_optarg" ;;
388
389   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
390     ac_prev=srcdir ;;
391   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
392     srcdir="$ac_optarg" ;;
393
394   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
395   | --syscon | --sysco | --sysc | --sys | --sy)
396     ac_prev=sysconfdir ;;
397   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
398   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
399     sysconfdir="$ac_optarg" ;;
400
401   -target | --target | --targe | --targ | --tar | --ta | --t)
402     ac_prev=target ;;
403   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
404     target="$ac_optarg" ;;
405
406   -v | -verbose | --verbose | --verbos | --verbo | --verb)
407     verbose=yes ;;
408
409   -version | --version | --versio | --versi | --vers)
410     echo "configure generated by autoconf version 2.13"
411     exit 0 ;;
412
413   -with-* | --with-*)
414     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
415     # Reject names that are not valid shell variable names.
416     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
417       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418     fi
419     ac_package=`echo $ac_package| sed 's/-/_/g'`
420     case "$ac_option" in
421       *=*) ;;
422       *) ac_optarg=yes ;;
423     esac
424     eval "with_${ac_package}='$ac_optarg'" ;;
425
426   -without-* | --without-*)
427     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
428     # Reject names that are not valid shell variable names.
429     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
430       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431     fi
432     ac_package=`echo $ac_package| sed 's/-/_/g'`
433     eval "with_${ac_package}=no" ;;
434
435   --x)
436     # Obsolete; use --with-x.
437     with_x=yes ;;
438
439   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
440   | --x-incl | --x-inc | --x-in | --x-i)
441     ac_prev=x_includes ;;
442   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
443   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
444     x_includes="$ac_optarg" ;;
445
446   -x-libraries | --x-libraries | --x-librarie | --x-librari \
447   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
448     ac_prev=x_libraries ;;
449   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
450   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
451     x_libraries="$ac_optarg" ;;
452
453   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
454     ;;
455
456   *)
457     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
458       echo "configure: warning: $ac_option: invalid host type" 1>&2
459     fi
460     if test "x$nonopt" != xNONE; then
461       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
462     fi
463     nonopt="$ac_option"
464     ;;
465
466   esac
467 done
468
469 if test -n "$ac_prev"; then
470   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
471 fi
472
473 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474
475 # File descriptor usage:
476 # 0 standard input
477 # 1 file creation
478 # 2 errors and warnings
479 # 3 some systems may open it to /dev/tty
480 # 4 used on the Kubota Titan
481 # 6 checking for... messages and results
482 # 5 compiler messages saved in config.log
483 if test "$silent" = yes; then
484   exec 6>/dev/null
485 else
486   exec 6>&1
487 fi
488 exec 5>./config.log
489
490 echo "\
491 This file contains any messages produced by compilers while
492 running configure, to aid debugging if configure makes a mistake.
493 " 1>&5
494
495 # Strip out --no-create and --no-recursion so they do not pile up.
496 # Also quote any args containing shell metacharacters.
497 ac_configure_args=
498 for ac_arg
499 do
500   case "$ac_arg" in
501   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
502   | --no-cr | --no-c) ;;
503   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
504   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
505   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
506   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
507   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
508   esac
509 done
510
511 # NLS nuisances.
512 # Only set these to C if already set.  These must not be set unconditionally
513 # because not all systems understand e.g. LANG=C (notably SCO).
514 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
515 # Non-C LC_CTYPE values break the ctype check.
516 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
517 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
518 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
519 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
520
521 # confdefs.h avoids OS command line length limits that DEFS can exceed.
522 rm -rf conftest* confdefs.h
523 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
524 echo > confdefs.h
525
526 # A filename unique to this package, relative to the directory that
527 # configure is in, which we can look for to find out if srcdir is correct.
528 ac_unique_file=make/lilypond.lsm.in
529
530 # Find the source files, if location was not specified.
531 if test -z "$srcdir"; then
532   ac_srcdir_defaulted=yes
533   # Try the directory containing this script, then its parent.
534   ac_prog=$0
535   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
536   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
537   srcdir=$ac_confdir
538   if test ! -r $srcdir/$ac_unique_file; then
539     srcdir=..
540   fi
541 else
542   ac_srcdir_defaulted=no
543 fi
544 if test ! -r $srcdir/$ac_unique_file; then
545   if test "$ac_srcdir_defaulted" = yes; then
546     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
547   else
548     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
549   fi
550 fi
551 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552
553 # Prefer explicitly selected file to automatically selected ones.
554 if test -z "$CONFIG_SITE"; then
555   if test "x$prefix" != xNONE; then
556     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
557   else
558     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
559   fi
560 fi
561 for ac_site_file in $CONFIG_SITE; do
562   if test -r "$ac_site_file"; then
563     echo "loading site script $ac_site_file"
564     . "$ac_site_file"
565   fi
566 done
567
568 if test -r "$cache_file"; then
569   echo "loading cache $cache_file"
570   . $cache_file
571 else
572   echo "creating cache $cache_file"
573   > $cache_file
574 fi
575
576 ac_ext=c
577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
578 ac_cpp='$CPP $CPPFLAGS'
579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
581 cross_compiling=$ac_cv_prog_cc_cross
582
583 ac_exeext=
584 ac_objext=o
585 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
586   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
587   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
588     ac_n= ac_c='
589 ' ac_t='        '
590   else
591     ac_n=-n ac_c= ac_t=
592   fi
593 else
594   ac_n= ac_c='\c' ac_t=
595 fi
596
597
598
599
600 # Bootstrap StepMake configure
601
602
603     . $srcdir/VERSION
604     FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
605     if test x$MY_PATCH_LEVEL != x; then
606         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
607     fi
608
609     # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
610         PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
611     package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
612     
613     # No versioning on directory names of sub-packages 
614     # urg, urg
615     stepmake=${datadir}/stepmake
616     presome=${prefix}
617     if test "$prefix" = "NONE"; then
618             presome=${ac_default_prefix}
619     fi
620     stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
621
622     # urg, how is this supposed to work?
623     if test "$program_prefix" = "NONE"; then
624           program_prefix=
625     fi
626     if test "$program_suffix" = "NONE"; then
627           program_suffix=
628     fi
629
630     echo $ac_n "checking Package""... $ac_c" 1>&6
631 echo "configure:632: checking Package" >&5
632     if test "x$PACKAGE" = "xSTEPMAKE"; then
633         echo "$ac_t""Stepmake package!" 1>&6
634
635         echo $ac_n "checking builddir""... $ac_c" 1>&6
636 echo "configure:637: checking builddir" >&5
637         if test "$srcdir" = "."; then
638             builddir=.
639         else
640             absolute_builddir="`pwd`"
641             package_absolute_builddir="`dirname $absolute_builddir`"
642             package_srcdir="`dirname  $srcdir`"
643             builddir="`dirname $package_srcdir`/`basename $package_absolute_builddir`/`basename $absolute_builddir`"
644         fi
645         echo "$ac_t""$builddir" 1>&6
646
647         (cd stepmake 2>/dev/null || mkdir stepmake)
648         (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
649         ac_aux_dir=
650 for ac_dir in bin $srcdir/bin; do
651   if test -f $ac_dir/install-sh; then
652     ac_aux_dir=$ac_dir
653     ac_install_sh="$ac_aux_dir/install-sh -c"
654     break
655   elif test -f $ac_dir/install.sh; then
656     ac_aux_dir=$ac_dir
657     ac_install_sh="$ac_aux_dir/install.sh -c"
658     break
659   fi
660 done
661 if test -z "$ac_aux_dir"; then
662   { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
663 fi
664 ac_config_guess=$ac_aux_dir/config.guess
665 ac_config_sub=$ac_aux_dir/config.sub
666 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
667
668         stepmake=stepmake
669     else
670         echo "$ac_t""$PACKAGE" 1>&6
671
672         echo $ac_n "checking builddir""... $ac_c" 1>&6
673 echo "configure:674: checking builddir" >&5
674         if test "$srcdir" = "."; then
675             builddir=.
676             srcdir_build=no
677         else
678             absolute_builddir="`pwd`"
679 #           builddir="`dirname  $srcdir`/`basename $absolute_builddir`"
680             builddir="`bash $srcdir/buildscripts/walk.sh \"$srcdir\"`"
681             srcdir_build=yes
682         fi
683         echo "$ac_t""$builddir" 1>&6
684         if expr "$srcdir" : '/' > /dev/null 2>&1; then
685             absolute_srcdir=yes
686             
687     echo "configure: warning: Absolute --srcdir specified: $srcdir" 1>&2
688     warn_b=yes
689
690         fi
691
692         echo $ac_n "checking for stepmake""... $ac_c" 1>&6
693 echo "configure:694: checking for stepmake" >&5
694         # Check for installed stepmake
695         if test -d $stepmake; then
696             echo "$ac_t""$stepmake" 1>&6
697         else
698             if test "$absolute_srcdir" != "yes"; then
699                 stepmake='$(depth)'/$srcdir/stepmake
700             else
701                 stepmake=$srcdir/stepmake
702             fi
703             echo "$ac_t""$srcdir/stepmake  ($datadir/stepmake not found)" 1>&6
704         fi
705
706         ac_aux_dir=
707 for ac_dir in \
708           $HOME/usr/local/share/stepmake/bin\
709           $HOME/usr/local/lib/stepmake/bin\
710           $HOME/usr/share/stepmake/bin\
711           $HOME/usr/lib/stepmake/bin\
712           /usr/local/share/stepmake/bin\
713           /usr/local/lib/stepmake/bin\
714           /usr/share/stepmake/bin\
715           /usr/lib/stepmake/bin\
716           stepmake/bin\
717           $srcdir/stepmake/bin\
718          $srcdir/\
719           $HOME/usr/local/share/stepmake/bin\
720           $HOME/usr/local/lib/stepmake/bin\
721           $HOME/usr/share/stepmake/bin\
722           $HOME/usr/lib/stepmake/bin\
723           /usr/local/share/stepmake/bin\
724           /usr/local/lib/stepmake/bin\
725           /usr/share/stepmake/bin\
726           /usr/lib/stepmake/bin\
727           stepmake/bin\
728           $srcdir/stepmake/bin\
729         ; do
730   if test -f $ac_dir/install-sh; then
731     ac_aux_dir=$ac_dir
732     ac_install_sh="$ac_aux_dir/install-sh -c"
733     break
734   elif test -f $ac_dir/install.sh; then
735     ac_aux_dir=$ac_dir
736     ac_install_sh="$ac_aux_dir/install.sh -c"
737     break
738   fi
739 done
740 if test -z "$ac_aux_dir"; then
741   { echo "configure: error: can not find install-sh or install.sh in \
742           $HOME/usr/local/share/stepmake/bin\
743           $HOME/usr/local/lib/stepmake/bin\
744           $HOME/usr/share/stepmake/bin\
745           $HOME/usr/lib/stepmake/bin\
746           /usr/local/share/stepmake/bin\
747           /usr/local/lib/stepmake/bin\
748           /usr/share/stepmake/bin\
749           /usr/lib/stepmake/bin\
750           stepmake/bin\
751           $srcdir/stepmake/bin\
752          $srcdir/\
753           $HOME/usr/local/share/stepmake/bin\
754           $HOME/usr/local/lib/stepmake/bin\
755           $HOME/usr/share/stepmake/bin\
756           $HOME/usr/lib/stepmake/bin\
757           /usr/local/share/stepmake/bin\
758           /usr/local/lib/stepmake/bin\
759           /usr/share/stepmake/bin\
760           /usr/lib/stepmake/bin\
761           stepmake/bin\
762           $srcdir/stepmake/bin\
763         " 1>&2; exit 1; }
764 fi
765 ac_config_guess=$ac_aux_dir/config.guess
766 ac_config_sub=$ac_aux_dir/config.sub
767 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
768
769     fi
770
771     
772     
773     
774     
775     
776     cat >> confdefs.h <<EOF
777 #define PACKAGE "${PACKAGE_NAME}"
778 EOF
779
780     cat >> confdefs.h <<EOF
781 #define TOPLEVEL_VERSION "${FULL_VERSION}"
782 EOF
783
784
785     if test "$package_depth" = "" ; then
786         package_depth="."
787     else
788         package_depth="../$package_depth"
789     fi
790     export package_depth
791     
792
793     AUTOGENERATE="This file was automatically generated by configure"
794     
795
796     CONFIGSUFFIX=
797     # Check whether --enable-config or --disable-config was given.
798 if test "${enable_config+set}" = set; then
799   enableval="$enable_config"
800   CONFIGURATION=$enableval
801 fi
802
803
804     test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
805     CONFIGFILE=config$CONFIGSUFFIX
806     
807      
808     
809 # Make sure we can run config.sub.
810 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
811 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
812 fi
813
814 echo $ac_n "checking host system type""... $ac_c" 1>&6
815 echo "configure:816: checking host system type" >&5
816
817 host_alias=$host
818 case "$host_alias" in
819 NONE)
820   case $nonopt in
821   NONE)
822     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
823     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
824     fi ;;
825   *) host_alias=$nonopt ;;
826   esac ;;
827 esac
828
829 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
830 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
831 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
832 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
833 echo "$ac_t""$host" 1>&6
834
835     for ac_prog in gmake make
836 do
837 # Extract the first word of "$ac_prog", so it can be a program name with args.
838 set dummy $ac_prog; ac_word=$2
839 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
840 echo "configure:841: checking for $ac_word" >&5
841 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
842   echo $ac_n "(cached) $ac_c" 1>&6
843 else
844   if test -n "$MAKE"; then
845   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
846 else
847   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
848   ac_dummy="$PATH"
849   for ac_dir in $ac_dummy; do
850     test -z "$ac_dir" && ac_dir=.
851     if test -f $ac_dir/$ac_word; then
852       ac_cv_prog_MAKE="$ac_prog"
853       break
854     fi
855   done
856   IFS="$ac_save_ifs"
857 fi
858 fi
859 MAKE="$ac_cv_prog_MAKE"
860 if test -n "$MAKE"; then
861   echo "$ac_t""$MAKE" 1>&6
862 else
863   echo "$ac_t""no" 1>&6
864 fi
865
866 test -n "$MAKE" && break
867 done
868 test -n "$MAKE" || MAKE="error"
869
870     for ac_prog in find
871 do
872 # Extract the first word of "$ac_prog", so it can be a program name with args.
873 set dummy $ac_prog; ac_word=$2
874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
875 echo "configure:876: checking for $ac_word" >&5
876 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
877   echo $ac_n "(cached) $ac_c" 1>&6
878 else
879   if test -n "$FIND"; then
880   ac_cv_prog_FIND="$FIND" # Let the user override the test.
881 else
882   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
883   ac_dummy="$PATH"
884   for ac_dir in $ac_dummy; do
885     test -z "$ac_dir" && ac_dir=.
886     if test -f $ac_dir/$ac_word; then
887       ac_cv_prog_FIND="$ac_prog"
888       break
889     fi
890   done
891   IFS="$ac_save_ifs"
892 fi
893 fi
894 FIND="$ac_cv_prog_FIND"
895 if test -n "$FIND"; then
896   echo "$ac_t""$FIND" 1>&6
897 else
898   echo "$ac_t""no" 1>&6
899 fi
900
901 test -n "$FIND" && break
902 done
903 test -n "$FIND" || FIND="error"
904
905
906
907     for ac_prog in tar
908 do
909 # Extract the first word of "$ac_prog", so it can be a program name with args.
910 set dummy $ac_prog; ac_word=$2
911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
912 echo "configure:913: checking for $ac_word" >&5
913 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
914   echo $ac_n "(cached) $ac_c" 1>&6
915 else
916   if test -n "$TAR"; then
917   ac_cv_prog_TAR="$TAR" # Let the user override the test.
918 else
919   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
920   ac_dummy="$PATH"
921   for ac_dir in $ac_dummy; do
922     test -z "$ac_dir" && ac_dir=.
923     if test -f $ac_dir/$ac_word; then
924       ac_cv_prog_TAR="$ac_prog"
925       break
926     fi
927   done
928   IFS="$ac_save_ifs"
929 fi
930 fi
931 TAR="$ac_cv_prog_TAR"
932 if test -n "$TAR"; then
933   echo "$ac_t""$TAR" 1>&6
934 else
935   echo "$ac_t""no" 1>&6
936 fi
937
938 test -n "$TAR" && break
939 done
940 test -n "$TAR" || TAR="error"
941
942
943     if test "x`uname`" = "xHP-UX"; then
944         # Extract the first word of "bash", so it can be a program name with args.
945 set dummy bash; ac_word=$2
946 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
947 echo "configure:948: checking for $ac_word" >&5
948 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
949   echo $ac_n "(cached) $ac_c" 1>&6
950 else
951   case "$BASH" in
952   /*)
953   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
954   ;;
955   ?:/*)                  
956   ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
957   ;;
958   *)
959   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
960   ac_dummy="$PATH"
961   for ac_dir in $ac_dummy; do 
962     test -z "$ac_dir" && ac_dir=.
963     if test -f $ac_dir/$ac_word; then
964       ac_cv_path_BASH="$ac_dir/$ac_word"
965       break
966     fi
967   done
968   IFS="$ac_save_ifs"
969   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
970   ;;
971 esac
972 fi
973 BASH="$ac_cv_path_BASH"
974 if test -n "$BASH"; then
975   echo "$ac_t""$BASH" 1>&6
976 else
977   echo "$ac_t""no" 1>&6
978 fi
979
980         
981     echo "configure: warning: avoiding buggy /bin/sh" 1>&2
982     warn_b=yes
983
984         # Extract the first word of "bash", so it can be a program name with args.
985 set dummy bash; 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_path_SHELL'+set}'`\" = set"; then
989   echo $ac_n "(cached) $ac_c" 1>&6
990 else
991   case "$SHELL" in
992   /*)
993   ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
994   ;;
995   ?:/*)                  
996   ac_cv_path_SHELL="$SHELL" # Let the user override the test with a dos path.
997   ;;
998   *)
999   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1000   ac_dummy="$PATH"
1001   for ac_dir in $ac_dummy; do 
1002     test -z "$ac_dir" && ac_dir=.
1003     if test -f $ac_dir/$ac_word; then
1004       ac_cv_path_SHELL="$ac_dir/$ac_word"
1005       break
1006     fi
1007   done
1008   IFS="$ac_save_ifs"
1009   test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/ksh"
1010   ;;
1011 esac
1012 fi
1013 SHELL="$ac_cv_path_SHELL"
1014 if test -n "$SHELL"; then
1015   echo "$ac_t""$SHELL" 1>&6
1016 else
1017   echo "$ac_t""no" 1>&6
1018 fi
1019
1020     else
1021         # Extract the first word of "bash", so it can be a program name with args.
1022 set dummy bash; ac_word=$2
1023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1024 echo "configure:1025: checking for $ac_word" >&5
1025 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1026   echo $ac_n "(cached) $ac_c" 1>&6
1027 else
1028   case "$BASH" in
1029   /*)
1030   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1031   ;;
1032   ?:/*)                  
1033   ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1034   ;;
1035   *)
1036   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1037   ac_dummy="$PATH"
1038   for ac_dir in $ac_dummy; do 
1039     test -z "$ac_dir" && ac_dir=.
1040     if test -f $ac_dir/$ac_word; then
1041       ac_cv_path_BASH="$ac_dir/$ac_word"
1042       break
1043     fi
1044   done
1045   IFS="$ac_save_ifs"
1046   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
1047   ;;
1048 esac
1049 fi
1050 BASH="$ac_cv_path_BASH"
1051 if test -n "$BASH"; then
1052   echo "$ac_t""$BASH" 1>&6
1053 else
1054   echo "$ac_t""no" 1>&6
1055 fi
1056
1057         SHELL=/bin/sh
1058         
1059     fi
1060
1061
1062     # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
1063 set dummy ${PYTHON:-python}; ac_word=$2
1064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1065 echo "configure:1066: checking for $ac_word" >&5
1066 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
1067   echo $ac_n "(cached) $ac_c" 1>&6
1068 else
1069   case "$PYTHON" in
1070   /*)
1071   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1072   ;;
1073   ?:/*)                  
1074   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
1075   ;;
1076   *)
1077   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1078   ac_dummy="$PATH"
1079   for ac_dir in $ac_dummy; do 
1080     test -z "$ac_dir" && ac_dir=.
1081     if test -f $ac_dir/$ac_word; then
1082       ac_cv_path_PYTHON="$ac_dir/$ac_word"
1083       break
1084     fi
1085   done
1086   IFS="$ac_save_ifs"
1087   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
1088   ;;
1089 esac
1090 fi
1091 PYTHON="$ac_cv_path_PYTHON"
1092 if test -n "$PYTHON"; then
1093   echo "$ac_t""$PYTHON" 1>&6
1094 else
1095   echo "$ac_t""no" 1>&6
1096 fi
1097
1098     
1099
1100     if test $MAKE != "error" ; then
1101         $MAKE -v 2> /dev/null | grep GNU > /dev/null
1102         if test "$?" = 1
1103         then
1104                 
1105     echo "configure: warning: Please install *GNU* make" 1>&2
1106     warn_b=yes
1107  
1108         fi
1109     fi 
1110
1111     
1112         result="`echo \"$PYTHON\" | grep echo`"
1113         if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
1114                 
1115     echo "configure: warning: can\'t find python. You should install Python" 1>&2
1116     warn_b=yes
1117
1118         fi
1119
1120
1121     if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
1122         LN=cp # hard link does not work under cygnus-nt
1123         LN_S='cp -r' # symbolic link does not work for native nt
1124         ZIP="zip -r -9" #
1125         program_suffix=.exe
1126         # urg
1127         # ROOTSEP=':'
1128         # DIRSEP='\\'
1129         # PATHSEP=';'
1130         #
1131         # cygwin fixes all these things.  
1132         # it seems these were used because of dos-style TEXINPUTS and
1133         # MFINPUTS needed for miktex.
1134         # but this breaks parsing of all other cygwin/unix style paths.
1135         #
1136         # if your (mik)tex breaks, make a:
1137         #    /usr/local/bin/tex:
1138         #    #!/bin/sh
1139         #    TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex 
1140         #
1141         # and
1142         #
1143         #    /usr/local/bin/mf:
1144         #    #!/bin/sh
1145         #    MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf 
1146         #
1147         # this way, you may have buildscripts/out/lilypond-profile 
1148         # 'automatically' sourced from /usr/etc/profile.d/ too.
1149         #
1150         ROOTSEP=':'
1151         DIRSEP='/'
1152         PATHSEP=':'
1153         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1154     else
1155         ROOTSEP=':'
1156         DIRSEP='/'
1157         PATHSEP=':'
1158         LN=ln
1159         LN_S='ln -s'
1160         ZIP="zip -r -9"
1161         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1162     fi
1163     
1164     
1165     
1166     
1167     
1168     
1169     cat >> confdefs.h <<EOF
1170 #define DIRSEP '${DIRSEP}'
1171 EOF
1172
1173     cat >> confdefs.h <<EOF
1174 #define PATHSEP '${PATHSEP}'
1175 EOF
1176
1177     
1178     
1179   
1180     
1181     if test "$datadir" = "\${prefix}/share"; then
1182             datadir='${prefix}/share/'$package
1183     fi
1184     DIR_DATADIR=${datadir}
1185     presome=${prefix}
1186     if test "$prefix" = "NONE"; then
1187             presome=${ac_default_prefix}
1188     fi
1189     DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1190
1191     
1192     
1193     
1194                         
1195     cat >> confdefs.h <<EOF
1196 #define DIR_DATADIR "${DIR_DATADIR}"
1197 EOF
1198
1199
1200
1201
1202 # For all packages except the StepMake package itself
1203 subdirs="stepmake"
1204
1205
1206 # Uncomment the configuration options your package needs.
1207
1208     # -O is necessary to get inlining
1209     CFLAGS=${CFLAGS:-""}
1210     CXXFLAGS=${CXXFLAGS:-$CFLAGS}
1211     LDFLAGS=${LDFLAGS:-""}
1212     checking_b=yes
1213     optimise_b=yes
1214     profile_b=no
1215     debug_b=yes
1216
1217     # Check whether --enable-checking or --disable-checking was given.
1218 if test "${enable_checking+set}" = set; then
1219   enableval="$enable_checking"
1220   checking_b=$enableval 
1221 fi
1222
1223
1224     # Check whether --enable-debugging or --disable-debugging was given.
1225 if test "${enable_debugging+set}" = set; then
1226   enableval="$enable_debugging"
1227   debug_b=$enableval
1228 fi
1229
1230
1231     # Check whether --enable-optimising or --disable-optimising was given.
1232 if test "${enable_optimising+set}" = set; then
1233   enableval="$enable_optimising"
1234   optimise_b=$enableval
1235 fi
1236
1237
1238     # Check whether --enable-profiling or --disable-profiling was given.
1239 if test "${enable_profiling+set}" = set; then
1240   enableval="$enable_profiling"
1241   profile_b=$enableval
1242 fi
1243
1244     
1245
1246     if test "$checking_b" = no; then
1247         # ugh
1248         cat >> confdefs.h <<\EOF
1249 #define NDEBUG 1
1250 EOF
1251
1252         DEFINES="$DEFINES -DNDEBUG"
1253     fi
1254
1255     if test "$optimise_b" = yes; then
1256         OPTIMIZE="-O2 -finline-functions"
1257     fi
1258
1259
1260     if test $profile_b = yes; then
1261         EXTRA_LIBES="-pg"
1262         OPTIMIZE="$OPTIMIZE -pg"
1263     fi
1264
1265     if test $debug_b = yes; then        
1266         OPTIMIZE="$OPTIMIZE -g"
1267     fi
1268
1269
1270     # Extract the first word of "gcc", so it can be a program name with args.
1271 set dummy gcc; ac_word=$2
1272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1273 echo "configure:1274: checking for $ac_word" >&5
1274 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1275   echo $ac_n "(cached) $ac_c" 1>&6
1276 else
1277   if test -n "$CC"; then
1278   ac_cv_prog_CC="$CC" # Let the user override the test.
1279 else
1280   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1281   ac_dummy="$PATH"
1282   for ac_dir in $ac_dummy; do
1283     test -z "$ac_dir" && ac_dir=.
1284     if test -f $ac_dir/$ac_word; then
1285       ac_cv_prog_CC="gcc"
1286       break
1287     fi
1288   done
1289   IFS="$ac_save_ifs"
1290 fi
1291 fi
1292 CC="$ac_cv_prog_CC"
1293 if test -n "$CC"; then
1294   echo "$ac_t""$CC" 1>&6
1295 else
1296   echo "$ac_t""no" 1>&6
1297 fi
1298
1299 if test -z "$CC"; then
1300   # Extract the first word of "cc", so it can be a program name with args.
1301 set dummy cc; ac_word=$2
1302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1303 echo "configure:1304: checking for $ac_word" >&5
1304 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1305   echo $ac_n "(cached) $ac_c" 1>&6
1306 else
1307   if test -n "$CC"; then
1308   ac_cv_prog_CC="$CC" # Let the user override the test.
1309 else
1310   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1311   ac_prog_rejected=no
1312   ac_dummy="$PATH"
1313   for ac_dir in $ac_dummy; do
1314     test -z "$ac_dir" && ac_dir=.
1315     if test -f $ac_dir/$ac_word; then
1316       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1317         ac_prog_rejected=yes
1318         continue
1319       fi
1320       ac_cv_prog_CC="cc"
1321       break
1322     fi
1323   done
1324   IFS="$ac_save_ifs"
1325 if test $ac_prog_rejected = yes; then
1326   # We found a bogon in the path, so make sure we never use it.
1327   set dummy $ac_cv_prog_CC
1328   shift
1329   if test $# -gt 0; then
1330     # We chose a different compiler from the bogus one.
1331     # However, it has the same basename, so the bogon will be chosen
1332     # first if we set CC to just the basename; use the full file name.
1333     shift
1334     set dummy "$ac_dir/$ac_word" "$@"
1335     shift
1336     ac_cv_prog_CC="$@"
1337   fi
1338 fi
1339 fi
1340 fi
1341 CC="$ac_cv_prog_CC"
1342 if test -n "$CC"; then
1343   echo "$ac_t""$CC" 1>&6
1344 else
1345   echo "$ac_t""no" 1>&6
1346 fi
1347
1348   if test -z "$CC"; then
1349     case "`uname -s`" in
1350     *win32* | *WIN32*)
1351       # Extract the first word of "cl", so it can be a program name with args.
1352 set dummy cl; ac_word=$2
1353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1354 echo "configure:1355: checking for $ac_word" >&5
1355 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1356   echo $ac_n "(cached) $ac_c" 1>&6
1357 else
1358   if test -n "$CC"; then
1359   ac_cv_prog_CC="$CC" # Let the user override the test.
1360 else
1361   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1362   ac_dummy="$PATH"
1363   for ac_dir in $ac_dummy; do
1364     test -z "$ac_dir" && ac_dir=.
1365     if test -f $ac_dir/$ac_word; then
1366       ac_cv_prog_CC="cl"
1367       break
1368     fi
1369   done
1370   IFS="$ac_save_ifs"
1371 fi
1372 fi
1373 CC="$ac_cv_prog_CC"
1374 if test -n "$CC"; then
1375   echo "$ac_t""$CC" 1>&6
1376 else
1377   echo "$ac_t""no" 1>&6
1378 fi
1379  ;;
1380     esac
1381   fi
1382   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1383 fi
1384
1385 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1386 echo "configure:1387: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1387
1388 ac_ext=c
1389 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1390 ac_cpp='$CPP $CPPFLAGS'
1391 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1392 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1393 cross_compiling=$ac_cv_prog_cc_cross
1394
1395 cat > conftest.$ac_ext << EOF
1396
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1399
1400 main(){return(0);}
1401 EOF
1402 if { (eval echo configure:1403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1403   ac_cv_prog_cc_works=yes
1404   # If we can't run a trivial program, we are probably using a cross compiler.
1405   if (./conftest; exit) 2>/dev/null; then
1406     ac_cv_prog_cc_cross=no
1407   else
1408     ac_cv_prog_cc_cross=yes
1409   fi
1410 else
1411   echo "configure: failed program was:" >&5
1412   cat conftest.$ac_ext >&5
1413   ac_cv_prog_cc_works=no
1414 fi
1415 rm -fr conftest*
1416 ac_ext=c
1417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1418 ac_cpp='$CPP $CPPFLAGS'
1419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1421 cross_compiling=$ac_cv_prog_cc_cross
1422
1423 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1424 if test $ac_cv_prog_cc_works = no; then
1425   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1426 fi
1427 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1428 echo "configure:1429: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1429 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1430 cross_compiling=$ac_cv_prog_cc_cross
1431
1432 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1433 echo "configure:1434: checking whether we are using GNU C" >&5
1434 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1435   echo $ac_n "(cached) $ac_c" 1>&6
1436 else
1437   cat > conftest.c <<EOF
1438 #ifdef __GNUC__
1439   yes;
1440 #endif
1441 EOF
1442 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1443   ac_cv_prog_gcc=yes
1444 else
1445   ac_cv_prog_gcc=no
1446 fi
1447 fi
1448
1449 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1450
1451 if test $ac_cv_prog_gcc = yes; then
1452   GCC=yes
1453 else
1454   GCC=
1455 fi
1456
1457 ac_test_CFLAGS="${CFLAGS+set}"
1458 ac_save_CFLAGS="$CFLAGS"
1459 CFLAGS=
1460 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1461 echo "configure:1462: checking whether ${CC-cc} accepts -g" >&5
1462 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1463   echo $ac_n "(cached) $ac_c" 1>&6
1464 else
1465   echo 'void f(){}' > conftest.c
1466 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1467   ac_cv_prog_cc_g=yes
1468 else
1469   ac_cv_prog_cc_g=no
1470 fi
1471 rm -f conftest*
1472
1473 fi
1474
1475 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1476 if test "$ac_test_CFLAGS" = set; then
1477   CFLAGS="$ac_save_CFLAGS"
1478 elif test $ac_cv_prog_cc_g = yes; then
1479   if test "$GCC" = yes; then
1480     CFLAGS="-g -O2"
1481   else
1482     CFLAGS="-g"
1483   fi
1484 else
1485   if test "$GCC" = yes; then
1486     CFLAGS="-O2"
1487   else
1488     CFLAGS=
1489   fi
1490 fi
1491
1492     LD='$(CC)'
1493     
1494
1495     CFLAGS="$CFLAGS $OPTIMIZE"
1496     CPPFLAGS=${CPPFLAGS:-""}
1497
1498     echo $ac_n "checking for IEEE-conformance compiler flags""... $ac_c" 1>&6
1499 echo "configure:1500: checking for IEEE-conformance compiler flags" >&5
1500     save_cflags="$CFLAGS"
1501     case "$host" in
1502         alpha*-*-*)
1503                     echo "$ac_t""-mieee" 1>&6
1504             CFLAGS="-mieee $CFLAGS"
1505             ;;
1506         *)
1507             echo "$ac_t""none" 1>&6
1508             ;;
1509     esac
1510     
1511     
1512     
1513     
1514     
1515     
1516     
1517     
1518
1519 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1520 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1521 echo "configure:1522: checking how to run the C preprocessor" >&5
1522 # On Suns, sometimes $CPP names a directory.
1523 if test -n "$CPP" && test -d "$CPP"; then
1524   CPP=
1525 fi
1526 if test -z "$CPP"; then
1527 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1528   echo $ac_n "(cached) $ac_c" 1>&6
1529 else
1530     # This must be in double quotes, not single quotes, because CPP may get
1531   # substituted into the Makefile and "${CC-cc}" will confuse make.
1532   CPP="${CC-cc} -E"
1533   # On the NeXT, cc -E runs the code through the compiler's parser,
1534   # not just through cpp.
1535   cat > conftest.$ac_ext <<EOF
1536 #line 1537 "configure"
1537 #include "confdefs.h"
1538 #include <assert.h>
1539 Syntax Error
1540 EOF
1541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542 { (eval echo configure:1543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1544 if test -z "$ac_err"; then
1545   :
1546 else
1547   echo "$ac_err" >&5
1548   echo "configure: failed program was:" >&5
1549   cat conftest.$ac_ext >&5
1550   rm -rf conftest*
1551   CPP="${CC-cc} -E -traditional-cpp"
1552   cat > conftest.$ac_ext <<EOF
1553 #line 1554 "configure"
1554 #include "confdefs.h"
1555 #include <assert.h>
1556 Syntax Error
1557 EOF
1558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1559 { (eval echo configure:1560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1561 if test -z "$ac_err"; then
1562   :
1563 else
1564   echo "$ac_err" >&5
1565   echo "configure: failed program was:" >&5
1566   cat conftest.$ac_ext >&5
1567   rm -rf conftest*
1568   CPP="${CC-cc} -nologo -E"
1569   cat > conftest.$ac_ext <<EOF
1570 #line 1571 "configure"
1571 #include "confdefs.h"
1572 #include <assert.h>
1573 Syntax Error
1574 EOF
1575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1576 { (eval echo configure:1577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1578 if test -z "$ac_err"; then
1579   :
1580 else
1581   echo "$ac_err" >&5
1582   echo "configure: failed program was:" >&5
1583   cat conftest.$ac_ext >&5
1584   rm -rf conftest*
1585   CPP=/lib/cpp
1586 fi
1587 rm -f conftest*
1588 fi
1589 rm -f conftest*
1590 fi
1591 rm -f conftest*
1592   ac_cv_prog_CPP="$CPP"
1593 fi
1594   CPP="$ac_cv_prog_CPP"
1595 else
1596   ac_cv_prog_CPP="$CPP"
1597 fi
1598 echo "$ac_t""$CPP" 1>&6
1599
1600 for ac_hdr in assert.h sys/stat.h
1601 do
1602 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1604 echo "configure:1605: checking for $ac_hdr" >&5
1605 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1606   echo $ac_n "(cached) $ac_c" 1>&6
1607 else
1608   cat > conftest.$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1611 #include <$ac_hdr>
1612 EOF
1613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1614 { (eval echo configure:1615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1616 if test -z "$ac_err"; then
1617   rm -rf conftest*
1618   eval "ac_cv_header_$ac_safe=yes"
1619 else
1620   echo "$ac_err" >&5
1621   echo "configure: failed program was:" >&5
1622   cat conftest.$ac_ext >&5
1623   rm -rf conftest*
1624   eval "ac_cv_header_$ac_safe=no"
1625 fi
1626 rm -f conftest*
1627 fi
1628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1629   echo "$ac_t""yes" 1>&6
1630     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1631   cat >> confdefs.h <<EOF
1632 #define $ac_tr_hdr 1
1633 EOF
1634  
1635 else
1636   echo "$ac_t""no" 1>&6
1637 fi
1638 done
1639
1640 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1641 echo "configure:1642: checking whether stat file-mode macros are broken" >&5
1642 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1643   echo $ac_n "(cached) $ac_c" 1>&6
1644 else
1645   cat > conftest.$ac_ext <<EOF
1646 #line 1647 "configure"
1647 #include "confdefs.h"
1648 #include <sys/types.h>
1649 #include <sys/stat.h>
1650
1651 #if defined(S_ISBLK) && defined(S_IFDIR)
1652 # if S_ISBLK (S_IFDIR)
1653 You lose.
1654 # endif
1655 #endif
1656
1657 #if defined(S_ISBLK) && defined(S_IFCHR)
1658 # if S_ISBLK (S_IFCHR)
1659 You lose.
1660 # endif
1661 #endif
1662
1663 #if defined(S_ISLNK) && defined(S_IFREG)
1664 # if S_ISLNK (S_IFREG)
1665 You lose.
1666 # endif
1667 #endif
1668
1669 #if defined(S_ISSOCK) && defined(S_IFREG)
1670 # if S_ISSOCK (S_IFREG)
1671 You lose.
1672 # endif
1673 #endif
1674
1675 EOF
1676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1677   egrep "You lose" >/dev/null 2>&1; then
1678   rm -rf conftest*
1679   ac_cv_header_stat_broken=yes
1680 else
1681   rm -rf conftest*
1682   ac_cv_header_stat_broken=no
1683 fi
1684 rm -f conftest*
1685
1686 fi
1687
1688 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1689 if test $ac_cv_header_stat_broken = yes; then
1690   cat >> confdefs.h <<\EOF
1691 #define STAT_MACROS_BROKEN 1
1692 EOF
1693
1694 fi
1695
1696
1697 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1698 echo "configure:1699: checking how to run the C++ preprocessor" >&5
1699 if test -z "$CXXCPP"; then
1700 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1701   echo $ac_n "(cached) $ac_c" 1>&6
1702 else
1703   ac_ext=C
1704 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1705 ac_cpp='$CXXCPP $CPPFLAGS'
1706 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1707 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1708 cross_compiling=$ac_cv_prog_cxx_cross
1709   CXXCPP="${CXX-g++} -E"
1710   cat > conftest.$ac_ext <<EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1713 #include <stdlib.h>
1714 EOF
1715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1716 { (eval echo configure:1717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1718 if test -z "$ac_err"; then
1719   :
1720 else
1721   echo "$ac_err" >&5
1722   echo "configure: failed program was:" >&5
1723   cat conftest.$ac_ext >&5
1724   rm -rf conftest*
1725   CXXCPP=/lib/cpp
1726 fi
1727 rm -f conftest*
1728   ac_cv_prog_CXXCPP="$CXXCPP"
1729 ac_ext=C
1730 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1731 ac_cpp='$CXXCPP $CPPFLAGS'
1732 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1733 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1734 cross_compiling=$ac_cv_prog_cxx_cross
1735 fi
1736 fi
1737 CXXCPP="$ac_cv_prog_CXXCPP"
1738 echo "$ac_t""$CXXCPP" 1>&6
1739
1740
1741     ac_ext=C
1742 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1743 ac_cpp='$CXXCPP $CPPFLAGS'
1744 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1745 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1746 cross_compiling=$ac_cv_prog_cxx_cross
1747
1748     for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1749 do
1750 # Extract the first word of "$ac_prog", so it can be a program name with args.
1751 set dummy $ac_prog; ac_word=$2
1752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1753 echo "configure:1754: checking for $ac_word" >&5
1754 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1755   echo $ac_n "(cached) $ac_c" 1>&6
1756 else
1757   if test -n "$CXX"; then
1758   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1759 else
1760   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1761   ac_dummy="$PATH"
1762   for ac_dir in $ac_dummy; do
1763     test -z "$ac_dir" && ac_dir=.
1764     if test -f $ac_dir/$ac_word; then
1765       ac_cv_prog_CXX="$ac_prog"
1766       break
1767     fi
1768   done
1769   IFS="$ac_save_ifs"
1770 fi
1771 fi
1772 CXX="$ac_cv_prog_CXX"
1773 if test -n "$CXX"; then
1774   echo "$ac_t""$CXX" 1>&6
1775 else
1776   echo "$ac_t""no" 1>&6
1777 fi
1778
1779 test -n "$CXX" && break
1780 done
1781 test -n "$CXX" || CXX="gcc"
1782
1783
1784 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1785 echo "configure:1786: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1786
1787 ac_ext=C
1788 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1789 ac_cpp='$CXXCPP $CPPFLAGS'
1790 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1791 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1792 cross_compiling=$ac_cv_prog_cxx_cross
1793
1794 cat > conftest.$ac_ext << EOF
1795
1796 #line 1797 "configure"
1797 #include "confdefs.h"
1798
1799 int main(){return(0);}
1800 EOF
1801 if { (eval echo configure:1802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1802   ac_cv_prog_cxx_works=yes
1803   # If we can't run a trivial program, we are probably using a cross compiler.
1804   if (./conftest; exit) 2>/dev/null; then
1805     ac_cv_prog_cxx_cross=no
1806   else
1807     ac_cv_prog_cxx_cross=yes
1808   fi
1809 else
1810   echo "configure: failed program was:" >&5
1811   cat conftest.$ac_ext >&5
1812   ac_cv_prog_cxx_works=no
1813 fi
1814 rm -fr conftest*
1815 ac_ext=C
1816 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1817 ac_cpp='$CXXCPP $CPPFLAGS'
1818 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1819 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1820 cross_compiling=$ac_cv_prog_cxx_cross
1821
1822 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1823 if test $ac_cv_prog_cxx_works = no; then
1824   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1825 fi
1826 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1827 echo "configure:1828: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1828 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1829 cross_compiling=$ac_cv_prog_cxx_cross
1830
1831 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1832 echo "configure:1833: checking whether we are using GNU C++" >&5
1833 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1834   echo $ac_n "(cached) $ac_c" 1>&6
1835 else
1836   cat > conftest.C <<EOF
1837 #ifdef __GNUC__
1838   yes;
1839 #endif
1840 EOF
1841 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1842   ac_cv_prog_gxx=yes
1843 else
1844   ac_cv_prog_gxx=no
1845 fi
1846 fi
1847
1848 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1849
1850 if test $ac_cv_prog_gxx = yes; then
1851   GXX=yes
1852 else
1853   GXX=
1854 fi
1855
1856 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1857 ac_save_CXXFLAGS="$CXXFLAGS"
1858 CXXFLAGS=
1859 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1860 echo "configure:1861: checking whether ${CXX-g++} accepts -g" >&5
1861 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1862   echo $ac_n "(cached) $ac_c" 1>&6
1863 else
1864   echo 'void f(){}' > conftest.cc
1865 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1866   ac_cv_prog_cxx_g=yes
1867 else
1868   ac_cv_prog_cxx_g=no
1869 fi
1870 rm -f conftest*
1871
1872 fi
1873
1874 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1875 if test "$ac_test_CXXFLAGS" = set; then
1876   CXXFLAGS="$ac_save_CXXFLAGS"
1877 elif test $ac_cv_prog_cxx_g = yes; then
1878   if test "$GXX" = yes; then
1879     CXXFLAGS="-g -O2"
1880   else
1881     CXXFLAGS="-g"
1882   fi
1883 else
1884   if test "$GXX" = yes; then
1885     CXXFLAGS="-O2"
1886   else
1887     CXXFLAGS=
1888   fi
1889 fi
1890
1891 for ac_declaration in \
1892    ''\
1893    '#include <stdlib.h>' \
1894    'extern "C" void std::exit (int) throw (); using std::exit;' \
1895    'extern "C" void std::exit (int); using std::exit;' \
1896    'extern "C" void exit (int) throw ();' \
1897    'extern "C" void exit (int);' \
1898    'void exit (int);'
1899 do
1900   cat > conftest.$ac_ext <<EOF
1901 #line 1902 "configure"
1902 #include "confdefs.h"
1903 #include <stdlib.h>
1904 $ac_declaration
1905 int main() {
1906 exit (42);
1907 ; return 0; }
1908 EOF
1909 if { (eval echo configure:1910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1910   :
1911 else
1912   echo "configure: failed program was:" >&5
1913   cat conftest.$ac_ext >&5
1914   rm -rf conftest*
1915   continue
1916 fi
1917 rm -f conftest*
1918   cat > conftest.$ac_ext <<EOF
1919 #line 1920 "configure"
1920 #include "confdefs.h"
1921 $ac_declaration
1922 int main() {
1923 exit (42);
1924 ; return 0; }
1925 EOF
1926 if { (eval echo configure:1927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1927   rm -rf conftest*
1928   break
1929 else
1930   echo "configure: failed program was:" >&5
1931   cat conftest.$ac_ext >&5
1932 fi
1933 rm -f conftest*
1934 done
1935 if test -n "$ac_declaration"; then
1936   echo '#ifdef __cplusplus' >>confdefs.h
1937   echo $ac_declaration      >>confdefs.h
1938   echo '#endif'             >>confdefs.h
1939 fi
1940
1941
1942
1943     ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'`
1944 echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6
1945 echo "configure:1946: checking for FlexLexer.h" >&5
1946 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1947   echo $ac_n "(cached) $ac_c" 1>&6
1948 else
1949   cat > conftest.$ac_ext <<EOF
1950 #line 1951 "configure"
1951 #include "confdefs.h"
1952 #include <FlexLexer.h>
1953 EOF
1954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1955 { (eval echo configure:1956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1957 if test -z "$ac_err"; then
1958   rm -rf conftest*
1959   eval "ac_cv_header_$ac_safe=yes"
1960 else
1961   echo "$ac_err" >&5
1962   echo "configure: failed program was:" >&5
1963   cat conftest.$ac_ext >&5
1964   rm -rf conftest*
1965   eval "ac_cv_header_$ac_safe=no"
1966 fi
1967 rm -f conftest*
1968 fi
1969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1970   echo "$ac_t""yes" 1>&6
1971   true
1972 else
1973   echo "$ac_t""no" 1>&6
1974
1975     echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2
1976     warn_b=yes
1977
1978 fi
1979
1980
1981     CPPFLAGS="$CPPFLAGS $DEFINES"
1982     CXXFLAGS="$CXXFLAGS $OPTIMIZE"
1983     LDFLAGS="$LDFLAGS $EXTRA_LIBES"
1984
1985     
1986     
1987     LD='$(CXX)'
1988     
1989
1990
1991     echo $ac_n "checking "g++ version"""... $ac_c" 1>&6
1992 echo "configure:1993: checking "g++ version"" >&5
1993     cxx_version=`$CXX --version`
1994     echo "$ac_t"""$cxx_version"" 1>&6
1995         # urg, egcs: how to check for egcs >= 1.1?
1996     if expr "$cxx_version" : '.*2\.[89]' > /dev/null ||
1997         expr "$cxx_version" : '.*egcs' > /dev/null ||
1998         expr "$cxx_version" : '3\.0' > /dev/null
1999         then
2000             true
2001     else
2002             
2003     echo "configure: warning: can\'t find g++ 2.8" 1>&2
2004     warn_b=yes
2005
2006     fi
2007
2008
2009     echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6
2010 echo "configure:2011: checking whether explicit instantiation is needed" >&5
2011 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then
2012   echo $ac_n "(cached) $ac_c" 1>&6
2013 else
2014   cat > conftest.$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2017
2018     template <class T> struct foo { static int baz; };
2019     template <class T> int foo<T>::baz = 1;
2020     
2021 int main() {
2022  return foo<int>::baz; 
2023 ; return 0; }
2024 EOF
2025 if { (eval echo configure:2026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2026   rm -rf conftest*
2027   lily_cv_need_explicit_instantiation=no
2028 else
2029   echo "configure: failed program was:" >&5
2030   cat conftest.$ac_ext >&5
2031   rm -rf conftest*
2032   lily_cv_need_explicit_instantiation=yes
2033 fi
2034 rm -f conftest*
2035 fi
2036
2037 echo "$ac_t""$lily_cv_need_explicit_instantiation" 1>&6
2038     if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
2039         cat >> confdefs.h <<\EOF
2040 #define NEED_EXPLICIT_INSTANTIATION 1
2041 EOF
2042
2043     fi
2044
2045
2046     # ugh, automake: we want (and check for) bison
2047     for ac_prog in 'bison -y' byacc
2048 do
2049 # Extract the first word of "$ac_prog", so it can be a program name with args.
2050 set dummy $ac_prog; ac_word=$2
2051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2052 echo "configure:2053: checking for $ac_word" >&5
2053 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2054   echo $ac_n "(cached) $ac_c" 1>&6
2055 else
2056   if test -n "$YACC"; then
2057   ac_cv_prog_YACC="$YACC" # Let the user override the test.
2058 else
2059   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2060   ac_dummy="$PATH"
2061   for ac_dir in $ac_dummy; do
2062     test -z "$ac_dir" && ac_dir=.
2063     if test -f $ac_dir/$ac_word; then
2064       ac_cv_prog_YACC="$ac_prog"
2065       break
2066     fi
2067   done
2068   IFS="$ac_save_ifs"
2069 fi
2070 fi
2071 YACC="$ac_cv_prog_YACC"
2072 if test -n "$YACC"; then
2073   echo "$ac_t""$YACC" 1>&6
2074 else
2075   echo "$ac_t""no" 1>&6
2076 fi
2077
2078 test -n "$YACC" && break
2079 done
2080 test -n "$YACC" || YACC="yacc"
2081
2082     # ugh, automake: we want (and check for) flex
2083     # AC_PROG_LEX
2084     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
2085
2086     # AC_DECL_YYTEXT
2087     # ugh, ugh
2088     ac_cv_prog_lex_root=lex.yy
2089
2090     for ac_prog in bison
2091 do
2092 # Extract the first word of "$ac_prog", so it can be a program name with args.
2093 set dummy $ac_prog; ac_word=$2
2094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2095 echo "configure:2096: checking for $ac_word" >&5
2096 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2097   echo $ac_n "(cached) $ac_c" 1>&6
2098 else
2099   if test -n "$BISON"; then
2100   ac_cv_prog_BISON="$BISON" # Let the user override the test.
2101 else
2102   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2103   ac_dummy="$PATH"
2104   for ac_dir in $ac_dummy; do
2105     test -z "$ac_dir" && ac_dir=.
2106     if test -f $ac_dir/$ac_word; then
2107       ac_cv_prog_BISON="$ac_prog"
2108       break
2109     fi
2110   done
2111   IFS="$ac_save_ifs"
2112 fi
2113 fi
2114 BISON="$ac_cv_prog_BISON"
2115 if test -n "$BISON"; then
2116   echo "$ac_t""$BISON" 1>&6
2117 else
2118   echo "$ac_t""no" 1>&6
2119 fi
2120
2121 test -n "$BISON" && break
2122 done
2123 test -n "$BISON" || BISON="error"
2124
2125     for ac_prog in flex
2126 do
2127 # Extract the first word of "$ac_prog", so it can be a program name with args.
2128 set dummy $ac_prog; ac_word=$2
2129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2130 echo "configure:2131: checking for $ac_word" >&5
2131 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2132   echo $ac_n "(cached) $ac_c" 1>&6
2133 else
2134   if test -n "$FLEX"; then
2135   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2136 else
2137   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2138   ac_dummy="$PATH"
2139   for ac_dir in $ac_dummy; do
2140     test -z "$ac_dir" && ac_dir=.
2141     if test -f $ac_dir/$ac_word; then
2142       ac_cv_prog_FLEX="$ac_prog"
2143       break
2144     fi
2145   done
2146   IFS="$ac_save_ifs"
2147 fi
2148 fi
2149 FLEX="$ac_cv_prog_FLEX"
2150 if test -n "$FLEX"; then
2151   echo "$ac_t""$FLEX" 1>&6
2152 else
2153   echo "$ac_t""no" 1>&6
2154 fi
2155
2156 test -n "$FLEX" && break
2157 done
2158 test -n "$FLEX" || FLEX="error"
2159
2160     
2161         result="`echo \"$BISON\" | grep echo`"
2162         if test "x$BISON" = "xerror" -o "x$result" != "x"; then
2163                 
2164     echo "configure: warning: can\'t find bison. Please install Bison" 1>&2
2165     warn_b=yes
2166
2167         fi
2168
2169     
2170         result="`echo \"$FLEX\" | grep echo`"
2171         if test "x$FLEX" = "xerror" -o "x$result" != "x"; then
2172                 
2173     echo "configure: warning: can\'t find flex. Please install Flex" 1>&2
2174     warn_b=yes
2175
2176         fi
2177
2178
2179
2180 ## Urg. We should fix this configure test. -- so clumsy
2181     if test $BISON != "error"; then
2182         bison_version=`$BISON --version | head -1 | sed 's/^.* 1\.//g'`
2183         if test $bison_version -lt 25; then
2184             
2185     echo "configure: warning: The bison installed might be too old (1.$bison_version). You might have to install 1.25" 1>&2
2186     warn_b=yes
2187
2188         fi      
2189     fi
2190
2191     
2192     
2193
2194
2195     for ac_prog in ar
2196 do
2197 # Extract the first word of "$ac_prog", so it can be a program name with args.
2198 set dummy $ac_prog; ac_word=$2
2199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2200 echo "configure:2201: checking for $ac_word" >&5
2201 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2202   echo $ac_n "(cached) $ac_c" 1>&6
2203 else
2204   if test -n "$AR"; then
2205   ac_cv_prog_AR="$AR" # Let the user override the test.
2206 else
2207   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2208   ac_dummy="$PATH"
2209   for ac_dir in $ac_dummy; do
2210     test -z "$ac_dir" && ac_dir=.
2211     if test -f $ac_dir/$ac_word; then
2212       ac_cv_prog_AR="$ac_prog"
2213       break
2214     fi
2215   done
2216   IFS="$ac_save_ifs"
2217 fi
2218 fi
2219 AR="$ac_cv_prog_AR"
2220 if test -n "$AR"; then
2221   echo "$ac_t""$AR" 1>&6
2222 else
2223   echo "$ac_t""no" 1>&6
2224 fi
2225
2226 test -n "$AR" && break
2227 done
2228 test -n "$AR" || AR="error"
2229
2230     # Extract the first word of "ranlib", so it can be a program name with args.
2231 set dummy ranlib; ac_word=$2
2232 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2233 echo "configure:2234: checking for $ac_word" >&5
2234 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2235   echo $ac_n "(cached) $ac_c" 1>&6
2236 else
2237   if test -n "$RANLIB"; then
2238   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2239 else
2240   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2241   ac_dummy="$PATH"
2242   for ac_dir in $ac_dummy; do
2243     test -z "$ac_dir" && ac_dir=.
2244     if test -f $ac_dir/$ac_word; then
2245       ac_cv_prog_RANLIB="ranlib"
2246       break
2247     fi
2248   done
2249   IFS="$ac_save_ifs"
2250   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2251 fi
2252 fi
2253 RANLIB="$ac_cv_prog_RANLIB"
2254 if test -n "$RANLIB"; then
2255   echo "$ac_t""$RANLIB" 1>&6
2256 else
2257   echo "$ac_t""no" 1>&6
2258 fi
2259
2260
2261     
2262     
2263
2264
2265     lang=English
2266     ALL_LINGUAS="en nl"
2267
2268     # with/enable ??
2269     # Check whether --with-localedir or --without-localedir was given.
2270 if test "${with_localedir+set}" = set; then
2271   withval="$with_localedir"
2272   localedir=$with_localedir
2273 else
2274   localedir='${prefix}/share/locale'
2275 fi
2276
2277
2278     # Check whether --with-lang or --without-lang was given.
2279 if test "${with_lang+set}" = set; then
2280   withval="$with_lang"
2281   language=$with_lang
2282 else
2283   language=English
2284 fi
2285
2286
2287     echo $ac_n "checking language""... $ac_c" 1>&6
2288 echo "configure:2289: checking language" >&5    
2289     case "$language" in
2290       En* | en* | Am* | am* | US* | us*)
2291             lang=English;;
2292       NL | nl | Du* | du* | Ned* | ned*)
2293             lang=Dutch;;
2294       "")
2295             lang=English;;
2296       *)
2297             lang=unknown;;
2298     esac
2299     echo "$ac_t""$lang" 1>&6
2300
2301     if test "$lang" = "unknown" ; then
2302         
2303     echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
2304     warn_b=yes
2305
2306     fi
2307
2308
2309
2310     DIR_LOCALEDIR=${localedir}
2311     presome=${prefix}
2312     if test "$prefix" = "NONE"; then
2313             presome=${ac_default_prefix}
2314     fi
2315     DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
2316     
2317     
2318     cat >> confdefs.h <<EOF
2319 #define DIR_LOCALEDIR "${DIR_LOCALEDIR}"
2320 EOF
2321
2322
2323     echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2324 echo "configure:2325: checking for gettext in -lintl" >&5
2325 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2327   echo $ac_n "(cached) $ac_c" 1>&6
2328 else
2329   ac_save_LIBS="$LIBS"
2330 LIBS="-lintl  $LIBS"
2331 cat > conftest.$ac_ext <<EOF
2332 #line 2333 "configure"
2333 #include "confdefs.h"
2334 /* Override any gcc2 internal prototype to avoid an error.  */
2335 #ifdef __cplusplus
2336 extern "C"
2337 #endif
2338 /* We use char because int might match the return type of a gcc2
2339     builtin and then its argument prototype would still apply.  */
2340 char gettext();
2341
2342 int main() {
2343 gettext()
2344 ; return 0; }
2345 EOF
2346 if { (eval echo configure:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2347   rm -rf conftest*
2348   eval "ac_cv_lib_$ac_lib_var=yes"
2349 else
2350   echo "configure: failed program was:" >&5
2351   cat conftest.$ac_ext >&5
2352   rm -rf conftest*
2353   eval "ac_cv_lib_$ac_lib_var=no"
2354 fi
2355 rm -f conftest*
2356 LIBS="$ac_save_LIBS"
2357
2358 fi
2359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2360   echo "$ac_t""yes" 1>&6
2361     ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2362     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2363   cat >> confdefs.h <<EOF
2364 #define $ac_tr_lib 1
2365 EOF
2366
2367   LIBS="-lintl $LIBS"
2368
2369 else
2370   echo "$ac_t""no" 1>&6
2371 fi
2372
2373     for ac_func in gettext
2374 do
2375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2376 echo "configure:2377: checking for $ac_func" >&5
2377 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2378   echo $ac_n "(cached) $ac_c" 1>&6
2379 else
2380   cat > conftest.$ac_ext <<EOF
2381 #line 2382 "configure"
2382 #include "confdefs.h"
2383 /* System header to define __stub macros and hopefully few prototypes,
2384     which can conflict with char $ac_func(); below.  */
2385 #include <assert.h>
2386 /* Override any gcc2 internal prototype to avoid an error.  */
2387 #ifdef __cplusplus
2388 extern "C"
2389 #endif
2390 /* We use char because int might match the return type of a gcc2
2391     builtin and then its argument prototype would still apply.  */
2392 char $ac_func();
2393
2394 int main() {
2395
2396 /* The GNU C library defines this for functions which it implements
2397     to always fail with ENOSYS.  Some functions are actually named
2398     something starting with __ and the normal name is an alias.  */
2399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2400 choke me
2401 #else
2402 $ac_func();
2403 #endif
2404
2405 ; return 0; }
2406 EOF
2407 if { (eval echo configure:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2408   rm -rf conftest*
2409   eval "ac_cv_func_$ac_func=yes"
2410 else
2411   echo "configure: failed program was:" >&5
2412   cat conftest.$ac_ext >&5
2413   rm -rf conftest*
2414   eval "ac_cv_func_$ac_func=no"
2415 fi
2416 rm -f conftest*
2417 fi
2418
2419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2420   echo "$ac_t""yes" 1>&6
2421     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2422   cat >> confdefs.h <<EOF
2423 #define $ac_tr_func 1
2424 EOF
2425  
2426 else
2427   echo "$ac_t""no" 1>&6
2428 fi
2429 done
2430
2431
2432
2433     # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt)
2434     for ac_prog in msgfmt
2435 do
2436 # Extract the first word of "$ac_prog", so it can be a program name with args.
2437 set dummy $ac_prog; ac_word=$2
2438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2439 echo "configure:2440: checking for $ac_word" >&5
2440 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
2441   echo $ac_n "(cached) $ac_c" 1>&6
2442 else
2443   if test -n "$MSGFMT"; then
2444   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
2445 else
2446   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2447   ac_dummy="$PATH"
2448   for ac_dir in $ac_dummy; do
2449     test -z "$ac_dir" && ac_dir=.
2450     if test -f $ac_dir/$ac_word; then
2451       ac_cv_prog_MSGFMT="$ac_prog"
2452       break
2453     fi
2454   done
2455   IFS="$ac_save_ifs"
2456 fi
2457 fi
2458 MSGFMT="$ac_cv_prog_MSGFMT"
2459 if test -n "$MSGFMT"; then
2460   echo "$ac_t""$MSGFMT" 1>&6
2461 else
2462   echo "$ac_t""no" 1>&6
2463 fi
2464
2465 test -n "$MSGFMT" && break
2466 done
2467 test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh "
2468
2469     echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6
2470 echo "configure:2471: checking whether msgfmt accepts -o" >&5
2471     msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`"
2472     if test "$msgfmt_output" = ""; then
2473         echo "$ac_t""yes" 1>&6
2474     else
2475         # urg
2476         MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh"
2477         echo "$ac_t""no" 1>&6
2478         
2479     echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2480     warn_b=yes
2481
2482     fi
2483     if test ! -n "$MSGFMT"; then
2484         
2485     echo "configure: warning: please install msgfmt from GNU gettext" 1>&2
2486     warn_b=yes
2487
2488     fi
2489
2490
2491     # urg, never know what names these teTeX guys will think up
2492
2493     for ac_prog in mf
2494 do
2495 # Extract the first word of "$ac_prog", so it can be a program name with args.
2496 set dummy $ac_prog; ac_word=$2
2497 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2498 echo "configure:2499: checking for $ac_word" >&5
2499 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then
2500   echo $ac_n "(cached) $ac_c" 1>&6
2501 else
2502   if test -n "$METAFONT"; then
2503   ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
2504 else
2505   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2506   ac_dummy="$PATH"
2507   for ac_dir in $ac_dummy; do
2508     test -z "$ac_dir" && ac_dir=.
2509     if test -f $ac_dir/$ac_word; then
2510       ac_cv_prog_METAFONT="$ac_prog"
2511       break
2512     fi
2513   done
2514   IFS="$ac_save_ifs"
2515 fi
2516 fi
2517 METAFONT="$ac_cv_prog_METAFONT"
2518 if test -n "$METAFONT"; then
2519   echo "$ac_t""$METAFONT" 1>&6
2520 else
2521   echo "$ac_t""no" 1>&6
2522 fi
2523
2524 test -n "$METAFONT" && break
2525 done
2526 test -n "$METAFONT" || METAFONT="no"
2527
2528     if test "x$METAFONT" = "xno"; then
2529         for ac_prog in mfont
2530 do
2531 # Extract the first word of "$ac_prog", so it can be a program name with args.
2532 set dummy $ac_prog; ac_word=$2
2533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2534 echo "configure:2535: checking for $ac_word" >&5
2535 if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then
2536   echo $ac_n "(cached) $ac_c" 1>&6
2537 else
2538   if test -n "$MFONT"; then
2539   ac_cv_prog_MFONT="$MFONT" # Let the user override the test.
2540 else
2541   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2542   ac_dummy="$PATH"
2543   for ac_dir in $ac_dummy; do
2544     test -z "$ac_dir" && ac_dir=.
2545     if test -f $ac_dir/$ac_word; then
2546       ac_cv_prog_MFONT="$ac_prog"
2547       break
2548     fi
2549   done
2550   IFS="$ac_save_ifs"
2551 fi
2552 fi
2553 MFONT="$ac_cv_prog_MFONT"
2554 if test -n "$MFONT"; then
2555   echo "$ac_t""$MFONT" 1>&6
2556 else
2557   echo "$ac_t""no" 1>&6
2558 fi
2559
2560 test -n "$MFONT" && break
2561 done
2562 test -n "$MFONT" || MFONT="-echo no mf or mfont"
2563
2564         METAFONT=$MFONT
2565     fi
2566
2567     for ac_prog in inimf
2568 do
2569 # Extract the first word of "$ac_prog", so it can be a program name with args.
2570 set dummy $ac_prog; ac_word=$2
2571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2572 echo "configure:2573: checking for $ac_word" >&5
2573 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then
2574   echo $ac_n "(cached) $ac_c" 1>&6
2575 else
2576   if test -n "$INIMETAFONT"; then
2577   ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test.
2578 else
2579   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2580   ac_dummy="$PATH"
2581   for ac_dir in $ac_dummy; do
2582     test -z "$ac_dir" && ac_dir=.
2583     if test -f $ac_dir/$ac_word; then
2584       ac_cv_prog_INIMETAFONT="$ac_prog"
2585       break
2586     fi
2587   done
2588   IFS="$ac_save_ifs"
2589 fi
2590 fi
2591 INIMETAFONT="$ac_cv_prog_INIMETAFONT"
2592 if test -n "$INIMETAFONT"; then
2593   echo "$ac_t""$INIMETAFONT" 1>&6
2594 else
2595   echo "$ac_t""no" 1>&6
2596 fi
2597
2598 test -n "$INIMETAFONT" && break
2599 done
2600 test -n "$INIMETAFONT" || INIMETAFONT="no"
2601
2602     if test "x$INIMETAFONT" = "xno"; then
2603         for ac_prog in inimfont
2604 do
2605 # Extract the first word of "$ac_prog", so it can be a program name with args.
2606 set dummy $ac_prog; ac_word=$2
2607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2608 echo "configure:2609: checking for $ac_word" >&5
2609 if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then
2610   echo $ac_n "(cached) $ac_c" 1>&6
2611 else
2612   if test -n "$INIMFONT"; then
2613   ac_cv_prog_INIMFONT="$INIMFONT" # Let the user override the test.
2614 else
2615   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2616   ac_dummy="$PATH"
2617   for ac_dir in $ac_dummy; do
2618     test -z "$ac_dir" && ac_dir=.
2619     if test -f $ac_dir/$ac_word; then
2620       ac_cv_prog_INIMFONT="$ac_prog"
2621       break
2622     fi
2623   done
2624   IFS="$ac_save_ifs"
2625 fi
2626 fi
2627 INIMFONT="$ac_cv_prog_INIMFONT"
2628 if test -n "$INIMFONT"; then
2629   echo "$ac_t""$INIMFONT" 1>&6
2630 else
2631   echo "$ac_t""no" 1>&6
2632 fi
2633
2634 test -n "$INIMFONT" && break
2635 done
2636 test -n "$INIMFONT" || INIMFONT="-echo no inimf or inimfont"
2637
2638         INIMETAFONT=$INIMFONT
2639     fi
2640
2641     echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6
2642 echo "configure:2643: checking for working metafont mode" >&5
2643     modelist='ljfour lj4 lj3 lj2 ljet laserjet'
2644     for MFMODE in $modelist; do
2645         $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
2646         if test -f mfput.tfm; then
2647             break;
2648         fi
2649     done
2650     echo "$ac_t""$MFMODE" 1>&6
2651
2652     rm -f mfput.*
2653
2654     
2655     
2656     
2657
2658
2659     # Check whether --enable-tfm-path or --disable-tfm-path was given.
2660 if test "${enable_tfm_path+set}" = set; then
2661   enableval="$enable_tfm_path"
2662   tfm_path=$enableval
2663 else
2664   tfm_path=auto 
2665 fi
2666
2667
2668     for ac_prog in kpsewhich
2669 do
2670 # Extract the first word of "$ac_prog", so it can be a program name with args.
2671 set dummy $ac_prog; ac_word=$2
2672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2673 echo "configure:2674: checking for $ac_word" >&5
2674 if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then
2675   echo $ac_n "(cached) $ac_c" 1>&6
2676 else
2677   if test -n "$KPSEWHICH"; then
2678   ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
2679 else
2680   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2681   ac_dummy="$PATH"
2682   for ac_dir in $ac_dummy; do
2683     test -z "$ac_dir" && ac_dir=.
2684     if test -f $ac_dir/$ac_word; then
2685       ac_cv_prog_KPSEWHICH="$ac_prog"
2686       break
2687     fi
2688   done
2689   IFS="$ac_save_ifs"
2690 fi
2691 fi
2692 KPSEWHICH="$ac_cv_prog_KPSEWHICH"
2693 if test -n "$KPSEWHICH"; then
2694   echo "$ac_t""$KPSEWHICH" 1>&6
2695 else
2696   echo "$ac_t""no" 1>&6
2697 fi
2698
2699 test -n "$KPSEWHICH" && break
2700 done
2701 test -n "$KPSEWHICH" || KPSEWHICH="no"
2702
2703     echo $ac_n "checking for tfm path""... $ac_c" 1>&6
2704 echo "configure:2705: checking for tfm path" >&5
2705
2706     TFM_FONTS="cmr msam"
2707
2708     if test "x$tfm_path" = xauto ; then
2709         if test "x$KPSEWHICH" != "xno" ; then
2710             for i in $TFM_FONTS; do
2711                 dir=`$KPSEWHICH tfm ${i}10.tfm`
2712                 TFM_PATH="$TFM_PATH `dirname $dir`"
2713             done
2714         else
2715             
2716     echo "configure: warning: Please specify where cmr10.tfm lives:
2717     ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts" 1>&2
2718     warn_b=yes
2719
2720         fi
2721     else
2722          TFM_PATH=$tfm_path
2723     fi
2724
2725     TFM_PATH=`echo $TFM_PATH | tr ':' ' '`
2726     echo "$ac_t""$TFM_PATH" 1>&6
2727     
2728
2729
2730     ## First, let's just see if we can find Guile at all.
2731     echo $ac_n "checking "for guile-config"""... $ac_c" 1>&6
2732 echo "configure:2733: checking "for guile-config"" >&5
2733     for guile_config in guile-config $target-guile-config $build-guile-config; do
2734         echo "$ac_t"""$guile_config"" 1>&6
2735         if ! $guile_config --version > /dev/null 2>&1 ; then
2736             echo "configure: warning: "cannot execute $guile_config"" 1>&2
2737             echo $ac_n "checking "if we are cross compiling"""... $ac_c" 1>&6
2738 echo "configure:2739: checking "if we are cross compiling"" >&5
2739             guile_config=error
2740         else
2741             break
2742         fi
2743     done
2744     if test "$guile_config" = "error"; then
2745         { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2746         exit 1
2747     fi
2748     echo $ac_n "checking "Guile version"""... $ac_c" 1>&6
2749 echo "configure:2750: checking "Guile version"" >&5
2750     need_guile_version="1.3.4"
2751     need_guile_version_numeric=100304
2752     guile_version=`$guile_config --version 2>&1 | awk '{print $NF}'`
2753     guile_version_numeric=`echo $guile_version | awk -F. '
2754 {if ($3) {last = $3}
2755 else {last =0}}
2756 {printf "%s%s%s\n",$1*100, $2*10,last}'`
2757     echo "$ac_t"""$guile_version"" 1>&6
2758     if test $guile_version_numeric -lt $need_guile_version_numeric
2759     then
2760         
2761     echo "configure: warning: "Guile version "$need_guile_version" or newer is needed"" 1>&2
2762     warn_b=yes
2763
2764     fi
2765         GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
2766     GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
2767         
2768 ## The GUILE_FLAGS macro.
2769   echo $ac_n "checking for Guile""... $ac_c" 1>&6
2770 echo "configure:2771: checking for Guile" >&5
2771   if ! $guile_config link > /dev/null ; then
2772       echo "$ac_t"""cannot execute $guile_config"" 1>&6
2773       { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; }
2774       exit 1
2775   fi
2776   GUILE_CFLAGS="`$guile_config compile`"
2777   GUILE_LDFLAGS="`$guile_config link`"
2778   
2779   
2780   echo "$ac_t""yes" 1>&6
2781
2782     # Extract the first word of "guile", so it can be a program name with args.
2783 set dummy guile; ac_word=$2
2784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2785 echo "configure:2786: checking for $ac_word" >&5
2786 if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then
2787   echo $ac_n "(cached) $ac_c" 1>&6
2788 else
2789   case "$GUILE" in
2790   /*)
2791   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
2792   ;;
2793   ?:/*)                  
2794   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a dos path.
2795   ;;
2796   *)
2797   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2798   ac_dummy="$PATH"
2799   for ac_dir in $ac_dummy; do 
2800     test -z "$ac_dir" && ac_dir=.
2801     if test -f $ac_dir/$ac_word; then
2802       ac_cv_path_GUILE="$ac_dir/$ac_word"
2803       break
2804     fi
2805   done
2806   IFS="$ac_save_ifs"
2807   test -z "$ac_cv_path_GUILE" && ac_cv_path_GUILE="error"
2808   ;;
2809 esac
2810 fi
2811 GUILE="$ac_cv_path_GUILE"
2812 if test -n "$GUILE"; then
2813   echo "$ac_t""$GUILE" 1>&6
2814 else
2815   echo "$ac_t""no" 1>&6
2816 fi
2817
2818     
2819     cat >> confdefs.h <<EOF
2820 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
2821 EOF
2822
2823     cat >> confdefs.h <<EOF
2824 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
2825 EOF
2826
2827
2828
2829
2830     kpathsea_b=yes
2831     #FIXME --with-xxx is meant for specifying a PATH too,
2832     # so this should read: --enable-kpathsea,
2833     # or --with-kpathsea-include=PATH --with-kpathsea-lib=PATH
2834     # Check whether --with-kpathsea or --without-kpathsea was given.
2835 if test "${with_kpathsea+set}" = set; then
2836   withval="$with_kpathsea"
2837   kpathsea_b=$with_kpathsea
2838 fi
2839
2840
2841     if test "$kpathsea_b" != "no"; then 
2842         for ac_hdr in kpathsea/kpathsea.h
2843 do
2844 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2845 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2846 echo "configure:2847: checking for $ac_hdr" >&5
2847 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2848   echo $ac_n "(cached) $ac_c" 1>&6
2849 else
2850   cat > conftest.$ac_ext <<EOF
2851 #line 2852 "configure"
2852 #include "confdefs.h"
2853 #include <$ac_hdr>
2854 EOF
2855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2856 { (eval echo configure:2857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2858 if test -z "$ac_err"; then
2859   rm -rf conftest*
2860   eval "ac_cv_header_$ac_safe=yes"
2861 else
2862   echo "$ac_err" >&5
2863   echo "configure: failed program was:" >&5
2864   cat conftest.$ac_ext >&5
2865   rm -rf conftest*
2866   eval "ac_cv_header_$ac_safe=no"
2867 fi
2868 rm -f conftest*
2869 fi
2870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2871   echo "$ac_t""yes" 1>&6
2872     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2873   cat >> confdefs.h <<EOF
2874 #define $ac_tr_hdr 1
2875 EOF
2876  
2877 else
2878   echo "$ac_t""no" 1>&6
2879 fi
2880 done
2881
2882         echo $ac_n "checking for kpse_find_file in -lkpathsea""... $ac_c" 1>&6
2883 echo "configure:2884: checking for kpse_find_file in -lkpathsea" >&5
2884 ac_lib_var=`echo kpathsea'_'kpse_find_file | sed 'y%./+-%__p_%'`
2885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2886   echo $ac_n "(cached) $ac_c" 1>&6
2887 else
2888   ac_save_LIBS="$LIBS"
2889 LIBS="-lkpathsea  $LIBS"
2890 cat > conftest.$ac_ext <<EOF
2891 #line 2892 "configure"
2892 #include "confdefs.h"
2893 /* Override any gcc2 internal prototype to avoid an error.  */
2894 #ifdef __cplusplus
2895 extern "C"
2896 #endif
2897 /* We use char because int might match the return type of a gcc2
2898     builtin and then its argument prototype would still apply.  */
2899 char kpse_find_file();
2900
2901 int main() {
2902 kpse_find_file()
2903 ; return 0; }
2904 EOF
2905 if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2906   rm -rf conftest*
2907   eval "ac_cv_lib_$ac_lib_var=yes"
2908 else
2909   echo "configure: failed program was:" >&5
2910   cat conftest.$ac_ext >&5
2911   rm -rf conftest*
2912   eval "ac_cv_lib_$ac_lib_var=no"
2913 fi
2914 rm -f conftest*
2915 LIBS="$ac_save_LIBS"
2916
2917 fi
2918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2919   echo "$ac_t""yes" 1>&6
2920     ac_tr_lib=HAVE_LIB`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2921     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2922   cat >> confdefs.h <<EOF
2923 #define $ac_tr_lib 1
2924 EOF
2925
2926   LIBS="-lkpathsea $LIBS"
2927
2928 else
2929   echo "$ac_t""no" 1>&6
2930 fi
2931
2932         for ac_func in kpse_find_file
2933 do
2934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2935 echo "configure:2936: checking for $ac_func" >&5
2936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2937   echo $ac_n "(cached) $ac_c" 1>&6
2938 else
2939   cat > conftest.$ac_ext <<EOF
2940 #line 2941 "configure"
2941 #include "confdefs.h"
2942 /* System header to define __stub macros and hopefully few prototypes,
2943     which can conflict with char $ac_func(); below.  */
2944 #include <assert.h>
2945 /* Override any gcc2 internal prototype to avoid an error.  */
2946 #ifdef __cplusplus
2947 extern "C"
2948 #endif
2949 /* We use char because int might match the return type of a gcc2
2950     builtin and then its argument prototype would still apply.  */
2951 char $ac_func();
2952
2953 int main() {
2954
2955 /* The GNU C library defines this for functions which it implements
2956     to always fail with ENOSYS.  Some functions are actually named
2957     something starting with __ and the normal name is an alias.  */
2958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2959 choke me
2960 #else
2961 $ac_func();
2962 #endif
2963
2964 ; return 0; }
2965 EOF
2966 if { (eval echo configure:2967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2967   rm -rf conftest*
2968   eval "ac_cv_func_$ac_func=yes"
2969 else
2970   echo "configure: failed program was:" >&5
2971   cat conftest.$ac_ext >&5
2972   rm -rf conftest*
2973   eval "ac_cv_func_$ac_func=no"
2974 fi
2975 rm -f conftest*
2976 fi
2977
2978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2979   echo "$ac_t""yes" 1>&6
2980     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2981   cat >> confdefs.h <<EOF
2982 #define $ac_tr_func 1
2983 EOF
2984  
2985 else
2986   echo "$ac_t""no" 1>&6
2987 { 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; }
2988 fi
2989 done
2990
2991     fi
2992     echo $ac_n "checking whether to use kpathsea""... $ac_c" 1>&6
2993 echo "configure:2994: checking whether to use kpathsea" >&5
2994     if test "$kpathsea_b" != no; then
2995         echo "$ac_t""yes" 1>&6
2996         KPATHSEA=1
2997     else
2998         echo "$ac_t""no" 1>&6
2999         KPATHSEA=0
3000     fi
3001
3002     
3003     cat >> confdefs.h <<EOF
3004 #define KPATHSEA $KPATHSEA
3005 EOF
3006
3007
3008
3009
3010 if test "$optimise_b" = yes; then
3011     DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
3012     cat >> confdefs.h <<\EOF
3013 #define STRINGS_UTILS_INLINED 1
3014 EOF
3015
3016 fi
3017
3018
3019
3020 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3021 echo "configure:3022: checking for 8-bit clean memcmp" >&5
3022 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3023   echo $ac_n "(cached) $ac_c" 1>&6
3024 else
3025   if test "$cross_compiling" = yes; then
3026   ac_cv_func_memcmp_clean=no
3027 else
3028   cat > conftest.$ac_ext <<EOF
3029 #line 3030 "configure"
3030 #include "confdefs.h"
3031
3032 main()
3033 {
3034   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3035   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3036 }
3037
3038 EOF
3039 if { (eval echo configure:3040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3040 then
3041   ac_cv_func_memcmp_clean=yes
3042 else
3043   echo "configure: failed program was:" >&5
3044   cat conftest.$ac_ext >&5
3045   rm -fr conftest*
3046   ac_cv_func_memcmp_clean=no
3047 fi
3048 rm -fr conftest*
3049 fi
3050
3051 fi
3052
3053 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3054 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3055
3056 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3057 echo "configure:3058: checking for vprintf" >&5
3058 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3059   echo $ac_n "(cached) $ac_c" 1>&6
3060 else
3061   cat > conftest.$ac_ext <<EOF
3062 #line 3063 "configure"
3063 #include "confdefs.h"
3064 /* System header to define __stub macros and hopefully few prototypes,
3065     which can conflict with char vprintf(); below.  */
3066 #include <assert.h>
3067 /* Override any gcc2 internal prototype to avoid an error.  */
3068 #ifdef __cplusplus
3069 extern "C"
3070 #endif
3071 /* We use char because int might match the return type of a gcc2
3072     builtin and then its argument prototype would still apply.  */
3073 char vprintf();
3074
3075 int main() {
3076
3077 /* The GNU C library defines this for functions which it implements
3078     to always fail with ENOSYS.  Some functions are actually named
3079     something starting with __ and the normal name is an alias.  */
3080 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3081 choke me
3082 #else
3083 vprintf();
3084 #endif
3085
3086 ; return 0; }
3087 EOF
3088 if { (eval echo configure:3089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3089   rm -rf conftest*
3090   eval "ac_cv_func_vprintf=yes"
3091 else
3092   echo "configure: failed program was:" >&5
3093   cat conftest.$ac_ext >&5
3094   rm -rf conftest*
3095   eval "ac_cv_func_vprintf=no"
3096 fi
3097 rm -f conftest*
3098 fi
3099
3100 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3101   echo "$ac_t""yes" 1>&6
3102   cat >> confdefs.h <<\EOF
3103 #define HAVE_VPRINTF 1
3104 EOF
3105
3106 else
3107   echo "$ac_t""no" 1>&6
3108 fi
3109
3110 if test "$ac_cv_func_vprintf" != yes; then
3111 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3112 echo "configure:3113: checking for _doprnt" >&5
3113 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3114   echo $ac_n "(cached) $ac_c" 1>&6
3115 else
3116   cat > conftest.$ac_ext <<EOF
3117 #line 3118 "configure"
3118 #include "confdefs.h"
3119 /* System header to define __stub macros and hopefully few prototypes,
3120     which can conflict with char _doprnt(); below.  */
3121 #include <assert.h>
3122 /* Override any gcc2 internal prototype to avoid an error.  */
3123 #ifdef __cplusplus
3124 extern "C"
3125 #endif
3126 /* We use char because int might match the return type of a gcc2
3127     builtin and then its argument prototype would still apply.  */
3128 char _doprnt();
3129
3130 int main() {
3131
3132 /* The GNU C library defines this for functions which it implements
3133     to always fail with ENOSYS.  Some functions are actually named
3134     something starting with __ and the normal name is an alias.  */
3135 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3136 choke me
3137 #else
3138 _doprnt();
3139 #endif
3140
3141 ; return 0; }
3142 EOF
3143 if { (eval echo configure:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3144   rm -rf conftest*
3145   eval "ac_cv_func__doprnt=yes"
3146 else
3147   echo "configure: failed program was:" >&5
3148   cat conftest.$ac_ext >&5
3149   rm -rf conftest*
3150   eval "ac_cv_func__doprnt=no"
3151 fi
3152 rm -f conftest*
3153 fi
3154
3155 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3156   echo "$ac_t""yes" 1>&6
3157   cat >> confdefs.h <<\EOF
3158 #define HAVE_DOPRNT 1
3159 EOF
3160
3161 else
3162   echo "$ac_t""no" 1>&6
3163 fi
3164
3165 fi
3166
3167 for ac_func in memmem snprintf vsnprintf gettext isinf
3168 do
3169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3170 echo "configure:3171: checking for $ac_func" >&5
3171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3172   echo $ac_n "(cached) $ac_c" 1>&6
3173 else
3174   cat > conftest.$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3177 /* System header to define __stub macros and hopefully few prototypes,
3178     which can conflict with char $ac_func(); below.  */
3179 #include <assert.h>
3180 /* Override any gcc2 internal prototype to avoid an error.  */
3181 #ifdef __cplusplus
3182 extern "C"
3183 #endif
3184 /* We use char because int might match the return type of a gcc2
3185     builtin and then its argument prototype would still apply.  */
3186 char $ac_func();
3187
3188 int main() {
3189
3190 /* The GNU C library defines this for functions which it implements
3191     to always fail with ENOSYS.  Some functions are actually named
3192     something starting with __ and the normal name is an alias.  */
3193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3194 choke me
3195 #else
3196 $ac_func();
3197 #endif
3198
3199 ; return 0; }
3200 EOF
3201 if { (eval echo configure:3202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3202   rm -rf conftest*
3203   eval "ac_cv_func_$ac_func=yes"
3204 else
3205   echo "configure: failed program was:" >&5
3206   cat conftest.$ac_ext >&5
3207   rm -rf conftest*
3208   eval "ac_cv_func_$ac_func=no"
3209 fi
3210 rm -f conftest*
3211 fi
3212
3213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3214   echo "$ac_t""yes" 1>&6
3215     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3216   cat >> confdefs.h <<EOF
3217 #define $ac_tr_func 1
3218 EOF
3219  
3220 else
3221   echo "$ac_t""no" 1>&6
3222 fi
3223 done
3224
3225
3226 cat >> confdefs.h <<EOF
3227 #define TOPLEVEL_VERSION "${FULL_VERSION}"
3228 EOF
3229
3230 cat >> confdefs.h <<EOF
3231 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
3232 EOF
3233
3234
3235
3236     for ac_prog in makeinfo
3237 do
3238 # Extract the first word of "$ac_prog", so it can be a program name with args.
3239 set dummy $ac_prog; ac_word=$2
3240 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3241 echo "configure:3242: checking for $ac_word" >&5
3242 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3243   echo $ac_n "(cached) $ac_c" 1>&6
3244 else
3245   if test -n "$MAKEINFO"; then
3246   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3247 else
3248   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3249   ac_dummy="$PATH"
3250   for ac_dir in $ac_dummy; do
3251     test -z "$ac_dir" && ac_dir=.
3252     if test -f $ac_dir/$ac_word; then
3253       ac_cv_prog_MAKEINFO="$ac_prog"
3254       break
3255     fi
3256   done
3257   IFS="$ac_save_ifs"
3258 fi
3259 fi
3260 MAKEINFO="$ac_cv_prog_MAKEINFO"
3261 if test -n "$MAKEINFO"; then
3262   echo "$ac_t""$MAKEINFO" 1>&6
3263 else
3264   echo "$ac_t""no" 1>&6
3265 fi
3266
3267 test -n "$MAKEINFO" && break
3268 done
3269 test -n "$MAKEINFO" || MAKEINFO="error"
3270
3271     if test "$MAKEINFO" != "error"; then
3272         echo $ac_n "checking whether makeinfo can split html by @node""... $ac_c" 1>&6
3273 echo "configure:3274: checking whether makeinfo can split html by @node" >&5
3274         mkdir -p out
3275         makeinfo --html --output=out/split <<EOF
3276 \input texinfo
3277 \input texinfo @c -*-texinfo-*-
3278 @setfilename split.info
3279 @settitle split.info
3280 @bye
3281 EOF
3282         if test -d out/split; then
3283             SPLITTING_MAKEINFO=yes
3284             echo "$ac_t""yes" 1>&6
3285             rm -rf out/split
3286         else
3287             echo "$ac_t""no" 1>&6
3288             
3289     echo "configure: warning: your html documentation will be one large file" 1>&2
3290     warn_b=yes
3291
3292             rm -rf out/split
3293         fi
3294     fi
3295     
3296
3297
3298
3299 # Extract the first word of "perl", so it can be a program name with args.
3300 set dummy perl; ac_word=$2
3301 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3302 echo "configure:3303: checking for $ac_word" >&5
3303 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3304   echo $ac_n "(cached) $ac_c" 1>&6
3305 else
3306   case "$PERL" in
3307   /*)
3308   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3309   ;;
3310   ?:/*)                  
3311   ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3312   ;;
3313   *)
3314   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3315   ac_dummy="$PATH"
3316   for ac_dir in $ac_dummy; do 
3317     test -z "$ac_dir" && ac_dir=.
3318     if test -f $ac_dir/$ac_word; then
3319       ac_cv_path_PERL="$ac_dir/$ac_word"
3320       break
3321     fi
3322   done
3323   IFS="$ac_save_ifs"
3324   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error"
3325   ;;
3326 esac
3327 fi
3328 PERL="$ac_cv_path_PERL"
3329 if test -n "$PERL"; then
3330   echo "$ac_t""$PERL" 1>&6
3331 else
3332   echo "$ac_t""no" 1>&6
3333 fi
3334
3335
3336 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
3337 do
3338 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3340 echo "configure:3341: checking for $ac_hdr" >&5
3341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3342   echo $ac_n "(cached) $ac_c" 1>&6
3343 else
3344   cat > conftest.$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3347 #include <$ac_hdr>
3348 EOF
3349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3350 { (eval echo configure:3351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3352 if test -z "$ac_err"; then
3353   rm -rf conftest*
3354   eval "ac_cv_header_$ac_safe=yes"
3355 else
3356   echo "$ac_err" >&5
3357   echo "configure: failed program was:" >&5
3358   cat conftest.$ac_ext >&5
3359   rm -rf conftest*
3360   eval "ac_cv_header_$ac_safe=no"
3361 fi
3362 rm -f conftest*
3363 fi
3364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3365   echo "$ac_t""yes" 1>&6
3366     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3367   cat >> confdefs.h <<EOF
3368 #define $ac_tr_hdr 1
3369 EOF
3370  
3371 else
3372   echo "$ac_t""no" 1>&6
3373 fi
3374 done
3375
3376
3377
3378
3379     trap '' 1 2 15
3380 cat > confcache <<\EOF
3381 # This file is a shell script that caches the results of configure
3382 # tests run on this system so they can be shared between configure
3383 # scripts and configure runs.  It is not useful on other systems.
3384 # If it contains results you don't want to keep, you may remove or edit it.
3385 #
3386 # By default, configure uses ./config.cache as the cache file,
3387 # creating it if it does not exist already.  You can give configure
3388 # the --cache-file=FILE option to use a different cache file; that is
3389 # what configure does when it calls configure scripts in
3390 # subdirectories, so they share the cache.
3391 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3392 # config.status only pays attention to the cache file if you give it the
3393 # --recheck option to rerun configure.
3394 #
3395 EOF
3396 # The following way of writing the cache mishandles newlines in values,
3397 # but we know of no workaround that is simple, portable, and efficient.
3398 # So, don't put newlines in cache variables' values.
3399 # Ultrix sh set writes to stderr and can't be redirected directly,
3400 # and sets the high bit in the cache file unless we assign to the vars.
3401 (set) 2>&1 |
3402   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3403   *ac_space=\ *)
3404     # `set' does not quote correctly, so add quotes (double-quote substitution
3405     # turns \\\\ into \\, and sed turns \\ into \).
3406     sed -n \
3407       -e "s/'/'\\\\''/g" \
3408       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3409     ;;
3410   *)
3411     # `set' quotes correctly as required by POSIX, so do not add quotes.
3412     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3413     ;;
3414   esac >> confcache
3415 if cmp -s $cache_file confcache; then
3416   :
3417 else
3418   if test -w $cache_file; then
3419     echo "updating cache $cache_file"
3420     cat confcache > $cache_file
3421   else
3422     echo "not updating unwritable cache $cache_file"
3423   fi
3424 fi
3425 rm -f confcache
3426
3427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3428
3429 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3430 # Let make expand exec_prefix.
3431 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3432
3433 # Any assignment to VPATH causes Sun make to only execute
3434 # the first set of double-colon rules, so remove it if not needed.
3435 # If there is a colon in the path, we need to keep it.
3436 if test "x$srcdir" = x.; then
3437   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3438 fi
3439
3440 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3441
3442 DEFS=-DHAVE_CONFIG_H
3443
3444 # Without the "./", some shells look in PATH for config.status.
3445 : ${CONFIG_STATUS=./config.status}
3446
3447 echo creating $CONFIG_STATUS
3448 rm -f $CONFIG_STATUS
3449 cat > $CONFIG_STATUS <<EOF
3450 #! /bin/sh
3451 # Generated automatically by configure.
3452 # Run this file to recreate the current configuration.
3453 # This directory was configured as follows,
3454 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3455 #
3456 # $0 $ac_configure_args
3457 #
3458 # Compiler output produced by configure, useful for debugging
3459 # configure, is in ./config.log if it exists.
3460
3461 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3462 for ac_option
3463 do
3464   case "\$ac_option" in
3465   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3466     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3467     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3468   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3469     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3470     exit 0 ;;
3471   -help | --help | --hel | --he | --h)
3472     echo "\$ac_cs_usage"; exit 0 ;;
3473   *) echo "\$ac_cs_usage"; exit 1 ;;
3474   esac
3475 done
3476
3477 ac_given_srcdir=$srcdir
3478
3479 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.h:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3480 EOF
3481 cat >> $CONFIG_STATUS <<EOF
3482
3483 # Protect against being on the right side of a sed subst in config.status.
3484 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3485  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3486 $ac_vpsub
3487 $extrasub
3488 s%@SHELL@%$SHELL%g
3489 s%@CFLAGS@%$CFLAGS%g
3490 s%@CPPFLAGS@%$CPPFLAGS%g
3491 s%@CXXFLAGS@%$CXXFLAGS%g
3492 s%@FFLAGS@%$FFLAGS%g
3493 s%@DEFS@%$DEFS%g
3494 s%@LDFLAGS@%$LDFLAGS%g
3495 s%@LIBS@%$LIBS%g
3496 s%@exec_prefix@%$exec_prefix%g
3497 s%@prefix@%$prefix%g
3498 s%@program_transform_name@%$program_transform_name%g
3499 s%@bindir@%$bindir%g
3500 s%@sbindir@%$sbindir%g
3501 s%@libexecdir@%$libexecdir%g
3502 s%@datadir@%$datadir%g
3503 s%@sysconfdir@%$sysconfdir%g
3504 s%@sharedstatedir@%$sharedstatedir%g
3505 s%@localstatedir@%$localstatedir%g
3506 s%@libdir@%$libdir%g
3507 s%@includedir@%$includedir%g
3508 s%@oldincludedir@%$oldincludedir%g
3509 s%@infodir@%$infodir%g
3510 s%@mandir@%$mandir%g
3511 s%@builddir@%$builddir%g
3512 s%@stepmake@%$stepmake%g
3513 s%@package@%$package%g
3514 s%@PACKAGE@%$PACKAGE%g
3515 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
3516 s%@package_depth@%$package_depth%g
3517 s%@AUTOGENERATE@%$AUTOGENERATE%g
3518 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
3519 s%@host@%$host%g
3520 s%@host_alias@%$host_alias%g
3521 s%@host_cpu@%$host_cpu%g
3522 s%@host_vendor@%$host_vendor%g
3523 s%@host_os@%$host_os%g
3524 s%@MAKE@%$MAKE%g
3525 s%@FIND@%$FIND%g
3526 s%@TAR@%$TAR%g
3527 s%@BASH@%$BASH%g
3528 s%@PYTHON@%$PYTHON%g
3529 s%@program_prefix@%$program_prefix%g
3530 s%@program_suffix@%$program_suffix%g
3531 s%@ZIP@%$ZIP%g
3532 s%@LN@%$LN%g
3533 s%@LN_S@%$LN_S%g
3534 s%@INSTALL@%$INSTALL%g
3535 s%@PATHSEP@%$PATHSEP%g
3536 s%@DIRSEP@%$DIRSEP%g
3537 s%@DIR_DATADIR@%$DIR_DATADIR%g
3538 s%@subdirs@%$subdirs%g
3539 s%@CC@%$CC%g
3540 s%@LD@%$LD%g
3541 s%@cross_compiling@%$cross_compiling%g
3542 s%@ICFLAGS@%$ICFLAGS%g
3543 s%@ILDFLAGS@%$ILDFLAGS%g
3544 s%@DEFINES@%$DEFINES%g
3545 s%@EXTRA_LIBES@%$EXTRA_LIBES%g
3546 s%@CPP@%$CPP%g
3547 s%@CXX@%$CXX%g
3548 s%@CXXCPP@%$CXXCPP%g
3549 s%@YACC@%$YACC%g
3550 s%@BISON@%$BISON%g
3551 s%@FLEX@%$FLEX%g
3552 s%@AR@%$AR%g
3553 s%@RANLIB@%$RANLIB%g
3554 s%@localedir@%$localedir%g
3555 s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g
3556 s%@MSGFMT@%$MSGFMT%g
3557 s%@METAFONT@%$METAFONT%g
3558 s%@MFONT@%$MFONT%g
3559 s%@INIMETAFONT@%$INIMETAFONT%g
3560 s%@INIMFONT@%$INIMFONT%g
3561 s%@MFMODE@%$MFMODE%g
3562 s%@KPSEWHICH@%$KPSEWHICH%g
3563 s%@TFM_PATH@%$TFM_PATH%g
3564 s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g
3565 s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g
3566 s%@GUILE@%$GUILE%g
3567 s%@KPATHSEA@%$KPATHSEA%g
3568 s%@LIBOBJS@%$LIBOBJS%g
3569 s%@MAKEINFO@%$MAKEINFO%g
3570 s%@SPLITTING_MAKEINFO@%$SPLITTING_MAKEINFO%g
3571 s%@PERL@%$PERL%g
3572
3573 CEOF
3574 EOF
3575
3576 cat >> $CONFIG_STATUS <<\EOF
3577
3578 # Split the substitutions into bite-sized pieces for seds with
3579 # small command number limits, like on Digital OSF/1 and HP-UX.
3580 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3581 ac_file=1 # Number of current file.
3582 ac_beg=1 # First line for current file.
3583 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3584 ac_more_lines=:
3585 ac_sed_cmds=""
3586 while $ac_more_lines; do
3587   if test $ac_beg -gt 1; then
3588     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3589   else
3590     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3591   fi
3592   if test ! -s conftest.s$ac_file; then
3593     ac_more_lines=false
3594     rm -f conftest.s$ac_file
3595   else
3596     if test -z "$ac_sed_cmds"; then
3597       ac_sed_cmds="sed -f conftest.s$ac_file"
3598     else
3599       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3600     fi
3601     ac_file=`expr $ac_file + 1`
3602     ac_beg=$ac_end
3603     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3604   fi
3605 done
3606 if test -z "$ac_sed_cmds"; then
3607   ac_sed_cmds=cat
3608 fi
3609 EOF
3610
3611 cat >> $CONFIG_STATUS <<EOF
3612
3613 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
3614 EOF
3615 cat >> $CONFIG_STATUS <<\EOF
3616 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3617   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3618   case "$ac_file" in
3619   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3620        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3621   *) ac_file_in="${ac_file}.in" ;;
3622   esac
3623
3624   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3625
3626   # Remove last slash and all that follows it.  Not all systems have dirname.
3627   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3628   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3629     # The file is in a subdirectory.
3630     test ! -d "$ac_dir" && mkdir "$ac_dir"
3631     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3632     # A "../" for each directory in $ac_dir_suffix.
3633     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3634   else
3635     ac_dir_suffix= ac_dots=
3636   fi
3637
3638   case "$ac_given_srcdir" in
3639   .)  srcdir=.
3640       if test -z "$ac_dots"; then top_srcdir=.
3641       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3642   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3643   *) # Relative path.
3644     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3645     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3646   esac
3647
3648
3649   echo creating "$ac_file"
3650   rm -f "$ac_file"
3651   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3652   case "$ac_file" in
3653   *Makefile*) ac_comsub="1i\\
3654 # $configure_input" ;;
3655   *) ac_comsub= ;;
3656   esac
3657
3658   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3659   sed -e "$ac_comsub
3660 s%@configure_input@%$configure_input%g
3661 s%@srcdir@%$srcdir%g
3662 s%@top_srcdir@%$top_srcdir%g
3663 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3664 fi; done
3665 rm -f conftest.s*
3666
3667 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3668 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3669 #
3670 # ac_d sets the value in "#define NAME VALUE" lines.
3671 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3672 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3673 ac_dC='\3'
3674 ac_dD='%g'
3675 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3676 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3677 ac_uB='\([      ]\)%\1#\2define\3'
3678 ac_uC=' '
3679 ac_uD='\4%g'
3680 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3681 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3682 ac_eB='$%\1#\2define\3'
3683 ac_eC=' '
3684 ac_eD='%g'
3685
3686 if test "${CONFIG_HEADERS+set}" != set; then
3687 EOF
3688 cat >> $CONFIG_STATUS <<EOF
3689   CONFIG_HEADERS="$CONFIGFILE.h:config.hh.in"
3690 EOF
3691 cat >> $CONFIG_STATUS <<\EOF
3692 fi
3693 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3694   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3695   case "$ac_file" in
3696   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3697        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3698   *) ac_file_in="${ac_file}.in" ;;
3699   esac
3700
3701   echo creating $ac_file
3702
3703   rm -f conftest.frag conftest.in conftest.out
3704   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3705   cat $ac_file_inputs > conftest.in
3706
3707 EOF
3708
3709 # Transform confdefs.h into a sed script conftest.vals that substitutes
3710 # the proper values into config.h.in to produce config.h.  And first:
3711 # Protect against being on the right side of a sed subst in config.status.
3712 # Protect against being in an unquoted here document in config.status.
3713 rm -f conftest.vals
3714 cat > conftest.hdr <<\EOF
3715 s/[\\&%]/\\&/g
3716 s%[\\$`]%\\&%g
3717 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3718 s%ac_d%ac_u%gp
3719 s%ac_u%ac_e%gp
3720 EOF
3721 sed -n -f conftest.hdr confdefs.h > conftest.vals
3722 rm -f conftest.hdr
3723
3724 # This sed command replaces #undef with comments.  This is necessary, for
3725 # example, in the case of _POSIX_SOURCE, which is predefined and required
3726 # on some systems where configure will not decide to define it.
3727 cat >> conftest.vals <<\EOF
3728 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3729 EOF
3730
3731 # Break up conftest.vals because some shells have a limit on
3732 # the size of here documents, and old seds have small limits too.
3733
3734 rm -f conftest.tail
3735 while :
3736 do
3737   ac_lines=`grep -c . conftest.vals`
3738   # grep -c gives empty output for an empty file on some AIX systems.
3739   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3740   # Write a limited-size here document to conftest.frag.
3741   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3742   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3743   echo 'CEOF
3744   sed -f conftest.frag conftest.in > conftest.out
3745   rm -f conftest.in
3746   mv conftest.out conftest.in
3747 ' >> $CONFIG_STATUS
3748   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3749   rm -f conftest.vals
3750   mv conftest.tail conftest.vals
3751 done
3752 rm -f conftest.vals
3753
3754 cat >> $CONFIG_STATUS <<\EOF
3755   rm -f conftest.frag conftest.h
3756   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3757   cat conftest.in >> conftest.h
3758   rm -f conftest.in
3759   if cmp -s $ac_file conftest.h 2>/dev/null; then
3760     echo "$ac_file is unchanged"
3761     rm -f conftest.h
3762   else
3763     # Remove last slash and all that follows it.  Not all systems have dirname.
3764       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3765       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3766       # The file is in a subdirectory.
3767       test ! -d "$ac_dir" && mkdir "$ac_dir"
3768     fi
3769     rm -f $ac_file
3770     mv conftest.h $ac_file
3771   fi
3772 fi; done
3773
3774 EOF
3775 cat >> $CONFIG_STATUS <<EOF
3776
3777 EOF
3778 cat >> $CONFIG_STATUS <<\EOF
3779
3780 exit 0
3781 EOF
3782 chmod +x $CONFIG_STATUS
3783 rm -fr confdefs* $ac_clean_files
3784 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3785
3786 if test "$no_recursion" != yes; then
3787
3788   # Remove --cache-file and --srcdir arguments so they do not pile up.
3789   ac_sub_configure_args=
3790   ac_prev=
3791   for ac_arg in $ac_configure_args; do
3792     if test -n "$ac_prev"; then
3793       ac_prev=
3794       continue
3795     fi
3796     case "$ac_arg" in
3797     -cache-file | --cache-file | --cache-fil | --cache-fi \
3798     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3799       ac_prev=cache_file ;;
3800     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3801     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3802       ;;
3803     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3804       ac_prev=srcdir ;;
3805     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3806       ;;
3807     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3808     esac
3809   done
3810
3811   for ac_config_dir in stepmake; do
3812
3813     # Do not complain, so a configure script can configure whichever
3814     # parts of a large source tree are present.
3815     if test ! -d $srcdir/$ac_config_dir; then
3816       continue
3817     fi
3818
3819     echo configuring in $ac_config_dir
3820
3821     case "$srcdir" in
3822     .) ;;
3823     *)
3824       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3825       else
3826         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3827       fi
3828       ;;
3829     esac
3830
3831     ac_popdir=`pwd`
3832     cd $ac_config_dir
3833
3834       # A "../" for each directory in /$ac_config_dir.
3835       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3836
3837     case "$srcdir" in
3838     .) # No --srcdir option.  We are building in place.
3839       ac_sub_srcdir=$srcdir ;;
3840     /*) # Absolute path.
3841       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3842     *) # Relative path.
3843       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3844     esac
3845
3846     # Check for guested configure; otherwise get Cygnus style configure.
3847     if test -f $ac_sub_srcdir/configure; then
3848       ac_sub_configure=$ac_sub_srcdir/configure
3849     elif test -f $ac_sub_srcdir/configure.in; then
3850       ac_sub_configure=$ac_configure
3851     else
3852       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3853       ac_sub_configure=
3854     fi
3855
3856     # The recursion is here.
3857     if test -n "$ac_sub_configure"; then
3858
3859       # Make the cache file name correct relative to the subdirectory.
3860       case "$cache_file" in
3861       /*) ac_sub_cache_file=$cache_file ;;
3862       *) # Relative path.
3863         ac_sub_cache_file="$ac_dots$cache_file" ;;
3864       esac
3865
3866       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3867       # The eval makes quoting arguments work.
3868       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3869       then :
3870       else
3871         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3872       fi
3873     fi
3874
3875     cd $ac_popdir
3876   done
3877 fi
3878
3879
3880     # regular in-place build
3881     # test for srcdir_build = yes ?
3882     if test "$builddir" = "."; then
3883         rm -f $srcdir/GNUmakefile
3884         cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
3885         chmod 444 $srcdir/GNUmakefile
3886     else # --srcdir build
3887         rm -f GNUmakefile
3888         cp $srcdir/make/srcdir.make.in GNUmakefile
3889         chmod 444 GNUmakefile
3890     fi
3891
3892
3893 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
3894
3895 cat <<EOF
3896
3897 Type:
3898     make$mc all       to build LilyPond
3899     make$mc install   to install LilyPond
3900     make$mc help      to see all possible targets
3901
3902 Do not worry if ./Documentation or ./mutopia should not build.
3903 EOF