source: trunk/third/libglade/configure @ 15324

Revision 15324, 147.5 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15323, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --disable-dependency-tracking Speeds up one-time builds
16  --enable-dependency-tracking  Do not reject slow dependency extractors"
17ac_help="$ac_help
18  --enable-maintainer-mode enable make rules and dependencies not useful
19                          (and sometimes confusing) to the casual installer"
20ac_help="$ac_help
21  --enable-debug             enable debugging output"
22ac_help="$ac_help
23  --enable-shared[=PKGS]  build shared libraries [default=yes]"
24ac_help="$ac_help
25  --enable-static[=PKGS]  build static libraries [default=yes]"
26ac_help="$ac_help
27  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
28ac_help="$ac_help
29  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
30ac_help="$ac_help
31  --disable-libtool-lock  avoid locking (might break parallel builds)"
32ac_help="$ac_help
33  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
34ac_help="$ac_help
35  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
36ac_help="$ac_help
37  --disable-gtktest       Do not try to compile and run a test GTK program"
38ac_help="$ac_help
39  --with-gnome-includes   Specify location of GNOME headers"
40ac_help="$ac_help
41  --with-gnome-libs       Specify location of GNOME libs"
42ac_help="$ac_help
43  --with-gnome            Specify prefix for GNOME files"
44ac_help="$ac_help
45  --enable-bonobo            enable bonobo support"
46ac_help="$ac_help
47  --with-bonobo-prefix=PFX   Prefix where Bonobo is installed (optional)"
48ac_help="$ac_help
49  --with-bonobo-exec-prefix=PFX Exec prefix where Bonobo is installed (optional)"
50ac_help="$ac_help
51  --disable-bonobotest       Do not try to compile and run a test Bonobo program"
52ac_help="$ac_help
53  --enable-compile-warnings=[no/minimum/yes]    Turn on compiler warnings."
54ac_help="$ac_help
55  --enable-iso-c          Try to warn if code is not ISO C "
56ac_help="$ac_help
57  --disable-nls           do not use Native Language Support"
58ac_help="$ac_help
59  --with-catgets          use catgets functions if available"
60
61# Initialize some variables set by options.
62# The variables have the same names as the options, with
63# dashes changed to underlines.
64build=NONE
65cache_file=./config.cache
66exec_prefix=NONE
67host=NONE
68no_create=
69nonopt=NONE
70no_recursion=
71prefix=NONE
72program_prefix=NONE
73program_suffix=NONE
74program_transform_name=s,x,x,
75silent=
76site=
77srcdir=
78target=NONE
79verbose=
80x_includes=NONE
81x_libraries=NONE
82bindir='${exec_prefix}/bin'
83sbindir='${exec_prefix}/sbin'
84libexecdir='${exec_prefix}/libexec'
85datadir='${prefix}/share'
86sysconfdir='${prefix}/etc'
87sharedstatedir='${prefix}/com'
88localstatedir='${prefix}/var'
89libdir='${exec_prefix}/lib'
90includedir='${prefix}/include'
91oldincludedir='/usr/include'
92infodir='${prefix}/info'
93mandir='${prefix}/man'
94
95# Initialize some other variables.
96subdirs=
97MFLAGS= MAKEFLAGS=
98SHELL=${CONFIG_SHELL-/bin/sh}
99# Maximum number of lines to put in a shell here document.
100ac_max_here_lines=12
101
102ac_prev=
103for ac_option
104do
105
106  # If the previous option needs an argument, assign it.
107  if test -n "$ac_prev"; then
108    eval "$ac_prev=\$ac_option"
109    ac_prev=
110    continue
111  fi
112
113  case "$ac_option" in
114  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
115  *) ac_optarg= ;;
116  esac
117
118  # Accept the important Cygnus configure options, so we can diagnose typos.
119
120  case "$ac_option" in
121
122  -bindir | --bindir | --bindi | --bind | --bin | --bi)
123    ac_prev=bindir ;;
124  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
125    bindir="$ac_optarg" ;;
126
127  -build | --build | --buil | --bui | --bu)
128    ac_prev=build ;;
129  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
130    build="$ac_optarg" ;;
131
132  -cache-file | --cache-file | --cache-fil | --cache-fi \
133  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
134    ac_prev=cache_file ;;
135  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
136  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
137    cache_file="$ac_optarg" ;;
138
139  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
140    ac_prev=datadir ;;
141  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
142  | --da=*)
143    datadir="$ac_optarg" ;;
144
145  -disable-* | --disable-*)
146    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
147    # Reject names that are not valid shell variable names.
148    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
149      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150    fi
151    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
152    eval "enable_${ac_feature}=no" ;;
153
154  -enable-* | --enable-*)
155    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
156    # Reject names that are not valid shell variable names.
157    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
158      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159    fi
160    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
161    case "$ac_option" in
162      *=*) ;;
163      *) ac_optarg=yes ;;
164    esac
165    eval "enable_${ac_feature}='$ac_optarg'" ;;
166
167  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
168  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
169  | --exec | --exe | --ex)
170    ac_prev=exec_prefix ;;
171  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
172  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
173  | --exec=* | --exe=* | --ex=*)
174    exec_prefix="$ac_optarg" ;;
175
176  -gas | --gas | --ga | --g)
177    # Obsolete; use --with-gas.
178    with_gas=yes ;;
179
180  -help | --help | --hel | --he)
181    # Omit some internal or obsolete options to make the list less imposing.
182    # This message is too long to be a string in the A/UX 3.1 sh.
183    cat << EOF
184Usage: configure [options] [host]
185Options: [defaults in brackets after descriptions]
186Configuration:
187  --cache-file=FILE       cache test results in FILE
188  --help                  print this message
189  --no-create             do not create output files
190  --quiet, --silent       do not print \`checking...' messages
191  --version               print the version of autoconf that created configure
192Directory and file names:
193  --prefix=PREFIX         install architecture-independent files in PREFIX
194                          [$ac_default_prefix]
195  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
196                          [same as prefix]
197  --bindir=DIR            user executables in DIR [EPREFIX/bin]
198  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
199  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
200  --datadir=DIR           read-only architecture-independent data in DIR
201                          [PREFIX/share]
202  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
203  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
204                          [PREFIX/com]
205  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
206  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
207  --includedir=DIR        C header files in DIR [PREFIX/include]
208  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
209  --infodir=DIR           info documentation in DIR [PREFIX/info]
210  --mandir=DIR            man documentation in DIR [PREFIX/man]
211  --srcdir=DIR            find the sources in DIR [configure dir or ..]
212  --program-prefix=PREFIX prepend PREFIX to installed program names
213  --program-suffix=SUFFIX append SUFFIX to installed program names
214  --program-transform-name=PROGRAM
215                          run sed PROGRAM on installed program names
216EOF
217    cat << EOF
218Host type:
219  --build=BUILD           configure for building on BUILD [BUILD=HOST]
220  --host=HOST             configure for HOST [guessed]
221  --target=TARGET         configure for TARGET [TARGET=HOST]
222Features and packages:
223  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
224  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
225  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
226  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
227  --x-includes=DIR        X include files are in DIR
228  --x-libraries=DIR       X library files are in DIR
229EOF
230    if test -n "$ac_help"; then
231      echo "--enable and --with options recognized:$ac_help"
232    fi
233    exit 0 ;;
234
235  -host | --host | --hos | --ho)
236    ac_prev=host ;;
237  -host=* | --host=* | --hos=* | --ho=*)
238    host="$ac_optarg" ;;
239
240  -includedir | --includedir | --includedi | --included | --include \
241  | --includ | --inclu | --incl | --inc)
242    ac_prev=includedir ;;
243  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
244  | --includ=* | --inclu=* | --incl=* | --inc=*)
245    includedir="$ac_optarg" ;;
246
247  -infodir | --infodir | --infodi | --infod | --info | --inf)
248    ac_prev=infodir ;;
249  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
250    infodir="$ac_optarg" ;;
251
252  -libdir | --libdir | --libdi | --libd)
253    ac_prev=libdir ;;
254  -libdir=* | --libdir=* | --libdi=* | --libd=*)
255    libdir="$ac_optarg" ;;
256
257  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
258  | --libexe | --libex | --libe)
259    ac_prev=libexecdir ;;
260  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
261  | --libexe=* | --libex=* | --libe=*)
262    libexecdir="$ac_optarg" ;;
263
264  -localstatedir | --localstatedir | --localstatedi | --localstated \
265  | --localstate | --localstat | --localsta | --localst \
266  | --locals | --local | --loca | --loc | --lo)
267    ac_prev=localstatedir ;;
268  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
269  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
270  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
271    localstatedir="$ac_optarg" ;;
272
273  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
274    ac_prev=mandir ;;
275  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
276    mandir="$ac_optarg" ;;
277
278  -nfp | --nfp | --nf)
279    # Obsolete; use --without-fp.
280    with_fp=no ;;
281
282  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
283  | --no-cr | --no-c)
284    no_create=yes ;;
285
286  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
287  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
288    no_recursion=yes ;;
289
290  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
291  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
292  | --oldin | --oldi | --old | --ol | --o)
293    ac_prev=oldincludedir ;;
294  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
295  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
296  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
297    oldincludedir="$ac_optarg" ;;
298
299  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
300    ac_prev=prefix ;;
301  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
302    prefix="$ac_optarg" ;;
303
304  -program-prefix | --program-prefix | --program-prefi | --program-pref \
305  | --program-pre | --program-pr | --program-p)
306    ac_prev=program_prefix ;;
307  -program-prefix=* | --program-prefix=* | --program-prefi=* \
308  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
309    program_prefix="$ac_optarg" ;;
310
311  -program-suffix | --program-suffix | --program-suffi | --program-suff \
312  | --program-suf | --program-su | --program-s)
313    ac_prev=program_suffix ;;
314  -program-suffix=* | --program-suffix=* | --program-suffi=* \
315  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
316    program_suffix="$ac_optarg" ;;
317
318  -program-transform-name | --program-transform-name \
319  | --program-transform-nam | --program-transform-na \
320  | --program-transform-n | --program-transform- \
321  | --program-transform | --program-transfor \
322  | --program-transfo | --program-transf \
323  | --program-trans | --program-tran \
324  | --progr-tra | --program-tr | --program-t)
325    ac_prev=program_transform_name ;;
326  -program-transform-name=* | --program-transform-name=* \
327  | --program-transform-nam=* | --program-transform-na=* \
328  | --program-transform-n=* | --program-transform-=* \
329  | --program-transform=* | --program-transfor=* \
330  | --program-transfo=* | --program-transf=* \
331  | --program-trans=* | --program-tran=* \
332  | --progr-tra=* | --program-tr=* | --program-t=*)
333    program_transform_name="$ac_optarg" ;;
334
335  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
336  | -silent | --silent | --silen | --sile | --sil)
337    silent=yes ;;
338
339  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
340    ac_prev=sbindir ;;
341  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
342  | --sbi=* | --sb=*)
343    sbindir="$ac_optarg" ;;
344
345  -sharedstatedir | --sharedstatedir | --sharedstatedi \
346  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
347  | --sharedst | --shareds | --shared | --share | --shar \
348  | --sha | --sh)
349    ac_prev=sharedstatedir ;;
350  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
351  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
352  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
353  | --sha=* | --sh=*)
354    sharedstatedir="$ac_optarg" ;;
355
356  -site | --site | --sit)
357    ac_prev=site ;;
358  -site=* | --site=* | --sit=*)
359    site="$ac_optarg" ;;
360
361  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
362    ac_prev=srcdir ;;
363  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
364    srcdir="$ac_optarg" ;;
365
366  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
367  | --syscon | --sysco | --sysc | --sys | --sy)
368    ac_prev=sysconfdir ;;
369  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
370  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
371    sysconfdir="$ac_optarg" ;;
372
373  -target | --target | --targe | --targ | --tar | --ta | --t)
374    ac_prev=target ;;
375  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
376    target="$ac_optarg" ;;
377
378  -v | -verbose | --verbose | --verbos | --verbo | --verb)
379    verbose=yes ;;
380
381  -version | --version | --versio | --versi | --vers)
382    echo "configure generated by autoconf version 2.13"
383    exit 0 ;;
384
385  -with-* | --with-*)
386    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
387    # Reject names that are not valid shell variable names.
388    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
389      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390    fi
391    ac_package=`echo $ac_package| sed 's/-/_/g'`
392    case "$ac_option" in
393      *=*) ;;
394      *) ac_optarg=yes ;;
395    esac
396    eval "with_${ac_package}='$ac_optarg'" ;;
397
398  -without-* | --without-*)
399    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
400    # Reject names that are not valid shell variable names.
401    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
402      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403    fi
404    ac_package=`echo $ac_package| sed 's/-/_/g'`
405    eval "with_${ac_package}=no" ;;
406
407  --x)
408    # Obsolete; use --with-x.
409    with_x=yes ;;
410
411  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
412  | --x-incl | --x-inc | --x-in | --x-i)
413    ac_prev=x_includes ;;
414  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
415  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
416    x_includes="$ac_optarg" ;;
417
418  -x-libraries | --x-libraries | --x-librarie | --x-librari \
419  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
420    ac_prev=x_libraries ;;
421  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
422  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
423    x_libraries="$ac_optarg" ;;
424
425  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
426    ;;
427
428  *)
429    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
430      echo "configure: warning: $ac_option: invalid host type" 1>&2
431    fi
432    if test "x$nonopt" != xNONE; then
433      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
434    fi
435    nonopt="$ac_option"
436    ;;
437
438  esac
439done
440
441if test -n "$ac_prev"; then
442  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
443fi
444
445trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
446
447# File descriptor usage:
448# 0 standard input
449# 1 file creation
450# 2 errors and warnings
451# 3 some systems may open it to /dev/tty
452# 4 used on the Kubota Titan
453# 6 checking for... messages and results
454# 5 compiler messages saved in config.log
455if test "$silent" = yes; then
456  exec 6>/dev/null
457else
458  exec 6>&1
459fi
460exec 5>./config.log
461
462echo "\
463This file contains any messages produced by compilers while
464running configure, to aid debugging if configure makes a mistake.
465" 1>&5
466
467# Strip out --no-create and --no-recursion so they do not pile up.
468# Also quote any args containing shell metacharacters.
469ac_configure_args=
470for ac_arg
471do
472  case "$ac_arg" in
473  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
474  | --no-cr | --no-c) ;;
475  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
477  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
478  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
479  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
480  esac
481done
482
483# NLS nuisances.
484# Only set these to C if already set.  These must not be set unconditionally
485# because not all systems understand e.g. LANG=C (notably SCO).
486# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
487# Non-C LC_CTYPE values break the ctype check.
488if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
489if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
490if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
491if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
492
493# confdefs.h avoids OS command line length limits that DEFS can exceed.
494rm -rf conftest* confdefs.h
495# AIX cpp loses on an empty file, so make sure it contains at least a newline.
496echo > confdefs.h
497
498# A filename unique to this package, relative to the directory that
499# configure is in, which we can look for to find out if srcdir is correct.
500ac_unique_file=test-libglade.c
501
502# Find the source files, if location was not specified.
503if test -z "$srcdir"; then
504  ac_srcdir_defaulted=yes
505  # Try the directory containing this script, then its parent.
506  ac_prog=$0
507  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
508  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
509  srcdir=$ac_confdir
510  if test ! -r $srcdir/$ac_unique_file; then
511    srcdir=..
512  fi
513else
514  ac_srcdir_defaulted=no
515fi
516if test ! -r $srcdir/$ac_unique_file; then
517  if test "$ac_srcdir_defaulted" = yes; then
518    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
519  else
520    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
521  fi
522fi
523srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
524
525# Prefer explicitly selected file to automatically selected ones.
526if test -z "$CONFIG_SITE"; then
527  if test "x$prefix" != xNONE; then
528    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
529  else
530    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
531  fi
532fi
533for ac_site_file in $CONFIG_SITE; do
534  if test -r "$ac_site_file"; then
535    echo "loading site script $ac_site_file"
536    . "$ac_site_file"
537  fi
538done
539
540if test -r "$cache_file"; then
541  echo "loading cache $cache_file"
542  . $cache_file
543else
544  echo "creating cache $cache_file"
545  > $cache_file
546fi
547
548ac_ext=c
549# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
550ac_cpp='$CPP $CPPFLAGS'
551ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
552ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
553cross_compiling=$ac_cv_prog_cc_cross
554
555ac_exeext=
556ac_objext=o
557if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
558  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
559  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
560    ac_n= ac_c='
561' ac_t='        '
562  else
563    ac_n=-n ac_c= ac_t=
564  fi
565else
566  ac_n= ac_c='\c' ac_t=
567fi
568
569
570
571
572
573
574ac_aux_dir=
575for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
576  if test -f $ac_dir/install-sh; then
577    ac_aux_dir=$ac_dir
578    ac_install_sh="$ac_aux_dir/install-sh -c"
579    break
580  elif test -f $ac_dir/install.sh; then
581    ac_aux_dir=$ac_dir
582    ac_install_sh="$ac_aux_dir/install.sh -c"
583    break
584  fi
585done
586if test -z "$ac_aux_dir"; then
587  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
588fi
589ac_config_guess=$ac_aux_dir/config.guess
590ac_config_sub=$ac_aux_dir/config.sub
591ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
592
593# Find a good install program.  We prefer a C program (faster),
594# so one script is as good as another.  But avoid the broken or
595# incompatible versions:
596# SysV /etc/install, /usr/sbin/install
597# SunOS /usr/etc/install
598# IRIX /sbin/install
599# AIX /bin/install
600# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
601# AFS /usr/afsws/bin/install, which mishandles nonexistent args
602# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
603# ./install, which can be erroneously created by make from ./install.sh.
604echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
605echo "configure:606: checking for a BSD compatible install" >&5
606if test -z "$INSTALL"; then
607if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
608  echo $ac_n "(cached) $ac_c" 1>&6
609else
610    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
611  for ac_dir in $PATH; do
612    # Account for people who put trailing slashes in PATH elements.
613    case "$ac_dir/" in
614    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
615    *)
616      # OSF1 and SCO ODT 3.0 have their own names for install.
617      # Don't use installbsd from OSF since it installs stuff as root
618      # by default.
619      for ac_prog in ginstall scoinst install; do
620        if test -f $ac_dir/$ac_prog; then
621          if test $ac_prog = install &&
622            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
623            # AIX install.  It has an incompatible calling convention.
624            :
625          else
626            ac_cv_path_install="$ac_dir/$ac_prog -c"
627            break 2
628          fi
629        fi
630      done
631      ;;
632    esac
633  done
634  IFS="$ac_save_IFS"
635
636fi
637  if test "${ac_cv_path_install+set}" = set; then
638    INSTALL="$ac_cv_path_install"
639  else
640    # As a last resort, use the slow shell script.  We don't cache a
641    # path for INSTALL within a source directory, because that will
642    # break other packages using the cache if that directory is
643    # removed, or if the path is relative.
644    INSTALL="$ac_install_sh"
645  fi
646fi
647echo "$ac_t""$INSTALL" 1>&6
648
649# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
650# It thinks the first close brace ends the variable substitution.
651test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
652
653test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
654
655test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
656
657echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
658echo "configure:659: checking whether build environment is sane" >&5
659# Just in case
660sleep 1
661echo timestamp > conftestfile
662# Do `set' in a subshell so we don't clobber the current shell's
663# arguments.  Must try -L first in case configure is actually a
664# symlink; some systems play weird games with the mod time of symlinks
665# (eg FreeBSD returns the mod time of the symlink's containing
666# directory).
667if (
668   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
669   if test "$*" = "X"; then
670      # -L didn't work.
671      set X `ls -t $srcdir/configure conftestfile`
672   fi
673   if test "$*" != "X $srcdir/configure conftestfile" \
674      && test "$*" != "X conftestfile $srcdir/configure"; then
675
676      # If neither matched, then we have a broken ls.  This can happen
677      # if, for instance, CONFIG_SHELL is bash and it inherits a
678      # broken ls alias from the environment.  This has actually
679      # happened.  Such a system could not be considered "sane".
680      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
681alias in your environment" 1>&2; exit 1; }
682   fi
683
684   test "$2" = conftestfile
685   )
686then
687   # Ok.
688   :
689else
690   { echo "configure: error: newly created file is older than distributed files!
691Check your system clock" 1>&2; exit 1; }
692fi
693rm -f conftest*
694echo "$ac_t""yes" 1>&6
695if test "$program_transform_name" = s,x,x,; then
696  program_transform_name=
697else
698  # Double any \ or $.  echo might interpret backslashes.
699  cat <<\EOF_SED > conftestsed
700s,\\,\\\\,g; s,\$,$$,g
701EOF_SED
702  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
703  rm -f conftestsed
704fi
705test "$program_prefix" != NONE &&
706  program_transform_name="s,^,${program_prefix},; $program_transform_name"
707# Use a double $ so make ignores it.
708test "$program_suffix" != NONE &&
709  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
710
711# sed with no file args requires a program.
712test "$program_transform_name" = "" && program_transform_name="s,x,x,"
713
714
715test x"${MISSING+set}" = xset || \
716  MISSING="\${SHELL} `CDPATH=: && cd $ac_aux_dir && pwd`/missing"
717if eval "$MISSING --run :"; then
718  am_missing_run="$MISSING --run "
719else
720  am_missing_run=
721  am_backtick='`'
722  echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
723fi
724
725for ac_prog in gawk mawk nawk awk
726do
727# Extract the first word of "$ac_prog", so it can be a program name with args.
728set dummy $ac_prog; ac_word=$2
729echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
730echo "configure:731: checking for $ac_word" >&5
731if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
732  echo $ac_n "(cached) $ac_c" 1>&6
733else
734  if test -n "$AWK"; then
735  ac_cv_prog_AWK="$AWK" # Let the user override the test.
736else
737  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
738  ac_dummy="$PATH"
739  for ac_dir in $ac_dummy; do
740    test -z "$ac_dir" && ac_dir=.
741    if test -f $ac_dir/$ac_word; then
742      ac_cv_prog_AWK="$ac_prog"
743      break
744    fi
745  done
746  IFS="$ac_save_ifs"
747fi
748fi
749AWK="$ac_cv_prog_AWK"
750if test -n "$AWK"; then
751  echo "$ac_t""$AWK" 1>&6
752else
753  echo "$ac_t""no" 1>&6
754fi
755
756test -n "$AWK" && break
757done
758
759echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
760echo "configure:761: checking whether ${MAKE-make} sets \${MAKE}" >&5
761set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
762if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
763  echo $ac_n "(cached) $ac_c" 1>&6
764else
765  cat > conftestmake <<\EOF
766all:
767        @echo 'ac_maketemp="${MAKE}"'
768EOF
769# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
770eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
771if test -n "$ac_maketemp"; then
772  eval ac_cv_prog_make_${ac_make}_set=yes
773else
774  eval ac_cv_prog_make_${ac_make}_set=no
775fi
776rm -f conftestmake
777fi
778if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
779  echo "$ac_t""yes" 1>&6
780  SET_MAKE=
781else
782  echo "$ac_t""no" 1>&6
783  SET_MAKE="MAKE=${MAKE-make}"
784fi
785
786
787# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
788if test "${enable_dependency_tracking+set}" = set; then
789  enableval="$enable_dependency_tracking"
790  :
791fi
792
793if test "x$enable_dependency_tracking" = xno; then
794  AMDEP="#"
795else
796  am_depcomp="$ac_aux_dir/depcomp"
797  if test ! -f "$am_depcomp"; then
798    AMDEP="#"
799  else
800    AMDEP=
801  fi
802fi
803
804if test -z "$AMDEP"; then
805  AMDEPBACKSLASH='\'
806else
807  AMDEPBACKSLASH=
808fi
809
810
811
812
813
814if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
815  DEPDIR=.deps
816else
817  DEPDIR=_deps
818fi
819
820
821
822
823PACKAGE=libglade
824
825VERSION=0.15
826
827if test "`CDPATH=: && cd $srcdir && pwd`" != "`pwd`" &&
828   test -f $srcdir/config.status; then
829  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
830fi
831cat >> confdefs.h <<EOF
832#define PACKAGE "$PACKAGE"
833EOF
834
835cat >> confdefs.h <<EOF
836#define VERSION "$VERSION"
837EOF
838
839
840
841
842
843ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
844
845
846
847AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
848
849
850
851AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
852
853
854
855AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
856
857
858
859MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
860
861
862
863AMTAR=${AMTAR-"${am_missing_run}tar"}
864
865
866
867if test -z "$install_sh"; then
868   install_sh="$ac_aux_dir/install-sh"
869   test -f "$install_sh" || install_sh="$ac_aux_dir/install.sh"
870   test -f "$install_sh" || install_sh="${am_missing_run}${ac_auxdir}/install-sh"
871         install_sh="`echo $install_sh | sed -e 's/\${SHELL}//'`"
872fi
873
874
875
876
877
878
879   
880
881   
882
883echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
884echo "configure:885: checking whether to enable maintainer-specific portions of Makefiles" >&5
885    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
886if test "${enable_maintainer_mode+set}" = set; then
887  enableval="$enable_maintainer_mode"
888  USE_MAINTAINER_MODE=$enableval
889else
890  USE_MAINTAINER_MODE=no
891fi
892
893  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
894 
895
896if test $USE_MAINTAINER_MODE = yes; then
897  MAINTAINER_MODE_TRUE=
898  MAINTAINER_MODE_FALSE='#'
899else
900  MAINTAINER_MODE_TRUE='#'
901  MAINTAINER_MODE_FALSE=
902fi
903  MAINT=$MAINTAINER_MODE_TRUE
904 
905
906
907
908       
909
910if test x = y; then
911  INSIDE_GNOME_COMMON_TRUE=
912  INSIDE_GNOME_COMMON_FALSE='#'
913else
914  INSIDE_GNOME_COMMON_TRUE='#'
915  INSIDE_GNOME_COMMON_FALSE=
916fi
917
918        test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
919
920        for k in macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
921
922
923# Check whether --enable-debug or --disable-debug was given.
924if test "${enable_debug+set}" = set; then
925  enableval="$enable_debug"
926  :
927else
928  enable_debug=no
929fi
930
931
932if test "x$enable_debug" != xno; then
933  cat >> confdefs.h <<\EOF
934#define DEBUG 1
935EOF
936
937fi
938
939# Extract the first word of "gcc", so it can be a program name with args.
940set dummy gcc; ac_word=$2
941echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
942echo "configure:943: checking for $ac_word" >&5
943if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
944  echo $ac_n "(cached) $ac_c" 1>&6
945else
946  if test -n "$CC"; then
947  ac_cv_prog_CC="$CC" # Let the user override the test.
948else
949  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
950  ac_dummy="$PATH"
951  for ac_dir in $ac_dummy; do
952    test -z "$ac_dir" && ac_dir=.
953    if test -f $ac_dir/$ac_word; then
954      ac_cv_prog_CC="gcc"
955      break
956    fi
957  done
958  IFS="$ac_save_ifs"
959fi
960fi
961CC="$ac_cv_prog_CC"
962if test -n "$CC"; then
963  echo "$ac_t""$CC" 1>&6
964else
965  echo "$ac_t""no" 1>&6
966fi
967
968if test -z "$CC"; then
969  # Extract the first word of "cc", so it can be a program name with args.
970set dummy cc; ac_word=$2
971echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
972echo "configure:973: checking for $ac_word" >&5
973if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
974  echo $ac_n "(cached) $ac_c" 1>&6
975else
976  if test -n "$CC"; then
977  ac_cv_prog_CC="$CC" # Let the user override the test.
978else
979  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
980  ac_prog_rejected=no
981  ac_dummy="$PATH"
982  for ac_dir in $ac_dummy; do
983    test -z "$ac_dir" && ac_dir=.
984    if test -f $ac_dir/$ac_word; then
985      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
986        ac_prog_rejected=yes
987        continue
988      fi
989      ac_cv_prog_CC="cc"
990      break
991    fi
992  done
993  IFS="$ac_save_ifs"
994if test $ac_prog_rejected = yes; then
995  # We found a bogon in the path, so make sure we never use it.
996  set dummy $ac_cv_prog_CC
997  shift
998  if test $# -gt 0; then
999    # We chose a different compiler from the bogus one.
1000    # However, it has the same basename, so the bogon will be chosen
1001    # first if we set CC to just the basename; use the full file name.
1002    shift
1003    set dummy "$ac_dir/$ac_word" "$@"
1004    shift
1005    ac_cv_prog_CC="$@"
1006  fi
1007fi
1008fi
1009fi
1010CC="$ac_cv_prog_CC"
1011if test -n "$CC"; then
1012  echo "$ac_t""$CC" 1>&6
1013else
1014  echo "$ac_t""no" 1>&6
1015fi
1016
1017  if test -z "$CC"; then
1018    case "`uname -s`" in
1019    *win32* | *WIN32*)
1020      # Extract the first word of "cl", so it can be a program name with args.
1021set dummy cl; ac_word=$2
1022echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1023echo "configure:1024: checking for $ac_word" >&5
1024if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1025  echo $ac_n "(cached) $ac_c" 1>&6
1026else
1027  if test -n "$CC"; then
1028  ac_cv_prog_CC="$CC" # Let the user override the test.
1029else
1030  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1031  ac_dummy="$PATH"
1032  for ac_dir in $ac_dummy; do
1033    test -z "$ac_dir" && ac_dir=.
1034    if test -f $ac_dir/$ac_word; then
1035      ac_cv_prog_CC="cl"
1036      break
1037    fi
1038  done
1039  IFS="$ac_save_ifs"
1040fi
1041fi
1042CC="$ac_cv_prog_CC"
1043if test -n "$CC"; then
1044  echo "$ac_t""$CC" 1>&6
1045else
1046  echo "$ac_t""no" 1>&6
1047fi
1048 ;;
1049    esac
1050  fi
1051  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1052fi
1053
1054echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1055echo "configure:1056: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1056
1057ac_ext=c
1058# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1059ac_cpp='$CPP $CPPFLAGS'
1060ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1061ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1062cross_compiling=$ac_cv_prog_cc_cross
1063
1064cat > conftest.$ac_ext << EOF
1065
1066#line 1067 "configure"
1067#include "confdefs.h"
1068
1069main(){return(0);}
1070EOF
1071if { (eval echo configure:1072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1072  ac_cv_prog_cc_works=yes
1073  # If we can't run a trivial program, we are probably using a cross compiler.
1074  if (./conftest; exit) 2>/dev/null; then
1075    ac_cv_prog_cc_cross=no
1076  else
1077    ac_cv_prog_cc_cross=yes
1078  fi
1079else
1080  echo "configure: failed program was:" >&5
1081  cat conftest.$ac_ext >&5
1082  ac_cv_prog_cc_works=no
1083fi
1084rm -fr conftest*
1085ac_ext=c
1086# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1087ac_cpp='$CPP $CPPFLAGS'
1088ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1089ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1090cross_compiling=$ac_cv_prog_cc_cross
1091
1092echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1093if test $ac_cv_prog_cc_works = no; then
1094  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1095fi
1096echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1097echo "configure:1098: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1098echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1099cross_compiling=$ac_cv_prog_cc_cross
1100
1101echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1102echo "configure:1103: checking whether we are using GNU C" >&5
1103if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1104  echo $ac_n "(cached) $ac_c" 1>&6
1105else
1106  cat > conftest.c <<EOF
1107#ifdef __GNUC__
1108  yes;
1109#endif
1110EOF
1111if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1112  ac_cv_prog_gcc=yes
1113else
1114  ac_cv_prog_gcc=no
1115fi
1116fi
1117
1118echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1119
1120if test $ac_cv_prog_gcc = yes; then
1121  GCC=yes
1122else
1123  GCC=
1124fi
1125
1126ac_test_CFLAGS="${CFLAGS+set}"
1127ac_save_CFLAGS="$CFLAGS"
1128CFLAGS=
1129echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1130echo "configure:1131: checking whether ${CC-cc} accepts -g" >&5
1131if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1132  echo $ac_n "(cached) $ac_c" 1>&6
1133else
1134  echo 'void f(){}' > conftest.c
1135if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1136  ac_cv_prog_cc_g=yes
1137else
1138  ac_cv_prog_cc_g=no
1139fi
1140rm -f conftest*
1141
1142fi
1143
1144echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1145if test "$ac_test_CFLAGS" = set; then
1146  CFLAGS="$ac_save_CFLAGS"
1147elif test $ac_cv_prog_cc_g = yes; then
1148  if test "$GCC" = yes; then
1149    CFLAGS="-g -O2"
1150  else
1151    CFLAGS="-g"
1152  fi
1153else
1154  if test "$GCC" = yes; then
1155    CFLAGS="-O2"
1156  else
1157    CFLAGS=
1158  fi
1159fi
1160
1161
1162echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1163echo "configure:1164: checking how to run the C preprocessor" >&5
1164# On Suns, sometimes $CPP names a directory.
1165if test -n "$CPP" && test -d "$CPP"; then
1166  CPP=
1167fi
1168if test -z "$CPP"; then
1169if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1170  echo $ac_n "(cached) $ac_c" 1>&6
1171else
1172    # This must be in double quotes, not single quotes, because CPP may get
1173  # substituted into the Makefile and "${CC-cc}" will confuse make.
1174  CPP="${CC-cc} -E"
1175  # On the NeXT, cc -E runs the code through the compiler's parser,
1176  # not just through cpp.
1177  cat > conftest.$ac_ext <<EOF
1178#line 1179 "configure"
1179#include "confdefs.h"
1180#include <assert.h>
1181Syntax Error
1182EOF
1183ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1184{ (eval echo configure:1185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1185ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1186if test -z "$ac_err"; then
1187  :
1188else
1189  echo "$ac_err" >&5
1190  echo "configure: failed program was:" >&5
1191  cat conftest.$ac_ext >&5
1192  rm -rf conftest*
1193  CPP="${CC-cc} -E -traditional-cpp"
1194  cat > conftest.$ac_ext <<EOF
1195#line 1196 "configure"
1196#include "confdefs.h"
1197#include <assert.h>
1198Syntax Error
1199EOF
1200ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1201{ (eval echo configure:1202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1202ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1203if test -z "$ac_err"; then
1204  :
1205else
1206  echo "$ac_err" >&5
1207  echo "configure: failed program was:" >&5
1208  cat conftest.$ac_ext >&5
1209  rm -rf conftest*
1210  CPP="${CC-cc} -nologo -E"
1211  cat > conftest.$ac_ext <<EOF
1212#line 1213 "configure"
1213#include "confdefs.h"
1214#include <assert.h>
1215Syntax Error
1216EOF
1217ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1218{ (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1219ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1220if test -z "$ac_err"; then
1221  :
1222else
1223  echo "$ac_err" >&5
1224  echo "configure: failed program was:" >&5
1225  cat conftest.$ac_ext >&5
1226  rm -rf conftest*
1227  CPP=/lib/cpp
1228fi
1229rm -f conftest*
1230fi
1231rm -f conftest*
1232fi
1233rm -f conftest*
1234  ac_cv_prog_CPP="$CPP"
1235fi
1236  CPP="$ac_cv_prog_CPP"
1237else
1238  ac_cv_prog_CPP="$CPP"
1239fi
1240echo "$ac_t""$CPP" 1>&6
1241
1242
1243
1244
1245
1246
1247
1248depcc="$CC"
1249depcpp="$CPP"
1250echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6
1251echo "configure:1252: checking dependency style of $depcc" >&5
1252if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then
1253  echo $ac_n "(cached) $ac_c" 1>&6
1254else
1255 
1256if test -z "$AMDEP"; then
1257  echo '#include "conftest.h"' > conftest.c
1258  echo 'int i;' > conftest.h
1259
1260  am_cv_CC_dependencies_compiler_type=none
1261  for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "$am_depcomp"`; do
1262    case "$depmode" in
1263    nosideeffect)
1264      # after this tag, mechanisms are not by side-effect, so they'll
1265      # only be used when explicitly requested
1266      if test "x$enable_dependency_tracking" = xyes; then
1267        continue
1268      else
1269        break
1270      fi
1271      ;;
1272    none) break ;;
1273    esac
1274    if depmode="$depmode" \
1275       source=conftest.c object=conftest.o \
1276       depfile=conftest.Po tmpdepfile=conftest.TPo \
1277       $SHELL $am_depcomp $depcc -c conftest.c 2>/dev/null &&
1278       grep conftest.h conftest.Po > /dev/null 2>&1; then
1279      am_cv_CC_dependencies_compiler_type="$depmode"
1280      break
1281    fi
1282  done
1283
1284  rm -f conftest.*
1285else
1286  am_cv_CC_dependencies_compiler_type=none
1287fi
1288
1289fi
1290
1291echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6
1292CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
1293
1294
1295echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1296echo "configure:1297: checking for POSIXized ISC" >&5
1297if test -d /etc/conf/kconfig.d &&
1298  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1299then
1300  echo "$ac_t""yes" 1>&6
1301  ISC=yes # If later tests want to check for ISC.
1302  cat >> confdefs.h <<\EOF
1303#define _POSIX_SOURCE 1
1304EOF
1305
1306  if test "$GCC" = yes; then
1307    CC="$CC -posix"
1308  else
1309    CC="$CC -Xp"
1310  fi
1311else
1312  echo "$ac_t""no" 1>&6
1313  ISC=
1314fi
1315
1316echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1317echo "configure:1318: checking for ANSI C header files" >&5
1318if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1319  echo $ac_n "(cached) $ac_c" 1>&6
1320else
1321  cat > conftest.$ac_ext <<EOF
1322#line 1323 "configure"
1323#include "confdefs.h"
1324#include <stdlib.h>
1325#include <stdarg.h>
1326#include <string.h>
1327#include <float.h>
1328EOF
1329ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1330{ (eval echo configure:1331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1331ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1332if test -z "$ac_err"; then
1333  rm -rf conftest*
1334  ac_cv_header_stdc=yes
1335else
1336  echo "$ac_err" >&5
1337  echo "configure: failed program was:" >&5
1338  cat conftest.$ac_ext >&5
1339  rm -rf conftest*
1340  ac_cv_header_stdc=no
1341fi
1342rm -f conftest*
1343
1344if test $ac_cv_header_stdc = yes; then
1345  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1346cat > conftest.$ac_ext <<EOF
1347#line 1348 "configure"
1348#include "confdefs.h"
1349#include <string.h>
1350EOF
1351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1352  egrep "memchr" >/dev/null 2>&1; then
1353  :
1354else
1355  rm -rf conftest*
1356  ac_cv_header_stdc=no
1357fi
1358rm -f conftest*
1359
1360fi
1361
1362if test $ac_cv_header_stdc = yes; then
1363  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1364cat > conftest.$ac_ext <<EOF
1365#line 1366 "configure"
1366#include "confdefs.h"
1367#include <stdlib.h>
1368EOF
1369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1370  egrep "free" >/dev/null 2>&1; then
1371  :
1372else
1373  rm -rf conftest*
1374  ac_cv_header_stdc=no
1375fi
1376rm -f conftest*
1377
1378fi
1379
1380if test $ac_cv_header_stdc = yes; then
1381  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1382if test "$cross_compiling" = yes; then
1383  :
1384else
1385  cat > conftest.$ac_ext <<EOF
1386#line 1387 "configure"
1387#include "confdefs.h"
1388#include <ctype.h>
1389#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1390#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1391#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1392int main () { int i; for (i = 0; i < 256; i++)
1393if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1394exit (0); }
1395
1396EOF
1397if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1398then
1399  :
1400else
1401  echo "configure: failed program was:" >&5
1402  cat conftest.$ac_ext >&5
1403  rm -fr conftest*
1404  ac_cv_header_stdc=no
1405fi
1406rm -fr conftest*
1407fi
1408
1409fi
1410fi
1411
1412echo "$ac_t""$ac_cv_header_stdc" 1>&6
1413if test $ac_cv_header_stdc = yes; then
1414  cat >> confdefs.h <<\EOF
1415#define STDC_HEADERS 1
1416EOF
1417
1418fi
1419
1420for ac_hdr in unistd.h
1421do
1422ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1423echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1424echo "configure:1425: checking for $ac_hdr" >&5
1425if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1426  echo $ac_n "(cached) $ac_c" 1>&6
1427else
1428  cat > conftest.$ac_ext <<EOF
1429#line 1430 "configure"
1430#include "confdefs.h"
1431#include <$ac_hdr>
1432EOF
1433ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1434{ (eval echo configure:1435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1435ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1436if test -z "$ac_err"; then
1437  rm -rf conftest*
1438  eval "ac_cv_header_$ac_safe=yes"
1439else
1440  echo "$ac_err" >&5
1441  echo "configure: failed program was:" >&5
1442  cat conftest.$ac_ext >&5
1443  rm -rf conftest*
1444  eval "ac_cv_header_$ac_safe=no"
1445fi
1446rm -f conftest*
1447fi
1448if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1449  echo "$ac_t""yes" 1>&6
1450    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1451  cat >> confdefs.h <<EOF
1452#define $ac_tr_hdr 1
1453EOF
1454 cat >> confdefs.h <<\EOF
1455#define HAVE_UNISTD_H 1
1456EOF
1457
1458else
1459  echo "$ac_t""no" 1>&6
1460fi
1461done
1462
1463
1464if test "$program_transform_name" = s,x,x,; then
1465  program_transform_name=
1466else
1467  # Double any \ or $.  echo might interpret backslashes.
1468  cat <<\EOF_SED > conftestsed
1469s,\\,\\\\,g; s,\$,$$,g
1470EOF_SED
1471  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1472  rm -f conftestsed
1473fi
1474test "$program_prefix" != NONE &&
1475  program_transform_name="s,^,${program_prefix},; $program_transform_name"
1476# Use a double $ so make ignores it.
1477test "$program_suffix" != NONE &&
1478  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1479
1480# sed with no file args requires a program.
1481test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1482
1483
1484# Check whether --enable-shared or --disable-shared was given.
1485if test "${enable_shared+set}" = set; then
1486  enableval="$enable_shared"
1487  p=${PACKAGE-default}
1488case "$enableval" in
1489yes) enable_shared=yes ;;
1490no) enable_shared=no ;;
1491*)
1492  enable_shared=no
1493  # Look at the argument we got.  We use all the common list separators.
1494  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1495  for pkg in $enableval; do
1496    if test "X$pkg" = "X$p"; then
1497      enable_shared=yes
1498    fi
1499  done
1500  IFS="$ac_save_ifs"
1501  ;;
1502esac
1503else
1504  enable_shared=yes
1505fi
1506
1507# Check whether --enable-static or --disable-static was given.
1508if test "${enable_static+set}" = set; then
1509  enableval="$enable_static"
1510  p=${PACKAGE-default}
1511case "$enableval" in
1512yes) enable_static=yes ;;
1513no) enable_static=no ;;
1514*)
1515  enable_static=no
1516  # Look at the argument we got.  We use all the common list separators.
1517  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1518  for pkg in $enableval; do
1519    if test "X$pkg" = "X$p"; then
1520      enable_static=yes
1521    fi
1522  done
1523  IFS="$ac_save_ifs"
1524  ;;
1525esac
1526else
1527  enable_static=yes
1528fi
1529
1530# Check whether --enable-fast-install or --disable-fast-install was given.
1531if test "${enable_fast_install+set}" = set; then
1532  enableval="$enable_fast_install"
1533  p=${PACKAGE-default}
1534case "$enableval" in
1535yes) enable_fast_install=yes ;;
1536no) enable_fast_install=no ;;
1537*)
1538  enable_fast_install=no
1539  # Look at the argument we got.  We use all the common list separators.
1540  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1541  for pkg in $enableval; do
1542    if test "X$pkg" = "X$p"; then
1543      enable_fast_install=yes
1544    fi
1545  done
1546  IFS="$ac_save_ifs"
1547  ;;
1548esac
1549else
1550  enable_fast_install=yes
1551fi
1552
1553
1554# Make sure we can run config.sub.
1555if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1556else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1557fi
1558
1559echo $ac_n "checking host system type""... $ac_c" 1>&6
1560echo "configure:1561: checking host system type" >&5
1561
1562host_alias=$host
1563case "$host_alias" in
1564NONE)
1565  case $nonopt in
1566  NONE)
1567    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1568    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1569    fi ;;
1570  *) host_alias=$nonopt ;;
1571  esac ;;
1572esac
1573
1574host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1575host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578echo "$ac_t""$host" 1>&6
1579
1580echo $ac_n "checking build system type""... $ac_c" 1>&6
1581echo "configure:1582: checking build system type" >&5
1582
1583build_alias=$build
1584case "$build_alias" in
1585NONE)
1586  case $nonopt in
1587  NONE) build_alias=$host_alias ;;
1588  *) build_alias=$nonopt ;;
1589  esac ;;
1590esac
1591
1592build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1593build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1594build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1595build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1596echo "$ac_t""$build" 1>&6
1597
1598# Extract the first word of "ranlib", so it can be a program name with args.
1599set dummy ranlib; ac_word=$2
1600echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1601echo "configure:1602: checking for $ac_word" >&5
1602if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1603  echo $ac_n "(cached) $ac_c" 1>&6
1604else
1605  if test -n "$RANLIB"; then
1606  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1607else
1608  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1609  ac_dummy="$PATH"
1610  for ac_dir in $ac_dummy; do
1611    test -z "$ac_dir" && ac_dir=.
1612    if test -f $ac_dir/$ac_word; then
1613      ac_cv_prog_RANLIB="ranlib"
1614      break
1615    fi
1616  done
1617  IFS="$ac_save_ifs"
1618  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1619fi
1620fi
1621RANLIB="$ac_cv_prog_RANLIB"
1622if test -n "$RANLIB"; then
1623  echo "$ac_t""$RANLIB" 1>&6
1624else
1625  echo "$ac_t""no" 1>&6
1626fi
1627
1628# Check whether --with-gnu-ld or --without-gnu-ld was given.
1629if test "${with_gnu_ld+set}" = set; then
1630  withval="$with_gnu_ld"
1631  test "$withval" = no || with_gnu_ld=yes
1632else
1633  with_gnu_ld=no
1634fi
1635
1636ac_prog=ld
1637if test "$ac_cv_prog_gcc" = yes; then
1638  # Check if gcc -print-prog-name=ld gives a path.
1639  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1640echo "configure:1641: checking for ld used by GCC" >&5
1641  ac_prog=`($CC -print-prog-name=ld) 2>&5`
1642  case "$ac_prog" in
1643    # Accept absolute paths.
1644    [\\/]* | [A-Za-z]:[\\/]*)
1645      re_direlt='/[^/][^/]*/\.\./'
1646      # Canonicalize the path of ld
1647      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1648      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1649        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1650      done
1651      test -z "$LD" && LD="$ac_prog"
1652      ;;
1653  "")
1654    # If it fails, then pretend we aren't using GCC.
1655    ac_prog=ld
1656    ;;
1657  *)
1658    # If it is relative, then search for the first ld in PATH.
1659    with_gnu_ld=unknown
1660    ;;
1661  esac
1662elif test "$with_gnu_ld" = yes; then
1663  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1664echo "configure:1665: checking for GNU ld" >&5
1665else
1666  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1667echo "configure:1668: checking for non-GNU ld" >&5
1668fi
1669if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1670  echo $ac_n "(cached) $ac_c" 1>&6
1671else
1672  if test -z "$LD"; then
1673  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1674  for ac_dir in $PATH; do
1675    test -z "$ac_dir" && ac_dir=.
1676    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1677      ac_cv_path_LD="$ac_dir/$ac_prog"
1678      # Check to see if the program is GNU ld.  I'd rather use --version,
1679      # but apparently some GNU ld's only accept -v.
1680      # Break only if it was the GNU/non-GNU ld that we prefer.
1681      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1682        test "$with_gnu_ld" != no && break
1683      else
1684        test "$with_gnu_ld" != yes && break
1685      fi
1686    fi
1687  done
1688  IFS="$ac_save_ifs"
1689else
1690  ac_cv_path_LD="$LD" # Let the user override the test with a path.
1691fi
1692fi
1693
1694LD="$ac_cv_path_LD"
1695if test -n "$LD"; then
1696  echo "$ac_t""$LD" 1>&6
1697else
1698  echo "$ac_t""no" 1>&6
1699fi
1700test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1701echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1702echo "configure:1703: checking if the linker ($LD) is GNU ld" >&5
1703if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1704  echo $ac_n "(cached) $ac_c" 1>&6
1705else
1706  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1707if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1708  ac_cv_prog_gnu_ld=yes
1709else
1710  ac_cv_prog_gnu_ld=no
1711fi
1712fi
1713
1714echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1715
1716
1717echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1718echo "configure:1719: checking for BSD-compatible nm" >&5
1719if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1720  echo $ac_n "(cached) $ac_c" 1>&6
1721else
1722  if test -n "$NM"; then
1723  # Let the user override the test.
1724  ac_cv_path_NM="$NM"
1725else
1726  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1727  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1728    test -z "$ac_dir" && ac_dir=.
1729    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1730      # Check to see if the nm accepts a BSD-compat flag.
1731      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1732      #   nm: unknown option "B" ignored
1733      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1734        ac_cv_path_NM="$ac_dir/nm -B"
1735        break
1736      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1737        ac_cv_path_NM="$ac_dir/nm -p"
1738        break
1739      else
1740        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1741        continue # so that we can try to find one that supports BSD flags
1742      fi
1743    fi
1744  done
1745  IFS="$ac_save_ifs"
1746  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1747fi
1748fi
1749
1750NM="$ac_cv_path_NM"
1751echo "$ac_t""$NM" 1>&6
1752
1753echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1754echo "configure:1755: checking whether ln -s works" >&5
1755if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1756  echo $ac_n "(cached) $ac_c" 1>&6
1757else
1758  rm -f conftestdata
1759if ln -s X conftestdata 2>/dev/null
1760then
1761  rm -f conftestdata
1762  ac_cv_prog_LN_S="ln -s"
1763else
1764  ac_cv_prog_LN_S=ln
1765fi
1766fi
1767LN_S="$ac_cv_prog_LN_S"
1768if test "$ac_cv_prog_LN_S" = "ln -s"; then
1769  echo "$ac_t""yes" 1>&6
1770else
1771  echo "$ac_t""no" 1>&6
1772fi
1773
1774
1775case "$target" in
1776NONE) lt_target="$host" ;;
1777*) lt_target="$target" ;;
1778esac
1779
1780# Check for any special flags to pass to ltconfig.
1781#
1782# the following will cause an existing older ltconfig to fail, so
1783# we ignore this at the expense of the cache file... Checking this
1784# will just take longer ... bummer!
1785#libtool_flags="--cache-file=$cache_file"
1786#
1787test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1788test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1789test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1790test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1791test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1792
1793
1794# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1795if test "${enable_libtool_lock+set}" = set; then
1796  enableval="$enable_libtool_lock"
1797  :
1798fi
1799
1800test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1801test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1802
1803# Some flags need to be propagated to the compiler or linker for good
1804# libtool support.
1805case "$lt_target" in
1806*-*-irix6*)
1807  # Find out which ABI we are using.
1808  echo '#line 1809 "configure"' > conftest.$ac_ext
1809  if { (eval echo configure:1810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1810    case "`/usr/bin/file conftest.o`" in
1811    *32-bit*)
1812      LD="${LD-ld} -32"
1813      ;;
1814    *N32*)
1815      LD="${LD-ld} -n32"
1816      ;;
1817    *64-bit*)
1818      LD="${LD-ld} -64"
1819      ;;
1820    esac
1821  fi
1822  rm -rf conftest*
1823  ;;
1824
1825*-*-sco3.2v5*)
1826  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1827  SAVE_CFLAGS="$CFLAGS"
1828  CFLAGS="$CFLAGS -belf"
1829  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1830echo "configure:1831: checking whether the C compiler needs -belf" >&5
1831if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1832  echo $ac_n "(cached) $ac_c" 1>&6
1833else
1834  cat > conftest.$ac_ext <<EOF
1835#line 1836 "configure"
1836#include "confdefs.h"
1837
1838int main() {
1839
1840; return 0; }
1841EOF
1842if { (eval echo configure:1843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1843  rm -rf conftest*
1844  lt_cv_cc_needs_belf=yes
1845else
1846  echo "configure: failed program was:" >&5
1847  cat conftest.$ac_ext >&5
1848  rm -rf conftest*
1849  lt_cv_cc_needs_belf=no
1850fi
1851rm -f conftest*
1852fi
1853
1854echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1855  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1856    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1857    CFLAGS="$SAVE_CFLAGS"
1858  fi
1859  ;;
1860
1861
1862esac
1863
1864
1865# Save cache, so that ltconfig can load it
1866cat > confcache <<\EOF
1867# This file is a shell script that caches the results of configure
1868# tests run on this system so they can be shared between configure
1869# scripts and configure runs.  It is not useful on other systems.
1870# If it contains results you don't want to keep, you may remove or edit it.
1871#
1872# By default, configure uses ./config.cache as the cache file,
1873# creating it if it does not exist already.  You can give configure
1874# the --cache-file=FILE option to use a different cache file; that is
1875# what configure does when it calls configure scripts in
1876# subdirectories, so they share the cache.
1877# Giving --cache-file=/dev/null disables caching, for debugging configure.
1878# config.status only pays attention to the cache file if you give it the
1879# --recheck option to rerun configure.
1880#
1881EOF
1882# The following way of writing the cache mishandles newlines in values,
1883# but we know of no workaround that is simple, portable, and efficient.
1884# So, don't put newlines in cache variables' values.
1885# Ultrix sh set writes to stderr and can't be redirected directly,
1886# and sets the high bit in the cache file unless we assign to the vars.
1887(set) 2>&1 |
1888  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1889  *ac_space=\ *)
1890    # `set' does not quote correctly, so add quotes (double-quote substitution
1891    # turns \\\\ into \\, and sed turns \\ into \).
1892    sed -n \
1893      -e "s/'/'\\\\''/g" \
1894      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1895    ;;
1896  *)
1897    # `set' quotes correctly as required by POSIX, so do not add quotes.
1898    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1899    ;;
1900  esac >> confcache
1901if cmp -s $cache_file confcache; then
1902  :
1903else
1904  if test -w $cache_file; then
1905    echo "updating cache $cache_file"
1906    cat confcache > $cache_file
1907  else
1908    echo "not updating unwritable cache $cache_file"
1909  fi
1910fi
1911rm -f confcache
1912
1913
1914# Actually configure libtool.  ac_aux_dir is where install-sh is found.
1915CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1916LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1917LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1918DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1919${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1920$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1921|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1922
1923# Reload cache, that may have been modified by ltconfig
1924if test -r "$cache_file"; then
1925  echo "loading cache $cache_file"
1926  . $cache_file
1927else
1928  echo "creating cache $cache_file"
1929  > $cache_file
1930fi
1931
1932
1933# This can be used to rebuild libtool when needed
1934LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1935
1936# Always use our own libtool.
1937LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1938
1939# Redirect the config.log output again, so that the ltconfig log is not
1940# clobbered by the next message.
1941exec 5>>./config.log
1942
1943
1944# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1945if test "${with_gtk_prefix+set}" = set; then
1946  withval="$with_gtk_prefix"
1947  gtk_config_prefix="$withval"
1948else
1949  gtk_config_prefix=""
1950fi
1951
1952# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1953if test "${with_gtk_exec_prefix+set}" = set; then
1954  withval="$with_gtk_exec_prefix"
1955  gtk_config_exec_prefix="$withval"
1956else
1957  gtk_config_exec_prefix=""
1958fi
1959
1960# Check whether --enable-gtktest or --disable-gtktest was given.
1961if test "${enable_gtktest+set}" = set; then
1962  enableval="$enable_gtktest"
1963  :
1964else
1965  enable_gtktest=yes
1966fi
1967
1968
1969  for module in .
1970  do
1971      case "$module" in
1972         gthread)
1973             gtk_config_args="$gtk_config_args gthread"
1974         ;;
1975      esac
1976  done
1977
1978  if test x$gtk_config_exec_prefix != x ; then
1979     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
1980     if test x${GTK_CONFIG+set} != xset ; then
1981        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
1982     fi
1983  fi
1984  if test x$gtk_config_prefix != x ; then
1985     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
1986     if test x${GTK_CONFIG+set} != xset ; then
1987        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
1988     fi
1989  fi
1990
1991  # Extract the first word of "gtk-config", so it can be a program name with args.
1992set dummy gtk-config; ac_word=$2
1993echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1994echo "configure:1995: checking for $ac_word" >&5
1995if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
1996  echo $ac_n "(cached) $ac_c" 1>&6
1997else
1998  case "$GTK_CONFIG" in
1999  /*)
2000  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
2001  ;;
2002  ?:/*)                 
2003  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
2004  ;;
2005  *)
2006  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2007  ac_dummy="$PATH"
2008  for ac_dir in $ac_dummy; do
2009    test -z "$ac_dir" && ac_dir=.
2010    if test -f $ac_dir/$ac_word; then
2011      ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
2012      break
2013    fi
2014  done
2015  IFS="$ac_save_ifs"
2016  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
2017  ;;
2018esac
2019fi
2020GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
2021if test -n "$GTK_CONFIG"; then
2022  echo "$ac_t""$GTK_CONFIG" 1>&6
2023else
2024  echo "$ac_t""no" 1>&6
2025fi
2026
2027  min_gtk_version=1.2.0
2028  echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
2029echo "configure:2030: checking for GTK - version >= $min_gtk_version" >&5
2030  no_gtk=""
2031  if test "$GTK_CONFIG" = "no" ; then
2032    no_gtk=yes
2033  else
2034    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
2035    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
2036    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
2037           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2038    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
2039           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2040    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
2041           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2042    if test "x$enable_gtktest" = "xyes" ; then
2043      ac_save_CFLAGS="$CFLAGS"
2044      ac_save_LIBS="$LIBS"
2045      CFLAGS="$CFLAGS $GTK_CFLAGS"
2046      LIBS="$GTK_LIBS $LIBS"
2047      rm -f conf.gtktest
2048      if test "$cross_compiling" = yes; then
2049  echo $ac_n "cross compiling; assumed OK... $ac_c"
2050else
2051  cat > conftest.$ac_ext <<EOF
2052#line 2053 "configure"
2053#include "confdefs.h"
2054
2055#include <gtk/gtk.h>
2056#include <stdio.h>
2057#include <stdlib.h>
2058
2059int
2060main ()
2061{
2062  int major, minor, micro;
2063  char *tmp_version;
2064
2065  system ("touch conf.gtktest");
2066
2067  /* HP/UX 9 (%@#!) writes to sscanf strings */
2068  tmp_version = g_strdup("$min_gtk_version");
2069  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
2070     printf("%s, bad version string\n", "$min_gtk_version");
2071     exit(1);
2072   }
2073
2074  if ((gtk_major_version != $gtk_config_major_version) ||
2075      (gtk_minor_version != $gtk_config_minor_version) ||
2076      (gtk_micro_version != $gtk_config_micro_version))
2077    {
2078      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
2079             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
2080             gtk_major_version, gtk_minor_version, gtk_micro_version);
2081      printf ("*** was found! If gtk-config was correct, then it is best\n");
2082      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
2083      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
2084      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
2085      printf("*** required on your system.\n");
2086      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
2087      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
2088      printf("*** before re-running configure\n");
2089    }
2090#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
2091  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
2092           (gtk_minor_version != GTK_MINOR_VERSION) ||
2093           (gtk_micro_version != GTK_MICRO_VERSION))
2094    {
2095      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
2096             GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
2097      printf("*** library (version %d.%d.%d)\n",
2098             gtk_major_version, gtk_minor_version, gtk_micro_version);
2099    }
2100#endif /* defined (GTK_MAJOR_VERSION) ... */
2101  else
2102    {
2103      if ((gtk_major_version > major) ||
2104        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
2105        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
2106      {
2107        return 0;
2108       }
2109     else
2110      {
2111        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
2112               gtk_major_version, gtk_minor_version, gtk_micro_version);
2113        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
2114               major, minor, micro);
2115        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
2116        printf("***\n");
2117        printf("*** If you have already installed a sufficiently new version, this error\n");
2118        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
2119        printf("*** being found. The easiest way to fix this is to remove the old version\n");
2120        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
2121        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
2122        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
2123        printf("*** so that the correct libraries are found at run-time))\n");
2124      }
2125    }
2126  return 1;
2127}
2128
2129EOF
2130if { (eval echo configure:2131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2131then
2132  :
2133else
2134  echo "configure: failed program was:" >&5
2135  cat conftest.$ac_ext >&5
2136  rm -fr conftest*
2137  no_gtk=yes
2138fi
2139rm -fr conftest*
2140fi
2141
2142       CFLAGS="$ac_save_CFLAGS"
2143       LIBS="$ac_save_LIBS"
2144     fi
2145  fi
2146  if test "x$no_gtk" = x ; then
2147     echo "$ac_t""yes" 1>&6
2148     :     
2149  else
2150     echo "$ac_t""no" 1>&6
2151     if test "$GTK_CONFIG" = "no" ; then
2152       echo "*** The gtk-config script installed by GTK could not be found"
2153       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
2154       echo "*** your path, or set the GTK_CONFIG environment variable to the"
2155       echo "*** full path to gtk-config."
2156     else
2157       if test -f conf.gtktest ; then
2158        :
2159       else
2160          echo "*** Could not run GTK test program, checking why..."
2161          CFLAGS="$CFLAGS $GTK_CFLAGS"
2162          LIBS="$LIBS $GTK_LIBS"
2163          cat > conftest.$ac_ext <<EOF
2164#line 2165 "configure"
2165#include "confdefs.h"
2166
2167#include <gtk/gtk.h>
2168#include <stdio.h>
2169
2170int main() {
2171 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
2172; return 0; }
2173EOF
2174if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2175  rm -rf conftest*
2176   echo "*** The test program compiled, but did not run. This usually means"
2177          echo "*** that the run-time linker is not finding GTK or finding the wrong"
2178          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
2179          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2180          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
2181          echo "*** is required on your system"
2182          echo "***"
2183          echo "*** If you have an old version installed, it is best to remove it, although"
2184          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2185          echo "***"
2186          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
2187          echo "*** came with the system with the command"
2188          echo "***"
2189          echo "***    rpm --erase --nodeps gtk gtk-devel"
2190else
2191  echo "configure: failed program was:" >&5
2192  cat conftest.$ac_ext >&5
2193  rm -rf conftest*
2194   echo "*** The test program failed to compile or link. See the file config.log for the"
2195          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
2196          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
2197          echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
2198fi
2199rm -f conftest*
2200          CFLAGS="$ac_save_CFLAGS"
2201          LIBS="$ac_save_LIBS"
2202       fi
2203     fi
2204     GTK_CFLAGS=""
2205     GTK_LIBS=""
2206     :
2207  fi
2208 
2209 
2210  rm -f conf.gtktest
2211
2212
2213# Extract the first word of "xml-config", so it can be a program name with args.
2214set dummy xml-config; ac_word=$2
2215echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2216echo "configure:2217: checking for $ac_word" >&5
2217if eval "test \"`echo '$''{'ac_cv_path_XML_CONFIG'+set}'`\" = set"; then
2218  echo $ac_n "(cached) $ac_c" 1>&6
2219else
2220  case "$XML_CONFIG" in
2221  /*)
2222  ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
2223  ;;
2224  ?:/*)                 
2225  ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a dos path.
2226  ;;
2227  *)
2228  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2229  ac_dummy="$PATH"
2230  for ac_dir in $ac_dummy; do
2231    test -z "$ac_dir" && ac_dir=.
2232    if test -f $ac_dir/$ac_word; then
2233      ac_cv_path_XML_CONFIG="$ac_dir/$ac_word"
2234      break
2235    fi
2236  done
2237  IFS="$ac_save_ifs"
2238  test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
2239  ;;
2240esac
2241fi
2242XML_CONFIG="$ac_cv_path_XML_CONFIG"
2243if test -n "$XML_CONFIG"; then
2244  echo "$ac_t""$XML_CONFIG" 1>&6
2245else
2246  echo "$ac_t""no" 1>&6
2247fi
2248
2249if test x$XML_CONFIG = xno; then
2250  { echo "configure: error: Couldn't find xml-config" 1>&2; exit 1; }
2251fi
2252XML_LIBS=`xml-config --libs`
2253XML_CFLAGS=`xml-config --cflags`
2254
2255
2256
2257old_LIBS="$LIBS"
2258LIBS="$XML_LIBS $LIBS"
2259echo $ac_n "checking for xmlSAXUserParseFile""... $ac_c" 1>&6
2260echo "configure:2261: checking for xmlSAXUserParseFile" >&5
2261if eval "test \"`echo '$''{'ac_cv_func_xmlSAXUserParseFile'+set}'`\" = set"; then
2262  echo $ac_n "(cached) $ac_c" 1>&6
2263else
2264  cat > conftest.$ac_ext <<EOF
2265#line 2266 "configure"
2266#include "confdefs.h"
2267/* System header to define __stub macros and hopefully few prototypes,
2268    which can conflict with char xmlSAXUserParseFile(); below.  */
2269#include <assert.h>
2270/* Override any gcc2 internal prototype to avoid an error.  */
2271/* We use char because int might match the return type of a gcc2
2272    builtin and then its argument prototype would still apply.  */
2273char xmlSAXUserParseFile();
2274
2275int main() {
2276
2277/* The GNU C library defines this for functions which it implements
2278    to always fail with ENOSYS.  Some functions are actually named
2279    something starting with __ and the normal name is an alias.  */
2280#if defined (__stub_xmlSAXUserParseFile) || defined (__stub___xmlSAXUserParseFile)
2281choke me
2282#else
2283xmlSAXUserParseFile();
2284#endif
2285
2286; return 0; }
2287EOF
2288if { (eval echo configure:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2289  rm -rf conftest*
2290  eval "ac_cv_func_xmlSAXUserParseFile=yes"
2291else
2292  echo "configure: failed program was:" >&5
2293  cat conftest.$ac_ext >&5
2294  rm -rf conftest*
2295  eval "ac_cv_func_xmlSAXUserParseFile=no"
2296fi
2297rm -f conftest*
2298fi
2299
2300if eval "test \"`echo '$ac_cv_func_'xmlSAXUserParseFile`\" = yes"; then
2301  echo "$ac_t""yes" 1>&6
2302  :
2303else
2304  echo "$ac_t""no" 1>&6
2305{ echo "configure: error: *** libxml >= 1.7.2 is required to compile libglade" 1>&2; exit 1; }
2306fi
2307
2308LIBS="$old_LIBS"
2309
2310
2311have_gnome=false
2312
2313       
2314       
2315       
2316       
2317       
2318       
2319       
2320
2321        # Check whether --with-gnome-includes or --without-gnome-includes was given.
2322if test "${with_gnome_includes+set}" = set; then
2323  withval="$with_gnome_includes"
2324 
2325        CFLAGS="$CFLAGS -I$withval"
2326       
2327fi
2328
2329       
2330        # Check whether --with-gnome-libs or --without-gnome-libs was given.
2331if test "${with_gnome_libs+set}" = set; then
2332  withval="$with_gnome_libs"
2333 
2334        LDFLAGS="$LDFLAGS -L$withval"
2335        gnome_prefix=$withval
2336       
2337fi
2338
2339
2340        # Check whether --with-gnome or --without-gnome was given.
2341if test "${with_gnome+set}" = set; then
2342  withval="$with_gnome"
2343  if test x$withval = xyes; then
2344                        want_gnome=yes
2345                                                                       
2346        have_gnome=true
2347        cat >> confdefs.h <<\EOF
2348#define ENABLE_GNOME 1
2349EOF
2350
2351
2352                else
2353                        if test "x$withval" = xno; then
2354                                want_gnome=no
2355                        else
2356                                want_gnome=yes
2357                                LDFLAGS="$LDFLAGS -L$withval/lib"
2358                                CFLAGS="$CFLAGS -I$withval/include"
2359                                gnome_prefix=$withval/lib
2360                        fi
2361                fi
2362else
2363  want_gnome=yes
2364fi
2365
2366
2367        if test "x$want_gnome" = xyes; then
2368
2369            # Extract the first word of "gnome-config", so it can be a program name with args.
2370set dummy gnome-config; ac_word=$2
2371echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2372echo "configure:2373: checking for $ac_word" >&5
2373if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
2374  echo $ac_n "(cached) $ac_c" 1>&6
2375else
2376  case "$GNOME_CONFIG" in
2377  /*)
2378  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
2379  ;;
2380  ?:/*)                 
2381  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
2382  ;;
2383  *)
2384  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2385  ac_dummy="$PATH"
2386  for ac_dir in $ac_dummy; do
2387    test -z "$ac_dir" && ac_dir=.
2388    if test -f $ac_dir/$ac_word; then
2389      ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
2390      break
2391    fi
2392  done
2393  IFS="$ac_save_ifs"
2394  test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
2395  ;;
2396esac
2397fi
2398GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
2399if test -n "$GNOME_CONFIG"; then
2400  echo "$ac_t""$GNOME_CONFIG" 1>&6
2401else
2402  echo "$ac_t""no" 1>&6
2403fi
2404
2405            if test "$GNOME_CONFIG" = "no"; then
2406              no_gnome_config="yes"
2407            else
2408              echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
2409echo "configure:2410: checking if $GNOME_CONFIG works" >&5
2410              if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
2411                echo "$ac_t""yes" 1>&6
2412               
2413       
2414        # Extract the first word of "orbit-config", so it can be a program name with args.
2415set dummy orbit-config; ac_word=$2
2416echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2417echo "configure:2418: checking for $ac_word" >&5
2418if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
2419  echo $ac_n "(cached) $ac_c" 1>&6
2420else
2421  case "$ORBIT_CONFIG" in
2422  /*)
2423  ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
2424  ;;
2425  ?:/*)                 
2426  ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
2427  ;;
2428  *)
2429  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2430  ac_dummy="$PATH"
2431  for ac_dir in $ac_dummy; do
2432    test -z "$ac_dir" && ac_dir=.
2433    if test -f $ac_dir/$ac_word; then
2434      ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
2435      break
2436    fi
2437  done
2438  IFS="$ac_save_ifs"
2439  test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
2440  ;;
2441esac
2442fi
2443ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
2444if test -n "$ORBIT_CONFIG"; then
2445  echo "$ac_t""$ORBIT_CONFIG" 1>&6
2446else
2447  echo "$ac_t""no" 1>&6
2448fi
2449
2450        # Extract the first word of "orbit-idl", so it can be a program name with args.
2451set dummy orbit-idl; ac_word=$2
2452echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2453echo "configure:2454: checking for $ac_word" >&5
2454if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
2455  echo $ac_n "(cached) $ac_c" 1>&6
2456else
2457  case "$ORBIT_IDL" in
2458  /*)
2459  ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
2460  ;;
2461  ?:/*)                 
2462  ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
2463  ;;
2464  *)
2465  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2466  ac_dummy="$PATH"
2467  for ac_dir in $ac_dummy; do
2468    test -z "$ac_dir" && ac_dir=.
2469    if test -f $ac_dir/$ac_word; then
2470      ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
2471      break
2472    fi
2473  done
2474  IFS="$ac_save_ifs"
2475  test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
2476  ;;
2477esac
2478fi
2479ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
2480if test -n "$ORBIT_IDL"; then
2481  echo "$ac_t""$ORBIT_IDL" 1>&6
2482else
2483  echo "$ac_t""no" 1>&6
2484fi
2485
2486        echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
2487echo "configure:2488: checking for working ORBit environment" >&5
2488if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
2489  echo $ac_n "(cached) $ac_c" 1>&6
2490else
2491 
2492                if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
2493                        gnome_cv_orbit_found=no
2494                else
2495                        gnome_cv_orbit_found=yes
2496                fi
2497       
2498fi
2499
2500echo "$ac_t""$gnome_cv_orbit_found" 1>&6
2501       
2502
2503if test x$gnome_cv_orbit_found = xyes; then
2504  HAVE_ORBIT_TRUE=
2505  HAVE_ORBIT_FALSE='#'
2506else
2507  HAVE_ORBIT_TRUE='#'
2508  HAVE_ORBIT_FALSE=
2509fi
2510        if test x$gnome_cv_orbit_found = xyes; then
2511               
2512                ORBIT_CFLAGS=`orbit-config --cflags client server`
2513                ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
2514               
2515               
2516        else
2517                if test x = xfailure; then
2518                        { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
2519                fi
2520        fi
2521
2522        echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
2523echo "configure:2524: checking for gnorba libraries" >&5
2524if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
2525  echo $ac_n "(cached) $ac_c" 1>&6
2526else
2527 
2528                gnome_cv_gnorba_found=no
2529                if test x$gnome_cv_orbit_found = xyes; then
2530                        GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2531                        GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2532                        if test -n "$GNORBA_LIBS"; then
2533                                gnome_cv_gnorba_found=yes
2534                        fi
2535                fi
2536       
2537fi
2538
2539echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
2540       
2541
2542if test x$gnome_cv_gnorba_found = xyes; then
2543  HAVE_GNORBA_TRUE=
2544  HAVE_GNORBA_FALSE='#'
2545else
2546  HAVE_GNORBA_TRUE='#'
2547  HAVE_GNORBA_FALSE=
2548fi
2549        if test x$gnome_cv_orbit_found = xyes; then
2550               
2551                GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2552                GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2553               
2554               
2555        else
2556                if test x = xfailure; then
2557                        { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
2558                fi
2559        fi
2560
2561                GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
2562                GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
2563                GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
2564                GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
2565                ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
2566                GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
2567                GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
2568               
2569        have_gnome=true
2570        cat >> confdefs.h <<\EOF
2571#define ENABLE_GNOME 1
2572EOF
2573
2574
2575              else
2576                echo "$ac_t""no" 1>&6
2577                no_gnome_config="yes"
2578              fi
2579            fi
2580
2581            if test x$exec_prefix = xNONE; then
2582                if test x$prefix = xNONE; then
2583                    gnome_prefix=$ac_default_prefix/lib
2584                else
2585                    gnome_prefix=$prefix/lib
2586                fi
2587            else
2588                gnome_prefix=`eval echo \`echo $libdir\``
2589            fi
2590       
2591            if test "$no_gnome_config" = "yes"; then
2592              echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
2593echo "configure:2594: checking for gnomeConf.sh file in $gnome_prefix" >&5
2594              if test -f $gnome_prefix/gnomeConf.sh; then
2595                echo "$ac_t""found" 1>&6
2596                echo "loading gnome configuration from" \
2597                     "$gnome_prefix/gnomeConf.sh"
2598                . $gnome_prefix/gnomeConf.sh
2599               
2600        have_gnome=true
2601        cat >> confdefs.h <<\EOF
2602#define ENABLE_GNOME 1
2603EOF
2604
2605
2606              else
2607                echo "$ac_t""not found" 1>&6
2608                if test x = xfail; then
2609                  { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
2610                fi
2611              fi
2612            fi
2613        fi
2614
2615        if test -n ""; then
2616          n=""
2617          for i in $n; do
2618            echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
2619echo "configure:2620: checking extra library \"$i\"" >&5
2620            case $i in
2621              applets)
2622               
2623                GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
2624                echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
2625              docklets)
2626               
2627                GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
2628                echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
2629              capplet)
2630               
2631                GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
2632                echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
2633              *)
2634                echo "$ac_t""unknown library" 1>&6
2635            esac
2636          done
2637        fi
2638
2639
2640
2641if $have_gnome; then
2642  GNOME_SUPPORT_TRUE=
2643  GNOME_SUPPORT_FALSE='#'
2644else
2645  GNOME_SUPPORT_TRUE='#'
2646  GNOME_SUPPORT_FALSE=
2647fi
2648
2649# Check whether --enable-bonobo or --disable-bonobo was given.
2650if test "${enable_bonobo+set}" = set; then
2651  enableval="$enable_bonobo"
2652  :
2653else
2654  enable_bonobo=no
2655fi
2656
2657have_bonobo=false
2658if test x$enable_bonobo != xno; then
2659 
2660# Check whether --with-bonobo-prefix or --without-bonobo-prefix was given.
2661if test "${with_bonobo_prefix+set}" = set; then
2662  withval="$with_bonobo_prefix"
2663  bonobo_prefix="$withval"
2664else
2665  bonobo_prefix=""
2666fi
2667
2668# Check whether --with-bonobo-exec-prefix or --without-bonobo-exec-prefix was given.
2669if test "${with_bonobo_exec_prefix+set}" = set; then
2670  withval="$with_bonobo_exec_prefix"
2671  bonobo_exec_prefix="$withval"
2672else
2673  bonobo_exec_prefix=""
2674fi
2675
2676# Check whether --enable-bonobotest or --disable-bonobotest was given.
2677if test "${enable_bonobotest+set}" = set; then
2678  enableval="$enable_bonobotest"
2679  :
2680else
2681  enable_bonobotest=yes
2682fi
2683
2684
2685  if test x$bonobo_exec_prefix != x ; then
2686     bonobo_args="$bonobo_args --exec-prefix=$bonobo_exec_prefix"
2687     if test x${GNOME_CONFIG+set} != xset ; then
2688        GNOME_CONFIG=$bonobo_exec_prefix/bin/gnome-config
2689     fi
2690  fi
2691  if test x$bonobo_prefix != x ; then
2692     bonobo_args="$bonobo_args --prefix=$bonobo_prefix"
2693     if test x${GNOME_CONFIG+set} != xset ; then
2694        GNOME_CONFIG=$bonobo_prefix/bin/gnome-config
2695     fi
2696  fi
2697
2698  # Extract the first word of "gnome-config", so it can be a program name with args.
2699set dummy gnome-config; ac_word=$2
2700echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2701echo "configure:2702: checking for $ac_word" >&5
2702if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
2703  echo $ac_n "(cached) $ac_c" 1>&6
2704else
2705  case "$GNOME_CONFIG" in
2706  /*)
2707  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
2708  ;;
2709  ?:/*)                 
2710  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
2711  ;;
2712  *)
2713  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2714  ac_dummy="$PATH"
2715  for ac_dir in $ac_dummy; do
2716    test -z "$ac_dir" && ac_dir=.
2717    if test -f $ac_dir/$ac_word; then
2718      ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
2719      break
2720    fi
2721  done
2722  IFS="$ac_save_ifs"
2723  test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
2724  ;;
2725esac
2726fi
2727GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
2728if test -n "$GNOME_CONFIG"; then
2729  echo "$ac_t""$GNOME_CONFIG" 1>&6
2730else
2731  echo "$ac_t""no" 1>&6
2732fi
2733
2734  min_bonobo_version=0.27
2735  echo $ac_n "checking for BONOBO - version >= $min_bonobo_version""... $ac_c" 1>&6
2736echo "configure:2737: checking for BONOBO - version >= $min_bonobo_version" >&5
2737  no_bonobo=""
2738  if test "$GNOME_CONFIG" = "no" ; then
2739    no_bonobo=yes
2740  else
2741    BONOBO_CFLAGS=`$GNOME_CONFIG $bonoboconf_args --cflags bonobo bonobox`
2742    BONOBO_LIBS=`$GNOME_CONFIG $bonoboconf_args --libs bonobo bonobox`
2743
2744    bonobo_major_version=`$GNOME_CONFIG $bonobo_args --version | \
2745           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2746    bonobo_minor_version=`$GNOME_CONFIG $bonobo_args --version | \
2747           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2748    bonobo_micro_version=`$GNOME_CONFIG $bonobo_config_args --version | \
2749           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2750    if test "x$enable_bonobotest" = "xyes" ; then
2751      ac_save_CFLAGS="$CFLAGS"
2752      ac_save_LIBS="$LIBS"
2753      CFLAGS="$CFLAGS $BONOBO_CFLAGS"
2754      LIBS="$LIBS $BONOBO_LIBS"
2755      rm -f conf.bonobotest
2756      if test "$cross_compiling" = yes; then
2757  echo $ac_n "cross compiling; assumed OK... $ac_c"
2758else
2759  cat > conftest.$ac_ext <<EOF
2760#line 2761 "configure"
2761#include "confdefs.h"
2762
2763#include <stdio.h>
2764#include <stdlib.h>
2765#include <string.h>
2766#include <bonobo.h>
2767
2768static char*
2769my_strdup (char *str)
2770{
2771  char *new_str;
2772 
2773  if (str)
2774    {
2775      new_str = malloc ((strlen (str) + 1) * sizeof(char));
2776      strcpy (new_str, str);
2777    }
2778  else
2779    new_str = NULL;
2780 
2781  return new_str;
2782}
2783
2784int main ()
2785{
2786  int major, minor, micro;
2787  char *tmp_version;
2788
2789  system ("touch conf.bonobotest");
2790  bonobo_object_get_type ();
2791  return 0;
2792}
2793
2794
2795EOF
2796if { (eval echo configure:2797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2797then
2798  :
2799else
2800  echo "configure: failed program was:" >&5
2801  cat conftest.$ac_ext >&5
2802  rm -fr conftest*
2803  no_bonobo=yes
2804fi
2805rm -fr conftest*
2806fi
2807
2808       CFLAGS="$ac_save_CFLAGS"
2809       LIBS="$ac_save_LIBS"
2810     fi
2811  fi
2812  if test "x$no_bonobo" = x ; then
2813     echo "$ac_t""yes" 1>&6
2814     have_bonobo=true     
2815  else
2816     echo "$ac_t""no" 1>&6
2817     if test "$GNOME_CONFIG" = "no" ; then
2818       echo "*** The gnome-config script installed by GNOME-LIBS could not be found"
2819       echo "*** If BONOBO was installed in PREFIX, make sure PREFIX/bin is in"
2820       echo "*** your path, or set the GNOME_CONFIG environment variable to the"
2821       echo "*** full path to gnome-config."
2822     else
2823       if test -f conf.bonobotest ; then
2824        :
2825       else
2826          echo "*** Could not run BONOBO test program, checking why..."
2827          CFLAGS="$CFLAGS $BONOBO_CFLAGS"
2828          LIBS="$LIBS $BONOBO_LIBS"
2829          cat > conftest.$ac_ext <<EOF
2830#line 2831 "configure"
2831#include "confdefs.h"
2832
2833#include <stdio.h>
2834#include <bonobo/gnome-object.h>
2835
2836int main() {
2837 return 0;
2838; return 0; }
2839EOF
2840if { (eval echo configure:2841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2841  rm -rf conftest*
2842   echo "*** The test program compiled, but did not run. This usually means"
2843          echo "*** that the run-time linker is not finding BONOBO or finding the wrong"
2844          echo "*** version of BONOBO. If it is not finding BONOBO, you'll need to set your"
2845          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2846          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
2847          echo "*** is required on your system"
2848          echo "***"
2849          echo "*** If you have an old version installed, it is best to remove it, although"
2850          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2851else
2852  echo "configure: failed program was:" >&5
2853  cat conftest.$ac_ext >&5
2854  rm -rf conftest*
2855   echo "*** The test program failed to compile or link. See the file config.log for the"
2856          echo "*** exact error that occured. This usually means BONOBO was incorrectly installed"
2857          echo "*** or that you have moved BONOBO since it was installed. In the latter case, you"
2858          echo "*** may want to edit the gnome-config script: $GNOME_CONFIG"
2859fi
2860rm -f conftest*
2861          CFLAGS="$ac_save_CFLAGS"
2862          LIBS="$ac_save_LIBS"
2863       fi
2864     fi
2865     BONOBO_CFLAGS=""
2866     BONOBO_LIBS=""
2867     :
2868  fi
2869 
2870 
2871  rm -f conf.bonobotest
2872
2873fi
2874
2875
2876if $have_bonobo; then
2877  BONOBO_SUPPORT_TRUE=
2878  BONOBO_SUPPORT_FALSE='#'
2879else
2880  BONOBO_SUPPORT_TRUE='#'
2881  BONOBO_SUPPORT_FALSE=
2882fi
2883
2884
2885
2886  # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
2887if test "${enable_compile_warnings+set}" = set; then
2888  enableval="$enable_compile_warnings"
2889  :
2890else
2891  enable_compile_warnings=minimum
2892fi
2893
2894
2895  echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
2896echo "configure:2897: checking what warning flags to pass to the C compiler" >&5
2897  warnCFLAGS=
2898  if test "x$GCC" != xyes; then
2899    enable_compile_warnings=no
2900  fi
2901
2902  if test "x$enable_compile_warnings" != "xno"; then
2903    if test "x$GCC" = "xyes"; then
2904      case " $CFLAGS " in
2905      *\ \      -Wall\ \        *) ;;
2906      *) warnCFLAGS="-Wall -Wunused" ;;
2907      esac
2908
2909      ## -W is not all that useful.  And it cannot be controlled
2910      ## with individual -Wno-xxx flags, unlike -Wall
2911      if test "x$enable_compile_warnings" = "xyes"; then
2912        warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations"
2913      fi
2914    fi
2915  fi
2916  echo "$ac_t""$warnCFLAGS" 1>&6
2917
2918  # Check whether --enable-iso-c or --disable-iso-c was given.
2919if test "${enable_iso_c+set}" = set; then
2920  enableval="$enable_iso_c"
2921  :
2922else
2923  enable_iso_c=no
2924fi
2925
2926
2927  echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
2928echo "configure:2929: checking what language compliance flags to pass to the C compiler" >&5
2929  complCFLAGS=
2930  if test "x$enable_iso_c" != "xno"; then
2931    if test "x$GCC" = "xyes"; then
2932      case " $CFLAGS " in
2933      *\ \      -ansi\ \        *) ;;
2934      *) complCFLAGS="$complCFLAGS -ansi" ;;
2935      esac
2936
2937      case " $CFLAGS " in
2938      *\ \      -pedantic\ \    *) ;;
2939      *) complCFLAGS="$complCFLAGS -pedantic" ;;
2940      esac
2941    fi
2942  fi
2943  echo "$ac_t""$complCFLAGS" 1>&6
2944  if test "x$cflags_set" != "xyes"; then
2945    CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
2946    cflags_set=yes
2947   
2948  fi
2949
2950
2951# Extract the first word of "gtkdoc-mkdb", so it can be a program name with args.
2952set dummy gtkdoc-mkdb; ac_word=$2
2953echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2954echo "configure:2955: checking for $ac_word" >&5
2955if eval "test \"`echo '$''{'ac_cv_prog_GTKDOC'+set}'`\" = set"; then
2956  echo $ac_n "(cached) $ac_c" 1>&6
2957else
2958  if test -n "$GTKDOC"; then
2959  ac_cv_prog_GTKDOC="$GTKDOC" # Let the user override the test.
2960else
2961  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2962  ac_dummy="$PATH"
2963  for ac_dir in $ac_dummy; do
2964    test -z "$ac_dir" && ac_dir=.
2965    if test -f $ac_dir/$ac_word; then
2966      ac_cv_prog_GTKDOC="true"
2967      break
2968    fi
2969  done
2970  IFS="$ac_save_ifs"
2971  test -z "$ac_cv_prog_GTKDOC" && ac_cv_prog_GTKDOC="false"
2972fi
2973fi
2974GTKDOC="$ac_cv_prog_GTKDOC"
2975if test -n "$GTKDOC"; then
2976  echo "$ac_t""$GTKDOC" 1>&6
2977else
2978  echo "$ac_t""no" 1>&6
2979fi
2980
2981
2982
2983if $GTKDOC; then
2984  HAVE_GTK_DOC_TRUE=
2985  HAVE_GTK_DOC_FALSE='#'
2986else
2987  HAVE_GTK_DOC_TRUE='#'
2988  HAVE_GTK_DOC_FALSE=
2989fi
2990
2991ALL_LINGUAS=""
2992echo $ac_n "checking for working const""... $ac_c" 1>&6
2993echo "configure:2994: checking for working const" >&5
2994if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2995  echo $ac_n "(cached) $ac_c" 1>&6
2996else
2997  cat > conftest.$ac_ext <<EOF
2998#line 2999 "configure"
2999#include "confdefs.h"
3000
3001int main() {
3002
3003/* Ultrix mips cc rejects this.  */
3004typedef int charset[2]; const charset x;
3005/* SunOS 4.1.1 cc rejects this.  */
3006char const *const *ccp;
3007char **p;
3008/* NEC SVR4.0.2 mips cc rejects this.  */
3009struct point {int x, y;};
3010static struct point const zero = {0,0};
3011/* AIX XL C 1.02.0.0 rejects this.
3012   It does not let you subtract one const X* pointer from another in an arm
3013   of an if-expression whose if-part is not a constant expression */
3014const char *g = "string";
3015ccp = &g + (g ? g-g : 0);
3016/* HPUX 7.0 cc rejects these. */
3017++ccp;
3018p = (char**) ccp;
3019ccp = (char const *const *) p;
3020{ /* SCO 3.2v4 cc rejects this.  */
3021  char *t;
3022  char const *s = 0 ? (char *) 0 : (char const *) 0;
3023
3024  *t++ = 0;
3025}
3026{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3027  int x[] = {25, 17};
3028  const int *foo = &x[0];
3029  ++foo;
3030}
3031{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3032  typedef const int *iptr;
3033  iptr p = 0;
3034  ++p;
3035}
3036{ /* AIX XL C 1.02.0.0 rejects this saying
3037     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3038  struct s { int j; const int *ap[3]; };
3039  struct s *b; b->j = 5;
3040}
3041{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3042  const int foo = 10;
3043}
3044
3045; return 0; }
3046EOF
3047if { (eval echo configure:3048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3048  rm -rf conftest*
3049  ac_cv_c_const=yes
3050else
3051  echo "configure: failed program was:" >&5
3052  cat conftest.$ac_ext >&5
3053  rm -rf conftest*
3054  ac_cv_c_const=no
3055fi
3056rm -f conftest*
3057fi
3058
3059echo "$ac_t""$ac_cv_c_const" 1>&6
3060if test $ac_cv_c_const = no; then
3061  cat >> confdefs.h <<\EOF
3062#define const
3063EOF
3064
3065fi
3066
3067echo $ac_n "checking for inline""... $ac_c" 1>&6
3068echo "configure:3069: checking for inline" >&5
3069if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3070  echo $ac_n "(cached) $ac_c" 1>&6
3071else
3072  ac_cv_c_inline=no
3073for ac_kw in inline __inline__ __inline; do
3074  cat > conftest.$ac_ext <<EOF
3075#line 3076 "configure"
3076#include "confdefs.h"
3077
3078int main() {
3079} $ac_kw foo() {
3080; return 0; }
3081EOF
3082if { (eval echo configure:3083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3083  rm -rf conftest*
3084  ac_cv_c_inline=$ac_kw; break
3085else
3086  echo "configure: failed program was:" >&5
3087  cat conftest.$ac_ext >&5
3088fi
3089rm -f conftest*
3090done
3091
3092fi
3093
3094echo "$ac_t""$ac_cv_c_inline" 1>&6
3095case "$ac_cv_c_inline" in
3096  inline | yes) ;;
3097  no) cat >> confdefs.h <<\EOF
3098#define inline
3099EOF
3100 ;;
3101  *)  cat >> confdefs.h <<EOF
3102#define inline $ac_cv_c_inline
3103EOF
3104 ;;
3105esac
3106
3107echo $ac_n "checking for off_t""... $ac_c" 1>&6
3108echo "configure:3109: checking for off_t" >&5
3109if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3110  echo $ac_n "(cached) $ac_c" 1>&6
3111else
3112  cat > conftest.$ac_ext <<EOF
3113#line 3114 "configure"
3114#include "confdefs.h"
3115#include <sys/types.h>
3116#if STDC_HEADERS
3117#include <stdlib.h>
3118#include <stddef.h>
3119#endif
3120EOF
3121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3122  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3123  rm -rf conftest*
3124  ac_cv_type_off_t=yes
3125else
3126  rm -rf conftest*
3127  ac_cv_type_off_t=no
3128fi
3129rm -f conftest*
3130
3131fi
3132echo "$ac_t""$ac_cv_type_off_t" 1>&6
3133if test $ac_cv_type_off_t = no; then
3134  cat >> confdefs.h <<\EOF
3135#define off_t long
3136EOF
3137
3138fi
3139
3140echo $ac_n "checking for size_t""... $ac_c" 1>&6
3141echo "configure:3142: checking for size_t" >&5
3142if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3143  echo $ac_n "(cached) $ac_c" 1>&6
3144else
3145  cat > conftest.$ac_ext <<EOF
3146#line 3147 "configure"
3147#include "confdefs.h"
3148#include <sys/types.h>
3149#if STDC_HEADERS
3150#include <stdlib.h>
3151#include <stddef.h>
3152#endif
3153EOF
3154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3155  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3156  rm -rf conftest*
3157  ac_cv_type_size_t=yes
3158else
3159  rm -rf conftest*
3160  ac_cv_type_size_t=no
3161fi
3162rm -f conftest*
3163
3164fi
3165echo "$ac_t""$ac_cv_type_size_t" 1>&6
3166if test $ac_cv_type_size_t = no; then
3167  cat >> confdefs.h <<\EOF
3168#define size_t unsigned
3169EOF
3170
3171fi
3172
3173# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3174# for constant arguments.  Useless!
3175echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3176echo "configure:3177: checking for working alloca.h" >&5
3177if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3178  echo $ac_n "(cached) $ac_c" 1>&6
3179else
3180  cat > conftest.$ac_ext <<EOF
3181#line 3182 "configure"
3182#include "confdefs.h"
3183#include <alloca.h>
3184int main() {
3185char *p = alloca(2 * sizeof(int));
3186; return 0; }
3187EOF
3188if { (eval echo configure:3189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3189  rm -rf conftest*
3190  ac_cv_header_alloca_h=yes
3191else
3192  echo "configure: failed program was:" >&5
3193  cat conftest.$ac_ext >&5
3194  rm -rf conftest*
3195  ac_cv_header_alloca_h=no
3196fi
3197rm -f conftest*
3198fi
3199
3200echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3201if test $ac_cv_header_alloca_h = yes; then
3202  cat >> confdefs.h <<\EOF
3203#define HAVE_ALLOCA_H 1
3204EOF
3205
3206fi
3207
3208echo $ac_n "checking for alloca""... $ac_c" 1>&6
3209echo "configure:3210: checking for alloca" >&5
3210if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3211  echo $ac_n "(cached) $ac_c" 1>&6
3212else
3213  cat > conftest.$ac_ext <<EOF
3214#line 3215 "configure"
3215#include "confdefs.h"
3216
3217#ifdef __GNUC__
3218# define alloca __builtin_alloca
3219#else
3220# ifdef _MSC_VER
3221#  include <malloc.h>
3222#  define alloca _alloca
3223# else
3224#  if HAVE_ALLOCA_H
3225#   include <alloca.h>
3226#  else
3227#   ifdef _AIX
3228 #pragma alloca
3229#   else
3230#    ifndef alloca /* predefined by HP cc +Olibcalls */
3231char *alloca ();
3232#    endif
3233#   endif
3234#  endif
3235# endif
3236#endif
3237
3238int main() {
3239char *p = (char *) alloca(1);
3240; return 0; }
3241EOF
3242if { (eval echo configure:3243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3243  rm -rf conftest*
3244  ac_cv_func_alloca_works=yes
3245else
3246  echo "configure: failed program was:" >&5
3247  cat conftest.$ac_ext >&5
3248  rm -rf conftest*
3249  ac_cv_func_alloca_works=no
3250fi
3251rm -f conftest*
3252fi
3253
3254echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3255if test $ac_cv_func_alloca_works = yes; then
3256  cat >> confdefs.h <<\EOF
3257#define HAVE_ALLOCA 1
3258EOF
3259
3260fi
3261
3262if test $ac_cv_func_alloca_works = no; then
3263  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3264  # that cause trouble.  Some versions do not even contain alloca or
3265  # contain a buggy version.  If you still want to use their alloca,
3266  # use ar to extract alloca.o from them instead of compiling alloca.c.
3267  ALLOCA=alloca.${ac_objext}
3268  cat >> confdefs.h <<\EOF
3269#define C_ALLOCA 1
3270EOF
3271
3272
3273echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3274echo "configure:3275: checking whether alloca needs Cray hooks" >&5
3275if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3276  echo $ac_n "(cached) $ac_c" 1>&6
3277else
3278  cat > conftest.$ac_ext <<EOF
3279#line 3280 "configure"
3280#include "confdefs.h"
3281#if defined(CRAY) && ! defined(CRAY2)
3282webecray
3283#else
3284wenotbecray
3285#endif
3286
3287EOF
3288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3289  egrep "webecray" >/dev/null 2>&1; then
3290  rm -rf conftest*
3291  ac_cv_os_cray=yes
3292else
3293  rm -rf conftest*
3294  ac_cv_os_cray=no
3295fi
3296rm -f conftest*
3297
3298fi
3299
3300echo "$ac_t""$ac_cv_os_cray" 1>&6
3301if test $ac_cv_os_cray = yes; then
3302for ac_func in _getb67 GETB67 getb67; do
3303  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3304echo "configure:3305: checking for $ac_func" >&5
3305if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3306  echo $ac_n "(cached) $ac_c" 1>&6
3307else
3308  cat > conftest.$ac_ext <<EOF
3309#line 3310 "configure"
3310#include "confdefs.h"
3311/* System header to define __stub macros and hopefully few prototypes,
3312    which can conflict with char $ac_func(); below.  */
3313#include <assert.h>
3314/* Override any gcc2 internal prototype to avoid an error.  */
3315/* We use char because int might match the return type of a gcc2
3316    builtin and then its argument prototype would still apply.  */
3317char $ac_func();
3318
3319int main() {
3320
3321/* The GNU C library defines this for functions which it implements
3322    to always fail with ENOSYS.  Some functions are actually named
3323    something starting with __ and the normal name is an alias.  */
3324#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3325choke me
3326#else
3327$ac_func();
3328#endif
3329
3330; return 0; }
3331EOF
3332if { (eval echo configure:3333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3333  rm -rf conftest*
3334  eval "ac_cv_func_$ac_func=yes"
3335else
3336  echo "configure: failed program was:" >&5
3337  cat conftest.$ac_ext >&5
3338  rm -rf conftest*
3339  eval "ac_cv_func_$ac_func=no"
3340fi
3341rm -f conftest*
3342fi
3343
3344if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3345  echo "$ac_t""yes" 1>&6
3346  cat >> confdefs.h <<EOF
3347#define CRAY_STACKSEG_END $ac_func
3348EOF
3349
3350  break
3351else
3352  echo "$ac_t""no" 1>&6
3353fi
3354
3355done
3356fi
3357
3358echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3359echo "configure:3360: checking stack direction for C alloca" >&5
3360if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3361  echo $ac_n "(cached) $ac_c" 1>&6
3362else
3363  if test "$cross_compiling" = yes; then
3364  ac_cv_c_stack_direction=0
3365else
3366  cat > conftest.$ac_ext <<EOF
3367#line 3368 "configure"
3368#include "confdefs.h"
3369find_stack_direction ()
3370{
3371  static char *addr = 0;
3372  auto char dummy;
3373  if (addr == 0)
3374    {
3375      addr = &dummy;
3376      return find_stack_direction ();
3377    }
3378  else
3379    return (&dummy > addr) ? 1 : -1;
3380}
3381main ()
3382{
3383  exit (find_stack_direction() < 0);
3384}
3385EOF
3386if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3387then
3388  ac_cv_c_stack_direction=1
3389else
3390  echo "configure: failed program was:" >&5
3391  cat conftest.$ac_ext >&5
3392  rm -fr conftest*
3393  ac_cv_c_stack_direction=-1
3394fi
3395rm -fr conftest*
3396fi
3397
3398fi
3399
3400echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3401cat >> confdefs.h <<EOF
3402#define STACK_DIRECTION $ac_cv_c_stack_direction
3403EOF
3404
3405fi
3406
3407for ac_hdr in unistd.h
3408do
3409ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3410echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3411echo "configure:3412: checking for $ac_hdr" >&5
3412if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3413  echo $ac_n "(cached) $ac_c" 1>&6
3414else
3415  cat > conftest.$ac_ext <<EOF
3416#line 3417 "configure"
3417#include "confdefs.h"
3418#include <$ac_hdr>
3419EOF
3420ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3421{ (eval echo configure:3422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3422ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3423if test -z "$ac_err"; then
3424  rm -rf conftest*
3425  eval "ac_cv_header_$ac_safe=yes"
3426else
3427  echo "$ac_err" >&5
3428  echo "configure: failed program was:" >&5
3429  cat conftest.$ac_ext >&5
3430  rm -rf conftest*
3431  eval "ac_cv_header_$ac_safe=no"
3432fi
3433rm -f conftest*
3434fi
3435if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3436  echo "$ac_t""yes" 1>&6
3437    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3438  cat >> confdefs.h <<EOF
3439#define $ac_tr_hdr 1
3440EOF
3441 
3442else
3443  echo "$ac_t""no" 1>&6
3444fi
3445done
3446
3447for ac_func in getpagesize
3448do
3449echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3450echo "configure:3451: checking for $ac_func" >&5
3451if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3452  echo $ac_n "(cached) $ac_c" 1>&6
3453else
3454  cat > conftest.$ac_ext <<EOF
3455#line 3456 "configure"
3456#include "confdefs.h"
3457/* System header to define __stub macros and hopefully few prototypes,
3458    which can conflict with char $ac_func(); below.  */
3459#include <assert.h>
3460/* Override any gcc2 internal prototype to avoid an error.  */
3461/* We use char because int might match the return type of a gcc2
3462    builtin and then its argument prototype would still apply.  */
3463char $ac_func();
3464
3465int main() {
3466
3467/* The GNU C library defines this for functions which it implements
3468    to always fail with ENOSYS.  Some functions are actually named
3469    something starting with __ and the normal name is an alias.  */
3470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3471choke me
3472#else
3473$ac_func();
3474#endif
3475
3476; return 0; }
3477EOF
3478if { (eval echo configure:3479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3479  rm -rf conftest*
3480  eval "ac_cv_func_$ac_func=yes"
3481else
3482  echo "configure: failed program was:" >&5
3483  cat conftest.$ac_ext >&5
3484  rm -rf conftest*
3485  eval "ac_cv_func_$ac_func=no"
3486fi
3487rm -f conftest*
3488fi
3489
3490if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3491  echo "$ac_t""yes" 1>&6
3492    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3493  cat >> confdefs.h <<EOF
3494#define $ac_tr_func 1
3495EOF
3496 
3497else
3498  echo "$ac_t""no" 1>&6
3499fi
3500done
3501
3502echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3503echo "configure:3504: checking for working mmap" >&5
3504if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3505  echo $ac_n "(cached) $ac_c" 1>&6
3506else
3507  if test "$cross_compiling" = yes; then
3508  ac_cv_func_mmap_fixed_mapped=no
3509else
3510  cat > conftest.$ac_ext <<EOF
3511#line 3512 "configure"
3512#include "confdefs.h"
3513
3514/* Thanks to Mike Haertel and Jim Avera for this test.
3515   Here is a matrix of mmap possibilities:
3516        mmap private not fixed
3517        mmap private fixed at somewhere currently unmapped
3518        mmap private fixed at somewhere already mapped
3519        mmap shared not fixed
3520        mmap shared fixed at somewhere currently unmapped
3521        mmap shared fixed at somewhere already mapped
3522   For private mappings, we should verify that changes cannot be read()
3523   back from the file, nor mmap's back from the file at a different
3524   address.  (There have been systems where private was not correctly
3525   implemented like the infamous i386 svr4.0, and systems where the
3526   VM page cache was not coherent with the filesystem buffer cache
3527   like early versions of FreeBSD and possibly contemporary NetBSD.)
3528   For shared mappings, we should conversely verify that changes get
3529   propogated back to all the places they're supposed to be.
3530
3531   Grep wants private fixed already mapped.
3532   The main things grep needs to know about mmap are:
3533   * does it exist and is it safe to write into the mmap'd area
3534   * how to use it (BSD variants)  */
3535#include <sys/types.h>
3536#include <fcntl.h>
3537#include <sys/mman.h>
3538
3539/* This mess was copied from the GNU getpagesize.h.  */
3540#ifndef HAVE_GETPAGESIZE
3541# ifdef HAVE_UNISTD_H
3542#  include <unistd.h>
3543# endif
3544
3545/* Assume that all systems that can run configure have sys/param.h.  */
3546# ifndef HAVE_SYS_PARAM_H
3547#  define HAVE_SYS_PARAM_H 1
3548# endif
3549
3550# ifdef _SC_PAGESIZE
3551#  define getpagesize() sysconf(_SC_PAGESIZE)
3552# else /* no _SC_PAGESIZE */
3553#  ifdef HAVE_SYS_PARAM_H
3554#   include <sys/param.h>
3555#   ifdef EXEC_PAGESIZE
3556#    define getpagesize() EXEC_PAGESIZE
3557#   else /* no EXEC_PAGESIZE */
3558#    ifdef NBPG
3559#     define getpagesize() NBPG * CLSIZE
3560#     ifndef CLSIZE
3561#      define CLSIZE 1
3562#     endif /* no CLSIZE */
3563#    else /* no NBPG */
3564#     ifdef NBPC
3565#      define getpagesize() NBPC
3566#     else /* no NBPC */
3567#      ifdef PAGESIZE
3568#       define getpagesize() PAGESIZE
3569#      endif /* PAGESIZE */
3570#     endif /* no NBPC */
3571#    endif /* no NBPG */
3572#   endif /* no EXEC_PAGESIZE */
3573#  else /* no HAVE_SYS_PARAM_H */
3574#   define getpagesize() 8192   /* punt totally */
3575#  endif /* no HAVE_SYS_PARAM_H */
3576# endif /* no _SC_PAGESIZE */
3577
3578#endif /* no HAVE_GETPAGESIZE */
3579
3580#ifdef __cplusplus
3581extern "C" { void *malloc(unsigned); }
3582#else
3583char *malloc();
3584#endif
3585
3586int
3587main()
3588{
3589        char *data, *data2, *data3;
3590        int i, pagesize;
3591        int fd;
3592
3593        pagesize = getpagesize();
3594
3595        /*
3596         * First, make a file with some known garbage in it.
3597         */
3598        data = malloc(pagesize);
3599        if (!data)
3600                exit(1);
3601        for (i = 0; i < pagesize; ++i)
3602                *(data + i) = rand();
3603        umask(0);
3604        fd = creat("conftestmmap", 0600);
3605        if (fd < 0)
3606                exit(1);
3607        if (write(fd, data, pagesize) != pagesize)
3608                exit(1);
3609        close(fd);
3610
3611        /*
3612         * Next, try to mmap the file at a fixed address which
3613         * already has something else allocated at it.  If we can,
3614         * also make sure that we see the same garbage.
3615         */
3616        fd = open("conftestmmap", O_RDWR);
3617        if (fd < 0)
3618                exit(1);
3619        data2 = malloc(2 * pagesize);
3620        if (!data2)
3621                exit(1);
3622        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3623        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3624            MAP_PRIVATE | MAP_FIXED, fd, 0L))
3625                exit(1);
3626        for (i = 0; i < pagesize; ++i)
3627                if (*(data + i) != *(data2 + i))
3628                        exit(1);
3629
3630        /*
3631         * Finally, make sure that changes to the mapped area
3632         * do not percolate back to the file as seen by read().
3633         * (This is a bug on some variants of i386 svr4.0.)
3634         */
3635        for (i = 0; i < pagesize; ++i)
3636                *(data2 + i) = *(data2 + i) + 1;
3637        data3 = malloc(pagesize);
3638        if (!data3)
3639                exit(1);
3640        if (read(fd, data3, pagesize) != pagesize)
3641                exit(1);
3642        for (i = 0; i < pagesize; ++i)
3643                if (*(data + i) != *(data3 + i))
3644                        exit(1);
3645        close(fd);
3646        unlink("conftestmmap");
3647        exit(0);
3648}
3649
3650EOF
3651if { (eval echo configure:3652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3652then
3653  ac_cv_func_mmap_fixed_mapped=yes
3654else
3655  echo "configure: failed program was:" >&5
3656  cat conftest.$ac_ext >&5
3657  rm -fr conftest*
3658  ac_cv_func_mmap_fixed_mapped=no
3659fi
3660rm -fr conftest*
3661fi
3662
3663fi
3664
3665echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3666if test $ac_cv_func_mmap_fixed_mapped = yes; then
3667  cat >> confdefs.h <<\EOF
3668#define HAVE_MMAP 1
3669EOF
3670
3671fi
3672
3673                             
3674   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3675unistd.h sys/param.h
3676do
3677ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3678echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3679echo "configure:3680: checking for $ac_hdr" >&5
3680if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3681  echo $ac_n "(cached) $ac_c" 1>&6
3682else
3683  cat > conftest.$ac_ext <<EOF
3684#line 3685 "configure"
3685#include "confdefs.h"
3686#include <$ac_hdr>
3687EOF
3688ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3689{ (eval echo configure:3690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3690ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3691if test -z "$ac_err"; then
3692  rm -rf conftest*
3693  eval "ac_cv_header_$ac_safe=yes"
3694else
3695  echo "$ac_err" >&5
3696  echo "configure: failed program was:" >&5
3697  cat conftest.$ac_ext >&5
3698  rm -rf conftest*
3699  eval "ac_cv_header_$ac_safe=no"
3700fi
3701rm -f conftest*
3702fi
3703if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3704  echo "$ac_t""yes" 1>&6
3705    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3706  cat >> confdefs.h <<EOF
3707#define $ac_tr_hdr 1
3708EOF
3709 
3710else
3711  echo "$ac_t""no" 1>&6
3712fi
3713done
3714
3715   for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3716strdup __argz_count __argz_stringify __argz_next
3717do
3718echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3719echo "configure:3720: checking for $ac_func" >&5
3720if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3721  echo $ac_n "(cached) $ac_c" 1>&6
3722else
3723  cat > conftest.$ac_ext <<EOF
3724#line 3725 "configure"
3725#include "confdefs.h"
3726/* System header to define __stub macros and hopefully few prototypes,
3727    which can conflict with char $ac_func(); below.  */
3728#include <assert.h>
3729/* Override any gcc2 internal prototype to avoid an error.  */
3730/* We use char because int might match the return type of a gcc2
3731    builtin and then its argument prototype would still apply.  */
3732char $ac_func();
3733
3734int main() {
3735
3736/* The GNU C library defines this for functions which it implements
3737    to always fail with ENOSYS.  Some functions are actually named
3738    something starting with __ and the normal name is an alias.  */
3739#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3740choke me
3741#else
3742$ac_func();
3743#endif
3744
3745; return 0; }
3746EOF
3747if { (eval echo configure:3748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3748  rm -rf conftest*
3749  eval "ac_cv_func_$ac_func=yes"
3750else
3751  echo "configure: failed program was:" >&5
3752  cat conftest.$ac_ext >&5
3753  rm -rf conftest*
3754  eval "ac_cv_func_$ac_func=no"
3755fi
3756rm -f conftest*
3757fi
3758
3759if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3760  echo "$ac_t""yes" 1>&6
3761    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3762  cat >> confdefs.h <<EOF
3763#define $ac_tr_func 1
3764EOF
3765 
3766else
3767  echo "$ac_t""no" 1>&6
3768fi
3769done
3770
3771
3772   if test "${ac_cv_func_stpcpy+set}" != "set"; then
3773     for ac_func in stpcpy
3774do
3775echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3776echo "configure:3777: checking for $ac_func" >&5
3777if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3778  echo $ac_n "(cached) $ac_c" 1>&6
3779else
3780  cat > conftest.$ac_ext <<EOF
3781#line 3782 "configure"
3782#include "confdefs.h"
3783/* System header to define __stub macros and hopefully few prototypes,
3784    which can conflict with char $ac_func(); below.  */
3785#include <assert.h>
3786/* Override any gcc2 internal prototype to avoid an error.  */
3787/* We use char because int might match the return type of a gcc2
3788    builtin and then its argument prototype would still apply.  */
3789char $ac_func();
3790
3791int main() {
3792
3793/* The GNU C library defines this for functions which it implements
3794    to always fail with ENOSYS.  Some functions are actually named
3795    something starting with __ and the normal name is an alias.  */
3796#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3797choke me
3798#else
3799$ac_func();
3800#endif
3801
3802; return 0; }
3803EOF
3804if { (eval echo configure:3805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3805  rm -rf conftest*
3806  eval "ac_cv_func_$ac_func=yes"
3807else
3808  echo "configure: failed program was:" >&5
3809  cat conftest.$ac_ext >&5
3810  rm -rf conftest*
3811  eval "ac_cv_func_$ac_func=no"
3812fi
3813rm -f conftest*
3814fi
3815
3816if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3817  echo "$ac_t""yes" 1>&6
3818    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3819  cat >> confdefs.h <<EOF
3820#define $ac_tr_func 1
3821EOF
3822 
3823else
3824  echo "$ac_t""no" 1>&6
3825fi
3826done
3827
3828   fi
3829   if test "${ac_cv_func_stpcpy}" = "yes"; then
3830     cat >> confdefs.h <<\EOF
3831#define HAVE_STPCPY 1
3832EOF
3833
3834   fi
3835
3836   if test $ac_cv_header_locale_h = yes; then
3837    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3838echo "configure:3839: checking for LC_MESSAGES" >&5
3839if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3840  echo $ac_n "(cached) $ac_c" 1>&6
3841else
3842  cat > conftest.$ac_ext <<EOF
3843#line 3844 "configure"
3844#include "confdefs.h"
3845#include <locale.h>
3846int main() {
3847return LC_MESSAGES
3848; return 0; }
3849EOF
3850if { (eval echo configure:3851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3851  rm -rf conftest*
3852  am_cv_val_LC_MESSAGES=yes
3853else
3854  echo "configure: failed program was:" >&5
3855  cat conftest.$ac_ext >&5
3856  rm -rf conftest*
3857  am_cv_val_LC_MESSAGES=no
3858fi
3859rm -f conftest*
3860fi
3861
3862echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3863    if test $am_cv_val_LC_MESSAGES = yes; then
3864      cat >> confdefs.h <<\EOF
3865#define HAVE_LC_MESSAGES 1
3866EOF
3867
3868    fi
3869  fi
3870   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3871echo "configure:3872: checking whether NLS is requested" >&5
3872        # Check whether --enable-nls or --disable-nls was given.
3873if test "${enable_nls+set}" = set; then
3874  enableval="$enable_nls"
3875  USE_NLS=$enableval
3876else
3877  USE_NLS=yes
3878fi
3879
3880    echo "$ac_t""$USE_NLS" 1>&6
3881   
3882
3883    USE_INCLUDED_LIBINTL=no
3884
3885        if test "$USE_NLS" = "yes"; then
3886      cat >> confdefs.h <<\EOF
3887#define ENABLE_NLS 1
3888EOF
3889
3890#      AC_MSG_CHECKING([whether included gettext is requested])
3891#      AC_ARG_WITH(included-gettext,
3892#        [  --with-included-gettext use the GNU gettext library included here],
3893#        nls_cv_force_use_gnu_gettext=$withval,
3894#        nls_cv_force_use_gnu_gettext=no)
3895#      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
3896      nls_cv_force_use_gnu_gettext="no"
3897
3898      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3899      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3900                                        nls_cv_header_intl=
3901        nls_cv_header_libgt=
3902        CATOBJEXT=NONE
3903
3904        ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3905echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3906echo "configure:3907: checking for libintl.h" >&5
3907if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3908  echo $ac_n "(cached) $ac_c" 1>&6
3909else
3910  cat > conftest.$ac_ext <<EOF
3911#line 3912 "configure"
3912#include "confdefs.h"
3913#include <libintl.h>
3914EOF
3915ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3916{ (eval echo configure:3917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3917ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3918if test -z "$ac_err"; then
3919  rm -rf conftest*
3920  eval "ac_cv_header_$ac_safe=yes"
3921else
3922  echo "$ac_err" >&5
3923  echo "configure: failed program was:" >&5
3924  cat conftest.$ac_ext >&5
3925  rm -rf conftest*
3926  eval "ac_cv_header_$ac_safe=no"
3927fi
3928rm -f conftest*
3929fi
3930if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3931  echo "$ac_t""yes" 1>&6
3932  echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3933echo "configure:3934: checking for gettext in libc" >&5
3934if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3935  echo $ac_n "(cached) $ac_c" 1>&6
3936else
3937  cat > conftest.$ac_ext <<EOF
3938#line 3939 "configure"
3939#include "confdefs.h"
3940#include <libintl.h>
3941int main() {
3942return (int) gettext ("")
3943; return 0; }
3944EOF
3945if { (eval echo configure:3946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3946  rm -rf conftest*
3947  gt_cv_func_gettext_libc=yes
3948else
3949  echo "configure: failed program was:" >&5
3950  cat conftest.$ac_ext >&5
3951  rm -rf conftest*
3952  gt_cv_func_gettext_libc=no
3953fi
3954rm -f conftest*
3955fi
3956
3957echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3958
3959           if test "$gt_cv_func_gettext_libc" != "yes"; then
3960             echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3961echo "configure:3962: checking for bindtextdomain in -lintl" >&5
3962ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3963if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3964  echo $ac_n "(cached) $ac_c" 1>&6
3965else
3966  ac_save_LIBS="$LIBS"
3967LIBS="-lintl  $LIBS"
3968cat > conftest.$ac_ext <<EOF
3969#line 3970 "configure"
3970#include "confdefs.h"
3971/* Override any gcc2 internal prototype to avoid an error.  */
3972/* We use char because int might match the return type of a gcc2
3973    builtin and then its argument prototype would still apply.  */
3974char bindtextdomain();
3975
3976int main() {
3977bindtextdomain()
3978; return 0; }
3979EOF
3980if { (eval echo configure:3981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3981  rm -rf conftest*
3982  eval "ac_cv_lib_$ac_lib_var=yes"
3983else
3984  echo "configure: failed program was:" >&5
3985  cat conftest.$ac_ext >&5
3986  rm -rf conftest*
3987  eval "ac_cv_lib_$ac_lib_var=no"
3988fi
3989rm -f conftest*
3990LIBS="$ac_save_LIBS"
3991
3992fi
3993if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3994  echo "$ac_t""yes" 1>&6
3995  echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3996echo "configure:3997: checking for gettext in libintl" >&5
3997if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3998  echo $ac_n "(cached) $ac_c" 1>&6
3999else
4000  echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
4001echo "configure:4002: checking for gettext in -lintl" >&5
4002ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
4003if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4004  echo $ac_n "(cached) $ac_c" 1>&6
4005else
4006  ac_save_LIBS="$LIBS"
4007LIBS="-lintl  $LIBS"
4008cat > conftest.$ac_ext <<EOF
4009#line 4010 "configure"
4010#include "confdefs.h"
4011/* Override any gcc2 internal prototype to avoid an error.  */
4012/* We use char because int might match the return type of a gcc2
4013    builtin and then its argument prototype would still apply.  */
4014char gettext();
4015
4016int main() {
4017gettext()
4018; return 0; }
4019EOF
4020if { (eval echo configure:4021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4021  rm -rf conftest*
4022  eval "ac_cv_lib_$ac_lib_var=yes"
4023else
4024  echo "configure: failed program was:" >&5
4025  cat conftest.$ac_ext >&5
4026  rm -rf conftest*
4027  eval "ac_cv_lib_$ac_lib_var=no"
4028fi
4029rm -f conftest*
4030LIBS="$ac_save_LIBS"
4031
4032fi
4033if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4034  echo "$ac_t""yes" 1>&6
4035  gt_cv_func_gettext_libintl=yes
4036else
4037  echo "$ac_t""no" 1>&6
4038gt_cv_func_gettext_libintl=no
4039fi
4040
4041fi
4042
4043echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4044else
4045  echo "$ac_t""no" 1>&6
4046fi
4047
4048           fi
4049
4050           if test "$gt_cv_func_gettext_libc" = "yes" \
4051              || test "$gt_cv_func_gettext_libintl" = "yes"; then
4052              cat >> confdefs.h <<\EOF
4053#define HAVE_GETTEXT 1
4054EOF
4055
4056              # Extract the first word of "msgfmt", so it can be a program name with args.
4057set dummy msgfmt; ac_word=$2
4058echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4059echo "configure:4060: checking for $ac_word" >&5
4060if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4061  echo $ac_n "(cached) $ac_c" 1>&6
4062else
4063  case "$MSGFMT" in
4064  /*)
4065  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4066  ;;
4067  *)
4068  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4069  for ac_dir in $PATH; do
4070    test -z "$ac_dir" && ac_dir=.
4071    if test -f $ac_dir/$ac_word; then
4072      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4073        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4074        break
4075      fi
4076    fi
4077  done
4078  IFS="$ac_save_ifs"
4079  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
4080  ;;
4081esac
4082fi
4083MSGFMT="$ac_cv_path_MSGFMT"
4084if test -n "$MSGFMT"; then
4085  echo "$ac_t""$MSGFMT" 1>&6
4086else
4087  echo "$ac_t""no" 1>&6
4088fi
4089              if test "$MSGFMT" != "no"; then
4090                for ac_func in dcgettext
4091do
4092echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4093echo "configure:4094: checking for $ac_func" >&5
4094if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4095  echo $ac_n "(cached) $ac_c" 1>&6
4096else
4097  cat > conftest.$ac_ext <<EOF
4098#line 4099 "configure"
4099#include "confdefs.h"
4100/* System header to define __stub macros and hopefully few prototypes,
4101    which can conflict with char $ac_func(); below.  */
4102#include <assert.h>
4103/* Override any gcc2 internal prototype to avoid an error.  */
4104/* We use char because int might match the return type of a gcc2
4105    builtin and then its argument prototype would still apply.  */
4106char $ac_func();
4107
4108int main() {
4109
4110/* The GNU C library defines this for functions which it implements
4111    to always fail with ENOSYS.  Some functions are actually named
4112    something starting with __ and the normal name is an alias.  */
4113#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4114choke me
4115#else
4116$ac_func();
4117#endif
4118
4119; return 0; }
4120EOF
4121if { (eval echo configure:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4122  rm -rf conftest*
4123  eval "ac_cv_func_$ac_func=yes"
4124else
4125  echo "configure: failed program was:" >&5
4126  cat conftest.$ac_ext >&5
4127  rm -rf conftest*
4128  eval "ac_cv_func_$ac_func=no"
4129fi
4130rm -f conftest*
4131fi
4132
4133if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4134  echo "$ac_t""yes" 1>&6
4135    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4136  cat >> confdefs.h <<EOF
4137#define $ac_tr_func 1
4138EOF
4139 
4140else
4141  echo "$ac_t""no" 1>&6
4142fi
4143done
4144
4145                # Extract the first word of "gmsgfmt", so it can be a program name with args.
4146set dummy gmsgfmt; ac_word=$2
4147echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4148echo "configure:4149: checking for $ac_word" >&5
4149if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4150  echo $ac_n "(cached) $ac_c" 1>&6
4151else
4152  case "$GMSGFMT" in
4153  /*)
4154  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4155  ;;
4156  ?:/*)                 
4157  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4158  ;;
4159  *)
4160  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4161  ac_dummy="$PATH"
4162  for ac_dir in $ac_dummy; do
4163    test -z "$ac_dir" && ac_dir=.
4164    if test -f $ac_dir/$ac_word; then
4165      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4166      break
4167    fi
4168  done
4169  IFS="$ac_save_ifs"
4170  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4171  ;;
4172esac
4173fi
4174GMSGFMT="$ac_cv_path_GMSGFMT"
4175if test -n "$GMSGFMT"; then
4176  echo "$ac_t""$GMSGFMT" 1>&6
4177else
4178  echo "$ac_t""no" 1>&6
4179fi
4180
4181                # Extract the first word of "xgettext", so it can be a program name with args.
4182set dummy xgettext; ac_word=$2
4183echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4184echo "configure:4185: checking for $ac_word" >&5
4185if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4186  echo $ac_n "(cached) $ac_c" 1>&6
4187else
4188  case "$XGETTEXT" in
4189  /*)
4190  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4191  ;;
4192  *)
4193  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4194  for ac_dir in $PATH; do
4195    test -z "$ac_dir" && ac_dir=.
4196    if test -f $ac_dir/$ac_word; then
4197      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4198        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4199        break
4200      fi
4201    fi
4202  done
4203  IFS="$ac_save_ifs"
4204  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4205  ;;
4206esac
4207fi
4208XGETTEXT="$ac_cv_path_XGETTEXT"
4209if test -n "$XGETTEXT"; then
4210  echo "$ac_t""$XGETTEXT" 1>&6
4211else
4212  echo "$ac_t""no" 1>&6
4213fi
4214
4215                cat > conftest.$ac_ext <<EOF
4216#line 4217 "configure"
4217#include "confdefs.h"
4218
4219int main() {
4220extern int _nl_msg_cat_cntr;
4221                               return _nl_msg_cat_cntr
4222; return 0; }
4223EOF
4224if { (eval echo configure:4225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4225  rm -rf conftest*
4226  CATOBJEXT=.gmo
4227                   DATADIRNAME=share
4228else
4229  echo "configure: failed program was:" >&5
4230  cat conftest.$ac_ext >&5
4231  rm -rf conftest*
4232  CATOBJEXT=.mo
4233                   DATADIRNAME=lib
4234fi
4235rm -f conftest*
4236                INSTOBJEXT=.mo
4237              fi
4238            fi
4239
4240            # Added by Martin Baulig 12/15/98 for libc5 systems
4241            if test "$gt_cv_func_gettext_libc" != "yes" \
4242               && test "$gt_cv_func_gettext_libintl" = "yes"; then
4243               INTLLIBS=-lintl
4244               LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4245            fi
4246       
4247else
4248  echo "$ac_t""no" 1>&6
4249fi
4250
4251
4252        if test "$CATOBJEXT" = "NONE"; then
4253          echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
4254echo "configure:4255: checking whether catgets can be used" >&5
4255          # Check whether --with-catgets or --without-catgets was given.
4256if test "${with_catgets+set}" = set; then
4257  withval="$with_catgets"
4258  nls_cv_use_catgets=$withval
4259else
4260  nls_cv_use_catgets=no
4261fi
4262
4263          echo "$ac_t""$nls_cv_use_catgets" 1>&6
4264
4265          if test "$nls_cv_use_catgets" = "yes"; then
4266                    echo $ac_n "checking for main in -li""... $ac_c" 1>&6
4267echo "configure:4268: checking for main in -li" >&5
4268ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
4269if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4270  echo $ac_n "(cached) $ac_c" 1>&6
4271else
4272  ac_save_LIBS="$LIBS"
4273LIBS="-li  $LIBS"
4274cat > conftest.$ac_ext <<EOF
4275#line 4276 "configure"
4276#include "confdefs.h"
4277
4278int main() {
4279main()
4280; return 0; }
4281EOF
4282if { (eval echo configure:4283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4283  rm -rf conftest*
4284  eval "ac_cv_lib_$ac_lib_var=yes"
4285else
4286  echo "configure: failed program was:" >&5
4287  cat conftest.$ac_ext >&5
4288  rm -rf conftest*
4289  eval "ac_cv_lib_$ac_lib_var=no"
4290fi
4291rm -f conftest*
4292LIBS="$ac_save_LIBS"
4293
4294fi
4295if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4296  echo "$ac_t""yes" 1>&6
4297    ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4298    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4299  cat >> confdefs.h <<EOF
4300#define $ac_tr_lib 1
4301EOF
4302
4303  LIBS="-li $LIBS"
4304
4305else
4306  echo "$ac_t""no" 1>&6
4307fi
4308
4309            echo $ac_n "checking for catgets""... $ac_c" 1>&6
4310echo "configure:4311: checking for catgets" >&5
4311if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
4312  echo $ac_n "(cached) $ac_c" 1>&6
4313else
4314  cat > conftest.$ac_ext <<EOF
4315#line 4316 "configure"
4316#include "confdefs.h"
4317/* System header to define __stub macros and hopefully few prototypes,
4318    which can conflict with char catgets(); below.  */
4319#include <assert.h>
4320/* Override any gcc2 internal prototype to avoid an error.  */
4321/* We use char because int might match the return type of a gcc2
4322    builtin and then its argument prototype would still apply.  */
4323char catgets();
4324
4325int main() {
4326
4327/* The GNU C library defines this for functions which it implements
4328    to always fail with ENOSYS.  Some functions are actually named
4329    something starting with __ and the normal name is an alias.  */
4330#if defined (__stub_catgets) || defined (__stub___catgets)
4331choke me
4332#else
4333catgets();
4334#endif
4335
4336; return 0; }
4337EOF
4338if { (eval echo configure:4339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4339  rm -rf conftest*
4340  eval "ac_cv_func_catgets=yes"
4341else
4342  echo "configure: failed program was:" >&5
4343  cat conftest.$ac_ext >&5
4344  rm -rf conftest*
4345  eval "ac_cv_func_catgets=no"
4346fi
4347rm -f conftest*
4348fi
4349
4350if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
4351  echo "$ac_t""yes" 1>&6
4352  cat >> confdefs.h <<\EOF
4353#define HAVE_CATGETS 1
4354EOF
4355
4356               INTLOBJS="\$(CATOBJS)"
4357               # Extract the first word of "gencat", so it can be a program name with args.
4358set dummy gencat; ac_word=$2
4359echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4360echo "configure:4361: checking for $ac_word" >&5
4361if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
4362  echo $ac_n "(cached) $ac_c" 1>&6
4363else
4364  case "$GENCAT" in
4365  /*)
4366  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
4367  ;;
4368  ?:/*)                 
4369  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
4370  ;;
4371  *)
4372  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4373  ac_dummy="$PATH"
4374  for ac_dir in $ac_dummy; do
4375    test -z "$ac_dir" && ac_dir=.
4376    if test -f $ac_dir/$ac_word; then
4377      ac_cv_path_GENCAT="$ac_dir/$ac_word"
4378      break
4379    fi
4380  done
4381  IFS="$ac_save_ifs"
4382  test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
4383  ;;
4384esac
4385fi
4386GENCAT="$ac_cv_path_GENCAT"
4387if test -n "$GENCAT"; then
4388  echo "$ac_t""$GENCAT" 1>&6
4389else
4390  echo "$ac_t""no" 1>&6
4391fi
4392#              if test "$GENCAT" != "no"; then
4393#                AC_PATH_PROG(GMSGFMT, gmsgfmt, no)
4394#                if test "$GMSGFMT" = "no"; then
4395#                  AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt,
4396#                   [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)
4397#                fi
4398#                AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
4399#                  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
4400#                USE_INCLUDED_LIBINTL=yes
4401#                CATOBJEXT=.cat
4402#                INSTOBJEXT=.cat
4403#                DATADIRNAME=lib
4404#                INTLDEPS='$(top_builddir)/intl/libintl.a'
4405#                INTLLIBS=$INTLDEPS
4406#                LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4407#                nls_cv_header_intl=intl/libintl.h
4408#                nls_cv_header_libgt=intl/libgettext.h
4409#              fi
4410           
4411else
4412  echo "$ac_t""no" 1>&6
4413fi
4414
4415          fi
4416        fi
4417
4418        if test "$CATOBJEXT" = "NONE"; then
4419                          nls_cv_use_gnu_gettext=yes
4420        fi
4421      fi
4422
4423      if test "$nls_cv_use_gnu_gettext" != "yes"; then
4424        cat >> confdefs.h <<\EOF
4425#define ENABLE_NLS 1
4426EOF
4427
4428      else
4429         # Unset this variable since we use the non-zero value as a flag.
4430         CATOBJEXT=
4431#        dnl Mark actions used to generate GNU NLS library.
4432#        INTLOBJS="\$(GETTOBJS)"
4433#        AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
4434#         [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)
4435#        AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
4436#        AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
4437#         [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
4438#        AC_SUBST(MSGFMT)
4439#       USE_INCLUDED_LIBINTL=yes
4440#        CATOBJEXT=.gmo
4441#        INSTOBJEXT=.mo
4442#        DATADIRNAME=share
4443#       INTLDEPS='$(top_builddir)/intl/libintl.a'
4444#       INTLLIBS=$INTLDEPS
4445#       LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4446#        nls_cv_header_intl=intl/libintl.h
4447#        nls_cv_header_libgt=intl/libgettext.h
4448      fi
4449
4450            if test "$XGETTEXT" != ":"; then
4451                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4452          : ;
4453        else
4454          echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
4455          XGETTEXT=":"
4456        fi
4457      fi
4458
4459      # We need to process the po/ directory.
4460      POSUB=po
4461    else
4462      DATADIRNAME=share
4463      nls_cv_header_intl=intl/libintl.h
4464      nls_cv_header_libgt=intl/libgettext.h
4465    fi
4466   
4467   
4468
4469
4470#    # If this is used in GNU gettext we have to set USE_NLS to `yes'
4471#    # because some of the sources are only built for this goal.
4472#    if test "$PACKAGE" = gettext; then
4473#      USE_NLS=yes
4474#      USE_INCLUDED_LIBINTL=yes
4475#    fi
4476
4477                for lang in $ALL_LINGUAS; do
4478      GMOFILES="$GMOFILES $lang.gmo"
4479      POFILES="$POFILES $lang.po"
4480    done
4481
4482       
4483   
4484   
4485   
4486   
4487   
4488   
4489   
4490   
4491   
4492   
4493 
4494
4495   if test "x$CATOBJEXT" != "x"; then
4496     if test "x$ALL_LINGUAS" = "x"; then
4497       LINGUAS=
4498     else
4499       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4500echo "configure:4501: checking for catalogs to be installed" >&5
4501       NEW_LINGUAS=
4502       if test "x$LINGUAS" = "x"; then
4503           LINGUAS=$ALL_LINGUAS
4504       fi
4505       for lang in $LINGUAS; do
4506         case "$ALL_LINGUAS" in
4507          *\ $lang\ *|$lang\ *|*\ $lang) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4508         esac
4509       done
4510       LINGUAS=$NEW_LINGUAS
4511       echo "$ac_t""$LINGUAS" 1>&6
4512     fi
4513
4514          if test -n "$LINGUAS"; then
4515       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4516     fi
4517   fi
4518
4519            if test $ac_cv_header_locale_h = yes; then
4520     INCLUDE_LOCALE_H="#include <locale.h>"
4521   else
4522     INCLUDE_LOCALE_H="\
4523/* The system does not provide the header <locale.h>.  Take care yourself.  */"
4524   fi
4525   
4526
4527            test -d intl || mkdir intl
4528   if test "$CATOBJEXT" = ".cat"; then
4529     ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4530echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4531echo "configure:4532: checking for linux/version.h" >&5
4532if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4533  echo $ac_n "(cached) $ac_c" 1>&6
4534else
4535  cat > conftest.$ac_ext <<EOF
4536#line 4537 "configure"
4537#include "confdefs.h"
4538#include <linux/version.h>
4539EOF
4540ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4541{ (eval echo configure:4542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4542ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4543if test -z "$ac_err"; then
4544  rm -rf conftest*
4545  eval "ac_cv_header_$ac_safe=yes"
4546else
4547  echo "$ac_err" >&5
4548  echo "configure: failed program was:" >&5
4549  cat conftest.$ac_ext >&5
4550  rm -rf conftest*
4551  eval "ac_cv_header_$ac_safe=no"
4552fi
4553rm -f conftest*
4554fi
4555if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4556  echo "$ac_t""yes" 1>&6
4557  msgformat=linux
4558else
4559  echo "$ac_t""no" 1>&6
4560msgformat=xopen
4561fi
4562
4563
4564               sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
4565   fi
4566      sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4567     $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
4568
4569            if test "$PACKAGE" = "gettext"; then
4570     GT_NO="#NO#"
4571     GT_YES=
4572   else
4573     GT_NO=
4574     GT_YES="#YES#"
4575   fi
4576   
4577   
4578
4579            MKINSTALLDIRS=
4580   if test -n "$ac_aux_dir"; then
4581     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
4582   fi
4583   if test -z "$MKINSTALLDIRS"; then
4584     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4585   fi
4586   
4587
4588      l=
4589   
4590
4591         test -d po || mkdir po
4592   if test "x$srcdir" != "x."; then
4593     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4594       posrcprefix="$srcdir/"
4595     else
4596       posrcprefix="../$srcdir/"
4597     fi
4598   else
4599     posrcprefix="../"
4600   fi
4601   rm -f po/POTFILES
4602   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4603        < $srcdir/po/POTFILES.in > po/POTFILES
4604 
4605
4606trap '' 1 2 15
4607cat > confcache <<\EOF
4608# This file is a shell script that caches the results of configure
4609# tests run on this system so they can be shared between configure
4610# scripts and configure runs.  It is not useful on other systems.
4611# If it contains results you don't want to keep, you may remove or edit it.
4612#
4613# By default, configure uses ./config.cache as the cache file,
4614# creating it if it does not exist already.  You can give configure
4615# the --cache-file=FILE option to use a different cache file; that is
4616# what configure does when it calls configure scripts in
4617# subdirectories, so they share the cache.
4618# Giving --cache-file=/dev/null disables caching, for debugging configure.
4619# config.status only pays attention to the cache file if you give it the
4620# --recheck option to rerun configure.
4621#
4622EOF
4623# The following way of writing the cache mishandles newlines in values,
4624# but we know of no workaround that is simple, portable, and efficient.
4625# So, don't put newlines in cache variables' values.
4626# Ultrix sh set writes to stderr and can't be redirected directly,
4627# and sets the high bit in the cache file unless we assign to the vars.
4628(set) 2>&1 |
4629  case `(ac_space=' '; set | grep ac_space) 2>&1` in
4630  *ac_space=\ *)
4631    # `set' does not quote correctly, so add quotes (double-quote substitution
4632    # turns \\\\ into \\, and sed turns \\ into \).
4633    sed -n \
4634      -e "s/'/'\\\\''/g" \
4635      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4636    ;;
4637  *)
4638    # `set' quotes correctly as required by POSIX, so do not add quotes.
4639    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4640    ;;
4641  esac >> confcache
4642if cmp -s $cache_file confcache; then
4643  :
4644else
4645  if test -w $cache_file; then
4646    echo "updating cache $cache_file"
4647    cat confcache > $cache_file
4648  else
4649    echo "not updating unwritable cache $cache_file"
4650  fi
4651fi
4652rm -f confcache
4653
4654trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4655
4656test "x$prefix" = xNONE && prefix=$ac_default_prefix
4657# Let make expand exec_prefix.
4658test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4659
4660# Any assignment to VPATH causes Sun make to only execute
4661# the first set of double-colon rules, so remove it if not needed.
4662# If there is a colon in the path, we need to keep it.
4663if test "x$srcdir" = x.; then
4664  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
4665fi
4666
4667trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4668
4669DEFS=-DHAVE_CONFIG_H
4670
4671# Without the "./", some shells look in PATH for config.status.
4672: ${CONFIG_STATUS=./config.status}
4673
4674echo creating $CONFIG_STATUS
4675rm -f $CONFIG_STATUS
4676cat > $CONFIG_STATUS <<EOF
4677#! /bin/sh
4678# Generated automatically by configure.
4679# Run this file to recreate the current configuration.
4680# This directory was configured as follows,
4681# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4682#
4683# $0 $ac_configure_args
4684#
4685# Compiler output produced by configure, useful for debugging
4686# configure, is in ./config.log if it exists.
4687
4688ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4689for ac_option
4690do
4691  case "\$ac_option" in
4692  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4693    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4694    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4695  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4696    echo "$CONFIG_STATUS generated by autoconf version 2.13"
4697    exit 0 ;;
4698  -help | --help | --hel | --he | --h)
4699    echo "\$ac_cs_usage"; exit 0 ;;
4700  *) echo "\$ac_cs_usage"; exit 1 ;;
4701  esac
4702done
4703
4704ac_given_srcdir=$srcdir
4705ac_given_INSTALL="$INSTALL"
4706
4707trap 'rm -fr `echo "Makefile
4708libglade.spec
4709macros/Makefile
4710intl/Makefile
4711po/Makefile.in
4712glade/Makefile
4713doc/Makefile
4714libglade-config
4715libgladeConf.sh
4716libglade.pc
4717libglade-gnome.pc
4718libglade-bonobo.pc config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4719EOF
4720cat >> $CONFIG_STATUS <<EOF
4721
4722# Protect against being on the right side of a sed subst in config.status.
4723sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4724 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4725$ac_vpsub
4726$extrasub
4727s%@SHELL@%$SHELL%g
4728s%@CFLAGS@%$CFLAGS%g
4729s%@CPPFLAGS@%$CPPFLAGS%g
4730s%@CXXFLAGS@%$CXXFLAGS%g
4731s%@FFLAGS@%$FFLAGS%g
4732s%@DEFS@%$DEFS%g
4733s%@LDFLAGS@%$LDFLAGS%g
4734s%@LIBS@%$LIBS%g
4735s%@exec_prefix@%$exec_prefix%g
4736s%@prefix@%$prefix%g
4737s%@program_transform_name@%$program_transform_name%g
4738s%@bindir@%$bindir%g
4739s%@sbindir@%$sbindir%g
4740s%@libexecdir@%$libexecdir%g
4741s%@datadir@%$datadir%g
4742s%@sysconfdir@%$sysconfdir%g
4743s%@sharedstatedir@%$sharedstatedir%g
4744s%@localstatedir@%$localstatedir%g
4745s%@libdir@%$libdir%g
4746s%@includedir@%$includedir%g
4747s%@oldincludedir@%$oldincludedir%g
4748s%@infodir@%$infodir%g
4749s%@mandir@%$mandir%g
4750s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4751s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4752s%@INSTALL_DATA@%$INSTALL_DATA%g
4753s%@PACKAGE@%$PACKAGE%g
4754s%@VERSION@%$VERSION%g
4755s%@ACLOCAL@%$ACLOCAL%g
4756s%@AUTOCONF@%$AUTOCONF%g
4757s%@AUTOMAKE@%$AUTOMAKE%g
4758s%@AUTOHEADER@%$AUTOHEADER%g
4759s%@MAKEINFO@%$MAKEINFO%g
4760s%@AMTAR@%$AMTAR%g
4761s%@install_sh@%$install_sh%g
4762s%@AWK@%$AWK%g
4763s%@SET_MAKE@%$SET_MAKE%g
4764s%@AMDEP@%$AMDEP%g
4765s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%g
4766s%@DEPDIR@%$DEPDIR%g
4767s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4768s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4769s%@MAINT@%$MAINT%g
4770s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
4771s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
4772s%@CC@%$CC%g
4773s%@CPP@%$CPP%g
4774s%@CCDEPMODE@%$CCDEPMODE%g
4775s%@host@%$host%g
4776s%@host_alias@%$host_alias%g
4777s%@host_cpu@%$host_cpu%g
4778s%@host_vendor@%$host_vendor%g
4779s%@host_os@%$host_os%g
4780s%@build@%$build%g
4781s%@build_alias@%$build_alias%g
4782s%@build_cpu@%$build_cpu%g
4783s%@build_vendor@%$build_vendor%g
4784s%@build_os@%$build_os%g
4785s%@RANLIB@%$RANLIB%g
4786s%@LN_S@%$LN_S%g
4787s%@LIBTOOL@%$LIBTOOL%g
4788s%@GTK_CONFIG@%$GTK_CONFIG%g
4789s%@GTK_CFLAGS@%$GTK_CFLAGS%g
4790s%@GTK_LIBS@%$GTK_LIBS%g
4791s%@XML_CONFIG@%$XML_CONFIG%g
4792s%@XML_LIBS@%$XML_LIBS%g
4793s%@XML_CFLAGS@%$XML_CFLAGS%g
4794s%@GNOME_LIBS@%$GNOME_LIBS%g
4795s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
4796s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
4797s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
4798s%@ZVT_LIBS@%$ZVT_LIBS%g
4799s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
4800s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
4801s%@GNOME_CONFIG@%$GNOME_CONFIG%g
4802s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
4803s%@ORBIT_IDL@%$ORBIT_IDL%g
4804s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
4805s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
4806s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
4807s%@ORBIT_LIBS@%$ORBIT_LIBS%g
4808s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
4809s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
4810s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
4811s%@GNORBA_LIBS@%$GNORBA_LIBS%g
4812s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
4813s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
4814s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
4815s%@GNOME_SUPPORT_TRUE@%$GNOME_SUPPORT_TRUE%g
4816s%@GNOME_SUPPORT_FALSE@%$GNOME_SUPPORT_FALSE%g
4817s%@BONOBO_CFLAGS@%$BONOBO_CFLAGS%g
4818s%@BONOBO_LIBS@%$BONOBO_LIBS%g
4819s%@BONOBO_SUPPORT_TRUE@%$BONOBO_SUPPORT_TRUE%g
4820s%@BONOBO_SUPPORT_FALSE@%$BONOBO_SUPPORT_FALSE%g
4821s%@cflags_set@%$cflags_set%g
4822s%@GTKDOC@%$GTKDOC%g
4823s%@HAVE_GTK_DOC_TRUE@%$HAVE_GTK_DOC_TRUE%g
4824s%@HAVE_GTK_DOC_FALSE@%$HAVE_GTK_DOC_FALSE%g
4825s%@ALLOCA@%$ALLOCA%g
4826s%@USE_NLS@%$USE_NLS%g
4827s%@MSGFMT@%$MSGFMT%g
4828s%@GMSGFMT@%$GMSGFMT%g
4829s%@XGETTEXT@%$XGETTEXT%g
4830s%@GENCAT@%$GENCAT%g
4831s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4832s%@CATALOGS@%$CATALOGS%g
4833s%@CATOBJEXT@%$CATOBJEXT%g
4834s%@DATADIRNAME@%$DATADIRNAME%g
4835s%@GMOFILES@%$GMOFILES%g
4836s%@INSTOBJEXT@%$INSTOBJEXT%g
4837s%@INTLDEPS@%$INTLDEPS%g
4838s%@INTLLIBS@%$INTLLIBS%g
4839s%@INTLOBJS@%$INTLOBJS%g
4840s%@POFILES@%$POFILES%g
4841s%@POSUB@%$POSUB%g
4842s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4843s%@GT_NO@%$GT_NO%g
4844s%@GT_YES@%$GT_YES%g
4845s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4846s%@l@%$l%g
4847
4848CEOF
4849EOF
4850
4851cat >> $CONFIG_STATUS <<\EOF
4852
4853# Split the substitutions into bite-sized pieces for seds with
4854# small command number limits, like on Digital OSF/1 and HP-UX.
4855ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4856ac_file=1 # Number of current file.
4857ac_beg=1 # First line for current file.
4858ac_end=$ac_max_sed_cmds # Line after last line for current file.
4859ac_more_lines=:
4860ac_sed_cmds=""
4861while $ac_more_lines; do
4862  if test $ac_beg -gt 1; then
4863    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4864  else
4865    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4866  fi
4867  if test ! -s conftest.s$ac_file; then
4868    ac_more_lines=false
4869    rm -f conftest.s$ac_file
4870  else
4871    if test -z "$ac_sed_cmds"; then
4872      ac_sed_cmds="sed -f conftest.s$ac_file"
4873    else
4874      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4875    fi
4876    ac_file=`expr $ac_file + 1`
4877    ac_beg=$ac_end
4878    ac_end=`expr $ac_end + $ac_max_sed_cmds`
4879  fi
4880done
4881if test -z "$ac_sed_cmds"; then
4882  ac_sed_cmds=cat
4883fi
4884EOF
4885
4886cat >> $CONFIG_STATUS <<EOF
4887
4888CONFIG_FILES=\${CONFIG_FILES-"Makefile
4889libglade.spec
4890macros/Makefile
4891intl/Makefile
4892po/Makefile.in
4893glade/Makefile
4894doc/Makefile
4895libglade-config
4896libgladeConf.sh
4897libglade.pc
4898libglade-gnome.pc
4899libglade-bonobo.pc"}
4900EOF
4901cat >> $CONFIG_STATUS <<\EOF
4902for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4903  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4904  case "$ac_file" in
4905  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4906       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4907  *) ac_file_in="${ac_file}.in" ;;
4908  esac
4909
4910  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4911
4912  # Remove last slash and all that follows it.  Not all systems have dirname.
4913  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4914  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4915    # The file is in a subdirectory.
4916    test ! -d "$ac_dir" && mkdir "$ac_dir"
4917    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4918    # A "../" for each directory in $ac_dir_suffix.
4919    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4920  else
4921    ac_dir_suffix= ac_dots=
4922  fi
4923
4924  case "$ac_given_srcdir" in
4925  .)  srcdir=.
4926      if test -z "$ac_dots"; then top_srcdir=.
4927      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4928  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4929  *) # Relative path.
4930    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4931    top_srcdir="$ac_dots$ac_given_srcdir" ;;
4932  esac
4933
4934  case "$ac_given_INSTALL" in
4935  [/$]*) INSTALL="$ac_given_INSTALL" ;;
4936  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4937  esac
4938
4939  echo creating "$ac_file"
4940  rm -f "$ac_file"
4941  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4942  case "$ac_file" in
4943  *Makefile*) ac_comsub="1i\\
4944# $configure_input" ;;
4945  *) ac_comsub= ;;
4946  esac
4947
4948  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4949  sed -e "$ac_comsub
4950s%@configure_input@%$configure_input%g
4951s%@srcdir@%$srcdir%g
4952s%@top_srcdir@%$top_srcdir%g
4953s%@INSTALL@%$INSTALL%g
4954" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4955fi; done
4956rm -f conftest.s*
4957
4958# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4959# NAME is the cpp macro being defined and VALUE is the value it is being given.
4960#
4961# ac_d sets the value in "#define NAME VALUE" lines.
4962ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4963ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4964ac_dC='\3'
4965ac_dD='%g'
4966# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4967ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4968ac_uB='\([      ]\)%\1#\2define\3'
4969ac_uC=' '
4970ac_uD='\4%g'
4971# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4972ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4973ac_eB='$%\1#\2define\3'
4974ac_eC=' '
4975ac_eD='%g'
4976
4977if test "${CONFIG_HEADERS+set}" != set; then
4978EOF
4979cat >> $CONFIG_STATUS <<EOF
4980  CONFIG_HEADERS="config.h"
4981EOF
4982cat >> $CONFIG_STATUS <<\EOF
4983fi
4984for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4985  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4986  case "$ac_file" in
4987  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4988       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4989  *) ac_file_in="${ac_file}.in" ;;
4990  esac
4991
4992  echo creating $ac_file
4993
4994  rm -f conftest.frag conftest.in conftest.out
4995  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4996  cat $ac_file_inputs > conftest.in
4997
4998EOF
4999
5000# Transform confdefs.h into a sed script conftest.vals that substitutes
5001# the proper values into config.h.in to produce config.h.  And first:
5002# Protect against being on the right side of a sed subst in config.status.
5003# Protect against being in an unquoted here document in config.status.
5004rm -f conftest.vals
5005cat > conftest.hdr <<\EOF
5006s/[\\&%]/\\&/g
5007s%[\\$`]%\\&%g
5008s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5009s%ac_d%ac_u%gp
5010s%ac_u%ac_e%gp
5011EOF
5012sed -n -f conftest.hdr confdefs.h > conftest.vals
5013rm -f conftest.hdr
5014
5015# This sed command replaces #undef with comments.  This is necessary, for
5016# example, in the case of _POSIX_SOURCE, which is predefined and required
5017# on some systems where configure will not decide to define it.
5018cat >> conftest.vals <<\EOF
5019s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5020EOF
5021
5022# Break up conftest.vals because some shells have a limit on
5023# the size of here documents, and old seds have small limits too.
5024
5025rm -f conftest.tail
5026while :
5027do
5028  ac_lines=`grep -c . conftest.vals`
5029  # grep -c gives empty output for an empty file on some AIX systems.
5030  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5031  # Write a limited-size here document to conftest.frag.
5032  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5033  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5034  echo 'CEOF
5035  sed -f conftest.frag conftest.in > conftest.out
5036  rm -f conftest.in
5037  mv conftest.out conftest.in
5038' >> $CONFIG_STATUS
5039  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5040  rm -f conftest.vals
5041  mv conftest.tail conftest.vals
5042done
5043rm -f conftest.vals
5044
5045cat >> $CONFIG_STATUS <<\EOF
5046  rm -f conftest.frag conftest.h
5047  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
5048  cat conftest.in >> conftest.h
5049  rm -f conftest.in
5050  if cmp -s $ac_file conftest.h 2>/dev/null; then
5051    echo "$ac_file is unchanged"
5052    rm -f conftest.h
5053  else
5054    # Remove last slash and all that follows it.  Not all systems have dirname.
5055      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5056      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5057      # The file is in a subdirectory.
5058      test ! -d "$ac_dir" && mkdir "$ac_dir"
5059    fi
5060    rm -f $ac_file
5061    mv conftest.h $ac_file
5062  fi
5063fi; done
5064
5065EOF
5066
5067cat >> $CONFIG_STATUS <<EOF
5068ac_sources="$nls_cv_header_libgt"
5069ac_dests="$nls_cv_header_intl"
5070EOF
5071
5072cat >> $CONFIG_STATUS <<\EOF
5073srcdir=$ac_given_srcdir
5074while test -n "$ac_sources"; do
5075  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5076  set $ac_sources; ac_source=$1; shift; ac_sources=$*
5077
5078  echo "linking $srcdir/$ac_source to $ac_dest"
5079
5080  if test ! -r $srcdir/$ac_source; then
5081    { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5082  fi
5083  rm -f $ac_dest
5084
5085  # Make relative symlinks.
5086  # Remove last slash and all that follows it.  Not all systems have dirname.
5087  ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5088  if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5089    # The dest file is in a subdirectory.
5090    test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5091    ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5092    # A "../" for each directory in $ac_dest_dir_suffix.
5093    ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5094  else
5095    ac_dest_dir_suffix= ac_dots=
5096  fi
5097
5098  case "$srcdir" in
5099  [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5100  *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5101  esac
5102
5103  # Make a symlink if possible; otherwise try a hard link.
5104  if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5105    ln $srcdir/$ac_source $ac_dest; then :
5106  else
5107    { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5108  fi
5109done
5110EOF
5111cat >> $CONFIG_STATUS <<EOF
5112
5113AMDEP="$AMDEP"
5114ac_aux_dir="$ac_aux_dir"
5115
5116
5117EOF
5118cat >> $CONFIG_STATUS <<\EOF
5119test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5120
5121test x"$AMDEP" != x"" ||
5122for mf in $CONFIG_FILES; do
5123  case "$mf" in
5124  Makefile) dirpart=.;;
5125  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
5126  *) continue;;
5127  esac
5128  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5129  # Extract the definition of DEP_FILES from the Makefile without
5130  # running `make'.
5131  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5132  test -z "$DEPDIR" && continue
5133  # When using ansi2knr, U may be empty or an underscore; expand it
5134  U=`sed -n -e '/^U = / s///p' < "$mf"`
5135  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5136  # We invoke sed twice because it is the simplest approach to
5137  # changing $(DEPDIR) to its actual value in the expansion.
5138  for file in `sed -n -e '
5139    /^DEP_FILES = .*\\\\$/ {
5140      s/^DEP_FILES = //
5141      :loop
5142        s/\\\\$//
5143        p
5144        n
5145        /\\\\$/ b loop
5146      p
5147    }
5148    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5149       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5150    # Make sure the directory exists.
5151    test -f "$dirpart/$file" && continue
5152    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
5153    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
5154    # echo "creating $dirpart/$file"
5155    echo '# dummy' > "$dirpart/$file"
5156  done
5157done
5158
5159case "$CONFIG_FILES" in *po/Makefile.in*)
5160        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5161      esac
5162
5163exit 0
5164EOF
5165chmod +x $CONFIG_STATUS
5166rm -fr confdefs* $ac_clean_files
5167test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5168
Note: See TracBrowser for help on using the repository browser.