/[CvsGraph]/cvsgraph/configure
ViewVC logotype

Annotate of /cvsgraph/configure

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


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

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0