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