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