]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/configure
release: 1.1.19
[lilypond.git] / stepmake / 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
57 # Guess values for system-dependent variables and create Makefiles.
58 # Generated automatically using autoconf version 2.12 
59 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
60 #
61 # This configure script is free software; the Free Software Foundation
62 # gives unlimited permission to copy, distribute and modify it.
63
64 # Defaults:
65 ac_help=
66 ac_default_prefix=/usr/local
67 # Any additions from configure.in:
68 ac_help="$ac_help
69   enable-config=FILE      put configure settings in config-FILE.make"
70 ac_help="$ac_help
71   with-localedir=LOCALE   use LOCALE as locale dir. Default: PREFIX/share/locale "
72 ac_help="$ac_help
73   with-lang=LANG          use LANG as language to emit messages"
74
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
78 build=NONE
79 cache_file=./config.cache
80 exec_prefix=NONE
81 host=NONE
82 no_create=
83 nonopt=NONE
84 no_recursion=
85 prefix=NONE
86 program_prefix=NONE
87 program_suffix=NONE
88 program_transform_name=s,x,x,
89 silent=
90 site=
91 srcdir=
92 target=NONE
93 verbose=
94 x_includes=NONE
95 x_libraries=NONE
96 bindir='${exec_prefix}/bin'
97 sbindir='${exec_prefix}/sbin'
98 libexecdir='${exec_prefix}/libexec'
99 datadir='${prefix}/share'
100 sysconfdir='${prefix}/etc'
101 sharedstatedir='${prefix}/com'
102 localstatedir='${prefix}/var'
103 libdir='${exec_prefix}/lib'
104 includedir='${prefix}/include'
105 oldincludedir='/usr/include'
106 infodir='${prefix}/info'
107 mandir='${prefix}/man'
108
109 # Initialize some other variables.
110 subdirs=
111 MFLAGS= MAKEFLAGS=
112 # Maximum number of lines to put in a shell here document.
113 ac_max_here_lines=12
114
115 ac_prev=
116 for ac_option
117 do
118
119   # If the previous option needs an argument, assign it.
120   if test -n "$ac_prev"; then
121     eval "$ac_prev=\$ac_option"
122     ac_prev=
123     continue
124   fi
125
126   case "$ac_option" in
127   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
128   *) ac_optarg= ;;
129   esac
130
131   # Accept the important Cygnus configure options, so we can diagnose typos.
132
133   case "$ac_option" in
134
135   -bindir | --bindir | --bindi | --bind | --bin | --bi)
136     ac_prev=bindir ;;
137   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
138     bindir="$ac_optarg" ;;
139
140   -build | --build | --buil | --bui | --bu)
141     ac_prev=build ;;
142   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
143     build="$ac_optarg" ;;
144
145   -cache-file | --cache-file | --cache-fil | --cache-fi \
146   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
147     ac_prev=cache_file ;;
148   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
149   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
150     cache_file="$ac_optarg" ;;
151
152   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
153     ac_prev=datadir ;;
154   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
155   | --da=*)
156     datadir="$ac_optarg" ;;
157
158   -disable-* | --disable-*)
159     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
160     # Reject names that are not valid shell variable names.
161     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
162       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163     fi
164     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165     eval "enable_${ac_feature}=no" ;;
166
167   -enable-* | --enable-*)
168     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
169     # Reject names that are not valid shell variable names.
170     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
171       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172     fi
173     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
174     case "$ac_option" in
175       *=*) ;;
176       *) ac_optarg=yes ;;
177     esac
178     eval "enable_${ac_feature}='$ac_optarg'" ;;
179
180   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
181   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
182   | --exec | --exe | --ex)
183     ac_prev=exec_prefix ;;
184   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
185   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
186   | --exec=* | --exe=* | --ex=*)
187     exec_prefix="$ac_optarg" ;;
188
189   -gas | --gas | --ga | --g)
190     # Obsolete; use --with-gas.
191     with_gas=yes ;;
192
193   -help | --help | --hel | --he)
194     # Omit some internal or obsolete options to make the list less imposing.
195     # This message is too long to be a string in the A/UX 3.1 sh.
196     cat << EOF
197 Usage: configure [options] [host]
198 Options: [defaults in brackets after descriptions]
199 Configuration:
200   --cache-file=FILE       cache test results in FILE
201   --help                  print this message
202   --no-create             do not create output files
203   --quiet, --silent       do not print \`checking...' messages
204   --version               print the version of autoconf that created configure
205 Directory and file names:
206   --prefix=PREFIX         install architecture-independent files in PREFIX
207                           [$ac_default_prefix]
208   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
209                           [same as prefix]
210   --bindir=DIR            user executables in DIR [EPREFIX/bin]
211   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
212   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
213   --datadir=DIR           read-only architecture-independent data in DIR
214                           [PREFIX/share]
215   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
216   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
217                           [PREFIX/com]
218   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
219   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
220   --includedir=DIR        C header files in DIR [PREFIX/include]
221   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
222   --infodir=DIR           info documentation in DIR [PREFIX/info]
223   --mandir=DIR            man documentation in DIR [PREFIX/man]
224   --srcdir=DIR            find the sources in DIR [configure dir or ..]
225   --program-prefix=PREFIX prepend PREFIX to installed program names
226   --program-suffix=SUFFIX append SUFFIX to installed program names
227   --program-transform-name=PROGRAM
228                           run sed PROGRAM on installed program names
229 EOF
230     cat << EOF
231 Host type:
232   --build=BUILD           configure for building on BUILD [BUILD=HOST]
233   --host=HOST             configure for HOST [guessed]
234   --target=TARGET         configure for TARGET [TARGET=HOST]
235 Features and packages:
236   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
237   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
238   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
239   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
240   --x-includes=DIR        X include files are in DIR
241   --x-libraries=DIR       X library files are in DIR
242 EOF
243     if test -n "$ac_help"; then
244       echo "--enable and --with options recognized:$ac_help"
245     fi
246     exit 0 ;;
247
248   -host | --host | --hos | --ho)
249     ac_prev=host ;;
250   -host=* | --host=* | --hos=* | --ho=*)
251     host="$ac_optarg" ;;
252
253   -includedir | --includedir | --includedi | --included | --include \
254   | --includ | --inclu | --incl | --inc)
255     ac_prev=includedir ;;
256   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
257   | --includ=* | --inclu=* | --incl=* | --inc=*)
258     includedir="$ac_optarg" ;;
259
260   -infodir | --infodir | --infodi | --infod | --info | --inf)
261     ac_prev=infodir ;;
262   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
263     infodir="$ac_optarg" ;;
264
265   -libdir | --libdir | --libdi | --libd)
266     ac_prev=libdir ;;
267   -libdir=* | --libdir=* | --libdi=* | --libd=*)
268     libdir="$ac_optarg" ;;
269
270   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
271   | --libexe | --libex | --libe)
272     ac_prev=libexecdir ;;
273   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
274   | --libexe=* | --libex=* | --libe=*)
275     libexecdir="$ac_optarg" ;;
276
277   -localstatedir | --localstatedir | --localstatedi | --localstated \
278   | --localstate | --localstat | --localsta | --localst \
279   | --locals | --local | --loca | --loc | --lo)
280     ac_prev=localstatedir ;;
281   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
282   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
283   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
284     localstatedir="$ac_optarg" ;;
285
286   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
287     ac_prev=mandir ;;
288   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
289     mandir="$ac_optarg" ;;
290
291   -nfp | --nfp | --nf)
292     # Obsolete; use --without-fp.
293     with_fp=no ;;
294
295   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
296   | --no-cr | --no-c)
297     no_create=yes ;;
298
299   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
300   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301     no_recursion=yes ;;
302
303   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
304   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
305   | --oldin | --oldi | --old | --ol | --o)
306     ac_prev=oldincludedir ;;
307   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
308   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
309   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
310     oldincludedir="$ac_optarg" ;;
311
312   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
313     ac_prev=prefix ;;
314   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315     prefix="$ac_optarg" ;;
316
317   -program-prefix | --program-prefix | --program-prefi | --program-pref \
318   | --program-pre | --program-pr | --program-p)
319     ac_prev=program_prefix ;;
320   -program-prefix=* | --program-prefix=* | --program-prefi=* \
321   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
322     program_prefix="$ac_optarg" ;;
323
324   -program-suffix | --program-suffix | --program-suffi | --program-suff \
325   | --program-suf | --program-su | --program-s)
326     ac_prev=program_suffix ;;
327   -program-suffix=* | --program-suffix=* | --program-suffi=* \
328   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
329     program_suffix="$ac_optarg" ;;
330
331   -program-transform-name | --program-transform-name \
332   | --program-transform-nam | --program-transform-na \
333   | --program-transform-n | --program-transform- \
334   | --program-transform | --program-transfor \
335   | --program-transfo | --program-transf \
336   | --program-trans | --program-tran \
337   | --progr-tra | --program-tr | --program-t)
338     ac_prev=program_transform_name ;;
339   -program-transform-name=* | --program-transform-name=* \
340   | --program-transform-nam=* | --program-transform-na=* \
341   | --program-transform-n=* | --program-transform-=* \
342   | --program-transform=* | --program-transfor=* \
343   | --program-transfo=* | --program-transf=* \
344   | --program-trans=* | --program-tran=* \
345   | --progr-tra=* | --program-tr=* | --program-t=*)
346     program_transform_name="$ac_optarg" ;;
347
348   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
349   | -silent | --silent | --silen | --sile | --sil)
350     silent=yes ;;
351
352   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
353     ac_prev=sbindir ;;
354   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
355   | --sbi=* | --sb=*)
356     sbindir="$ac_optarg" ;;
357
358   -sharedstatedir | --sharedstatedir | --sharedstatedi \
359   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
360   | --sharedst | --shareds | --shared | --share | --shar \
361   | --sha | --sh)
362     ac_prev=sharedstatedir ;;
363   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
364   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
365   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
366   | --sha=* | --sh=*)
367     sharedstatedir="$ac_optarg" ;;
368
369   -site | --site | --sit)
370     ac_prev=site ;;
371   -site=* | --site=* | --sit=*)
372     site="$ac_optarg" ;;
373
374   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
375     ac_prev=srcdir ;;
376   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
377     srcdir="$ac_optarg" ;;
378
379   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
380   | --syscon | --sysco | --sysc | --sys | --sy)
381     ac_prev=sysconfdir ;;
382   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
383   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
384     sysconfdir="$ac_optarg" ;;
385
386   -target | --target | --targe | --targ | --tar | --ta | --t)
387     ac_prev=target ;;
388   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
389     target="$ac_optarg" ;;
390
391   -v | -verbose | --verbose | --verbos | --verbo | --verb)
392     verbose=yes ;;
393
394   -version | --version | --versio | --versi | --vers)
395     echo "configure generated by autoconf version 2.12"
396     exit 0 ;;
397
398   -with-* | --with-*)
399     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
400     # Reject names that are not valid shell variable names.
401     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
402       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403     fi
404     ac_package=`echo $ac_package| sed 's/-/_/g'`
405     case "$ac_option" in
406       *=*) ;;
407       *) ac_optarg=yes ;;
408     esac
409     eval "with_${ac_package}='$ac_optarg'" ;;
410
411   -without-* | --without-*)
412     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
413     # Reject names that are not valid shell variable names.
414     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
415       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416     fi
417     ac_package=`echo $ac_package| sed 's/-/_/g'`
418     eval "with_${ac_package}=no" ;;
419
420   --x)
421     # Obsolete; use --with-x.
422     with_x=yes ;;
423
424   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
425   | --x-incl | --x-inc | --x-in | --x-i)
426     ac_prev=x_includes ;;
427   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
428   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
429     x_includes="$ac_optarg" ;;
430
431   -x-libraries | --x-libraries | --x-librarie | --x-librari \
432   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
433     ac_prev=x_libraries ;;
434   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
435   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
436     x_libraries="$ac_optarg" ;;
437
438   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
439     ;;
440
441   *)
442     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
443       echo "configure: warning: $ac_option: invalid host type" 1>&2
444     fi
445     if test "x$nonopt" != xNONE; then
446       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
447     fi
448     nonopt="$ac_option"
449     ;;
450
451   esac
452 done
453
454 if test -n "$ac_prev"; then
455   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 fi
457
458 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459
460 # File descriptor usage:
461 # 0 standard input
462 # 1 file creation
463 # 2 errors and warnings
464 # 3 some systems may open it to /dev/tty
465 # 4 used on the Kubota Titan
466 # 6 checking for... messages and results
467 # 5 compiler messages saved in config.log
468 if test "$silent" = yes; then
469   exec 6>/dev/null
470 else
471   exec 6>&1
472 fi
473 exec 5>./config.log
474
475 echo "\
476 This file contains any messages produced by compilers while
477 running configure, to aid debugging if configure makes a mistake.
478 " 1>&5
479
480 # Strip out --no-create and --no-recursion so they do not pile up.
481 # Also quote any args containing shell metacharacters.
482 ac_configure_args=
483 for ac_arg
484 do
485   case "$ac_arg" in
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c) ;;
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
490   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
491   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
492   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
493   esac
494 done
495
496 # NLS nuisances.
497 # Only set these to C if already set.  These must not be set unconditionally
498 # because not all systems understand e.g. LANG=C (notably SCO).
499 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
500 # Non-C LC_CTYPE values break the ctype check.
501 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
502 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
503 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
504 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
505
506 # confdefs.h avoids OS command line length limits that DEFS can exceed.
507 rm -rf conftest* confdefs.h
508 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
509 echo > confdefs.h
510
511 # A filename unique to this package, relative to the directory that
512 # configure is in, which we can look for to find out if srcdir is correct.
513 ac_unique_file=make/stepmake.lsm.in
514
515 # Find the source files, if location was not specified.
516 if test -z "$srcdir"; then
517   ac_srcdir_defaulted=yes
518   # Try the directory containing this script, then its parent.
519   ac_prog=$0
520   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
521   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
522   srcdir=$ac_confdir
523   if test ! -r $srcdir/$ac_unique_file; then
524     srcdir=..
525   fi
526 else
527   ac_srcdir_defaulted=no
528 fi
529 if test ! -r $srcdir/$ac_unique_file; then
530   if test "$ac_srcdir_defaulted" = yes; then
531     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
532   else
533     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534   fi
535 fi
536 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537
538 # Prefer explicitly selected file to automatically selected ones.
539 if test -z "$CONFIG_SITE"; then
540   if test "x$prefix" != xNONE; then
541     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
542   else
543     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544   fi
545 fi
546 for ac_site_file in $CONFIG_SITE; do
547   if test -r "$ac_site_file"; then
548     echo "loading site script $ac_site_file"
549     . "$ac_site_file"
550   fi
551 done
552
553 if test -r "$cache_file"; then
554   echo "loading cache $cache_file"
555   . $cache_file
556 else
557   echo "creating cache $cache_file"
558   > $cache_file
559 fi
560
561 ac_ext=c
562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
563 ac_cpp='$CPP $CPPFLAGS'
564 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
565 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
566 cross_compiling=$ac_cv_prog_cc_cross
567
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571     ac_n= ac_c='
572 ' ac_t='        '
573   else
574     ac_n=-n ac_c= ac_t=
575   fi
576 else
577   ac_n= ac_c='\c' ac_t=
578 fi
579
580
581
582
583 # Bootstrap StepMake configure
584
585
586     . $srcdir/VERSION
587     FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
588     if test x$MY_PATCH_LEVEL != x; then
589         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
590     fi
591
592     # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
593         PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
594     package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
595     
596     # No versioning on directory names of sub-packages 
597     # urg, urg
598     stepmake=${datadir}/stepmake
599     presome=${prefix}
600     if test "$prefix" = "NONE"; then
601             presome=${ac_default_prefix}
602     fi
603     stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
604
605     if test "x$PACKAGE" = "xSTEPMAKE"; then
606         echo Stepmake package!
607         (cd stepmake; rm -f stepmake; ln -s ../stepmake .)
608         (cd stepmake; rm -f bin; ln -s ../bin .)
609         ac_aux_dir=
610 for ac_dir in bin $srcdir/bin; do
611   if test -f $ac_dir/install-sh; then
612     ac_aux_dir=$ac_dir
613     ac_install_sh="$ac_aux_dir/install-sh -c"
614     break
615   elif test -f $ac_dir/install.sh; then
616     ac_aux_dir=$ac_dir
617     ac_install_sh="$ac_aux_dir/install.sh -c"
618     break
619   fi
620 done
621 if test -z "$ac_aux_dir"; then
622   { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
623 fi
624 ac_config_guess=$ac_aux_dir/config.guess
625 ac_config_sub=$ac_aux_dir/config.sub
626 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
627
628         stepmake=stepmake
629     else
630         echo Package: $PACKAGE
631         # Check for installed stepmake
632         if test -d $stepmake; then
633             echo Using installed stepmake: $stepmake
634         else
635             stepmake='$(depth)'/stepmake
636             echo Using local stepmake: $datadir/stepmake not found
637         fi
638         ac_aux_dir=
639 for ac_dir in \
640           $HOME/usr/local/share/stepmake/bin\
641           $HOME/usr/local/lib/stepmake/bin\
642           $HOME/usr/share/stepmake/bin\
643           $HOME/usr/lib/stepmake/bin\
644           /usr/local/share/stepmake/bin\
645           /usr/local/lib/stepmake/bin\
646           /usr/share/stepmake/bin\
647           /usr/lib/stepmake/bin\
648           stepmake/bin\
649          $srcdir/\
650           $HOME/usr/local/share/stepmake/bin\
651           $HOME/usr/local/lib/stepmake/bin\
652           $HOME/usr/share/stepmake/bin\
653           $HOME/usr/lib/stepmake/bin\
654           /usr/local/share/stepmake/bin\
655           /usr/local/lib/stepmake/bin\
656           /usr/share/stepmake/bin\
657           /usr/lib/stepmake/bin\
658           stepmake/bin\
659         ; do
660   if test -f $ac_dir/install-sh; then
661     ac_aux_dir=$ac_dir
662     ac_install_sh="$ac_aux_dir/install-sh -c"
663     break
664   elif test -f $ac_dir/install.sh; then
665     ac_aux_dir=$ac_dir
666     ac_install_sh="$ac_aux_dir/install.sh -c"
667     break
668   fi
669 done
670 if test -z "$ac_aux_dir"; then
671   { echo "configure: error: can not find install-sh or install.sh in \
672           $HOME/usr/local/share/stepmake/bin\
673           $HOME/usr/local/lib/stepmake/bin\
674           $HOME/usr/share/stepmake/bin\
675           $HOME/usr/lib/stepmake/bin\
676           /usr/local/share/stepmake/bin\
677           /usr/local/lib/stepmake/bin\
678           /usr/share/stepmake/bin\
679           /usr/lib/stepmake/bin\
680           stepmake/bin\
681          $srcdir/\
682           $HOME/usr/local/share/stepmake/bin\
683           $HOME/usr/local/lib/stepmake/bin\
684           $HOME/usr/share/stepmake/bin\
685           $HOME/usr/lib/stepmake/bin\
686           /usr/local/share/stepmake/bin\
687           /usr/local/lib/stepmake/bin\
688           /usr/share/stepmake/bin\
689           /usr/lib/stepmake/bin\
690           stepmake/bin\
691         " 1>&2; exit 1; }
692 fi
693 ac_config_guess=$ac_aux_dir/config.guess
694 ac_config_sub=$ac_aux_dir/config.sub
695 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
696
697     fi
698
699     
700     
701     
702     
703     cat >> confdefs.h <<EOF
704 #define PACKAGE "${PACKAGE_NAME}"
705 EOF
706
707     cat >> confdefs.h <<EOF
708 #define TOPLEVEL_VERSION "${FULL_VERSION}"
709 EOF
710
711
712     package_depth=`dirname $cache_file`
713     
714
715     AUTOGENERATE="This file was automatically generated by configure"
716     
717     absolute_builddir="`pwd`"
718     
719
720     STATE_VECTOR=`ls make/STATE-VECTOR 2>/dev/null`
721     if test "x$STATE_VECTOR" != "x"; then
722         STATE_VECTOR="\$(depth)/$STATE_VECTOR"
723     fi
724     
725
726     CONFIGSUFFIX=
727     # Check whether --enable-config or --disable-config was given.
728 if test "${enable_config+set}" = set; then
729   enableval="$enable_config"
730   CONFIGSUFFIX=$enableval
731 fi
732
733
734     if test "$CONFIGSUFFIX" != "" ; then
735         CONFIGFILE=config-$CONFIGSUFFIX
736     else
737         CONFIGFILE=config
738     fi
739     
740      
741     
742 # Make sure we can run config.sub.
743 if $ac_config_sub sun4 >/dev/null 2>&1; then :
744 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
745 fi
746
747 echo $ac_n "checking host system type""... $ac_c" 1>&6
748 echo "configure:749: checking host system type" >&5
749
750 host_alias=$host
751 case "$host_alias" in
752 NONE)
753   case $nonopt in
754   NONE)
755     if host_alias=`$ac_config_guess`; then :
756     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
757     fi ;;
758   *) host_alias=$nonopt ;;
759   esac ;;
760 esac
761
762 host=`$ac_config_sub $host_alias`
763 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
764 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
765 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
766 echo "$ac_t""$host" 1>&6
767
768     for ac_prog in make
769 do
770 # Extract the first word of "$ac_prog", so it can be a program name with args.
771 set dummy $ac_prog; ac_word=$2
772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
773 echo "configure:774: checking for $ac_word" >&5
774 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
775   echo $ac_n "(cached) $ac_c" 1>&6
776 else
777   if test -n "$MAKE"; then
778   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
779 else
780   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
781   for ac_dir in $PATH; do
782     test -z "$ac_dir" && ac_dir=.
783     if test -f $ac_dir/$ac_word; then
784       ac_cv_prog_MAKE="$ac_prog"
785       break
786     fi
787   done
788   IFS="$ac_save_ifs"
789 fi
790 fi
791 MAKE="$ac_cv_prog_MAKE"
792 if test -n "$MAKE"; then
793   echo "$ac_t""$MAKE" 1>&6
794 else
795   echo "$ac_t""no" 1>&6
796 fi
797
798 test -n "$MAKE" && break
799 done
800 test -n "$MAKE" || MAKE="error"
801
802     for ac_prog in find
803 do
804 # Extract the first word of "$ac_prog", so it can be a program name with args.
805 set dummy $ac_prog; ac_word=$2
806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
807 echo "configure:808: checking for $ac_word" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
809   echo $ac_n "(cached) $ac_c" 1>&6
810 else
811   if test -n "$FIND"; then
812   ac_cv_prog_FIND="$FIND" # Let the user override the test.
813 else
814   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
815   for ac_dir in $PATH; do
816     test -z "$ac_dir" && ac_dir=.
817     if test -f $ac_dir/$ac_word; then
818       ac_cv_prog_FIND="$ac_prog"
819       break
820     fi
821   done
822   IFS="$ac_save_ifs"
823 fi
824 fi
825 FIND="$ac_cv_prog_FIND"
826 if test -n "$FIND"; then
827   echo "$ac_t""$FIND" 1>&6
828 else
829   echo "$ac_t""no" 1>&6
830 fi
831
832 test -n "$FIND" && break
833 done
834 test -n "$FIND" || FIND="error"
835
836
837
838
839     for ac_prog in tar
840 do
841 # Extract the first word of "$ac_prog", so it can be a program name with args.
842 set dummy $ac_prog; ac_word=$2
843 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
844 echo "configure:845: checking for $ac_word" >&5
845 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
846   echo $ac_n "(cached) $ac_c" 1>&6
847 else
848   if test -n "$TAR"; then
849   ac_cv_prog_TAR="$TAR" # Let the user override the test.
850 else
851   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
852   for ac_dir in $PATH; do
853     test -z "$ac_dir" && ac_dir=.
854     if test -f $ac_dir/$ac_word; then
855       ac_cv_prog_TAR="$ac_prog"
856       break
857     fi
858   done
859   IFS="$ac_save_ifs"
860 fi
861 fi
862 TAR="$ac_cv_prog_TAR"
863 if test -n "$TAR"; then
864   echo "$ac_t""$TAR" 1>&6
865 else
866   echo "$ac_t""no" 1>&6
867 fi
868
869 test -n "$TAR" && break
870 done
871 test -n "$TAR" || TAR="error"
872
873     for ac_prog in bash
874 do
875 # Extract the first word of "$ac_prog", so it can be a program name with args.
876 set dummy $ac_prog; ac_word=$2
877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
878 echo "configure:879: checking for $ac_word" >&5
879 if eval "test \"`echo '$''{'ac_cv_prog_BASH'+set}'`\" = set"; then
880   echo $ac_n "(cached) $ac_c" 1>&6
881 else
882   if test -n "$BASH"; then
883   ac_cv_prog_BASH="$BASH" # Let the user override the test.
884 else
885   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
886   for ac_dir in $PATH; do
887     test -z "$ac_dir" && ac_dir=.
888     if test -f $ac_dir/$ac_word; then
889       ac_cv_prog_BASH="$ac_prog"
890       break
891     fi
892   done
893   IFS="$ac_save_ifs"
894 fi
895 fi
896 BASH="$ac_cv_prog_BASH"
897 if test -n "$BASH"; then
898   echo "$ac_t""$BASH" 1>&6
899 else
900   echo "$ac_t""no" 1>&6
901 fi
902
903 test -n "$BASH" && break
904 done
905 test -n "$BASH" || BASH="/bin/sh"
906
907
908     # Extract the first word of "${PYTHON:-python}", so it can be a program name with args.
909 set dummy ${PYTHON:-python}; ac_word=$2
910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
911 echo "configure:912: checking for $ac_word" >&5
912 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
913   echo $ac_n "(cached) $ac_c" 1>&6
914 else
915   case "$PYTHON" in
916   /*)
917   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
918   ;;
919   *)
920   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
921   for ac_dir in $PATH; do
922     test -z "$ac_dir" && ac_dir=.
923     if test -f $ac_dir/$ac_word; then
924       ac_cv_path_PYTHON="$ac_dir/$ac_word"
925       break
926     fi
927   done
928   IFS="$ac_save_ifs"
929   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
930   ;;
931 esac
932 fi
933 PYTHON="$ac_cv_path_PYTHON"
934 if test -n "$PYTHON"; then
935   echo "$ac_t""$PYTHON" 1>&6
936 else
937   echo "$ac_t""no" 1>&6
938 fi
939
940     
941
942
943     
944         result="`echo \"$MAKE\" | grep echo`"
945         if test "x$MAKE" = "xerror" -o "x$result" != "x"; then
946                 
947     echo "configure: warning: can\'t find GNU make. You should install GNU make" 1>&2
948     warn_b=yes
949
950         fi
951
952     if test $MAKE != "error" ; then
953         $MAKE -v| grep GNU > /dev/null
954         if test "$?" = 1
955         then
956                 
957     echo "configure: warning: Please install *GNU* make" 1>&2
958     warn_b=yes
959  
960         fi 
961     fi 
962
963     
964         result="`echo \"$PYTHON\" | grep echo`"
965         if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then
966                 
967     echo "configure: warning: can\'t find python. You should install Python" 1>&2
968     warn_b=yes
969
970         fi
971
972
973     if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then
974         LN=cp # hard link does not work under cygnus-nt
975         LN_S=cp # symbolic link does not work for native nt
976         ZIP="zip -r -9" #
977         DOTEXE=.exe
978         # urg
979         # DIRSEP='\\'
980         # PATHSEP=';'
981         #
982         # cygwin fixes all these things.  
983         # it seems these were used because of dos-style TEXINPUTS and
984         # MFINPUTS needed for miktex.
985         # but this breaks parsing of all other cygwin/unix style paths.
986         #
987         # if your (mik)tex breaks, make a:
988         #    /usr/local/bin/tex:
989         #    #!/bin/sh
990         #    TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex 
991         #
992         # and
993         #
994         #    /usr/local/bin/mf:
995         #    #!/bin/sh
996         #    MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf 
997         #
998         # this way, you may have buildscripts/out/lilypond-profile 
999         # 'automatically' sourced from /usr/etc/profile.d/ too.
1000         #
1001         DIRSEP='/'
1002         PATHSEP=':'
1003         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
1004     else
1005         DIRSEP='/'
1006         PATHSEP=':'
1007         LN=ln
1008         LN_S='ln -s'
1009         ZIP="zip -r -9"
1010         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
1011     fi
1012     
1013     
1014     
1015     
1016     
1017     cat >> confdefs.h <<EOF
1018 #define DIRSEP '${DIRSEP}'
1019 EOF
1020
1021     cat >> confdefs.h <<EOF
1022 #define PATHSEP '${PATHSEP}'
1023 EOF
1024
1025     
1026     
1027   
1028    
1029     
1030     if test "$datadir" = "\${prefix}/share"; then
1031             datadir='${prefix}/share/'$package
1032     fi
1033     DIR_DATADIR=${datadir}
1034     presome=${prefix}
1035     if test "$prefix" = "NONE"; then
1036             presome=${ac_default_prefix}
1037     fi
1038     DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
1039     
1040     
1041     cat >> confdefs.h <<EOF
1042 #define DIR_DATADIR "${DIR_DATADIR}"
1043 EOF
1044
1045
1046
1047
1048 # For all packages except the StepMake package itself
1049 # AC_CONFIG_SUBDIRS(stepmake)
1050
1051 # Uncomment the configuration options your package needs.
1052 # AC_STEPMAKE_COMPILE
1053 # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h)
1054 # AC_STEPMAKE_CXX
1055 # AC_STEPMAKE_GXX
1056 # AC_STEPMAKE_CXXTEMPLATE
1057 # AC_STEPMAKE_LEXYACC
1058 # AC_STEPMAKE_LIB
1059 # AC_STEPMAKE_LIBTOOL
1060
1061     lang=English
1062     ALL_LINGUAS="en nl"
1063
1064     # with/enable ??
1065     # Check whether --with-localedir or --without-localedir was given.
1066 if test "${with_localedir+set}" = set; then
1067   withval="$with_localedir"
1068   localedir=$with_localedir
1069 else
1070   localedir='${prefix}/share/locale'
1071 fi
1072
1073
1074     # Check whether --with-lang or --without-lang was given.
1075 if test "${with_lang+set}" = set; then
1076   withval="$with_lang"
1077   language=$with_lang
1078 else
1079   language=English
1080 fi
1081
1082
1083     echo $ac_n "checking language""... $ac_c" 1>&6
1084 echo "configure:1085: checking language" >&5    
1085     case "$language" in
1086       En* | en* | Am* | am* | US* | us*)
1087             lang=English;;
1088       NL | nl | Du* | du* | Ned* | ned*)
1089             lang=Dutch;;
1090       "")
1091             lang=English;;
1092       *)
1093             lang=unknown;;
1094     esac
1095     echo "$ac_t""$lang" 1>&6
1096
1097     if test "$lang" = "unknown" ; then
1098         
1099     echo "configure: warning: $language not supported; available are: $ALL_LINGUAS" 1>&2
1100     warn_b=yes
1101
1102     fi
1103
1104
1105 # AC_STEPMAKE_GETTEXT
1106 # AC_STEPMAKE_MAN
1107 # AC_STEPMAKE_MSGFMT
1108 # AC_STEPMAKE_TEXMF
1109 # AC_STEPMAKE_TEXMF_DIRS
1110
1111     if test "x$YODL" = "x"; then 
1112         for ac_prog in striproff
1113 do
1114 # Extract the first word of "$ac_prog", so it can be a program name with args.
1115 set dummy $ac_prog; ac_word=$2
1116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1117 echo "configure:1118: checking for $ac_word" >&5
1118 if eval "test \"`echo '$''{'ac_cv_prog_STRIPROFF'+set}'`\" = set"; then
1119   echo $ac_n "(cached) $ac_c" 1>&6
1120 else
1121   if test -n "$STRIPROFF"; then
1122   ac_cv_prog_STRIPROFF="$STRIPROFF" # Let the user override the test.
1123 else
1124   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1125   for ac_dir in $PATH; do
1126     test -z "$ac_dir" && ac_dir=.
1127     if test -f $ac_dir/$ac_word; then
1128       ac_cv_prog_STRIPROFF="$ac_prog"
1129       break
1130     fi
1131   done
1132   IFS="$ac_save_ifs"
1133 fi
1134 fi
1135 STRIPROFF="$ac_cv_prog_STRIPROFF"
1136 if test -n "$STRIPROFF"; then
1137   echo "$ac_t""$STRIPROFF" 1>&6
1138 else
1139   echo "$ac_t""no" 1>&6
1140 fi
1141
1142 test -n "$STRIPROFF" && break
1143 done
1144 test -n "$STRIPROFF" || STRIPROFF="-echo no striproff"
1145
1146         for ac_prog in yodl
1147 do
1148 # Extract the first word of "$ac_prog", so it can be a program name with args.
1149 set dummy $ac_prog; ac_word=$2
1150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1151 echo "configure:1152: checking for $ac_word" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_YODL'+set}'`\" = set"; then
1153   echo $ac_n "(cached) $ac_c" 1>&6
1154 else
1155   if test -n "$YODL"; then
1156   ac_cv_prog_YODL="$YODL" # Let the user override the test.
1157 else
1158   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1159   for ac_dir in $PATH; do
1160     test -z "$ac_dir" && ac_dir=.
1161     if test -f $ac_dir/$ac_word; then
1162       ac_cv_prog_YODL="$ac_prog"
1163       break
1164     fi
1165   done
1166   IFS="$ac_save_ifs"
1167 fi
1168 fi
1169 YODL="$ac_cv_prog_YODL"
1170 if test -n "$YODL"; then
1171   echo "$ac_t""$YODL" 1>&6
1172 else
1173   echo "$ac_t""no" 1>&6
1174 fi
1175
1176 test -n "$YODL" && break
1177 done
1178 test -n "$YODL" || YODL="-echo no yodl"
1179
1180         for ac_prog in yodl2html
1181 do
1182 # Extract the first word of "$ac_prog", so it can be a program name with args.
1183 set dummy $ac_prog; ac_word=$2
1184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1185 echo "configure:1186: checking for $ac_word" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_YODL2HTML'+set}'`\" = set"; then
1187   echo $ac_n "(cached) $ac_c" 1>&6
1188 else
1189   if test -n "$YODL2HTML"; then
1190   ac_cv_prog_YODL2HTML="$YODL2HTML" # Let the user override the test.
1191 else
1192   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1193   for ac_dir in $PATH; do
1194     test -z "$ac_dir" && ac_dir=.
1195     if test -f $ac_dir/$ac_word; then
1196       ac_cv_prog_YODL2HTML="$ac_prog"
1197       break
1198     fi
1199   done
1200   IFS="$ac_save_ifs"
1201 fi
1202 fi
1203 YODL2HTML="$ac_cv_prog_YODL2HTML"
1204 if test -n "$YODL2HTML"; then
1205   echo "$ac_t""$YODL2HTML" 1>&6
1206 else
1207   echo "$ac_t""no" 1>&6
1208 fi
1209
1210 test -n "$YODL2HTML" && break
1211 done
1212 test -n "$YODL2HTML" || YODL2HTML="-echo no yodl"
1213
1214         for ac_prog in yodl2latex
1215 do
1216 # Extract the first word of "$ac_prog", so it can be a program name with args.
1217 set dummy $ac_prog; ac_word=$2
1218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1219 echo "configure:1220: checking for $ac_word" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_YODL2LATEX'+set}'`\" = set"; then
1221   echo $ac_n "(cached) $ac_c" 1>&6
1222 else
1223   if test -n "$YODL2LATEX"; then
1224   ac_cv_prog_YODL2LATEX="$YODL2LATEX" # Let the user override the test.
1225 else
1226   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1227   for ac_dir in $PATH; do
1228     test -z "$ac_dir" && ac_dir=.
1229     if test -f $ac_dir/$ac_word; then
1230       ac_cv_prog_YODL2LATEX="$ac_prog"
1231       break
1232     fi
1233   done
1234   IFS="$ac_save_ifs"
1235 fi
1236 fi
1237 YODL2LATEX="$ac_cv_prog_YODL2LATEX"
1238 if test -n "$YODL2LATEX"; then
1239   echo "$ac_t""$YODL2LATEX" 1>&6
1240 else
1241   echo "$ac_t""no" 1>&6
1242 fi
1243
1244 test -n "$YODL2LATEX" && break
1245 done
1246
1247         for ac_prog in yodl2man
1248 do
1249 # Extract the first word of "$ac_prog", so it can be a program name with args.
1250 set dummy $ac_prog; ac_word=$2
1251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1252 echo "configure:1253: checking for $ac_word" >&5
1253 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MAN'+set}'`\" = set"; then
1254   echo $ac_n "(cached) $ac_c" 1>&6
1255 else
1256   if test -n "$YODL2MAN"; then
1257   ac_cv_prog_YODL2MAN="$YODL2MAN" # Let the user override the test.
1258 else
1259   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1260   for ac_dir in $PATH; do
1261     test -z "$ac_dir" && ac_dir=.
1262     if test -f $ac_dir/$ac_word; then
1263       ac_cv_prog_YODL2MAN="$ac_prog"
1264       break
1265     fi
1266   done
1267   IFS="$ac_save_ifs"
1268 fi
1269 fi
1270 YODL2MAN="$ac_cv_prog_YODL2MAN"
1271 if test -n "$YODL2MAN"; then
1272   echo "$ac_t""$YODL2MAN" 1>&6
1273 else
1274   echo "$ac_t""no" 1>&6
1275 fi
1276
1277 test -n "$YODL2MAN" && break
1278 done
1279 test -n "$YODL2MAN" || YODL2MAN="-echo no yodl"
1280
1281         for ac_prog in yodl2msless
1282 do
1283 # Extract the first word of "$ac_prog", so it can be a program name with args.
1284 set dummy $ac_prog; ac_word=$2
1285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1286 echo "configure:1287: checking for $ac_word" >&5
1287 if eval "test \"`echo '$''{'ac_cv_prog_YODL2MSLESS'+set}'`\" = set"; then
1288   echo $ac_n "(cached) $ac_c" 1>&6
1289 else
1290   if test -n "$YODL2MSLESS"; then
1291   ac_cv_prog_YODL2MSLESS="$YODL2MSLESS" # Let the user override the test.
1292 else
1293   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1294   for ac_dir in $PATH; do
1295     test -z "$ac_dir" && ac_dir=.
1296     if test -f $ac_dir/$ac_word; then
1297       ac_cv_prog_YODL2MSLESS="$ac_prog"
1298       break
1299     fi
1300   done
1301   IFS="$ac_save_ifs"
1302 fi
1303 fi
1304 YODL2MSLESS="$ac_cv_prog_YODL2MSLESS"
1305 if test -n "$YODL2MSLESS"; then
1306   echo "$ac_t""$YODL2MSLESS" 1>&6
1307 else
1308   echo "$ac_t""no" 1>&6
1309 fi
1310
1311 test -n "$YODL2MSLESS" && break
1312 done
1313 test -n "$YODL2MSLESS" || YODL2MSLESS="-echo no yodl"
1314
1315         for ac_prog in yodl2texinfo
1316 do
1317 # Extract the first word of "$ac_prog", so it can be a program name with args.
1318 set dummy $ac_prog; ac_word=$2
1319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1320 echo "configure:1321: checking for $ac_word" >&5
1321 if eval "test \"`echo '$''{'ac_cv_prog_YODL2TEXINFO'+set}'`\" = set"; then
1322   echo $ac_n "(cached) $ac_c" 1>&6
1323 else
1324   if test -n "$YODL2TEXINFO"; then
1325   ac_cv_prog_YODL2TEXINFO="$YODL2TEXINFO" # Let the user override the test.
1326 else
1327   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1328   for ac_dir in $PATH; do
1329     test -z "$ac_dir" && ac_dir=.
1330     if test -f $ac_dir/$ac_word; then
1331       ac_cv_prog_YODL2TEXINFO="$ac_prog"
1332       break
1333     fi
1334   done
1335   IFS="$ac_save_ifs"
1336 fi
1337 fi
1338 YODL2TEXINFO="$ac_cv_prog_YODL2TEXINFO"
1339 if test -n "$YODL2TEXINFO"; then
1340   echo "$ac_t""$YODL2TEXINFO" 1>&6
1341 else
1342   echo "$ac_t""no" 1>&6
1343 fi
1344
1345 test -n "$YODL2TEXINFO" && break
1346 done
1347 test -n "$YODL2TEXINFO" || YODL2TEXINFO="-echo no yodl"
1348
1349         for ac_prog in yodl2txt
1350 do
1351 # Extract the first word of "$ac_prog", so it can be a program name with args.
1352 set dummy $ac_prog; 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_YODL2TXT'+set}'`\" = set"; then
1356   echo $ac_n "(cached) $ac_c" 1>&6
1357 else
1358   if test -n "$YODL2TXT"; then
1359   ac_cv_prog_YODL2TXT="$YODL2TXT" # Let the user override the test.
1360 else
1361   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1362   for ac_dir in $PATH; do
1363     test -z "$ac_dir" && ac_dir=.
1364     if test -f $ac_dir/$ac_word; then
1365       ac_cv_prog_YODL2TXT="$ac_prog"
1366       break
1367     fi
1368   done
1369   IFS="$ac_save_ifs"
1370 fi
1371 fi
1372 YODL2TXT="$ac_cv_prog_YODL2TXT"
1373 if test -n "$YODL2TXT"; then
1374   echo "$ac_t""$YODL2TXT" 1>&6
1375 else
1376   echo "$ac_t""no" 1>&6
1377 fi
1378
1379 test -n "$YODL2TXT" && break
1380 done
1381 test -n "$YODL2TXT" || YODL2TXT="-echo no yodl"
1382
1383         YODL2LESS_DIR='$(bindir)/'
1384     else
1385         
1386         
1387         
1388         
1389         
1390         
1391         
1392         
1393         
1394         export STRIPROFF YODL YODL2HTML YODL2LATEX YODL2MAN YODL2MSLESS YODL2TEXINFO YODL2TXT
1395     fi
1396     if test "x$YODL" = "-echo no yodl"; then
1397         
1398     echo "configure: warning: Did not find YODL (Yodl is Yet Oneother Document Language, see http://www.cs.uu.nl/~hanwen/yodl)" 1>&2
1399     warn_b=yes
1400
1401     fi    
1402
1403
1404 # AM_PATH_GTK(1.0.0,,AC_MSG_ERROR([please install proper version of gtk]))
1405 # AM_PATH_GTK__(0.9.4,,AC_MSG_ERROR([please install proper version of gtk--]))
1406
1407 for ac_prog in makeinfo
1408 do
1409 # Extract the first word of "$ac_prog", so it can be a program name with args.
1410 set dummy $ac_prog; ac_word=$2
1411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1412 echo "configure:1413: checking for $ac_word" >&5
1413 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1414   echo $ac_n "(cached) $ac_c" 1>&6
1415 else
1416   if test -n "$MAKEINFO"; then
1417   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1418 else
1419   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1420   for ac_dir in $PATH; do
1421     test -z "$ac_dir" && ac_dir=.
1422     if test -f $ac_dir/$ac_word; then
1423       ac_cv_prog_MAKEINFO="$ac_prog"
1424       break
1425     fi
1426   done
1427   IFS="$ac_save_ifs"
1428 fi
1429 fi
1430 MAKEINFO="$ac_cv_prog_MAKEINFO"
1431 if test -n "$MAKEINFO"; then
1432   echo "$ac_t""$MAKEINFO" 1>&6
1433 else
1434   echo "$ac_t""no" 1>&6
1435 fi
1436
1437 test -n "$MAKEINFO" && break
1438 done
1439 test -n "$MAKEINFO" || MAKEINFO="error"
1440
1441 # AC_CHECK_SEARCH_RESULT($YODL2TEXINFO, yodl,  
1442 #    You should install Yodl 1.30.pre6 or better)
1443
1444
1445     trap '' 1 2 15
1446 cat > confcache <<\EOF
1447 # This file is a shell script that caches the results of configure
1448 # tests run on this system so they can be shared between configure
1449 # scripts and configure runs.  It is not useful on other systems.
1450 # If it contains results you don't want to keep, you may remove or edit it.
1451 #
1452 # By default, configure uses ./config.cache as the cache file,
1453 # creating it if it does not exist already.  You can give configure
1454 # the --cache-file=FILE option to use a different cache file; that is
1455 # what configure does when it calls configure scripts in
1456 # subdirectories, so they share the cache.
1457 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1458 # config.status only pays attention to the cache file if you give it the
1459 # --recheck option to rerun configure.
1460 #
1461 EOF
1462 # The following way of writing the cache mishandles newlines in values,
1463 # but we know of no workaround that is simple, portable, and efficient.
1464 # So, don't put newlines in cache variables' values.
1465 # Ultrix sh set writes to stderr and can't be redirected directly,
1466 # and sets the high bit in the cache file unless we assign to the vars.
1467 (set) 2>&1 |
1468   case `(ac_space=' '; set) 2>&1` in
1469   *ac_space=\ *)
1470     # `set' does not quote correctly, so add quotes (double-quote substitution
1471     # turns \\\\ into \\, and sed turns \\ into \).
1472     sed -n \
1473       -e "s/'/'\\\\''/g" \
1474       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1475     ;;
1476   *)
1477     # `set' quotes correctly as required by POSIX, so do not add quotes.
1478     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1479     ;;
1480   esac >> confcache
1481 if cmp -s $cache_file confcache; then
1482   :
1483 else
1484   if test -w $cache_file; then
1485     echo "updating cache $cache_file"
1486     cat confcache > $cache_file
1487   else
1488     echo "not updating unwritable cache $cache_file"
1489   fi
1490 fi
1491 rm -f confcache
1492
1493 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1494
1495 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1496 # Let make expand exec_prefix.
1497 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1498
1499 # Any assignment to VPATH causes Sun make to only execute
1500 # the first set of double-colon rules, so remove it if not needed.
1501 # If there is a colon in the path, we need to keep it.
1502 if test "x$srcdir" = x.; then
1503   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1504 fi
1505
1506 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1507
1508 DEFS=-DHAVE_CONFIG_H
1509
1510 # Without the "./", some shells look in PATH for config.status.
1511 : ${CONFIG_STATUS=./config.status}
1512
1513 echo creating $CONFIG_STATUS
1514 rm -f $CONFIG_STATUS
1515 cat > $CONFIG_STATUS <<EOF
1516 #! /bin/sh
1517 # Generated automatically by configure.
1518 # Run this file to recreate the current configuration.
1519 # This directory was configured as follows,
1520 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1521 #
1522 # $0 $ac_configure_args
1523 #
1524 # Compiler output produced by configure, useful for debugging
1525 # configure, is in ./config.log if it exists.
1526
1527 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1528 for ac_option
1529 do
1530   case "\$ac_option" in
1531   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1532     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1533     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1534   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1535     echo "$CONFIG_STATUS generated by autoconf version 2.12"
1536     exit 0 ;;
1537   -help | --help | --hel | --he | --h)
1538     echo "\$ac_cs_usage"; exit 0 ;;
1539   *) echo "\$ac_cs_usage"; exit 1 ;;
1540   esac
1541 done
1542
1543 ac_given_srcdir=$srcdir
1544
1545 trap 'rm -fr `echo "$CONFIGFILE.make:config.make.in $CONFIGFILE.hh:config.hh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1546 EOF
1547 cat >> $CONFIG_STATUS <<EOF
1548
1549 # Protect against being on the right side of a sed subst in config.status.
1550 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1551  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1552 $ac_vpsub
1553 $extrasub
1554 s%@CFLAGS@%$CFLAGS%g
1555 s%@CPPFLAGS@%$CPPFLAGS%g
1556 s%@CXXFLAGS@%$CXXFLAGS%g
1557 s%@DEFS@%$DEFS%g
1558 s%@LDFLAGS@%$LDFLAGS%g
1559 s%@LIBS@%$LIBS%g
1560 s%@exec_prefix@%$exec_prefix%g
1561 s%@prefix@%$prefix%g
1562 s%@program_transform_name@%$program_transform_name%g
1563 s%@bindir@%$bindir%g
1564 s%@sbindir@%$sbindir%g
1565 s%@libexecdir@%$libexecdir%g
1566 s%@datadir@%$datadir%g
1567 s%@sysconfdir@%$sysconfdir%g
1568 s%@sharedstatedir@%$sharedstatedir%g
1569 s%@localstatedir@%$localstatedir%g
1570 s%@libdir@%$libdir%g
1571 s%@includedir@%$includedir%g
1572 s%@oldincludedir@%$oldincludedir%g
1573 s%@infodir@%$infodir%g
1574 s%@mandir@%$mandir%g
1575 s%@stepmake@%$stepmake%g
1576 s%@package@%$package%g
1577 s%@PACKAGE@%$PACKAGE%g
1578 s%@PACKAGE_NAME@%$PACKAGE_NAME%g
1579 s%@package_depth@%$package_depth%g
1580 s%@AUTOGENERATE@%$AUTOGENERATE%g
1581 s%@absolute_builddir@%$absolute_builddir%g
1582 s%@STATE_VECTOR@%$STATE_VECTOR%g
1583 s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
1584 s%@host@%$host%g
1585 s%@host_alias@%$host_alias%g
1586 s%@host_cpu@%$host_cpu%g
1587 s%@host_vendor@%$host_vendor%g
1588 s%@host_os@%$host_os%g
1589 s%@MAKE@%$MAKE%g
1590 s%@FIND@%$FIND%g
1591 s%@TAR@%$TAR%g
1592 s%@BASH@%$BASH%g
1593 s%@PYTHON@%$PYTHON%g
1594 s%@DOTEXE@%$DOTEXE%g
1595 s%@ZIP@%$ZIP%g
1596 s%@LN@%$LN%g
1597 s%@LN_S@%$LN_S%g
1598 s%@INSTALL@%$INSTALL%g
1599 s%@PATHSEP@%$PATHSEP%g
1600 s%@DIRSEP@%$DIRSEP%g
1601 s%@DIR_DATADIR@%$DIR_DATADIR%g
1602 s%@STRIPROFF@%$STRIPROFF%g
1603 s%@YODL@%$YODL%g
1604 s%@YODL2HTML@%$YODL2HTML%g
1605 s%@YODL2LATEX@%$YODL2LATEX%g
1606 s%@YODL2MAN@%$YODL2MAN%g
1607 s%@YODL2MSLESS@%$YODL2MSLESS%g
1608 s%@YODL2TEXINFO@%$YODL2TEXINFO%g
1609 s%@YODL2TXT@%$YODL2TXT%g
1610 s%@YODL2LESS_DIR@%$YODL2LESS_DIR%g
1611 s%@MAKEINFO@%$MAKEINFO%g
1612
1613 CEOF
1614 EOF
1615
1616 cat >> $CONFIG_STATUS <<\EOF
1617
1618 # Split the substitutions into bite-sized pieces for seds with
1619 # small command number limits, like on Digital OSF/1 and HP-UX.
1620 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1621 ac_file=1 # Number of current file.
1622 ac_beg=1 # First line for current file.
1623 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1624 ac_more_lines=:
1625 ac_sed_cmds=""
1626 while $ac_more_lines; do
1627   if test $ac_beg -gt 1; then
1628     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1629   else
1630     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1631   fi
1632   if test ! -s conftest.s$ac_file; then
1633     ac_more_lines=false
1634     rm -f conftest.s$ac_file
1635   else
1636     if test -z "$ac_sed_cmds"; then
1637       ac_sed_cmds="sed -f conftest.s$ac_file"
1638     else
1639       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1640     fi
1641     ac_file=`expr $ac_file + 1`
1642     ac_beg=$ac_end
1643     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1644   fi
1645 done
1646 if test -z "$ac_sed_cmds"; then
1647   ac_sed_cmds=cat
1648 fi
1649 EOF
1650
1651 cat >> $CONFIG_STATUS <<EOF
1652
1653 CONFIG_FILES=\${CONFIG_FILES-"$CONFIGFILE.make:config.make.in"}
1654 EOF
1655 cat >> $CONFIG_STATUS <<\EOF
1656 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1657   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1658   case "$ac_file" in
1659   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1660        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1661   *) ac_file_in="${ac_file}.in" ;;
1662   esac
1663
1664   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1665
1666   # Remove last slash and all that follows it.  Not all systems have dirname.
1667   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1668   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1669     # The file is in a subdirectory.
1670     test ! -d "$ac_dir" && mkdir "$ac_dir"
1671     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1672     # A "../" for each directory in $ac_dir_suffix.
1673     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1674   else
1675     ac_dir_suffix= ac_dots=
1676   fi
1677
1678   case "$ac_given_srcdir" in
1679   .)  srcdir=.
1680       if test -z "$ac_dots"; then top_srcdir=.
1681       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1682   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1683   *) # Relative path.
1684     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1685     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1686   esac
1687
1688
1689   echo creating "$ac_file"
1690   rm -f "$ac_file"
1691   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1692   case "$ac_file" in
1693   *Makefile*) ac_comsub="1i\\
1694 # $configure_input" ;;
1695   *) ac_comsub= ;;
1696   esac
1697
1698   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1699   sed -e "$ac_comsub
1700 s%@configure_input@%$configure_input%g
1701 s%@srcdir@%$srcdir%g
1702 s%@top_srcdir@%$top_srcdir%g
1703 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1704 fi; done
1705 rm -f conftest.s*
1706
1707 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1708 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1709 #
1710 # ac_d sets the value in "#define NAME VALUE" lines.
1711 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1712 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1713 ac_dC='\3'
1714 ac_dD='%g'
1715 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1716 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1717 ac_uB='\([      ]\)%\1#\2define\3'
1718 ac_uC=' '
1719 ac_uD='\4%g'
1720 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1721 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1722 ac_eB='$%\1#\2define\3'
1723 ac_eC=' '
1724 ac_eD='%g'
1725
1726 if test "${CONFIG_HEADERS+set}" != set; then
1727 EOF
1728 cat >> $CONFIG_STATUS <<EOF
1729   CONFIG_HEADERS="$CONFIGFILE.hh:config.hh.in"
1730 EOF
1731 cat >> $CONFIG_STATUS <<\EOF
1732 fi
1733 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1734   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1735   case "$ac_file" in
1736   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1737        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1738   *) ac_file_in="${ac_file}.in" ;;
1739   esac
1740
1741   echo creating $ac_file
1742
1743   rm -f conftest.frag conftest.in conftest.out
1744   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1745   cat $ac_file_inputs > conftest.in
1746
1747 EOF
1748
1749 # Transform confdefs.h into a sed script conftest.vals that substitutes
1750 # the proper values into config.h.in to produce config.h.  And first:
1751 # Protect against being on the right side of a sed subst in config.status.
1752 # Protect against being in an unquoted here document in config.status.
1753 rm -f conftest.vals
1754 cat > conftest.hdr <<\EOF
1755 s/[\\&%]/\\&/g
1756 s%[\\$`]%\\&%g
1757 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1758 s%ac_d%ac_u%gp
1759 s%ac_u%ac_e%gp
1760 EOF
1761 sed -n -f conftest.hdr confdefs.h > conftest.vals
1762 rm -f conftest.hdr
1763
1764 # This sed command replaces #undef with comments.  This is necessary, for
1765 # example, in the case of _POSIX_SOURCE, which is predefined and required
1766 # on some systems where configure will not decide to define it.
1767 cat >> conftest.vals <<\EOF
1768 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1769 EOF
1770
1771 # Break up conftest.vals because some shells have a limit on
1772 # the size of here documents, and old seds have small limits too.
1773
1774 rm -f conftest.tail
1775 while :
1776 do
1777   ac_lines=`grep -c . conftest.vals`
1778   # grep -c gives empty output for an empty file on some AIX systems.
1779   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1780   # Write a limited-size here document to conftest.frag.
1781   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1782   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1783   echo 'CEOF
1784   sed -f conftest.frag conftest.in > conftest.out
1785   rm -f conftest.in
1786   mv conftest.out conftest.in
1787 ' >> $CONFIG_STATUS
1788   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1789   rm -f conftest.vals
1790   mv conftest.tail conftest.vals
1791 done
1792 rm -f conftest.vals
1793
1794 cat >> $CONFIG_STATUS <<\EOF
1795   rm -f conftest.frag conftest.h
1796   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
1797   cat conftest.in >> conftest.h
1798   rm -f conftest.in
1799   if cmp -s $ac_file conftest.h 2>/dev/null; then
1800     echo "$ac_file is unchanged"
1801     rm -f conftest.h
1802   else
1803     # Remove last slash and all that follows it.  Not all systems have dirname.
1804       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1805       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1806       # The file is in a subdirectory.
1807       test ! -d "$ac_dir" && mkdir "$ac_dir"
1808     fi
1809     rm -f $ac_file
1810     mv conftest.h $ac_file
1811   fi
1812 fi; done
1813
1814 EOF
1815 cat >> $CONFIG_STATUS <<EOF
1816
1817 EOF
1818 cat >> $CONFIG_STATUS <<\EOF
1819
1820 exit 0
1821 EOF
1822 chmod +x $CONFIG_STATUS
1823 rm -fr confdefs* $ac_clean_files
1824 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1825
1826
1827     rm -f GNUmakefile
1828     cp make/toplevel.make.in ./GNUmakefile
1829     chmod 444 GNUmakefile
1830