Fixed 0.6.0 packaging problems.
[obnox/wireshark/wip.git] / wiretap / configure
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   --with-glib-prefix=PFX   Prefix where GLIB is installed (optional)"
16 ac_help="$ac_help
17   --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
18 ac_help="$ac_help
19   --disable-glibtest       Do not try to compile and run a test GLIB program"
20 ac_help="$ac_help
21   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
22 ac_help="$ac_help
23   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
24 ac_help="$ac_help
25   --disable-gtktest       Do not try to compile and run a test GTK program"
26 ac_help="$ac_help
27   --with-wiretap          Include wiretap library.
28   --without-wiretap       Don't include wiretap library (default)"
29
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
33 build=NONE
34 cache_file=./config.cache
35 exec_prefix=NONE
36 host=NONE
37 no_create=
38 nonopt=NONE
39 no_recursion=
40 prefix=NONE
41 program_prefix=NONE
42 program_suffix=NONE
43 program_transform_name=s,x,x,
44 silent=
45 site=
46 srcdir=
47 target=NONE
48 verbose=
49 x_includes=NONE
50 x_libraries=NONE
51 bindir='${exec_prefix}/bin'
52 sbindir='${exec_prefix}/sbin'
53 libexecdir='${exec_prefix}/libexec'
54 datadir='${prefix}/share'
55 sysconfdir='${prefix}/etc'
56 sharedstatedir='${prefix}/com'
57 localstatedir='${prefix}/var'
58 libdir='${exec_prefix}/lib'
59 includedir='${prefix}/include'
60 oldincludedir='/usr/include'
61 infodir='${prefix}/info'
62 mandir='${prefix}/man'
63
64 # Initialize some other variables.
65 subdirs=
66 MFLAGS= MAKEFLAGS=
67 SHELL=${CONFIG_SHELL-/bin/sh}
68 # Maximum number of lines to put in a shell here document.
69 ac_max_here_lines=12
70
71 ac_prev=
72 for ac_option
73 do
74
75   # If the previous option needs an argument, assign it.
76   if test -n "$ac_prev"; then
77     eval "$ac_prev=\$ac_option"
78     ac_prev=
79     continue
80   fi
81
82   case "$ac_option" in
83   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84   *) ac_optarg= ;;
85   esac
86
87   # Accept the important Cygnus configure options, so we can diagnose typos.
88
89   case "$ac_option" in
90
91   -bindir | --bindir | --bindi | --bind | --bin | --bi)
92     ac_prev=bindir ;;
93   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94     bindir="$ac_optarg" ;;
95
96   -build | --build | --buil | --bui | --bu)
97     ac_prev=build ;;
98   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99     build="$ac_optarg" ;;
100
101   -cache-file | --cache-file | --cache-fil | --cache-fi \
102   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
103     ac_prev=cache_file ;;
104   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
105   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
106     cache_file="$ac_optarg" ;;
107
108   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
109     ac_prev=datadir ;;
110   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
111   | --da=*)
112     datadir="$ac_optarg" ;;
113
114   -disable-* | --disable-*)
115     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
116     # Reject names that are not valid shell variable names.
117     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119     fi
120     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121     eval "enable_${ac_feature}=no" ;;
122
123   -enable-* | --enable-*)
124     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125     # Reject names that are not valid shell variable names.
126     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128     fi
129     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130     case "$ac_option" in
131       *=*) ;;
132       *) ac_optarg=yes ;;
133     esac
134     eval "enable_${ac_feature}='$ac_optarg'" ;;
135
136   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
137   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138   | --exec | --exe | --ex)
139     ac_prev=exec_prefix ;;
140   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
141   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
142   | --exec=* | --exe=* | --ex=*)
143     exec_prefix="$ac_optarg" ;;
144
145   -gas | --gas | --ga | --g)
146     # Obsolete; use --with-gas.
147     with_gas=yes ;;
148
149   -help | --help | --hel | --he)
150     # Omit some internal or obsolete options to make the list less imposing.
151     # This message is too long to be a string in the A/UX 3.1 sh.
152     cat << EOF
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
155 Configuration:
156   --cache-file=FILE       cache test results in FILE
157   --help                  print this message
158   --no-create             do not create output files
159   --quiet, --silent       do not print \`checking...' messages
160   --version               print the version of autoconf that created configure
161 Directory and file names:
162   --prefix=PREFIX         install architecture-independent files in PREFIX
163                           [$ac_default_prefix]
164   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
165                           [same as prefix]
166   --bindir=DIR            user executables in DIR [EPREFIX/bin]
167   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
168   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
169   --datadir=DIR           read-only architecture-independent data in DIR
170                           [PREFIX/share]
171   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
172   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
173                           [PREFIX/com]
174   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
175   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
176   --includedir=DIR        C header files in DIR [PREFIX/include]
177   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
178   --infodir=DIR           info documentation in DIR [PREFIX/info]
179   --mandir=DIR            man documentation in DIR [PREFIX/man]
180   --srcdir=DIR            find the sources in DIR [configure dir or ..]
181   --program-prefix=PREFIX prepend PREFIX to installed program names
182   --program-suffix=SUFFIX append SUFFIX to installed program names
183   --program-transform-name=PROGRAM
184                           run sed PROGRAM on installed program names
185 EOF
186     cat << EOF
187 Host type:
188   --build=BUILD           configure for building on BUILD [BUILD=HOST]
189   --host=HOST             configure for HOST [guessed]
190   --target=TARGET         configure for TARGET [TARGET=HOST]
191 Features and packages:
192   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
193   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
194   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
195   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
196   --x-includes=DIR        X include files are in DIR
197   --x-libraries=DIR       X library files are in DIR
198 EOF
199     if test -n "$ac_help"; then
200       echo "--enable and --with options recognized:$ac_help"
201     fi
202     exit 0 ;;
203
204   -host | --host | --hos | --ho)
205     ac_prev=host ;;
206   -host=* | --host=* | --hos=* | --ho=*)
207     host="$ac_optarg" ;;
208
209   -includedir | --includedir | --includedi | --included | --include \
210   | --includ | --inclu | --incl | --inc)
211     ac_prev=includedir ;;
212   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213   | --includ=* | --inclu=* | --incl=* | --inc=*)
214     includedir="$ac_optarg" ;;
215
216   -infodir | --infodir | --infodi | --infod | --info | --inf)
217     ac_prev=infodir ;;
218   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219     infodir="$ac_optarg" ;;
220
221   -libdir | --libdir | --libdi | --libd)
222     ac_prev=libdir ;;
223   -libdir=* | --libdir=* | --libdi=* | --libd=*)
224     libdir="$ac_optarg" ;;
225
226   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227   | --libexe | --libex | --libe)
228     ac_prev=libexecdir ;;
229   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230   | --libexe=* | --libex=* | --libe=*)
231     libexecdir="$ac_optarg" ;;
232
233   -localstatedir | --localstatedir | --localstatedi | --localstated \
234   | --localstate | --localstat | --localsta | --localst \
235   | --locals | --local | --loca | --loc | --lo)
236     ac_prev=localstatedir ;;
237   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240     localstatedir="$ac_optarg" ;;
241
242   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
243     ac_prev=mandir ;;
244   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245     mandir="$ac_optarg" ;;
246
247   -nfp | --nfp | --nf)
248     # Obsolete; use --without-fp.
249     with_fp=no ;;
250
251   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
252   | --no-cr | --no-c)
253     no_create=yes ;;
254
255   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257     no_recursion=yes ;;
258
259   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261   | --oldin | --oldi | --old | --ol | --o)
262     ac_prev=oldincludedir ;;
263   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266     oldincludedir="$ac_optarg" ;;
267
268   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
269     ac_prev=prefix ;;
270   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271     prefix="$ac_optarg" ;;
272
273   -program-prefix | --program-prefix | --program-prefi | --program-pref \
274   | --program-pre | --program-pr | --program-p)
275     ac_prev=program_prefix ;;
276   -program-prefix=* | --program-prefix=* | --program-prefi=* \
277   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278     program_prefix="$ac_optarg" ;;
279
280   -program-suffix | --program-suffix | --program-suffi | --program-suff \
281   | --program-suf | --program-su | --program-s)
282     ac_prev=program_suffix ;;
283   -program-suffix=* | --program-suffix=* | --program-suffi=* \
284   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285     program_suffix="$ac_optarg" ;;
286
287   -program-transform-name | --program-transform-name \
288   | --program-transform-nam | --program-transform-na \
289   | --program-transform-n | --program-transform- \
290   | --program-transform | --program-transfor \
291   | --program-transfo | --program-transf \
292   | --program-trans | --program-tran \
293   | --progr-tra | --program-tr | --program-t)
294     ac_prev=program_transform_name ;;
295   -program-transform-name=* | --program-transform-name=* \
296   | --program-transform-nam=* | --program-transform-na=* \
297   | --program-transform-n=* | --program-transform-=* \
298   | --program-transform=* | --program-transfor=* \
299   | --program-transfo=* | --program-transf=* \
300   | --program-trans=* | --program-tran=* \
301   | --progr-tra=* | --program-tr=* | --program-t=*)
302     program_transform_name="$ac_optarg" ;;
303
304   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305   | -silent | --silent | --silen | --sile | --sil)
306     silent=yes ;;
307
308   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
309     ac_prev=sbindir ;;
310   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
311   | --sbi=* | --sb=*)
312     sbindir="$ac_optarg" ;;
313
314   -sharedstatedir | --sharedstatedir | --sharedstatedi \
315   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316   | --sharedst | --shareds | --shared | --share | --shar \
317   | --sha | --sh)
318     ac_prev=sharedstatedir ;;
319   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
322   | --sha=* | --sh=*)
323     sharedstatedir="$ac_optarg" ;;
324
325   -site | --site | --sit)
326     ac_prev=site ;;
327   -site=* | --site=* | --sit=*)
328     site="$ac_optarg" ;;
329
330   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
331     ac_prev=srcdir ;;
332   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333     srcdir="$ac_optarg" ;;
334
335   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336   | --syscon | --sysco | --sysc | --sys | --sy)
337     ac_prev=sysconfdir ;;
338   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340     sysconfdir="$ac_optarg" ;;
341
342   -target | --target | --targe | --targ | --tar | --ta | --t)
343     ac_prev=target ;;
344   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345     target="$ac_optarg" ;;
346
347   -v | -verbose | --verbose | --verbos | --verbo | --verb)
348     verbose=yes ;;
349
350   -version | --version | --versio | --versi | --vers)
351     echo "configure generated by autoconf version 2.13"
352     exit 0 ;;
353
354   -with-* | --with-*)
355     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356     # Reject names that are not valid shell variable names.
357     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359     fi
360     ac_package=`echo $ac_package| sed 's/-/_/g'`
361     case "$ac_option" in
362       *=*) ;;
363       *) ac_optarg=yes ;;
364     esac
365     eval "with_${ac_package}='$ac_optarg'" ;;
366
367   -without-* | --without-*)
368     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369     # Reject names that are not valid shell variable names.
370     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372     fi
373     ac_package=`echo $ac_package| sed 's/-/_/g'`
374     eval "with_${ac_package}=no" ;;
375
376   --x)
377     # Obsolete; use --with-x.
378     with_x=yes ;;
379
380   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381   | --x-incl | --x-inc | --x-in | --x-i)
382     ac_prev=x_includes ;;
383   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385     x_includes="$ac_optarg" ;;
386
387   -x-libraries | --x-libraries | --x-librarie | --x-librari \
388   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389     ac_prev=x_libraries ;;
390   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392     x_libraries="$ac_optarg" ;;
393
394   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395     ;;
396
397   *)
398     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399       echo "configure: warning: $ac_option: invalid host type" 1>&2
400     fi
401     if test "x$nonopt" != xNONE; then
402       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403     fi
404     nonopt="$ac_option"
405     ;;
406
407   esac
408 done
409
410 if test -n "$ac_prev"; then
411   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 fi
413
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415
416 # File descriptor usage:
417 # 0 standard input
418 # 1 file creation
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
425   exec 6>/dev/null
426 else
427   exec 6>&1
428 fi
429 exec 5>./config.log
430
431 echo "\
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
434 " 1>&5
435
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
438 ac_configure_args=
439 for ac_arg
440 do
441   case "$ac_arg" in
442   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443   | --no-cr | --no-c) ;;
444   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
449   esac
450 done
451
452 # NLS nuisances.
453 # Only set these to C if already set.  These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
458 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
461
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 echo > confdefs.h
466
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file=wtap.c
470
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473   ac_srcdir_defaulted=yes
474   # Try the directory containing this script, then its parent.
475   ac_prog=$0
476   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
478   srcdir=$ac_confdir
479   if test ! -r $srcdir/$ac_unique_file; then
480     srcdir=..
481   fi
482 else
483   ac_srcdir_defaulted=no
484 fi
485 if test ! -r $srcdir/$ac_unique_file; then
486   if test "$ac_srcdir_defaulted" = yes; then
487     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488   else
489     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490   fi
491 fi
492 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496   if test "x$prefix" != xNONE; then
497     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
498   else
499     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500   fi
501 fi
502 for ac_site_file in $CONFIG_SITE; do
503   if test -r "$ac_site_file"; then
504     echo "loading site script $ac_site_file"
505     . "$ac_site_file"
506   fi
507 done
508
509 if test -r "$cache_file"; then
510   echo "loading cache $cache_file"
511   . $cache_file
512 else
513   echo "creating cache $cache_file"
514   > $cache_file
515 fi
516
517 ac_ext=c
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp='$CPP $CPPFLAGS'
520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 cross_compiling=$ac_cv_prog_cc_cross
523
524 ac_exeext=
525 ac_objext=o
526 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529     ac_n= ac_c='
530 ' ac_t='        '
531   else
532     ac_n=-n ac_c= ac_t=
533   fi
534 else
535   ac_n= ac_c='\c' ac_t=
536 fi
537
538
539 ac_aux_dir=
540 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
541   if test -f $ac_dir/install-sh; then
542     ac_aux_dir=$ac_dir
543     ac_install_sh="$ac_aux_dir/install-sh -c"
544     break
545   elif test -f $ac_dir/install.sh; then
546     ac_aux_dir=$ac_dir
547     ac_install_sh="$ac_aux_dir/install.sh -c"
548     break
549   fi
550 done
551 if test -z "$ac_aux_dir"; then
552   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
553 fi
554 ac_config_guess=$ac_aux_dir/config.guess
555 ac_config_sub=$ac_aux_dir/config.sub
556 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
557
558 # Find a good install program.  We prefer a C program (faster),
559 # so one script is as good as another.  But avoid the broken or
560 # incompatible versions:
561 # SysV /etc/install, /usr/sbin/install
562 # SunOS /usr/etc/install
563 # IRIX /sbin/install
564 # AIX /bin/install
565 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
566 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
567 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
568 # ./install, which can be erroneously created by make from ./install.sh.
569 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
570 echo "configure:571: checking for a BSD compatible install" >&5
571 if test -z "$INSTALL"; then
572 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
573   echo $ac_n "(cached) $ac_c" 1>&6
574 else
575     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
576   for ac_dir in $PATH; do
577     # Account for people who put trailing slashes in PATH elements.
578     case "$ac_dir/" in
579     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
580     *)
581       # OSF1 and SCO ODT 3.0 have their own names for install.
582       # Don't use installbsd from OSF since it installs stuff as root
583       # by default.
584       for ac_prog in ginstall scoinst install; do
585         if test -f $ac_dir/$ac_prog; then
586           if test $ac_prog = install &&
587             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
588             # AIX install.  It has an incompatible calling convention.
589             :
590           else
591             ac_cv_path_install="$ac_dir/$ac_prog -c"
592             break 2
593           fi
594         fi
595       done
596       ;;
597     esac
598   done
599   IFS="$ac_save_IFS"
600
601 fi
602   if test "${ac_cv_path_install+set}" = set; then
603     INSTALL="$ac_cv_path_install"
604   else
605     # As a last resort, use the slow shell script.  We don't cache a
606     # path for INSTALL within a source directory, because that will
607     # break other packages using the cache if that directory is
608     # removed, or if the path is relative.
609     INSTALL="$ac_install_sh"
610   fi
611 fi
612 echo "$ac_t""$INSTALL" 1>&6
613
614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
615 # It thinks the first close brace ends the variable substitution.
616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
617
618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
619
620 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
621
622 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
623 echo "configure:624: checking whether build environment is sane" >&5
624 # Just in case
625 sleep 1
626 echo timestamp > conftestfile
627 # Do `set' in a subshell so we don't clobber the current shell's
628 # arguments.  Must try -L first in case configure is actually a
629 # symlink; some systems play weird games with the mod time of symlinks
630 # (eg FreeBSD returns the mod time of the symlink's containing
631 # directory).
632 if (
633    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
634    if test "$*" = "X"; then
635       # -L didn't work.
636       set X `ls -t $srcdir/configure conftestfile`
637    fi
638    if test "$*" != "X $srcdir/configure conftestfile" \
639       && test "$*" != "X conftestfile $srcdir/configure"; then
640
641       # If neither matched, then we have a broken ls.  This can happen
642       # if, for instance, CONFIG_SHELL is bash and it inherits a
643       # broken ls alias from the environment.  This has actually
644       # happened.  Such a system could not be considered "sane".
645       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
646 alias in your environment" 1>&2; exit 1; }
647    fi
648
649    test "$2" = conftestfile
650    )
651 then
652    # Ok.
653    :
654 else
655    { echo "configure: error: newly created file is older than distributed files!
656 Check your system clock" 1>&2; exit 1; }
657 fi
658 rm -f conftest*
659 echo "$ac_t""yes" 1>&6
660 if test "$program_transform_name" = s,x,x,; then
661   program_transform_name=
662 else
663   # Double any \ or $.  echo might interpret backslashes.
664   cat <<\EOF_SED > conftestsed
665 s,\\,\\\\,g; s,\$,$$,g
666 EOF_SED
667   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
668   rm -f conftestsed
669 fi
670 test "$program_prefix" != NONE &&
671   program_transform_name="s,^,${program_prefix},; $program_transform_name"
672 # Use a double $ so make ignores it.
673 test "$program_suffix" != NONE &&
674   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
675
676 # sed with no file args requires a program.
677 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
678
679 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
680 echo "configure:681: checking whether ${MAKE-make} sets \${MAKE}" >&5
681 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
682 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
683   echo $ac_n "(cached) $ac_c" 1>&6
684 else
685   cat > conftestmake <<\EOF
686 all:
687         @echo 'ac_maketemp="${MAKE}"'
688 EOF
689 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
690 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
691 if test -n "$ac_maketemp"; then
692   eval ac_cv_prog_make_${ac_make}_set=yes
693 else
694   eval ac_cv_prog_make_${ac_make}_set=no
695 fi
696 rm -f conftestmake
697 fi
698 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
699   echo "$ac_t""yes" 1>&6
700   SET_MAKE=
701 else
702   echo "$ac_t""no" 1>&6
703   SET_MAKE="MAKE=${MAKE-make}"
704 fi
705
706
707 PACKAGE=libwtap.a
708
709 VERSION=0.0.0
710
711 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
712   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
713 fi
714 cat >> confdefs.h <<EOF
715 #define PACKAGE "$PACKAGE"
716 EOF
717
718 cat >> confdefs.h <<EOF
719 #define VERSION "$VERSION"
720 EOF
721
722
723
724 missing_dir=`cd $ac_aux_dir && pwd`
725 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
726 echo "configure:727: checking for working aclocal" >&5
727 # Run test in a subshell; some versions of sh will print an error if
728 # an executable is not found, even if stderr is redirected.
729 # Redirect stdin to placate older versions of autoconf.  Sigh.
730 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
731    ACLOCAL=aclocal
732    echo "$ac_t""found" 1>&6
733 else
734    ACLOCAL="$missing_dir/missing aclocal"
735    echo "$ac_t""missing" 1>&6
736 fi
737
738 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
739 echo "configure:740: checking for working autoconf" >&5
740 # Run test in a subshell; some versions of sh will print an error if
741 # an executable is not found, even if stderr is redirected.
742 # Redirect stdin to placate older versions of autoconf.  Sigh.
743 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
744    AUTOCONF=autoconf
745    echo "$ac_t""found" 1>&6
746 else
747    AUTOCONF="$missing_dir/missing autoconf"
748    echo "$ac_t""missing" 1>&6
749 fi
750
751 echo $ac_n "checking for working automake""... $ac_c" 1>&6
752 echo "configure:753: checking for working automake" >&5
753 # Run test in a subshell; some versions of sh will print an error if
754 # an executable is not found, even if stderr is redirected.
755 # Redirect stdin to placate older versions of autoconf.  Sigh.
756 if (automake --version) < /dev/null > /dev/null 2>&1; then
757    AUTOMAKE=automake
758    echo "$ac_t""found" 1>&6
759 else
760    AUTOMAKE="$missing_dir/missing automake"
761    echo "$ac_t""missing" 1>&6
762 fi
763
764 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
765 echo "configure:766: checking for working autoheader" >&5
766 # Run test in a subshell; some versions of sh will print an error if
767 # an executable is not found, even if stderr is redirected.
768 # Redirect stdin to placate older versions of autoconf.  Sigh.
769 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
770    AUTOHEADER=autoheader
771    echo "$ac_t""found" 1>&6
772 else
773    AUTOHEADER="$missing_dir/missing autoheader"
774    echo "$ac_t""missing" 1>&6
775 fi
776
777 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
778 echo "configure:779: checking for working makeinfo" >&5
779 # Run test in a subshell; some versions of sh will print an error if
780 # an executable is not found, even if stderr is redirected.
781 # Redirect stdin to placate older versions of autoconf.  Sigh.
782 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
783    MAKEINFO=makeinfo
784    echo "$ac_t""found" 1>&6
785 else
786    MAKEINFO="$missing_dir/missing makeinfo"
787    echo "$ac_t""missing" 1>&6
788 fi
789
790
791
792
793
794
795 # Extract the first word of "gcc", so it can be a program name with args.
796 set dummy gcc; ac_word=$2
797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
798 echo "configure:799: checking for $ac_word" >&5
799 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
800   echo $ac_n "(cached) $ac_c" 1>&6
801 else
802   if test -n "$CC"; then
803   ac_cv_prog_CC="$CC" # Let the user override the test.
804 else
805   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
806   ac_dummy="$PATH"
807   for ac_dir in $ac_dummy; do
808     test -z "$ac_dir" && ac_dir=.
809     if test -f $ac_dir/$ac_word; then
810       ac_cv_prog_CC="gcc"
811       break
812     fi
813   done
814   IFS="$ac_save_ifs"
815 fi
816 fi
817 CC="$ac_cv_prog_CC"
818 if test -n "$CC"; then
819   echo "$ac_t""$CC" 1>&6
820 else
821   echo "$ac_t""no" 1>&6
822 fi
823
824 if test -z "$CC"; then
825   # Extract the first word of "cc", so it can be a program name with args.
826 set dummy cc; ac_word=$2
827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828 echo "configure:829: checking for $ac_word" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
830   echo $ac_n "(cached) $ac_c" 1>&6
831 else
832   if test -n "$CC"; then
833   ac_cv_prog_CC="$CC" # Let the user override the test.
834 else
835   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
836   ac_prog_rejected=no
837   ac_dummy="$PATH"
838   for ac_dir in $ac_dummy; do
839     test -z "$ac_dir" && ac_dir=.
840     if test -f $ac_dir/$ac_word; then
841       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
842         ac_prog_rejected=yes
843         continue
844       fi
845       ac_cv_prog_CC="cc"
846       break
847     fi
848   done
849   IFS="$ac_save_ifs"
850 if test $ac_prog_rejected = yes; then
851   # We found a bogon in the path, so make sure we never use it.
852   set dummy $ac_cv_prog_CC
853   shift
854   if test $# -gt 0; then
855     # We chose a different compiler from the bogus one.
856     # However, it has the same basename, so the bogon will be chosen
857     # first if we set CC to just the basename; use the full file name.
858     shift
859     set dummy "$ac_dir/$ac_word" "$@"
860     shift
861     ac_cv_prog_CC="$@"
862   fi
863 fi
864 fi
865 fi
866 CC="$ac_cv_prog_CC"
867 if test -n "$CC"; then
868   echo "$ac_t""$CC" 1>&6
869 else
870   echo "$ac_t""no" 1>&6
871 fi
872
873   if test -z "$CC"; then
874     case "`uname -s`" in
875     *win32* | *WIN32*)
876       # Extract the first word of "cl", so it can be a program name with args.
877 set dummy cl; ac_word=$2
878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
879 echo "configure:880: checking for $ac_word" >&5
880 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
881   echo $ac_n "(cached) $ac_c" 1>&6
882 else
883   if test -n "$CC"; then
884   ac_cv_prog_CC="$CC" # Let the user override the test.
885 else
886   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
887   ac_dummy="$PATH"
888   for ac_dir in $ac_dummy; do
889     test -z "$ac_dir" && ac_dir=.
890     if test -f $ac_dir/$ac_word; then
891       ac_cv_prog_CC="cl"
892       break
893     fi
894   done
895   IFS="$ac_save_ifs"
896 fi
897 fi
898 CC="$ac_cv_prog_CC"
899 if test -n "$CC"; then
900   echo "$ac_t""$CC" 1>&6
901 else
902   echo "$ac_t""no" 1>&6
903 fi
904  ;;
905     esac
906   fi
907   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
908 fi
909
910 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
911 echo "configure:912: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
912
913 ac_ext=c
914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
915 ac_cpp='$CPP $CPPFLAGS'
916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
918 cross_compiling=$ac_cv_prog_cc_cross
919
920 cat > conftest.$ac_ext << EOF
921
922 #line 923 "configure"
923 #include "confdefs.h"
924
925 main(){return(0);}
926 EOF
927 if { (eval echo configure:928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
928   ac_cv_prog_cc_works=yes
929   # If we can't run a trivial program, we are probably using a cross compiler.
930   if (./conftest; exit) 2>/dev/null; then
931     ac_cv_prog_cc_cross=no
932   else
933     ac_cv_prog_cc_cross=yes
934   fi
935 else
936   echo "configure: failed program was:" >&5
937   cat conftest.$ac_ext >&5
938   ac_cv_prog_cc_works=no
939 fi
940 rm -fr conftest*
941 ac_ext=c
942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
943 ac_cpp='$CPP $CPPFLAGS'
944 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
945 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
946 cross_compiling=$ac_cv_prog_cc_cross
947
948 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
949 if test $ac_cv_prog_cc_works = no; then
950   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
951 fi
952 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
953 echo "configure:954: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
954 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
955 cross_compiling=$ac_cv_prog_cc_cross
956
957 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
958 echo "configure:959: checking whether we are using GNU C" >&5
959 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
960   echo $ac_n "(cached) $ac_c" 1>&6
961 else
962   cat > conftest.c <<EOF
963 #ifdef __GNUC__
964   yes;
965 #endif
966 EOF
967 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
968   ac_cv_prog_gcc=yes
969 else
970   ac_cv_prog_gcc=no
971 fi
972 fi
973
974 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
975
976 if test $ac_cv_prog_gcc = yes; then
977   GCC=yes
978 else
979   GCC=
980 fi
981
982 ac_test_CFLAGS="${CFLAGS+set}"
983 ac_save_CFLAGS="$CFLAGS"
984 CFLAGS=
985 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
986 echo "configure:987: checking whether ${CC-cc} accepts -g" >&5
987 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
988   echo $ac_n "(cached) $ac_c" 1>&6
989 else
990   echo 'void f(){}' > conftest.c
991 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
992   ac_cv_prog_cc_g=yes
993 else
994   ac_cv_prog_cc_g=no
995 fi
996 rm -f conftest*
997
998 fi
999
1000 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1001 if test "$ac_test_CFLAGS" = set; then
1002   CFLAGS="$ac_save_CFLAGS"
1003 elif test $ac_cv_prog_cc_g = yes; then
1004   if test "$GCC" = yes; then
1005     CFLAGS="-g -O2"
1006   else
1007     CFLAGS="-g"
1008   fi
1009 else
1010   if test "$GCC" = yes; then
1011     CFLAGS="-O2"
1012   else
1013     CFLAGS=
1014   fi
1015 fi
1016
1017 # Extract the first word of "ranlib", so it can be a program name with args.
1018 set dummy ranlib; ac_word=$2
1019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1020 echo "configure:1021: checking for $ac_word" >&5
1021 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1022   echo $ac_n "(cached) $ac_c" 1>&6
1023 else
1024   if test -n "$RANLIB"; then
1025   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1026 else
1027   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1028   ac_dummy="$PATH"
1029   for ac_dir in $ac_dummy; do
1030     test -z "$ac_dir" && ac_dir=.
1031     if test -f $ac_dir/$ac_word; then
1032       ac_cv_prog_RANLIB="ranlib"
1033       break
1034     fi
1035   done
1036   IFS="$ac_save_ifs"
1037   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1038 fi
1039 fi
1040 RANLIB="$ac_cv_prog_RANLIB"
1041 if test -n "$RANLIB"; then
1042   echo "$ac_t""$RANLIB" 1>&6
1043 else
1044   echo "$ac_t""no" 1>&6
1045 fi
1046
1047 for ac_prog in 'bison -y' byacc
1048 do
1049 # Extract the first word of "$ac_prog", so it can be a program name with args.
1050 set dummy $ac_prog; ac_word=$2
1051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1052 echo "configure:1053: checking for $ac_word" >&5
1053 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1054   echo $ac_n "(cached) $ac_c" 1>&6
1055 else
1056   if test -n "$YACC"; then
1057   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1058 else
1059   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1060   ac_dummy="$PATH"
1061   for ac_dir in $ac_dummy; do
1062     test -z "$ac_dir" && ac_dir=.
1063     if test -f $ac_dir/$ac_word; then
1064       ac_cv_prog_YACC="$ac_prog"
1065       break
1066     fi
1067   done
1068   IFS="$ac_save_ifs"
1069 fi
1070 fi
1071 YACC="$ac_cv_prog_YACC"
1072 if test -n "$YACC"; then
1073   echo "$ac_t""$YACC" 1>&6
1074 else
1075   echo "$ac_t""no" 1>&6
1076 fi
1077
1078 test -n "$YACC" && break
1079 done
1080 test -n "$YACC" || YACC="yacc"
1081
1082 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1083 echo "configure:1084: checking how to run the C preprocessor" >&5
1084 # On Suns, sometimes $CPP names a directory.
1085 if test -n "$CPP" && test -d "$CPP"; then
1086   CPP=
1087 fi
1088 if test -z "$CPP"; then
1089 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1090   echo $ac_n "(cached) $ac_c" 1>&6
1091 else
1092     # This must be in double quotes, not single quotes, because CPP may get
1093   # substituted into the Makefile and "${CC-cc}" will confuse make.
1094   CPP="${CC-cc} -E"
1095   # On the NeXT, cc -E runs the code through the compiler's parser,
1096   # not just through cpp.
1097   cat > conftest.$ac_ext <<EOF
1098 #line 1099 "configure"
1099 #include "confdefs.h"
1100 #include <assert.h>
1101 Syntax Error
1102 EOF
1103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1104 { (eval echo configure:1105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1106 if test -z "$ac_err"; then
1107   :
1108 else
1109   echo "$ac_err" >&5
1110   echo "configure: failed program was:" >&5
1111   cat conftest.$ac_ext >&5
1112   rm -rf conftest*
1113   CPP="${CC-cc} -E -traditional-cpp"
1114   cat > conftest.$ac_ext <<EOF
1115 #line 1116 "configure"
1116 #include "confdefs.h"
1117 #include <assert.h>
1118 Syntax Error
1119 EOF
1120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1121 { (eval echo configure:1122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1123 if test -z "$ac_err"; then
1124   :
1125 else
1126   echo "$ac_err" >&5
1127   echo "configure: failed program was:" >&5
1128   cat conftest.$ac_ext >&5
1129   rm -rf conftest*
1130   CPP="${CC-cc} -nologo -E"
1131   cat > conftest.$ac_ext <<EOF
1132 #line 1133 "configure"
1133 #include "confdefs.h"
1134 #include <assert.h>
1135 Syntax Error
1136 EOF
1137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1138 { (eval echo configure:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1140 if test -z "$ac_err"; then
1141   :
1142 else
1143   echo "$ac_err" >&5
1144   echo "configure: failed program was:" >&5
1145   cat conftest.$ac_ext >&5
1146   rm -rf conftest*
1147   CPP=/lib/cpp
1148 fi
1149 rm -f conftest*
1150 fi
1151 rm -f conftest*
1152 fi
1153 rm -f conftest*
1154   ac_cv_prog_CPP="$CPP"
1155 fi
1156   CPP="$ac_cv_prog_CPP"
1157 else
1158   ac_cv_prog_CPP="$CPP"
1159 fi
1160 echo "$ac_t""$CPP" 1>&6
1161
1162 missing_dir=`cd $ac_aux_dir && pwd`
1163 for ac_prog in flex lex
1164 do
1165 # Extract the first word of "$ac_prog", so it can be a program name with args.
1166 set dummy $ac_prog; ac_word=$2
1167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1168 echo "configure:1169: checking for $ac_word" >&5
1169 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1170   echo $ac_n "(cached) $ac_c" 1>&6
1171 else
1172   if test -n "$LEX"; then
1173   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1174 else
1175   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1176   ac_dummy="$PATH"
1177   for ac_dir in $ac_dummy; do
1178     test -z "$ac_dir" && ac_dir=.
1179     if test -f $ac_dir/$ac_word; then
1180       ac_cv_prog_LEX="$ac_prog"
1181       break
1182     fi
1183   done
1184   IFS="$ac_save_ifs"
1185 fi
1186 fi
1187 LEX="$ac_cv_prog_LEX"
1188 if test -n "$LEX"; then
1189   echo "$ac_t""$LEX" 1>&6
1190 else
1191   echo "$ac_t""no" 1>&6
1192 fi
1193
1194 test -n "$LEX" && break
1195 done
1196 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1197
1198 # Extract the first word of "flex", so it can be a program name with args.
1199 set dummy flex; ac_word=$2
1200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1201 echo "configure:1202: checking for $ac_word" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1203   echo $ac_n "(cached) $ac_c" 1>&6
1204 else
1205   if test -n "$LEX"; then
1206   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1207 else
1208   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1209   ac_dummy="$PATH"
1210   for ac_dir in $ac_dummy; do
1211     test -z "$ac_dir" && ac_dir=.
1212     if test -f $ac_dir/$ac_word; then
1213       ac_cv_prog_LEX="flex"
1214       break
1215     fi
1216   done
1217   IFS="$ac_save_ifs"
1218   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1219 fi
1220 fi
1221 LEX="$ac_cv_prog_LEX"
1222 if test -n "$LEX"; then
1223   echo "$ac_t""$LEX" 1>&6
1224 else
1225   echo "$ac_t""no" 1>&6
1226 fi
1227
1228 if test -z "$LEXLIB"
1229 then
1230   case "$LEX" in
1231   flex*) ac_lib=fl ;;
1232   *) ac_lib=l ;;
1233   esac
1234   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1235 echo "configure:1236: checking for yywrap in -l$ac_lib" >&5
1236 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1238   echo $ac_n "(cached) $ac_c" 1>&6
1239 else
1240   ac_save_LIBS="$LIBS"
1241 LIBS="-l$ac_lib  $LIBS"
1242 cat > conftest.$ac_ext <<EOF
1243 #line 1244 "configure"
1244 #include "confdefs.h"
1245 /* Override any gcc2 internal prototype to avoid an error.  */
1246 /* We use char because int might match the return type of a gcc2
1247     builtin and then its argument prototype would still apply.  */
1248 char yywrap();
1249
1250 int main() {
1251 yywrap()
1252 ; return 0; }
1253 EOF
1254 if { (eval echo configure:1255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1255   rm -rf conftest*
1256   eval "ac_cv_lib_$ac_lib_var=yes"
1257 else
1258   echo "configure: failed program was:" >&5
1259   cat conftest.$ac_ext >&5
1260   rm -rf conftest*
1261   eval "ac_cv_lib_$ac_lib_var=no"
1262 fi
1263 rm -f conftest*
1264 LIBS="$ac_save_LIBS"
1265
1266 fi
1267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1268   echo "$ac_t""yes" 1>&6
1269   LEXLIB="-l$ac_lib"
1270 else
1271   echo "$ac_t""no" 1>&6
1272 fi
1273
1274 fi
1275
1276 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1277 echo "configure:1278: checking lex output file root" >&5
1278 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1279   echo $ac_n "(cached) $ac_c" 1>&6
1280 else
1281   # The minimal lex program is just a single line: %%.  But some broken lexes
1282 # (Solaris, I think it was) want two %% lines, so accommodate them.
1283 echo '%%
1284 %%' | $LEX
1285 if test -f lex.yy.c; then
1286   ac_cv_prog_lex_root=lex.yy
1287 elif test -f lexyy.c; then
1288   ac_cv_prog_lex_root=lexyy
1289 else
1290   { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1291 fi
1292 fi
1293
1294 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1295 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1296
1297 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1298 echo "configure:1299: checking whether yytext is a pointer" >&5
1299 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1300   echo $ac_n "(cached) $ac_c" 1>&6
1301 else
1302   # POSIX says lex can declare yytext either as a pointer or an array; the
1303 # default is implementation-dependent. Figure out which it is, since
1304 # not all implementations provide the %pointer and %array declarations.
1305 ac_cv_prog_lex_yytext_pointer=no
1306 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1307 ac_save_LIBS="$LIBS"
1308 LIBS="$LIBS $LEXLIB"
1309 cat > conftest.$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1312 `cat $LEX_OUTPUT_ROOT.c`
1313 int main() {
1314
1315 ; return 0; }
1316 EOF
1317 if { (eval echo configure:1318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1318   rm -rf conftest*
1319   ac_cv_prog_lex_yytext_pointer=yes
1320 else
1321   echo "configure: failed program was:" >&5
1322   cat conftest.$ac_ext >&5
1323 fi
1324 rm -f conftest*
1325 LIBS="$ac_save_LIBS"
1326 rm -f "${LEX_OUTPUT_ROOT}.c"
1327
1328 fi
1329
1330 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1331 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1332   cat >> confdefs.h <<\EOF
1333 #define YYTEXT_POINTER 1
1334 EOF
1335
1336 fi
1337
1338
1339 # If we're running gcc, add '-Wall' to CFLAGS.
1340 echo $ac_n "checking to see if we can add '-Wall' to CFLAGS""... $ac_c" 1>&6
1341 echo "configure:1342: checking to see if we can add '-Wall' to CFLAGS" >&5
1342 if test x$GCC != x ; then
1343   CFLAGS="-Wall $CFLAGS"
1344   echo "$ac_t""yes" 1>&6
1345 else
1346   echo "$ac_t""no" 1>&6
1347 fi
1348
1349 # Checks for glib first, or gtk+ if not present
1350 # Check whether --with-glib-prefix or --without-glib-prefix was given.
1351 if test "${with_glib_prefix+set}" = set; then
1352   withval="$with_glib_prefix"
1353   glib_config_prefix="$withval"
1354 else
1355   glib_config_prefix=""
1356 fi
1357
1358 # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
1359 if test "${with_glib_exec_prefix+set}" = set; then
1360   withval="$with_glib_exec_prefix"
1361   glib_config_exec_prefix="$withval"
1362 else
1363   glib_config_exec_prefix=""
1364 fi
1365
1366 # Check whether --enable-glibtest or --disable-glibtest was given.
1367 if test "${enable_glibtest+set}" = set; then
1368   enableval="$enable_glibtest"
1369   :
1370 else
1371   enable_glibtest=yes
1372 fi
1373
1374
1375   if test x$glib_config_exec_prefix != x ; then
1376      glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
1377      if test x${GLIB_CONFIG+set} != xset ; then
1378         GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
1379      fi
1380   fi
1381   if test x$glib_config_prefix != x ; then
1382      glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
1383      if test x${GLIB_CONFIG+set} != xset ; then
1384         GLIB_CONFIG=$glib_config_prefix/bin/glib-config
1385      fi
1386   fi
1387
1388   for module in . 
1389   do
1390       case "$module" in
1391          gmodule) 
1392              glib_config_args="$glib_config_args gmodule"
1393          ;;
1394          gthread) 
1395              glib_config_args="$glib_config_args gthread"
1396          ;;
1397       esac
1398   done
1399
1400   # Extract the first word of "glib-config", so it can be a program name with args.
1401 set dummy glib-config; ac_word=$2
1402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1403 echo "configure:1404: checking for $ac_word" >&5
1404 if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
1405   echo $ac_n "(cached) $ac_c" 1>&6
1406 else
1407   case "$GLIB_CONFIG" in
1408   /*)
1409   ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
1410   ;;
1411   ?:/*)                  
1412   ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
1413   ;;
1414   *)
1415   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1416   ac_dummy="$PATH"
1417   for ac_dir in $ac_dummy; do 
1418     test -z "$ac_dir" && ac_dir=.
1419     if test -f $ac_dir/$ac_word; then
1420       ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
1421       break
1422     fi
1423   done
1424   IFS="$ac_save_ifs"
1425   test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
1426   ;;
1427 esac
1428 fi
1429 GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
1430 if test -n "$GLIB_CONFIG"; then
1431   echo "$ac_t""$GLIB_CONFIG" 1>&6
1432 else
1433   echo "$ac_t""no" 1>&6
1434 fi
1435
1436   min_glib_version=1.1.0
1437   echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
1438 echo "configure:1439: checking for GLIB - version >= $min_glib_version" >&5
1439   no_glib=""
1440   if test "$GLIB_CONFIG" = "no" ; then
1441     no_glib=yes
1442   else
1443     GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
1444     GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
1445     glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
1446            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1447     glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
1448            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1449     glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
1450            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1451     if test "x$enable_glibtest" = "xyes" ; then
1452       ac_save_CFLAGS="$CFLAGS"
1453       ac_save_LIBS="$LIBS"
1454       CFLAGS="$CFLAGS $GLIB_CFLAGS"
1455       LIBS="$GLIB_LIBS $LIBS"
1456       rm -f conf.glibtest
1457       if test "$cross_compiling" = yes; then
1458   echo $ac_n "cross compiling; assumed OK... $ac_c"
1459 else
1460   cat > conftest.$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1463
1464 #include <glib.h>
1465 #include <stdio.h>
1466 #include <stdlib.h>
1467
1468 int 
1469 main ()
1470 {
1471   int major, minor, micro;
1472   char *tmp_version;
1473
1474   system ("touch conf.glibtest");
1475
1476   /* HP/UX 9 (%@#!) writes to sscanf strings */
1477   tmp_version = g_strdup("$min_glib_version");
1478   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
1479      printf("%s, bad version string\n", "$min_glib_version");
1480      exit(1);
1481    }
1482
1483   if ((glib_major_version != $glib_config_major_version) ||
1484       (glib_minor_version != $glib_config_minor_version) ||
1485       (glib_micro_version != $glib_config_micro_version))
1486     {
1487       printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 
1488              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
1489              glib_major_version, glib_minor_version, glib_micro_version);
1490       printf ("*** was found! If glib-config was correct, then it is best\n");
1491       printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
1492       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1493       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1494       printf("*** required on your system.\n");
1495       printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
1496       printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
1497       printf("*** before re-running configure\n");
1498     } 
1499   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
1500            (glib_minor_version != GLIB_MINOR_VERSION) ||
1501            (glib_micro_version != GLIB_MICRO_VERSION))
1502     {
1503       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
1504              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
1505       printf("*** library (version %d.%d.%d)\n",
1506              glib_major_version, glib_minor_version, glib_micro_version);
1507     }
1508   else
1509     {
1510       if ((glib_major_version > major) ||
1511         ((glib_major_version == major) && (glib_minor_version > minor)) ||
1512         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
1513       {
1514         return 0;
1515        }
1516      else
1517       {
1518         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
1519                glib_major_version, glib_minor_version, glib_micro_version);
1520         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
1521                major, minor, micro);
1522         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
1523         printf("***\n");
1524         printf("*** If you have already installed a sufficiently new version, this error\n");
1525         printf("*** probably means that the wrong copy of the glib-config shell script is\n");
1526         printf("*** being found. The easiest way to fix this is to remove the old version\n");
1527         printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
1528         printf("*** correct copy of glib-config. (In this case, you will have to\n");
1529         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1530         printf("*** so that the correct libraries are found at run-time))\n");
1531       }
1532     }
1533   return 1;
1534 }
1535
1536 EOF
1537 if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1538 then
1539   :
1540 else
1541   echo "configure: failed program was:" >&5
1542   cat conftest.$ac_ext >&5
1543   rm -fr conftest*
1544   no_glib=yes
1545 fi
1546 rm -fr conftest*
1547 fi
1548
1549        CFLAGS="$ac_save_CFLAGS"
1550        LIBS="$ac_save_LIBS"
1551      fi
1552   fi
1553   if test "x$no_glib" = x ; then
1554      echo "$ac_t""yes" 1>&6
1555      CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS"     
1556   else
1557      echo "$ac_t""no" 1>&6
1558      if test "$GLIB_CONFIG" = "no" ; then
1559        echo "*** The glib-config script installed by GLIB could not be found"
1560        echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
1561        echo "*** your path, or set the GLIB_CONFIG environment variable to the"
1562        echo "*** full path to glib-config."
1563      else
1564        if test -f conf.glibtest ; then
1565         :
1566        else
1567           echo "*** Could not run GLIB test program, checking why..."
1568           CFLAGS="$CFLAGS $GLIB_CFLAGS"
1569           LIBS="$LIBS $GLIB_LIBS"
1570           cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1573
1574 #include <glib.h>
1575 #include <stdio.h>
1576
1577 int main() {
1578  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); 
1579 ; return 0; }
1580 EOF
1581 if { (eval echo configure:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1582   rm -rf conftest*
1583    echo "*** The test program compiled, but did not run. This usually means"
1584           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
1585           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
1586           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1587           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
1588           echo "*** is required on your system"
1589           echo "***"
1590           echo "*** If you have an old version installed, it is best to remove it, although"
1591           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1592           echo "***"
1593           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
1594           echo "*** came with the system with the command"
1595           echo "***"
1596           echo "***    rpm --erase --nodeps gtk gtk-devel" 
1597 else
1598   echo "configure: failed program was:" >&5
1599   cat conftest.$ac_ext >&5
1600   rm -rf conftest*
1601    echo "*** The test program failed to compile or link. See the file config.log for the"
1602           echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
1603           echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
1604           echo "*** may want to edit the glib-config script: $GLIB_CONFIG" 
1605 fi
1606 rm -f conftest*
1607           CFLAGS="$ac_save_CFLAGS"
1608           LIBS="$ac_save_LIBS"
1609        fi
1610      fi
1611      GLIB_CFLAGS=""
1612      GLIB_LIBS=""
1613      :
1614   fi
1615   
1616   
1617   rm -f conf.glibtest
1618
1619
1620 if test "x$GLIB_CFLAGS" = x ; then
1621  # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1622 if test "${with_gtk_prefix+set}" = set; then
1623   withval="$with_gtk_prefix"
1624   gtk_config_prefix="$withval"
1625 else
1626   gtk_config_prefix=""
1627 fi
1628
1629 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1630 if test "${with_gtk_exec_prefix+set}" = set; then
1631   withval="$with_gtk_exec_prefix"
1632   gtk_config_exec_prefix="$withval"
1633 else
1634   gtk_config_exec_prefix=""
1635 fi
1636
1637 # Check whether --enable-gtktest or --disable-gtktest was given.
1638 if test "${enable_gtktest+set}" = set; then
1639   enableval="$enable_gtktest"
1640   :
1641 else
1642   enable_gtktest=yes
1643 fi
1644
1645
1646   for module in . 
1647   do
1648       case "$module" in
1649          gthread) 
1650              gtk_config_args="$gtk_config_args gthread"
1651          ;;
1652       esac
1653   done
1654
1655   if test x$gtk_config_exec_prefix != x ; then
1656      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
1657      if test x${GTK_CONFIG+set} != xset ; then
1658         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
1659      fi
1660   fi
1661   if test x$gtk_config_prefix != x ; then
1662      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
1663      if test x${GTK_CONFIG+set} != xset ; then
1664         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
1665      fi
1666   fi
1667
1668   # Extract the first word of "gtk-config", so it can be a program name with args.
1669 set dummy gtk-config; ac_word=$2
1670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1671 echo "configure:1672: checking for $ac_word" >&5
1672 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
1673   echo $ac_n "(cached) $ac_c" 1>&6
1674 else
1675   case "$GTK_CONFIG" in
1676   /*)
1677   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
1678   ;;
1679   ?:/*)                  
1680   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
1681   ;;
1682   *)
1683   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1684   ac_dummy="$PATH"
1685   for ac_dir in $ac_dummy; do 
1686     test -z "$ac_dir" && ac_dir=.
1687     if test -f $ac_dir/$ac_word; then
1688       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
1689       break
1690     fi
1691   done
1692   IFS="$ac_save_ifs"
1693   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
1694   ;;
1695 esac
1696 fi
1697 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
1698 if test -n "$GTK_CONFIG"; then
1699   echo "$ac_t""$GTK_CONFIG" 1>&6
1700 else
1701   echo "$ac_t""no" 1>&6
1702 fi
1703
1704   min_gtk_version=1.0.0
1705   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1706 echo "configure:1707: checking for GTK - version >= $min_gtk_version" >&5
1707   no_gtk=""
1708   if test "$GTK_CONFIG" = "no" ; then
1709     no_gtk=yes
1710   else
1711     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
1712     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
1713     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
1714            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1715     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
1716            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1717     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
1718            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1719     if test "x$enable_gtktest" = "xyes" ; then
1720       ac_save_CFLAGS="$CFLAGS"
1721       ac_save_LIBS="$LIBS"
1722       CFLAGS="$CFLAGS $GTK_CFLAGS"
1723       LIBS="$GTK_LIBS $LIBS"
1724       rm -f conf.gtktest
1725       if test "$cross_compiling" = yes; then
1726   echo $ac_n "cross compiling; assumed OK... $ac_c"
1727 else
1728   cat > conftest.$ac_ext <<EOF
1729 #line 1730 "configure"
1730 #include "confdefs.h"
1731
1732 #include <gtk/gtk.h>
1733 #include <stdio.h>
1734 #include <stdlib.h>
1735
1736 int 
1737 main ()
1738 {
1739   int major, minor, micro;
1740   char *tmp_version;
1741
1742   system ("touch conf.gtktest");
1743
1744   /* HP/UX 9 (%@#!) writes to sscanf strings */
1745   tmp_version = g_strdup("$min_gtk_version");
1746   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
1747      printf("%s, bad version string\n", "$min_gtk_version");
1748      exit(1);
1749    }
1750
1751   if ((gtk_major_version != $gtk_config_major_version) ||
1752       (gtk_minor_version != $gtk_config_minor_version) ||
1753       (gtk_micro_version != $gtk_config_micro_version))
1754     {
1755       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
1756              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
1757              gtk_major_version, gtk_minor_version, gtk_micro_version);
1758       printf ("*** was found! If gtk-config was correct, then it is best\n");
1759       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
1760       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1761       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1762       printf("*** required on your system.\n");
1763       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
1764       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
1765       printf("*** before re-running configure\n");
1766     } 
1767 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
1768   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
1769            (gtk_minor_version != GTK_MINOR_VERSION) ||
1770            (gtk_micro_version != GTK_MICRO_VERSION))
1771     {
1772       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
1773              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
1774       printf("*** library (version %d.%d.%d)\n",
1775              gtk_major_version, gtk_minor_version, gtk_micro_version);
1776     }
1777 #endif /* defined (GTK_MAJOR_VERSION) ... */
1778   else
1779     {
1780       if ((gtk_major_version > major) ||
1781         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
1782         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
1783       {
1784         return 0;
1785        }
1786      else
1787       {
1788         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
1789                gtk_major_version, gtk_minor_version, gtk_micro_version);
1790         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
1791                major, minor, micro);
1792         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
1793         printf("***\n");
1794         printf("*** If you have already installed a sufficiently new version, this error\n");
1795         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
1796         printf("*** being found. The easiest way to fix this is to remove the old version\n");
1797         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
1798         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
1799         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1800         printf("*** so that the correct libraries are found at run-time))\n");
1801       }
1802     }
1803   return 1;
1804 }
1805
1806 EOF
1807 if { (eval echo configure:1808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1808 then
1809   :
1810 else
1811   echo "configure: failed program was:" >&5
1812   cat conftest.$ac_ext >&5
1813   rm -fr conftest*
1814   no_gtk=yes
1815 fi
1816 rm -fr conftest*
1817 fi
1818
1819        CFLAGS="$ac_save_CFLAGS"
1820        LIBS="$ac_save_LIBS"
1821      fi
1822   fi
1823   if test "x$no_gtk" = x ; then
1824      echo "$ac_t""yes" 1>&6
1825      CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS"     
1826   else
1827      echo "$ac_t""no" 1>&6
1828      if test "$GTK_CONFIG" = "no" ; then
1829        echo "*** The gtk-config script installed by GTK could not be found"
1830        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
1831        echo "*** your path, or set the GTK_CONFIG environment variable to the"
1832        echo "*** full path to gtk-config."
1833      else
1834        if test -f conf.gtktest ; then
1835         :
1836        else
1837           echo "*** Could not run GTK test program, checking why..."
1838           CFLAGS="$CFLAGS $GTK_CFLAGS"
1839           LIBS="$LIBS $GTK_LIBS"
1840           cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1843
1844 #include <gtk/gtk.h>
1845 #include <stdio.h>
1846
1847 int main() {
1848  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
1849 ; return 0; }
1850 EOF
1851 if { (eval echo configure:1852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1852   rm -rf conftest*
1853    echo "*** The test program compiled, but did not run. This usually means"
1854           echo "*** that the run-time linker is not finding GTK or finding the wrong"
1855           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
1856           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1857           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
1858           echo "*** is required on your system"
1859           echo "***"
1860           echo "*** If you have an old version installed, it is best to remove it, although"
1861           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1862           echo "***"
1863           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
1864           echo "*** came with the system with the command"
1865           echo "***"
1866           echo "***    rpm --erase --nodeps gtk gtk-devel" 
1867 else
1868   echo "configure: failed program was:" >&5
1869   cat conftest.$ac_ext >&5
1870   rm -rf conftest*
1871    echo "*** The test program failed to compile or link. See the file config.log for the"
1872           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
1873           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
1874           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
1875 fi
1876 rm -f conftest*
1877           CFLAGS="$ac_save_CFLAGS"
1878           LIBS="$ac_save_LIBS"
1879        fi
1880      fi
1881      GTK_CFLAGS=""
1882      GTK_LIBS=""
1883      { echo "configure: error: GTK+ library not found." 1>&2; exit 1; }
1884   fi
1885   
1886   
1887   rm -f conf.gtktest
1888
1889  cat >> confdefs.h <<\EOF
1890 #define HAVE_GLIB10 1
1891 EOF
1892
1893 fi
1894
1895 # Wiretap check (copied and modified from ethereal)
1896 echo $ac_n "checking whether to include wiretap library""... $ac_c" 1>&6
1897 echo "configure:1898: checking whether to include wiretap library" >&5
1898 # Check whether --with-wiretap or --without-wiretap was given.
1899 if test "${with_wiretap+set}" = set; then
1900   withval="$with_wiretap"
1901    case "$withval" in
1902                 yes)
1903                         echo "$ac_t""yes" 1>&6
1904                         LIBWIRETAP_A="libwiretap.a"
1905                         ;;
1906                 *)
1907                         echo "$ac_t""no" 1>&6
1908                         LIBWIRETAP_A=""
1909                         ;;
1910         esac 
1911 else
1912   echo "$ac_t""no" 1>&6
1913
1914 fi
1915
1916
1917
1918 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1919 echo "configure:1920: checking for ANSI C header files" >&5
1920 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1921   echo $ac_n "(cached) $ac_c" 1>&6
1922 else
1923   cat > conftest.$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1926 #include <stdlib.h>
1927 #include <stdarg.h>
1928 #include <string.h>
1929 #include <float.h>
1930 EOF
1931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1932 { (eval echo configure:1933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1934 if test -z "$ac_err"; then
1935   rm -rf conftest*
1936   ac_cv_header_stdc=yes
1937 else
1938   echo "$ac_err" >&5
1939   echo "configure: failed program was:" >&5
1940   cat conftest.$ac_ext >&5
1941   rm -rf conftest*
1942   ac_cv_header_stdc=no
1943 fi
1944 rm -f conftest*
1945
1946 if test $ac_cv_header_stdc = yes; then
1947   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1948 cat > conftest.$ac_ext <<EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1951 #include <string.h>
1952 EOF
1953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1954   egrep "memchr" >/dev/null 2>&1; then
1955   :
1956 else
1957   rm -rf conftest*
1958   ac_cv_header_stdc=no
1959 fi
1960 rm -f conftest*
1961
1962 fi
1963
1964 if test $ac_cv_header_stdc = yes; then
1965   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1966 cat > conftest.$ac_ext <<EOF
1967 #line 1968 "configure"
1968 #include "confdefs.h"
1969 #include <stdlib.h>
1970 EOF
1971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1972   egrep "free" >/dev/null 2>&1; then
1973   :
1974 else
1975   rm -rf conftest*
1976   ac_cv_header_stdc=no
1977 fi
1978 rm -f conftest*
1979
1980 fi
1981
1982 if test $ac_cv_header_stdc = yes; then
1983   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1984 if test "$cross_compiling" = yes; then
1985   :
1986 else
1987   cat > conftest.$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1990 #include <ctype.h>
1991 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1992 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1994 int main () { int i; for (i = 0; i < 256; i++)
1995 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1996 exit (0); }
1997
1998 EOF
1999 if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2000 then
2001   :
2002 else
2003   echo "configure: failed program was:" >&5
2004   cat conftest.$ac_ext >&5
2005   rm -fr conftest*
2006   ac_cv_header_stdc=no
2007 fi
2008 rm -fr conftest*
2009 fi
2010
2011 fi
2012 fi
2013
2014 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2015 if test $ac_cv_header_stdc = yes; then
2016   cat >> confdefs.h <<\EOF
2017 #define STDC_HEADERS 1
2018 EOF
2019
2020 fi
2021
2022 for ac_hdr in unistd.h
2023 do
2024 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2025 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2026 echo "configure:2027: checking for $ac_hdr" >&5
2027 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2028   echo $ac_n "(cached) $ac_c" 1>&6
2029 else
2030   cat > conftest.$ac_ext <<EOF
2031 #line 2032 "configure"
2032 #include "confdefs.h"
2033 #include <$ac_hdr>
2034 EOF
2035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2036 { (eval echo configure:2037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2038 if test -z "$ac_err"; then
2039   rm -rf conftest*
2040   eval "ac_cv_header_$ac_safe=yes"
2041 else
2042   echo "$ac_err" >&5
2043   echo "configure: failed program was:" >&5
2044   cat conftest.$ac_ext >&5
2045   rm -rf conftest*
2046   eval "ac_cv_header_$ac_safe=no"
2047 fi
2048 rm -f conftest*
2049 fi
2050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2051   echo "$ac_t""yes" 1>&6
2052     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2053   cat >> confdefs.h <<EOF
2054 #define $ac_tr_hdr 1
2055 EOF
2056  
2057 else
2058   echo "$ac_t""no" 1>&6
2059 fi
2060 done
2061
2062
2063 trap '' 1 2 15
2064 cat > confcache <<\EOF
2065 # This file is a shell script that caches the results of configure
2066 # tests run on this system so they can be shared between configure
2067 # scripts and configure runs.  It is not useful on other systems.
2068 # If it contains results you don't want to keep, you may remove or edit it.
2069 #
2070 # By default, configure uses ./config.cache as the cache file,
2071 # creating it if it does not exist already.  You can give configure
2072 # the --cache-file=FILE option to use a different cache file; that is
2073 # what configure does when it calls configure scripts in
2074 # subdirectories, so they share the cache.
2075 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2076 # config.status only pays attention to the cache file if you give it the
2077 # --recheck option to rerun configure.
2078 #
2079 EOF
2080 # The following way of writing the cache mishandles newlines in values,
2081 # but we know of no workaround that is simple, portable, and efficient.
2082 # So, don't put newlines in cache variables' values.
2083 # Ultrix sh set writes to stderr and can't be redirected directly,
2084 # and sets the high bit in the cache file unless we assign to the vars.
2085 (set) 2>&1 |
2086   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2087   *ac_space=\ *)
2088     # `set' does not quote correctly, so add quotes (double-quote substitution
2089     # turns \\\\ into \\, and sed turns \\ into \).
2090     sed -n \
2091       -e "s/'/'\\\\''/g" \
2092       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2093     ;;
2094   *)
2095     # `set' quotes correctly as required by POSIX, so do not add quotes.
2096     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2097     ;;
2098   esac >> confcache
2099 if cmp -s $cache_file confcache; then
2100   :
2101 else
2102   if test -w $cache_file; then
2103     echo "updating cache $cache_file"
2104     cat confcache > $cache_file
2105   else
2106     echo "not updating unwritable cache $cache_file"
2107   fi
2108 fi
2109 rm -f confcache
2110
2111 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2112
2113 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2114 # Let make expand exec_prefix.
2115 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2116
2117 # Any assignment to VPATH causes Sun make to only execute
2118 # the first set of double-colon rules, so remove it if not needed.
2119 # If there is a colon in the path, we need to keep it.
2120 if test "x$srcdir" = x.; then
2121   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2122 fi
2123
2124 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2125
2126 DEFS=-DHAVE_CONFIG_H
2127
2128 # Without the "./", some shells look in PATH for config.status.
2129 : ${CONFIG_STATUS=./config.status}
2130
2131 echo creating $CONFIG_STATUS
2132 rm -f $CONFIG_STATUS
2133 cat > $CONFIG_STATUS <<EOF
2134 #! /bin/sh
2135 # Generated automatically by configure.
2136 # Run this file to recreate the current configuration.
2137 # This directory was configured as follows,
2138 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2139 #
2140 # $0 $ac_configure_args
2141 #
2142 # Compiler output produced by configure, useful for debugging
2143 # configure, is in ./config.log if it exists.
2144
2145 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2146 for ac_option
2147 do
2148   case "\$ac_option" in
2149   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2150     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2151     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2152   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2153     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2154     exit 0 ;;
2155   -help | --help | --hel | --he | --h)
2156     echo "\$ac_cs_usage"; exit 0 ;;
2157   *) echo "\$ac_cs_usage"; exit 1 ;;
2158   esac
2159 done
2160
2161 ac_given_srcdir=$srcdir
2162 ac_given_INSTALL="$INSTALL"
2163
2164 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2165 EOF
2166 cat >> $CONFIG_STATUS <<EOF
2167
2168 # Protect against being on the right side of a sed subst in config.status.
2169 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2170  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2171 $ac_vpsub
2172 $extrasub
2173 s%@SHELL@%$SHELL%g
2174 s%@CFLAGS@%$CFLAGS%g
2175 s%@CPPFLAGS@%$CPPFLAGS%g
2176 s%@CXXFLAGS@%$CXXFLAGS%g
2177 s%@FFLAGS@%$FFLAGS%g
2178 s%@DEFS@%$DEFS%g
2179 s%@LDFLAGS@%$LDFLAGS%g
2180 s%@LIBS@%$LIBS%g
2181 s%@exec_prefix@%$exec_prefix%g
2182 s%@prefix@%$prefix%g
2183 s%@program_transform_name@%$program_transform_name%g
2184 s%@bindir@%$bindir%g
2185 s%@sbindir@%$sbindir%g
2186 s%@libexecdir@%$libexecdir%g
2187 s%@datadir@%$datadir%g
2188 s%@sysconfdir@%$sysconfdir%g
2189 s%@sharedstatedir@%$sharedstatedir%g
2190 s%@localstatedir@%$localstatedir%g
2191 s%@libdir@%$libdir%g
2192 s%@includedir@%$includedir%g
2193 s%@oldincludedir@%$oldincludedir%g
2194 s%@infodir@%$infodir%g
2195 s%@mandir@%$mandir%g
2196 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2197 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2198 s%@INSTALL_DATA@%$INSTALL_DATA%g
2199 s%@PACKAGE@%$PACKAGE%g
2200 s%@VERSION@%$VERSION%g
2201 s%@ACLOCAL@%$ACLOCAL%g
2202 s%@AUTOCONF@%$AUTOCONF%g
2203 s%@AUTOMAKE@%$AUTOMAKE%g
2204 s%@AUTOHEADER@%$AUTOHEADER%g
2205 s%@MAKEINFO@%$MAKEINFO%g
2206 s%@SET_MAKE@%$SET_MAKE%g
2207 s%@CC@%$CC%g
2208 s%@RANLIB@%$RANLIB%g
2209 s%@YACC@%$YACC%g
2210 s%@LEX@%$LEX%g
2211 s%@LEXLIB@%$LEXLIB%g
2212 s%@CPP@%$CPP%g
2213 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
2214 s%@GLIB_CONFIG@%$GLIB_CONFIG%g
2215 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
2216 s%@GLIB_LIBS@%$GLIB_LIBS%g
2217 s%@GTK_CONFIG@%$GTK_CONFIG%g
2218 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
2219 s%@GTK_LIBS@%$GTK_LIBS%g
2220 s%@LIBWIRETAP_A@%$LIBWIRETAP_A%g
2221
2222 CEOF
2223 EOF
2224
2225 cat >> $CONFIG_STATUS <<\EOF
2226
2227 # Split the substitutions into bite-sized pieces for seds with
2228 # small command number limits, like on Digital OSF/1 and HP-UX.
2229 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2230 ac_file=1 # Number of current file.
2231 ac_beg=1 # First line for current file.
2232 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2233 ac_more_lines=:
2234 ac_sed_cmds=""
2235 while $ac_more_lines; do
2236   if test $ac_beg -gt 1; then
2237     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2238   else
2239     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2240   fi
2241   if test ! -s conftest.s$ac_file; then
2242     ac_more_lines=false
2243     rm -f conftest.s$ac_file
2244   else
2245     if test -z "$ac_sed_cmds"; then
2246       ac_sed_cmds="sed -f conftest.s$ac_file"
2247     else
2248       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2249     fi
2250     ac_file=`expr $ac_file + 1`
2251     ac_beg=$ac_end
2252     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2253   fi
2254 done
2255 if test -z "$ac_sed_cmds"; then
2256   ac_sed_cmds=cat
2257 fi
2258 EOF
2259
2260 cat >> $CONFIG_STATUS <<EOF
2261
2262 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2263 EOF
2264 cat >> $CONFIG_STATUS <<\EOF
2265 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2266   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2267   case "$ac_file" in
2268   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2269        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2270   *) ac_file_in="${ac_file}.in" ;;
2271   esac
2272
2273   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2274
2275   # Remove last slash and all that follows it.  Not all systems have dirname.
2276   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2277   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2278     # The file is in a subdirectory.
2279     test ! -d "$ac_dir" && mkdir "$ac_dir"
2280     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2281     # A "../" for each directory in $ac_dir_suffix.
2282     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2283   else
2284     ac_dir_suffix= ac_dots=
2285   fi
2286
2287   case "$ac_given_srcdir" in
2288   .)  srcdir=.
2289       if test -z "$ac_dots"; then top_srcdir=.
2290       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2291   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2292   *) # Relative path.
2293     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2294     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2295   esac
2296
2297   case "$ac_given_INSTALL" in
2298   [/$]*) INSTALL="$ac_given_INSTALL" ;;
2299   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2300   esac
2301
2302   echo creating "$ac_file"
2303   rm -f "$ac_file"
2304   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2305   case "$ac_file" in
2306   *Makefile*) ac_comsub="1i\\
2307 # $configure_input" ;;
2308   *) ac_comsub= ;;
2309   esac
2310
2311   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2312   sed -e "$ac_comsub
2313 s%@configure_input@%$configure_input%g
2314 s%@srcdir@%$srcdir%g
2315 s%@top_srcdir@%$top_srcdir%g
2316 s%@INSTALL@%$INSTALL%g
2317 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2318 fi; done
2319 rm -f conftest.s*
2320
2321 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2322 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2323 #
2324 # ac_d sets the value in "#define NAME VALUE" lines.
2325 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2326 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2327 ac_dC='\3'
2328 ac_dD='%g'
2329 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2330 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2331 ac_uB='\([      ]\)%\1#\2define\3'
2332 ac_uC=' '
2333 ac_uD='\4%g'
2334 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2335 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2336 ac_eB='$%\1#\2define\3'
2337 ac_eC=' '
2338 ac_eD='%g'
2339
2340 if test "${CONFIG_HEADERS+set}" != set; then
2341 EOF
2342 cat >> $CONFIG_STATUS <<EOF
2343   CONFIG_HEADERS="config.h"
2344 EOF
2345 cat >> $CONFIG_STATUS <<\EOF
2346 fi
2347 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2348   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2349   case "$ac_file" in
2350   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2351        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2352   *) ac_file_in="${ac_file}.in" ;;
2353   esac
2354
2355   echo creating $ac_file
2356
2357   rm -f conftest.frag conftest.in conftest.out
2358   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2359   cat $ac_file_inputs > conftest.in
2360
2361 EOF
2362
2363 # Transform confdefs.h into a sed script conftest.vals that substitutes
2364 # the proper values into config.h.in to produce config.h.  And first:
2365 # Protect against being on the right side of a sed subst in config.status.
2366 # Protect against being in an unquoted here document in config.status.
2367 rm -f conftest.vals
2368 cat > conftest.hdr <<\EOF
2369 s/[\\&%]/\\&/g
2370 s%[\\$`]%\\&%g
2371 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2372 s%ac_d%ac_u%gp
2373 s%ac_u%ac_e%gp
2374 EOF
2375 sed -n -f conftest.hdr confdefs.h > conftest.vals
2376 rm -f conftest.hdr
2377
2378 # This sed command replaces #undef with comments.  This is necessary, for
2379 # example, in the case of _POSIX_SOURCE, which is predefined and required
2380 # on some systems where configure will not decide to define it.
2381 cat >> conftest.vals <<\EOF
2382 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2383 EOF
2384
2385 # Break up conftest.vals because some shells have a limit on
2386 # the size of here documents, and old seds have small limits too.
2387
2388 rm -f conftest.tail
2389 while :
2390 do
2391   ac_lines=`grep -c . conftest.vals`
2392   # grep -c gives empty output for an empty file on some AIX systems.
2393   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2394   # Write a limited-size here document to conftest.frag.
2395   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2396   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2397   echo 'CEOF
2398   sed -f conftest.frag conftest.in > conftest.out
2399   rm -f conftest.in
2400   mv conftest.out conftest.in
2401 ' >> $CONFIG_STATUS
2402   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2403   rm -f conftest.vals
2404   mv conftest.tail conftest.vals
2405 done
2406 rm -f conftest.vals
2407
2408 cat >> $CONFIG_STATUS <<\EOF
2409   rm -f conftest.frag conftest.h
2410   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2411   cat conftest.in >> conftest.h
2412   rm -f conftest.in
2413   if cmp -s $ac_file conftest.h 2>/dev/null; then
2414     echo "$ac_file is unchanged"
2415     rm -f conftest.h
2416   else
2417     # Remove last slash and all that follows it.  Not all systems have dirname.
2418       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2419       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2420       # The file is in a subdirectory.
2421       test ! -d "$ac_dir" && mkdir "$ac_dir"
2422     fi
2423     rm -f $ac_file
2424     mv conftest.h $ac_file
2425   fi
2426 fi; done
2427
2428 EOF
2429 cat >> $CONFIG_STATUS <<EOF
2430
2431
2432 EOF
2433 cat >> $CONFIG_STATUS <<\EOF
2434 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2435
2436 exit 0
2437 EOF
2438 chmod +x $CONFIG_STATUS
2439 rm -fr confdefs* $ac_clean_files
2440 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2441