/[CvsGraph]/cvsgraph/configure
ViewVC logotype

Annotate of /cvsgraph/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


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

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0