source: trunk/third/gnome-vfs/configure @ 16146

Revision 16146, 218.0 KB checked in by ghudson, 24 years ago (diff)
Need -lrt on Solaris for sem_init.
  • 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  --enable-maintainer-mode enable make rules and dependencies not useful
16                          (and sometimes confusing) to the casual installer"
17ac_help="$ac_help
18  --enable-shared[=PKGS]  build shared libraries [default=yes]"
19ac_help="$ac_help
20  --enable-static[=PKGS]  build static libraries [default=yes]"
21ac_help="$ac_help
22  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
23ac_help="$ac_help
24  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
25ac_help="$ac_help
26  --disable-libtool-lock  avoid locking (might break parallel builds)"
27ac_help="$ac_help
28  --enable-profiler             Enable profiler"
29ac_help="$ac_help
30  --with-gnome-includes   Specify location of GNOME headers"
31ac_help="$ac_help
32  --with-gnome-libs       Specify location of GNOME libs"
33ac_help="$ac_help
34  --with-gnome            Specify prefix for GNOME files"
35ac_help="$ac_help
36  --enable-gtk-doc  Use gtk-doc to build documentation [default=auto]"
37ac_help="$ac_help
38  --enable-gconf          Enable GConf access backend"
39ac_help="$ac_help
40  --disable-libefs={yes|no}       Disable libefs access backend"
41ac_help="$ac_help
42  --with-default-backend=(corba|pthread)                    "
43ac_help="$ac_help
44  --with-glib-prefix=PFX   Prefix where GLIB is installed (optional)"
45ac_help="$ac_help
46  --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
47ac_help="$ac_help
48  --disable-glibtest       Do not try to compile and run a test GLIB program"
49ac_help="$ac_help
50  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
51ac_help="$ac_help
52  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
53ac_help="$ac_help
54  --disable-gtktest       Do not try to compile and run a test GTK program"
55ac_help="$ac_help
56  --enable-compile-warnings=[no/minimum/yes]    Turn on compiler warnings."
57ac_help="$ac_help
58  --enable-iso-c          Try to warn if code is not ISO C "
59ac_help="$ac_help
60  --disable-nls           do not use Native Language Support"
61ac_help="$ac_help
62  --with-catgets          use catgets functions if available"
63ac_help="$ac_help
64  --enable-more-warnings  Maximum compiler warnings"
65ac_help="$ac_help
66  --with-gconf-prefix=PFX   Prefix where GCONF is installed (optional)"
67ac_help="$ac_help
68  --with-gconf-exec-prefix=PFX Exec prefix where GCONF is installed (optional)"
69ac_help="$ac_help
70  --disable-gconftest       Do not try to compile and run a test GCONF program"
71
72# Initialize some variables set by options.
73# The variables have the same names as the options, with
74# dashes changed to underlines.
75build=NONE
76cache_file=./config.cache
77exec_prefix=NONE
78host=NONE
79no_create=
80nonopt=NONE
81no_recursion=
82prefix=NONE
83program_prefix=NONE
84program_suffix=NONE
85program_transform_name=s,x,x,
86silent=
87site=
88srcdir=
89target=NONE
90verbose=
91x_includes=NONE
92x_libraries=NONE
93bindir='${exec_prefix}/bin'
94sbindir='${exec_prefix}/sbin'
95libexecdir='${exec_prefix}/libexec'
96datadir='${prefix}/share'
97sysconfdir='${prefix}/etc'
98sharedstatedir='${prefix}/com'
99localstatedir='${prefix}/var'
100libdir='${exec_prefix}/lib'
101includedir='${prefix}/include'
102oldincludedir='/usr/include'
103infodir='${prefix}/info'
104mandir='${prefix}/man'
105
106# Initialize some other variables.
107subdirs=
108MFLAGS= MAKEFLAGS=
109SHELL=${CONFIG_SHELL-/bin/sh}
110# Maximum number of lines to put in a shell here document.
111ac_max_here_lines=12
112
113ac_prev=
114for ac_option
115do
116
117  # If the previous option needs an argument, assign it.
118  if test -n "$ac_prev"; then
119    eval "$ac_prev=\$ac_option"
120    ac_prev=
121    continue
122  fi
123
124  case "$ac_option" in
125  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126  *) ac_optarg= ;;
127  esac
128
129  # Accept the important Cygnus configure options, so we can diagnose typos.
130
131  case "$ac_option" in
132
133  -bindir | --bindir | --bindi | --bind | --bin | --bi)
134    ac_prev=bindir ;;
135  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136    bindir="$ac_optarg" ;;
137
138  -build | --build | --buil | --bui | --bu)
139    ac_prev=build ;;
140  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141    build="$ac_optarg" ;;
142
143  -cache-file | --cache-file | --cache-fil | --cache-fi \
144  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145    ac_prev=cache_file ;;
146  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148    cache_file="$ac_optarg" ;;
149
150  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151    ac_prev=datadir ;;
152  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153  | --da=*)
154    datadir="$ac_optarg" ;;
155
156  -disable-* | --disable-*)
157    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158    # Reject names that are not valid shell variable names.
159    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161    fi
162    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163    eval "enable_${ac_feature}=no" ;;
164
165  -enable-* | --enable-*)
166    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167    # Reject names that are not valid shell variable names.
168    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170    fi
171    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172    case "$ac_option" in
173      *=*) ;;
174      *) ac_optarg=yes ;;
175    esac
176    eval "enable_${ac_feature}='$ac_optarg'" ;;
177
178  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180  | --exec | --exe | --ex)
181    ac_prev=exec_prefix ;;
182  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184  | --exec=* | --exe=* | --ex=*)
185    exec_prefix="$ac_optarg" ;;
186
187  -gas | --gas | --ga | --g)
188    # Obsolete; use --with-gas.
189    with_gas=yes ;;
190
191  -help | --help | --hel | --he)
192    # Omit some internal or obsolete options to make the list less imposing.
193    # This message is too long to be a string in the A/UX 3.1 sh.
194    cat << EOF
195Usage: configure [options] [host]
196Options: [defaults in brackets after descriptions]
197Configuration:
198  --cache-file=FILE       cache test results in FILE
199  --help                  print this message
200  --no-create             do not create output files
201  --quiet, --silent       do not print \`checking...' messages
202  --version               print the version of autoconf that created configure
203Directory and file names:
204  --prefix=PREFIX         install architecture-independent files in PREFIX
205                          [$ac_default_prefix]
206  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
207                          [same as prefix]
208  --bindir=DIR            user executables in DIR [EPREFIX/bin]
209  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
210  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
211  --datadir=DIR           read-only architecture-independent data in DIR
212                          [PREFIX/share]
213  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
214  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
215                          [PREFIX/com]
216  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
217  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
218  --includedir=DIR        C header files in DIR [PREFIX/include]
219  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
220  --infodir=DIR           info documentation in DIR [PREFIX/info]
221  --mandir=DIR            man documentation in DIR [PREFIX/man]
222  --srcdir=DIR            find the sources in DIR [configure dir or ..]
223  --program-prefix=PREFIX prepend PREFIX to installed program names
224  --program-suffix=SUFFIX append SUFFIX to installed program names
225  --program-transform-name=PROGRAM
226                          run sed PROGRAM on installed program names
227EOF
228    cat << EOF
229Host type:
230  --build=BUILD           configure for building on BUILD [BUILD=HOST]
231  --host=HOST             configure for HOST [guessed]
232  --target=TARGET         configure for TARGET [TARGET=HOST]
233Features and packages:
234  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
235  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
236  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
237  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
238  --x-includes=DIR        X include files are in DIR
239  --x-libraries=DIR       X library files are in DIR
240EOF
241    if test -n "$ac_help"; then
242      echo "--enable and --with options recognized:$ac_help"
243    fi
244    exit 0 ;;
245
246  -host | --host | --hos | --ho)
247    ac_prev=host ;;
248  -host=* | --host=* | --hos=* | --ho=*)
249    host="$ac_optarg" ;;
250
251  -includedir | --includedir | --includedi | --included | --include \
252  | --includ | --inclu | --incl | --inc)
253    ac_prev=includedir ;;
254  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255  | --includ=* | --inclu=* | --incl=* | --inc=*)
256    includedir="$ac_optarg" ;;
257
258  -infodir | --infodir | --infodi | --infod | --info | --inf)
259    ac_prev=infodir ;;
260  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261    infodir="$ac_optarg" ;;
262
263  -libdir | --libdir | --libdi | --libd)
264    ac_prev=libdir ;;
265  -libdir=* | --libdir=* | --libdi=* | --libd=*)
266    libdir="$ac_optarg" ;;
267
268  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269  | --libexe | --libex | --libe)
270    ac_prev=libexecdir ;;
271  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272  | --libexe=* | --libex=* | --libe=*)
273    libexecdir="$ac_optarg" ;;
274
275  -localstatedir | --localstatedir | --localstatedi | --localstated \
276  | --localstate | --localstat | --localsta | --localst \
277  | --locals | --local | --loca | --loc | --lo)
278    ac_prev=localstatedir ;;
279  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282    localstatedir="$ac_optarg" ;;
283
284  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285    ac_prev=mandir ;;
286  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287    mandir="$ac_optarg" ;;
288
289  -nfp | --nfp | --nf)
290    # Obsolete; use --without-fp.
291    with_fp=no ;;
292
293  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294  | --no-cr | --no-c)
295    no_create=yes ;;
296
297  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299    no_recursion=yes ;;
300
301  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303  | --oldin | --oldi | --old | --ol | --o)
304    ac_prev=oldincludedir ;;
305  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308    oldincludedir="$ac_optarg" ;;
309
310  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311    ac_prev=prefix ;;
312  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313    prefix="$ac_optarg" ;;
314
315  -program-prefix | --program-prefix | --program-prefi | --program-pref \
316  | --program-pre | --program-pr | --program-p)
317    ac_prev=program_prefix ;;
318  -program-prefix=* | --program-prefix=* | --program-prefi=* \
319  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320    program_prefix="$ac_optarg" ;;
321
322  -program-suffix | --program-suffix | --program-suffi | --program-suff \
323  | --program-suf | --program-su | --program-s)
324    ac_prev=program_suffix ;;
325  -program-suffix=* | --program-suffix=* | --program-suffi=* \
326  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327    program_suffix="$ac_optarg" ;;
328
329  -program-transform-name | --program-transform-name \
330  | --program-transform-nam | --program-transform-na \
331  | --program-transform-n | --program-transform- \
332  | --program-transform | --program-transfor \
333  | --program-transfo | --program-transf \
334  | --program-trans | --program-tran \
335  | --progr-tra | --program-tr | --program-t)
336    ac_prev=program_transform_name ;;
337  -program-transform-name=* | --program-transform-name=* \
338  | --program-transform-nam=* | --program-transform-na=* \
339  | --program-transform-n=* | --program-transform-=* \
340  | --program-transform=* | --program-transfor=* \
341  | --program-transfo=* | --program-transf=* \
342  | --program-trans=* | --program-tran=* \
343  | --progr-tra=* | --program-tr=* | --program-t=*)
344    program_transform_name="$ac_optarg" ;;
345
346  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347  | -silent | --silent | --silen | --sile | --sil)
348    silent=yes ;;
349
350  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351    ac_prev=sbindir ;;
352  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353  | --sbi=* | --sb=*)
354    sbindir="$ac_optarg" ;;
355
356  -sharedstatedir | --sharedstatedir | --sharedstatedi \
357  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358  | --sharedst | --shareds | --shared | --share | --shar \
359  | --sha | --sh)
360    ac_prev=sharedstatedir ;;
361  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364  | --sha=* | --sh=*)
365    sharedstatedir="$ac_optarg" ;;
366
367  -site | --site | --sit)
368    ac_prev=site ;;
369  -site=* | --site=* | --sit=*)
370    site="$ac_optarg" ;;
371
372  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373    ac_prev=srcdir ;;
374  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375    srcdir="$ac_optarg" ;;
376
377  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378  | --syscon | --sysco | --sysc | --sys | --sy)
379    ac_prev=sysconfdir ;;
380  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382    sysconfdir="$ac_optarg" ;;
383
384  -target | --target | --targe | --targ | --tar | --ta | --t)
385    ac_prev=target ;;
386  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387    target="$ac_optarg" ;;
388
389  -v | -verbose | --verbose | --verbos | --verbo | --verb)
390    verbose=yes ;;
391
392  -version | --version | --versio | --versi | --vers)
393    echo "configure generated by autoconf version 2.13"
394    exit 0 ;;
395
396  -with-* | --with-*)
397    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398    # Reject names that are not valid shell variable names.
399    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401    fi
402    ac_package=`echo $ac_package| sed 's/-/_/g'`
403    case "$ac_option" in
404      *=*) ;;
405      *) ac_optarg=yes ;;
406    esac
407    eval "with_${ac_package}='$ac_optarg'" ;;
408
409  -without-* | --without-*)
410    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411    # Reject names that are not valid shell variable names.
412    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414    fi
415    ac_package=`echo $ac_package| sed 's/-/_/g'`
416    eval "with_${ac_package}=no" ;;
417
418  --x)
419    # Obsolete; use --with-x.
420    with_x=yes ;;
421
422  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423  | --x-incl | --x-inc | --x-in | --x-i)
424    ac_prev=x_includes ;;
425  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427    x_includes="$ac_optarg" ;;
428
429  -x-libraries | --x-libraries | --x-librarie | --x-librari \
430  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431    ac_prev=x_libraries ;;
432  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434    x_libraries="$ac_optarg" ;;
435
436  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437    ;;
438
439  *)
440    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441      echo "configure: warning: $ac_option: invalid host type" 1>&2
442    fi
443    if test "x$nonopt" != xNONE; then
444      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
445    fi
446    nonopt="$ac_option"
447    ;;
448
449  esac
450done
451
452if test -n "$ac_prev"; then
453  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
454fi
455
456trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
457
458# File descriptor usage:
459# 0 standard input
460# 1 file creation
461# 2 errors and warnings
462# 3 some systems may open it to /dev/tty
463# 4 used on the Kubota Titan
464# 6 checking for... messages and results
465# 5 compiler messages saved in config.log
466if test "$silent" = yes; then
467  exec 6>/dev/null
468else
469  exec 6>&1
470fi
471exec 5>./config.log
472
473echo "\
474This file contains any messages produced by compilers while
475running configure, to aid debugging if configure makes a mistake.
476" 1>&5
477
478# Strip out --no-create and --no-recursion so they do not pile up.
479# Also quote any args containing shell metacharacters.
480ac_configure_args=
481for ac_arg
482do
483  case "$ac_arg" in
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c) ;;
486  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491  esac
492done
493
494# NLS nuisances.
495# Only set these to C if already set.  These must not be set unconditionally
496# because not all systems understand e.g. LANG=C (notably SCO).
497# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498# Non-C LC_CTYPE values break the ctype check.
499if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
500if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
503
504# confdefs.h avoids OS command line length limits that DEFS can exceed.
505rm -rf conftest* confdefs.h
506# AIX cpp loses on an empty file, so make sure it contains at least a newline.
507echo > confdefs.h
508
509# A filename unique to this package, relative to the directory that
510# configure is in, which we can look for to find out if srcdir is correct.
511ac_unique_file=libgnomevfs/gnome-vfs.h
512
513# Find the source files, if location was not specified.
514if test -z "$srcdir"; then
515  ac_srcdir_defaulted=yes
516  # Try the directory containing this script, then its parent.
517  ac_prog=$0
518  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520  srcdir=$ac_confdir
521  if test ! -r $srcdir/$ac_unique_file; then
522    srcdir=..
523  fi
524else
525  ac_srcdir_defaulted=no
526fi
527if test ! -r $srcdir/$ac_unique_file; then
528  if test "$ac_srcdir_defaulted" = yes; then
529    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530  else
531    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
532  fi
533fi
534srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
535
536# Prefer explicitly selected file to automatically selected ones.
537if test -z "$CONFIG_SITE"; then
538  if test "x$prefix" != xNONE; then
539    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540  else
541    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
542  fi
543fi
544for ac_site_file in $CONFIG_SITE; do
545  if test -r "$ac_site_file"; then
546    echo "loading site script $ac_site_file"
547    . "$ac_site_file"
548  fi
549done
550
551if test -r "$cache_file"; then
552  echo "loading cache $cache_file"
553  . $cache_file
554else
555  echo "creating cache $cache_file"
556  > $cache_file
557fi
558
559ac_ext=c
560# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561ac_cpp='$CPP $CPPFLAGS'
562ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564cross_compiling=$ac_cv_prog_cc_cross
565
566ac_exeext=
567ac_objext=o
568if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571    ac_n= ac_c='
572' ac_t='        '
573  else
574    ac_n=-n ac_c= ac_t=
575  fi
576else
577  ac_n= ac_c='\c' ac_t=
578fi
579
580
581
582
583
584ac_aux_dir=
585for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
586  if test -f $ac_dir/install-sh; then
587    ac_aux_dir=$ac_dir
588    ac_install_sh="$ac_aux_dir/install-sh -c"
589    break
590  elif test -f $ac_dir/install.sh; then
591    ac_aux_dir=$ac_dir
592    ac_install_sh="$ac_aux_dir/install.sh -c"
593    break
594  fi
595done
596if test -z "$ac_aux_dir"; then
597  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
598fi
599ac_config_guess=$ac_aux_dir/config.guess
600ac_config_sub=$ac_aux_dir/config.sub
601ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
602
603# Find a good install program.  We prefer a C program (faster),
604# so one script is as good as another.  But avoid the broken or
605# incompatible versions:
606# SysV /etc/install, /usr/sbin/install
607# SunOS /usr/etc/install
608# IRIX /sbin/install
609# AIX /bin/install
610# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
611# AFS /usr/afsws/bin/install, which mishandles nonexistent args
612# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
613# ./install, which can be erroneously created by make from ./install.sh.
614echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
615echo "configure:616: checking for a BSD compatible install" >&5
616if test -z "$INSTALL"; then
617if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
618  echo $ac_n "(cached) $ac_c" 1>&6
619else
620    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
621  for ac_dir in $PATH; do
622    # Account for people who put trailing slashes in PATH elements.
623    case "$ac_dir/" in
624    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
625    *)
626      # OSF1 and SCO ODT 3.0 have their own names for install.
627      # Don't use installbsd from OSF since it installs stuff as root
628      # by default.
629      for ac_prog in ginstall scoinst install; do
630        if test -f $ac_dir/$ac_prog; then
631          if test $ac_prog = install &&
632            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
633            # AIX install.  It has an incompatible calling convention.
634            :
635          else
636            ac_cv_path_install="$ac_dir/$ac_prog -c"
637            break 2
638          fi
639        fi
640      done
641      ;;
642    esac
643  done
644  IFS="$ac_save_IFS"
645
646fi
647  if test "${ac_cv_path_install+set}" = set; then
648    INSTALL="$ac_cv_path_install"
649  else
650    # As a last resort, use the slow shell script.  We don't cache a
651    # path for INSTALL within a source directory, because that will
652    # break other packages using the cache if that directory is
653    # removed, or if the path is relative.
654    INSTALL="$ac_install_sh"
655  fi
656fi
657echo "$ac_t""$INSTALL" 1>&6
658
659# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
660# It thinks the first close brace ends the variable substitution.
661test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
662
663test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
664
665test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
666
667echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
668echo "configure:669: checking whether build environment is sane" >&5
669# Just in case
670sleep 1
671echo timestamp > conftestfile
672# Do `set' in a subshell so we don't clobber the current shell's
673# arguments.  Must try -L first in case configure is actually a
674# symlink; some systems play weird games with the mod time of symlinks
675# (eg FreeBSD returns the mod time of the symlink's containing
676# directory).
677if (
678   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
679   if test "$*" = "X"; then
680      # -L didn't work.
681      set X `ls -t $srcdir/configure conftestfile`
682   fi
683   if test "$*" != "X $srcdir/configure conftestfile" \
684      && test "$*" != "X conftestfile $srcdir/configure"; then
685
686      # If neither matched, then we have a broken ls.  This can happen
687      # if, for instance, CONFIG_SHELL is bash and it inherits a
688      # broken ls alias from the environment.  This has actually
689      # happened.  Such a system could not be considered "sane".
690      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
691alias in your environment" 1>&2; exit 1; }
692   fi
693
694   test "$2" = conftestfile
695   )
696then
697   # Ok.
698   :
699else
700   { echo "configure: error: newly created file is older than distributed files!
701Check your system clock" 1>&2; exit 1; }
702fi
703rm -f conftest*
704echo "$ac_t""yes" 1>&6
705if test "$program_transform_name" = s,x,x,; then
706  program_transform_name=
707else
708  # Double any \ or $.  echo might interpret backslashes.
709  cat <<\EOF_SED > conftestsed
710s,\\,\\\\,g; s,\$,$$,g
711EOF_SED
712  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
713  rm -f conftestsed
714fi
715test "$program_prefix" != NONE &&
716  program_transform_name="s,^,${program_prefix},; $program_transform_name"
717# Use a double $ so make ignores it.
718test "$program_suffix" != NONE &&
719  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
720
721# sed with no file args requires a program.
722test "$program_transform_name" = "" && program_transform_name="s,x,x,"
723
724echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
725echo "configure:726: checking whether ${MAKE-make} sets \${MAKE}" >&5
726set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
727if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
728  echo $ac_n "(cached) $ac_c" 1>&6
729else
730  cat > conftestmake <<\EOF
731all:
732        @echo 'ac_maketemp="${MAKE}"'
733EOF
734# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
735eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
736if test -n "$ac_maketemp"; then
737  eval ac_cv_prog_make_${ac_make}_set=yes
738else
739  eval ac_cv_prog_make_${ac_make}_set=no
740fi
741rm -f conftestmake
742fi
743if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
744  echo "$ac_t""yes" 1>&6
745  SET_MAKE=
746else
747  echo "$ac_t""no" 1>&6
748  SET_MAKE="MAKE=${MAKE-make}"
749fi
750
751
752PACKAGE=gnome-vfs
753
754VERSION=1.0
755
756if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
757  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
758fi
759cat >> confdefs.h <<EOF
760#define PACKAGE "$PACKAGE"
761EOF
762
763cat >> confdefs.h <<EOF
764#define VERSION "$VERSION"
765EOF
766
767
768
769missing_dir=`cd $ac_aux_dir && pwd`
770echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
771echo "configure:772: checking for working aclocal" >&5
772# Run test in a subshell; some versions of sh will print an error if
773# an executable is not found, even if stderr is redirected.
774# Redirect stdin to placate older versions of autoconf.  Sigh.
775if (aclocal --version) < /dev/null > /dev/null 2>&1; then
776   ACLOCAL=aclocal
777   echo "$ac_t""found" 1>&6
778else
779   ACLOCAL="$missing_dir/missing aclocal"
780   echo "$ac_t""missing" 1>&6
781fi
782
783echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
784echo "configure:785: checking for working autoconf" >&5
785# Run test in a subshell; some versions of sh will print an error if
786# an executable is not found, even if stderr is redirected.
787# Redirect stdin to placate older versions of autoconf.  Sigh.
788if (autoconf --version) < /dev/null > /dev/null 2>&1; then
789   AUTOCONF=autoconf
790   echo "$ac_t""found" 1>&6
791else
792   AUTOCONF="$missing_dir/missing autoconf"
793   echo "$ac_t""missing" 1>&6
794fi
795
796echo $ac_n "checking for working automake""... $ac_c" 1>&6
797echo "configure:798: checking for working automake" >&5
798# Run test in a subshell; some versions of sh will print an error if
799# an executable is not found, even if stderr is redirected.
800# Redirect stdin to placate older versions of autoconf.  Sigh.
801if (automake --version) < /dev/null > /dev/null 2>&1; then
802   AUTOMAKE=automake
803   echo "$ac_t""found" 1>&6
804else
805   AUTOMAKE="$missing_dir/missing automake"
806   echo "$ac_t""missing" 1>&6
807fi
808
809echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
810echo "configure:811: checking for working autoheader" >&5
811# Run test in a subshell; some versions of sh will print an error if
812# an executable is not found, even if stderr is redirected.
813# Redirect stdin to placate older versions of autoconf.  Sigh.
814if (autoheader --version) < /dev/null > /dev/null 2>&1; then
815   AUTOHEADER=autoheader
816   echo "$ac_t""found" 1>&6
817else
818   AUTOHEADER="$missing_dir/missing autoheader"
819   echo "$ac_t""missing" 1>&6
820fi
821
822echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
823echo "configure:824: checking for working makeinfo" >&5
824# Run test in a subshell; some versions of sh will print an error if
825# an executable is not found, even if stderr is redirected.
826# Redirect stdin to placate older versions of autoconf.  Sigh.
827if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
828   MAKEINFO=makeinfo
829   echo "$ac_t""found" 1>&6
830else
831   MAKEINFO="$missing_dir/missing makeinfo"
832   echo "$ac_t""missing" 1>&6
833fi
834
835
836
837       
838
839if test x = y; then
840  INSIDE_GNOME_COMMON_TRUE=
841  INSIDE_GNOME_COMMON_FALSE='#'
842else
843  INSIDE_GNOME_COMMON_TRUE='#'
844  INSIDE_GNOME_COMMON_FALSE=
845fi
846
847        test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
848
849        for k in macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
850
851
852echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
853echo "configure:854: checking whether to enable maintainer-specific portions of Makefiles" >&5
854    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
855if test "${enable_maintainer_mode+set}" = set; then
856  enableval="$enable_maintainer_mode"
857  USE_MAINTAINER_MODE=$enableval
858else
859  USE_MAINTAINER_MODE=no
860fi
861
862  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
863 
864
865if test $USE_MAINTAINER_MODE = yes; then
866  MAINTAINER_MODE_TRUE=
867  MAINTAINER_MODE_FALSE='#'
868else
869  MAINTAINER_MODE_TRUE='#'
870  MAINTAINER_MODE_FALSE=
871fi
872  MAINT=$MAINTAINER_MODE_TRUE
873 
874
875
876
877
878XML_I18N_MERGE_OAF_RULE='\%.oaf : \%.oaf.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\
879        $(top_builddir)/xml-i18n-merge -o $(top_srcdir)/po $< $*.oaf'
880
881XML_I18N_MERGE_KEYS_RULE='\%.keys : \%.keys.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\
882        $(top_builddir)/xml-i18n-merge -k $(top_srcdir)/po $< $*.keys'
883
884XML_I18N_MERGE_DESKTOP_RULE='\%.desktop : \%.desktop.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\
885        $(top_builddir)/xml-i18n-merge -d $(top_srcdir)/po $< $*.desktop'
886
887# Always use our own xml-i18n-tools.
888XML_I18N_EXTRACT='$(top_builddir)/xml-i18n-extract'
889
890XML_I18N_MERGE='$(top_builddir)/xml-i18n-merge'
891
892XML_I18N_UPDATE='$(top_builddir)/xml-i18n-update'
893
894# Extract the first word of "perl", so it can be a program name with args.
895set dummy perl; ac_word=$2
896echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
897echo "configure:898: checking for $ac_word" >&5
898if eval "test \"`echo '$''{'ac_cv_path_XML_I18N_TOOLS_PERL'+set}'`\" = set"; then
899  echo $ac_n "(cached) $ac_c" 1>&6
900else
901  case "$XML_I18N_TOOLS_PERL" in
902  /*)
903  ac_cv_path_XML_I18N_TOOLS_PERL="$XML_I18N_TOOLS_PERL" # Let the user override the test with a path.
904  ;;
905  ?:/*)                 
906  ac_cv_path_XML_I18N_TOOLS_PERL="$XML_I18N_TOOLS_PERL" # Let the user override the test with a dos path.
907  ;;
908  *)
909  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
910  ac_dummy="$PATH"
911  for ac_dir in $ac_dummy; do
912    test -z "$ac_dir" && ac_dir=.
913    if test -f $ac_dir/$ac_word; then
914      ac_cv_path_XML_I18N_TOOLS_PERL="$ac_dir/$ac_word"
915      break
916    fi
917  done
918  IFS="$ac_save_ifs"
919  ;;
920esac
921fi
922XML_I18N_TOOLS_PERL="$ac_cv_path_XML_I18N_TOOLS_PERL"
923if test -n "$XML_I18N_TOOLS_PERL"; then
924  echo "$ac_t""$XML_I18N_TOOLS_PERL" 1>&6
925else
926  echo "$ac_t""no" 1>&6
927fi
928
929if test -z "$XML_I18N_TOOLS_PERL"; then
930   { echo "configure: error: perl not found; required for xml-i18n-tools" 1>&2; exit 1; }
931fi
932if test -z "`$XML_I18N_TOOLS_PERL -v | fgrep '5.' 2> /dev/null`"; then
933   { echo "configure: error: perl 5.x required for xml-i18n-tools" 1>&2; exit 1; }
934fi
935
936
937
938# Redirect the config.log output again, so that the ltconfig log is not
939# clobbered by the next message.
940exec 5>>./config.log
941
942
943# Extract the first word of "gcc", so it can be a program name with args.
944set dummy gcc; ac_word=$2
945echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
946echo "configure:947: checking for $ac_word" >&5
947if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
948  echo $ac_n "(cached) $ac_c" 1>&6
949else
950  if test -n "$CC"; then
951  ac_cv_prog_CC="$CC" # Let the user override the test.
952else
953  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
954  ac_dummy="$PATH"
955  for ac_dir in $ac_dummy; do
956    test -z "$ac_dir" && ac_dir=.
957    if test -f $ac_dir/$ac_word; then
958      ac_cv_prog_CC="gcc"
959      break
960    fi
961  done
962  IFS="$ac_save_ifs"
963fi
964fi
965CC="$ac_cv_prog_CC"
966if test -n "$CC"; then
967  echo "$ac_t""$CC" 1>&6
968else
969  echo "$ac_t""no" 1>&6
970fi
971
972if test -z "$CC"; then
973  # Extract the first word of "cc", so it can be a program name with args.
974set dummy cc; ac_word=$2
975echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
976echo "configure:977: checking for $ac_word" >&5
977if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
978  echo $ac_n "(cached) $ac_c" 1>&6
979else
980  if test -n "$CC"; then
981  ac_cv_prog_CC="$CC" # Let the user override the test.
982else
983  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
984  ac_prog_rejected=no
985  ac_dummy="$PATH"
986  for ac_dir in $ac_dummy; do
987    test -z "$ac_dir" && ac_dir=.
988    if test -f $ac_dir/$ac_word; then
989      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
990        ac_prog_rejected=yes
991        continue
992      fi
993      ac_cv_prog_CC="cc"
994      break
995    fi
996  done
997  IFS="$ac_save_ifs"
998if test $ac_prog_rejected = yes; then
999  # We found a bogon in the path, so make sure we never use it.
1000  set dummy $ac_cv_prog_CC
1001  shift
1002  if test $# -gt 0; then
1003    # We chose a different compiler from the bogus one.
1004    # However, it has the same basename, so the bogon will be chosen
1005    # first if we set CC to just the basename; use the full file name.
1006    shift
1007    set dummy "$ac_dir/$ac_word" "$@"
1008    shift
1009    ac_cv_prog_CC="$@"
1010  fi
1011fi
1012fi
1013fi
1014CC="$ac_cv_prog_CC"
1015if test -n "$CC"; then
1016  echo "$ac_t""$CC" 1>&6
1017else
1018  echo "$ac_t""no" 1>&6
1019fi
1020
1021  if test -z "$CC"; then
1022    case "`uname -s`" in
1023    *win32* | *WIN32*)
1024      # Extract the first word of "cl", so it can be a program name with args.
1025set dummy cl; ac_word=$2
1026echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1027echo "configure:1028: checking for $ac_word" >&5
1028if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1029  echo $ac_n "(cached) $ac_c" 1>&6
1030else
1031  if test -n "$CC"; then
1032  ac_cv_prog_CC="$CC" # Let the user override the test.
1033else
1034  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1035  ac_dummy="$PATH"
1036  for ac_dir in $ac_dummy; do
1037    test -z "$ac_dir" && ac_dir=.
1038    if test -f $ac_dir/$ac_word; then
1039      ac_cv_prog_CC="cl"
1040      break
1041    fi
1042  done
1043  IFS="$ac_save_ifs"
1044fi
1045fi
1046CC="$ac_cv_prog_CC"
1047if test -n "$CC"; then
1048  echo "$ac_t""$CC" 1>&6
1049else
1050  echo "$ac_t""no" 1>&6
1051fi
1052 ;;
1053    esac
1054  fi
1055  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1056fi
1057
1058echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1059echo "configure:1060: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1060
1061ac_ext=c
1062# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1063ac_cpp='$CPP $CPPFLAGS'
1064ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1065ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1066cross_compiling=$ac_cv_prog_cc_cross
1067
1068cat > conftest.$ac_ext << EOF
1069
1070#line 1071 "configure"
1071#include "confdefs.h"
1072
1073main(){return(0);}
1074EOF
1075if { (eval echo configure:1076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1076  ac_cv_prog_cc_works=yes
1077  # If we can't run a trivial program, we are probably using a cross compiler.
1078  if (./conftest; exit) 2>/dev/null; then
1079    ac_cv_prog_cc_cross=no
1080  else
1081    ac_cv_prog_cc_cross=yes
1082  fi
1083else
1084  echo "configure: failed program was:" >&5
1085  cat conftest.$ac_ext >&5
1086  ac_cv_prog_cc_works=no
1087fi
1088rm -fr conftest*
1089ac_ext=c
1090# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1091ac_cpp='$CPP $CPPFLAGS'
1092ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1093ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1094cross_compiling=$ac_cv_prog_cc_cross
1095
1096echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1097if test $ac_cv_prog_cc_works = no; then
1098  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1099fi
1100echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1101echo "configure:1102: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1102echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1103cross_compiling=$ac_cv_prog_cc_cross
1104
1105echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1106echo "configure:1107: checking whether we are using GNU C" >&5
1107if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1108  echo $ac_n "(cached) $ac_c" 1>&6
1109else
1110  cat > conftest.c <<EOF
1111#ifdef __GNUC__
1112  yes;
1113#endif
1114EOF
1115if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1116  ac_cv_prog_gcc=yes
1117else
1118  ac_cv_prog_gcc=no
1119fi
1120fi
1121
1122echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1123
1124if test $ac_cv_prog_gcc = yes; then
1125  GCC=yes
1126else
1127  GCC=
1128fi
1129
1130ac_test_CFLAGS="${CFLAGS+set}"
1131ac_save_CFLAGS="$CFLAGS"
1132CFLAGS=
1133echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1134echo "configure:1135: checking whether ${CC-cc} accepts -g" >&5
1135if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1136  echo $ac_n "(cached) $ac_c" 1>&6
1137else
1138  echo 'void f(){}' > conftest.c
1139if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1140  ac_cv_prog_cc_g=yes
1141else
1142  ac_cv_prog_cc_g=no
1143fi
1144rm -f conftest*
1145
1146fi
1147
1148echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1149if test "$ac_test_CFLAGS" = set; then
1150  CFLAGS="$ac_save_CFLAGS"
1151elif test $ac_cv_prog_cc_g = yes; then
1152  if test "$GCC" = yes; then
1153    CFLAGS="-g -O2"
1154  else
1155    CFLAGS="-g"
1156  fi
1157else
1158  if test "$GCC" = yes; then
1159    CFLAGS="-O2"
1160  else
1161    CFLAGS=
1162  fi
1163fi
1164
1165echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1166echo "configure:1167: checking for POSIXized ISC" >&5
1167if test -d /etc/conf/kconfig.d &&
1168  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1169then
1170  echo "$ac_t""yes" 1>&6
1171  ISC=yes # If later tests want to check for ISC.
1172  cat >> confdefs.h <<\EOF
1173#define _POSIX_SOURCE 1
1174EOF
1175
1176  if test "$GCC" = yes; then
1177    CC="$CC -posix"
1178  else
1179    CC="$CC -Xp"
1180  fi
1181else
1182  echo "$ac_t""no" 1>&6
1183  ISC=
1184fi
1185
1186# Extract the first word of "gcc", so it can be a program name with args.
1187set dummy gcc; ac_word=$2
1188echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1189echo "configure:1190: checking for $ac_word" >&5
1190if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1191  echo $ac_n "(cached) $ac_c" 1>&6
1192else
1193  if test -n "$CC"; then
1194  ac_cv_prog_CC="$CC" # Let the user override the test.
1195else
1196  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1197  ac_dummy="$PATH"
1198  for ac_dir in $ac_dummy; do
1199    test -z "$ac_dir" && ac_dir=.
1200    if test -f $ac_dir/$ac_word; then
1201      ac_cv_prog_CC="gcc"
1202      break
1203    fi
1204  done
1205  IFS="$ac_save_ifs"
1206fi
1207fi
1208CC="$ac_cv_prog_CC"
1209if test -n "$CC"; then
1210  echo "$ac_t""$CC" 1>&6
1211else
1212  echo "$ac_t""no" 1>&6
1213fi
1214
1215if test -z "$CC"; then
1216  # Extract the first word of "cc", so it can be a program name with args.
1217set dummy cc; ac_word=$2
1218echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1219echo "configure:1220: checking for $ac_word" >&5
1220if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1221  echo $ac_n "(cached) $ac_c" 1>&6
1222else
1223  if test -n "$CC"; then
1224  ac_cv_prog_CC="$CC" # Let the user override the test.
1225else
1226  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1227  ac_prog_rejected=no
1228  ac_dummy="$PATH"
1229  for ac_dir in $ac_dummy; do
1230    test -z "$ac_dir" && ac_dir=.
1231    if test -f $ac_dir/$ac_word; then
1232      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1233        ac_prog_rejected=yes
1234        continue
1235      fi
1236      ac_cv_prog_CC="cc"
1237      break
1238    fi
1239  done
1240  IFS="$ac_save_ifs"
1241if test $ac_prog_rejected = yes; then
1242  # We found a bogon in the path, so make sure we never use it.
1243  set dummy $ac_cv_prog_CC
1244  shift
1245  if test $# -gt 0; then
1246    # We chose a different compiler from the bogus one.
1247    # However, it has the same basename, so the bogon will be chosen
1248    # first if we set CC to just the basename; use the full file name.
1249    shift
1250    set dummy "$ac_dir/$ac_word" "$@"
1251    shift
1252    ac_cv_prog_CC="$@"
1253  fi
1254fi
1255fi
1256fi
1257CC="$ac_cv_prog_CC"
1258if test -n "$CC"; then
1259  echo "$ac_t""$CC" 1>&6
1260else
1261  echo "$ac_t""no" 1>&6
1262fi
1263
1264  if test -z "$CC"; then
1265    case "`uname -s`" in
1266    *win32* | *WIN32*)
1267      # Extract the first word of "cl", so it can be a program name with args.
1268set dummy cl; ac_word=$2
1269echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1270echo "configure:1271: checking for $ac_word" >&5
1271if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1272  echo $ac_n "(cached) $ac_c" 1>&6
1273else
1274  if test -n "$CC"; then
1275  ac_cv_prog_CC="$CC" # Let the user override the test.
1276else
1277  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1278  ac_dummy="$PATH"
1279  for ac_dir in $ac_dummy; do
1280    test -z "$ac_dir" && ac_dir=.
1281    if test -f $ac_dir/$ac_word; then
1282      ac_cv_prog_CC="cl"
1283      break
1284    fi
1285  done
1286  IFS="$ac_save_ifs"
1287fi
1288fi
1289CC="$ac_cv_prog_CC"
1290if test -n "$CC"; then
1291  echo "$ac_t""$CC" 1>&6
1292else
1293  echo "$ac_t""no" 1>&6
1294fi
1295 ;;
1296    esac
1297  fi
1298  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1299fi
1300
1301echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1302echo "configure:1303: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1303
1304ac_ext=c
1305# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1306ac_cpp='$CPP $CPPFLAGS'
1307ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1308ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1309cross_compiling=$ac_cv_prog_cc_cross
1310
1311cat > conftest.$ac_ext << EOF
1312
1313#line 1314 "configure"
1314#include "confdefs.h"
1315
1316main(){return(0);}
1317EOF
1318if { (eval echo configure:1319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1319  ac_cv_prog_cc_works=yes
1320  # If we can't run a trivial program, we are probably using a cross compiler.
1321  if (./conftest; exit) 2>/dev/null; then
1322    ac_cv_prog_cc_cross=no
1323  else
1324    ac_cv_prog_cc_cross=yes
1325  fi
1326else
1327  echo "configure: failed program was:" >&5
1328  cat conftest.$ac_ext >&5
1329  ac_cv_prog_cc_works=no
1330fi
1331rm -fr conftest*
1332ac_ext=c
1333# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1334ac_cpp='$CPP $CPPFLAGS'
1335ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1336ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1337cross_compiling=$ac_cv_prog_cc_cross
1338
1339echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1340if test $ac_cv_prog_cc_works = no; then
1341  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1342fi
1343echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1344echo "configure:1345: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1345echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1346cross_compiling=$ac_cv_prog_cc_cross
1347
1348echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1349echo "configure:1350: checking whether we are using GNU C" >&5
1350if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1351  echo $ac_n "(cached) $ac_c" 1>&6
1352else
1353  cat > conftest.c <<EOF
1354#ifdef __GNUC__
1355  yes;
1356#endif
1357EOF
1358if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1359  ac_cv_prog_gcc=yes
1360else
1361  ac_cv_prog_gcc=no
1362fi
1363fi
1364
1365echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1366
1367if test $ac_cv_prog_gcc = yes; then
1368  GCC=yes
1369else
1370  GCC=
1371fi
1372
1373ac_test_CFLAGS="${CFLAGS+set}"
1374ac_save_CFLAGS="$CFLAGS"
1375CFLAGS=
1376echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1377echo "configure:1378: checking whether ${CC-cc} accepts -g" >&5
1378if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1379  echo $ac_n "(cached) $ac_c" 1>&6
1380else
1381  echo 'void f(){}' > conftest.c
1382if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1383  ac_cv_prog_cc_g=yes
1384else
1385  ac_cv_prog_cc_g=no
1386fi
1387rm -f conftest*
1388
1389fi
1390
1391echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1392if test "$ac_test_CFLAGS" = set; then
1393  CFLAGS="$ac_save_CFLAGS"
1394elif test $ac_cv_prog_cc_g = yes; then
1395  if test "$GCC" = yes; then
1396    CFLAGS="-g -O2"
1397  else
1398    CFLAGS="-g"
1399  fi
1400else
1401  if test "$GCC" = yes; then
1402    CFLAGS="-O2"
1403  else
1404    CFLAGS=
1405  fi
1406fi
1407
1408for ac_prog in mawk gawk nawk awk
1409do
1410# Extract the first word of "$ac_prog", so it can be a program name with args.
1411set dummy $ac_prog; ac_word=$2
1412echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1413echo "configure:1414: checking for $ac_word" >&5
1414if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1415  echo $ac_n "(cached) $ac_c" 1>&6
1416else
1417  if test -n "$AWK"; then
1418  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1419else
1420  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1421  ac_dummy="$PATH"
1422  for ac_dir in $ac_dummy; do
1423    test -z "$ac_dir" && ac_dir=.
1424    if test -f $ac_dir/$ac_word; then
1425      ac_cv_prog_AWK="$ac_prog"
1426      break
1427    fi
1428  done
1429  IFS="$ac_save_ifs"
1430fi
1431fi
1432AWK="$ac_cv_prog_AWK"
1433if test -n "$AWK"; then
1434  echo "$ac_t""$AWK" 1>&6
1435else
1436  echo "$ac_t""no" 1>&6
1437fi
1438
1439test -n "$AWK" && break
1440done
1441
1442# Check whether --enable-shared or --disable-shared was given.
1443if test "${enable_shared+set}" = set; then
1444  enableval="$enable_shared"
1445  p=${PACKAGE-default}
1446case "$enableval" in
1447yes) enable_shared=yes ;;
1448no) enable_shared=no ;;
1449*)
1450  enable_shared=no
1451  # Look at the argument we got.  We use all the common list separators.
1452  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1453  for pkg in $enableval; do
1454    if test "X$pkg" = "X$p"; then
1455      enable_shared=yes
1456    fi
1457  done
1458  IFS="$ac_save_ifs"
1459  ;;
1460esac
1461else
1462  enable_shared=yes
1463fi
1464
1465# Check whether --enable-static or --disable-static was given.
1466if test "${enable_static+set}" = set; then
1467  enableval="$enable_static"
1468  p=${PACKAGE-default}
1469case "$enableval" in
1470yes) enable_static=yes ;;
1471no) enable_static=no ;;
1472*)
1473  enable_static=no
1474  # Look at the argument we got.  We use all the common list separators.
1475  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1476  for pkg in $enableval; do
1477    if test "X$pkg" = "X$p"; then
1478      enable_static=yes
1479    fi
1480  done
1481  IFS="$ac_save_ifs"
1482  ;;
1483esac
1484else
1485  enable_static=yes
1486fi
1487
1488# Check whether --enable-fast-install or --disable-fast-install was given.
1489if test "${enable_fast_install+set}" = set; then
1490  enableval="$enable_fast_install"
1491  p=${PACKAGE-default}
1492case "$enableval" in
1493yes) enable_fast_install=yes ;;
1494no) enable_fast_install=no ;;
1495*)
1496  enable_fast_install=no
1497  # Look at the argument we got.  We use all the common list separators.
1498  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1499  for pkg in $enableval; do
1500    if test "X$pkg" = "X$p"; then
1501      enable_fast_install=yes
1502    fi
1503  done
1504  IFS="$ac_save_ifs"
1505  ;;
1506esac
1507else
1508  enable_fast_install=yes
1509fi
1510
1511
1512# Make sure we can run config.sub.
1513if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1514else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1515fi
1516
1517echo $ac_n "checking host system type""... $ac_c" 1>&6
1518echo "configure:1519: checking host system type" >&5
1519
1520host_alias=$host
1521case "$host_alias" in
1522NONE)
1523  case $nonopt in
1524  NONE)
1525    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1526    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1527    fi ;;
1528  *) host_alias=$nonopt ;;
1529  esac ;;
1530esac
1531
1532host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1533host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1534host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1535host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1536echo "$ac_t""$host" 1>&6
1537
1538echo $ac_n "checking build system type""... $ac_c" 1>&6
1539echo "configure:1540: checking build system type" >&5
1540
1541build_alias=$build
1542case "$build_alias" in
1543NONE)
1544  case $nonopt in
1545  NONE) build_alias=$host_alias ;;
1546  *) build_alias=$nonopt ;;
1547  esac ;;
1548esac
1549
1550build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1551build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1552build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1553build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1554echo "$ac_t""$build" 1>&6
1555
1556# Extract the first word of "ranlib", so it can be a program name with args.
1557set dummy ranlib; ac_word=$2
1558echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1559echo "configure:1560: checking for $ac_word" >&5
1560if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1561  echo $ac_n "(cached) $ac_c" 1>&6
1562else
1563  if test -n "$RANLIB"; then
1564  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1565else
1566  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1567  ac_dummy="$PATH"
1568  for ac_dir in $ac_dummy; do
1569    test -z "$ac_dir" && ac_dir=.
1570    if test -f $ac_dir/$ac_word; then
1571      ac_cv_prog_RANLIB="ranlib"
1572      break
1573    fi
1574  done
1575  IFS="$ac_save_ifs"
1576  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1577fi
1578fi
1579RANLIB="$ac_cv_prog_RANLIB"
1580if test -n "$RANLIB"; then
1581  echo "$ac_t""$RANLIB" 1>&6
1582else
1583  echo "$ac_t""no" 1>&6
1584fi
1585
1586# Check whether --with-gnu-ld or --without-gnu-ld was given.
1587if test "${with_gnu_ld+set}" = set; then
1588  withval="$with_gnu_ld"
1589  test "$withval" = no || with_gnu_ld=yes
1590else
1591  with_gnu_ld=no
1592fi
1593
1594ac_prog=ld
1595if test "$ac_cv_prog_gcc" = yes; then
1596  # Check if gcc -print-prog-name=ld gives a path.
1597  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1598echo "configure:1599: checking for ld used by GCC" >&5
1599  ac_prog=`($CC -print-prog-name=ld) 2>&5`
1600  case "$ac_prog" in
1601    # Accept absolute paths.
1602    [\\/]* | [A-Za-z]:[\\/]*)
1603      re_direlt='/[^/][^/]*/\.\./'
1604      # Canonicalize the path of ld
1605      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1606      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1607        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1608      done
1609      test -z "$LD" && LD="$ac_prog"
1610      ;;
1611  "")
1612    # If it fails, then pretend we aren't using GCC.
1613    ac_prog=ld
1614    ;;
1615  *)
1616    # If it is relative, then search for the first ld in PATH.
1617    with_gnu_ld=unknown
1618    ;;
1619  esac
1620elif test "$with_gnu_ld" = yes; then
1621  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1622echo "configure:1623: checking for GNU ld" >&5
1623else
1624  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1625echo "configure:1626: checking for non-GNU ld" >&5
1626fi
1627if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1628  echo $ac_n "(cached) $ac_c" 1>&6
1629else
1630  if test -z "$LD"; then
1631  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1632  for ac_dir in $PATH; do
1633    test -z "$ac_dir" && ac_dir=.
1634    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1635      ac_cv_path_LD="$ac_dir/$ac_prog"
1636      # Check to see if the program is GNU ld.  I'd rather use --version,
1637      # but apparently some GNU ld's only accept -v.
1638      # Break only if it was the GNU/non-GNU ld that we prefer.
1639      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1640        test "$with_gnu_ld" != no && break
1641      else
1642        test "$with_gnu_ld" != yes && break
1643      fi
1644    fi
1645  done
1646  IFS="$ac_save_ifs"
1647else
1648  ac_cv_path_LD="$LD" # Let the user override the test with a path.
1649fi
1650fi
1651
1652LD="$ac_cv_path_LD"
1653if test -n "$LD"; then
1654  echo "$ac_t""$LD" 1>&6
1655else
1656  echo "$ac_t""no" 1>&6
1657fi
1658test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1659echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1660echo "configure:1661: checking if the linker ($LD) is GNU ld" >&5
1661if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1662  echo $ac_n "(cached) $ac_c" 1>&6
1663else
1664  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1665if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1666  ac_cv_prog_gnu_ld=yes
1667else
1668  ac_cv_prog_gnu_ld=no
1669fi
1670fi
1671
1672echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1673
1674
1675echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1676echo "configure:1677: checking for BSD-compatible nm" >&5
1677if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1678  echo $ac_n "(cached) $ac_c" 1>&6
1679else
1680  if test -n "$NM"; then
1681  # Let the user override the test.
1682  ac_cv_path_NM="$NM"
1683else
1684  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1685  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1686    test -z "$ac_dir" && ac_dir=.
1687    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1688      # Check to see if the nm accepts a BSD-compat flag.
1689      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1690      #   nm: unknown option "B" ignored
1691      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1692        ac_cv_path_NM="$ac_dir/nm -B"
1693        break
1694      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1695        ac_cv_path_NM="$ac_dir/nm -p"
1696        break
1697      else
1698        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1699        continue # so that we can try to find one that supports BSD flags
1700      fi
1701    fi
1702  done
1703  IFS="$ac_save_ifs"
1704  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1705fi
1706fi
1707
1708NM="$ac_cv_path_NM"
1709echo "$ac_t""$NM" 1>&6
1710
1711echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1712echo "configure:1713: checking whether ln -s works" >&5
1713if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1714  echo $ac_n "(cached) $ac_c" 1>&6
1715else
1716  rm -f conftestdata
1717if ln -s X conftestdata 2>/dev/null
1718then
1719  rm -f conftestdata
1720  ac_cv_prog_LN_S="ln -s"
1721else
1722  ac_cv_prog_LN_S=ln
1723fi
1724fi
1725LN_S="$ac_cv_prog_LN_S"
1726if test "$ac_cv_prog_LN_S" = "ln -s"; then
1727  echo "$ac_t""yes" 1>&6
1728else
1729  echo "$ac_t""no" 1>&6
1730fi
1731
1732
1733case "$target" in
1734NONE) lt_target="$host" ;;
1735*) lt_target="$target" ;;
1736esac
1737
1738# Check for any special flags to pass to ltconfig.
1739#
1740# the following will cause an existing older ltconfig to fail, so
1741# we ignore this at the expense of the cache file... Checking this
1742# will just take longer ... bummer!
1743#libtool_flags="--cache-file=$cache_file"
1744#
1745test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1746test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1747test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1748test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1749test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1750
1751
1752# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1753if test "${enable_libtool_lock+set}" = set; then
1754  enableval="$enable_libtool_lock"
1755  :
1756fi
1757
1758test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1759test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1760
1761# Some flags need to be propagated to the compiler or linker for good
1762# libtool support.
1763case "$lt_target" in
1764*-*-irix6*)
1765  # Find out which ABI we are using.
1766  echo '#line 1767 "configure"' > conftest.$ac_ext
1767  if { (eval echo configure:1768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1768    case "`/usr/bin/file conftest.o`" in
1769    *32-bit*)
1770      LD="${LD-ld} -32"
1771      ;;
1772    *N32*)
1773      LD="${LD-ld} -n32"
1774      ;;
1775    *64-bit*)
1776      LD="${LD-ld} -64"
1777      ;;
1778    esac
1779  fi
1780  rm -rf conftest*
1781  ;;
1782
1783*-*-sco3.2v5*)
1784  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1785  SAVE_CFLAGS="$CFLAGS"
1786  CFLAGS="$CFLAGS -belf"
1787  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1788echo "configure:1789: checking whether the C compiler needs -belf" >&5
1789if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1790  echo $ac_n "(cached) $ac_c" 1>&6
1791else
1792  cat > conftest.$ac_ext <<EOF
1793#line 1794 "configure"
1794#include "confdefs.h"
1795
1796int main() {
1797
1798; return 0; }
1799EOF
1800if { (eval echo configure:1801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1801  rm -rf conftest*
1802  lt_cv_cc_needs_belf=yes
1803else
1804  echo "configure: failed program was:" >&5
1805  cat conftest.$ac_ext >&5
1806  rm -rf conftest*
1807  lt_cv_cc_needs_belf=no
1808fi
1809rm -f conftest*
1810fi
1811
1812echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1813  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1814    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1815    CFLAGS="$SAVE_CFLAGS"
1816  fi
1817  ;;
1818
1819
1820esac
1821
1822
1823# Save cache, so that ltconfig can load it
1824cat > confcache <<\EOF
1825# This file is a shell script that caches the results of configure
1826# tests run on this system so they can be shared between configure
1827# scripts and configure runs.  It is not useful on other systems.
1828# If it contains results you don't want to keep, you may remove or edit it.
1829#
1830# By default, configure uses ./config.cache as the cache file,
1831# creating it if it does not exist already.  You can give configure
1832# the --cache-file=FILE option to use a different cache file; that is
1833# what configure does when it calls configure scripts in
1834# subdirectories, so they share the cache.
1835# Giving --cache-file=/dev/null disables caching, for debugging configure.
1836# config.status only pays attention to the cache file if you give it the
1837# --recheck option to rerun configure.
1838#
1839EOF
1840# The following way of writing the cache mishandles newlines in values,
1841# but we know of no workaround that is simple, portable, and efficient.
1842# So, don't put newlines in cache variables' values.
1843# Ultrix sh set writes to stderr and can't be redirected directly,
1844# and sets the high bit in the cache file unless we assign to the vars.
1845(set) 2>&1 |
1846  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1847  *ac_space=\ *)
1848    # `set' does not quote correctly, so add quotes (double-quote substitution
1849    # turns \\\\ into \\, and sed turns \\ into \).
1850    sed -n \
1851      -e "s/'/'\\\\''/g" \
1852      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1853    ;;
1854  *)
1855    # `set' quotes correctly as required by POSIX, so do not add quotes.
1856    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1857    ;;
1858  esac >> confcache
1859if cmp -s $cache_file confcache; then
1860  :
1861else
1862  if test -w $cache_file; then
1863    echo "updating cache $cache_file"
1864    cat confcache > $cache_file
1865  else
1866    echo "not updating unwritable cache $cache_file"
1867  fi
1868fi
1869rm -f confcache
1870
1871
1872# Actually configure libtool.  ac_aux_dir is where install-sh is found.
1873CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1874LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1875LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1876DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1877${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1878$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1879|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1880
1881# Reload cache, that may have been modified by ltconfig
1882if test -r "$cache_file"; then
1883  echo "loading cache $cache_file"
1884  . $cache_file
1885else
1886  echo "creating cache $cache_file"
1887  > $cache_file
1888fi
1889
1890
1891# This can be used to rebuild libtool when needed
1892LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1893
1894# Always use our own libtool.
1895LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1896
1897# Redirect the config.log output again, so that the ltconfig log is not
1898# clobbered by the next message.
1899exec 5>>./config.log
1900
1901
1902
1903
1904GLIB_REQUIRED=1.2.4
1905GCONF_REQUIRED=0.9
1906OAF_REQUIRED=0.3.0
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919ENABLE_PROFILER=
1920# Check whether --enable-profiler or --disable-profiler was given.
1921if test "${enable_profiler+set}" = set; then
1922  enableval="$enable_profiler"
1923  ENABLE_PROFILER=1
1924cat >> confdefs.h <<\EOF
1925#define ENABLE_PROFILER 1
1926EOF
1927
1928fi
1929
1930
1931if test "x$ENABLE_PROFILER" = "x1"
1932then
1933        CFLAGS="-g -O -gdwarf-2 -finstrument-functions -D__NO_STRING_INLINES"
1934        LDFLAGS="/gnome/PROFILE/lib/libprofiler.so -lpthread"
1935fi
1936
1937
1938
1939
1940if test "x$ENABLE_PROFILER" = "x1"; then
1941  ENABLE_PROFILER_TRUE=
1942  ENABLE_PROFILER_FALSE='#'
1943else
1944  ENABLE_PROFILER_TRUE='#'
1945  ENABLE_PROFILER_FALSE=
1946fi
1947
1948GNOME_PLATFORM_VERSION=1002000
1949cat >> confdefs.h <<EOF
1950#define GNOME_PLATFORM_VERSION $GNOME_PLATFORM_VERSION
1951EOF
1952
1953
1954
1955if test $GNOME_PLATFORM_VERSION -ge 1095000; then
1956  PLATFORM_GNOME_2_TRUE=
1957  PLATFORM_GNOME_2_FALSE='#'
1958else
1959  PLATFORM_GNOME_2_TRUE='#'
1960  PLATFORM_GNOME_2_FALSE=
1961fi
1962
1963if test $GNOME_PLATFORM_VERSION -lt 1095000 ; then
1964 
1965       
1966       
1967       
1968       
1969       
1970       
1971       
1972       
1973
1974        # Check whether --with-gnome-includes or --without-gnome-includes was given.
1975if test "${with_gnome_includes+set}" = set; then
1976  withval="$with_gnome_includes"
1977 
1978        CFLAGS="$CFLAGS -I$withval"
1979       
1980fi
1981
1982       
1983        # Check whether --with-gnome-libs or --without-gnome-libs was given.
1984if test "${with_gnome_libs+set}" = set; then
1985  withval="$with_gnome_libs"
1986 
1987        LDFLAGS="$LDFLAGS -L$withval"
1988        gnome_prefix=$withval
1989       
1990fi
1991
1992
1993        # Check whether --with-gnome or --without-gnome was given.
1994if test "${with_gnome+set}" = set; then
1995  withval="$with_gnome"
1996  if test x$withval = xyes; then
1997                        want_gnome=yes
1998                                                                        :
1999                else
2000                        if test "x$withval" = xno; then
2001                                want_gnome=no
2002                        else
2003                                want_gnome=yes
2004                                LDFLAGS="$LDFLAGS -L$withval/lib"
2005                                CFLAGS="$CFLAGS -I$withval/include"
2006                                gnome_prefix=$withval/lib
2007                        fi
2008                fi
2009else
2010  want_gnome=yes
2011fi
2012
2013
2014        if test "x$want_gnome" = xyes; then
2015
2016            # Extract the first word of "gnome-config", so it can be a program name with args.
2017set dummy gnome-config; ac_word=$2
2018echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2019echo "configure:2020: checking for $ac_word" >&5
2020if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
2021  echo $ac_n "(cached) $ac_c" 1>&6
2022else
2023  case "$GNOME_CONFIG" in
2024  /*)
2025  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
2026  ;;
2027  ?:/*)                 
2028  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
2029  ;;
2030  *)
2031  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2032  ac_dummy="$PATH"
2033  for ac_dir in $ac_dummy; do
2034    test -z "$ac_dir" && ac_dir=.
2035    if test -f $ac_dir/$ac_word; then
2036      ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
2037      break
2038    fi
2039  done
2040  IFS="$ac_save_ifs"
2041  test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
2042  ;;
2043esac
2044fi
2045GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
2046if test -n "$GNOME_CONFIG"; then
2047  echo "$ac_t""$GNOME_CONFIG" 1>&6
2048else
2049  echo "$ac_t""no" 1>&6
2050fi
2051
2052            if test "$GNOME_CONFIG" = "no"; then
2053              no_gnome_config="yes"
2054            else
2055              echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
2056echo "configure:2057: checking if $GNOME_CONFIG works" >&5
2057              if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
2058                echo "$ac_t""yes" 1>&6
2059               
2060       
2061        # Extract the first word of "orbit-config", so it can be a program name with args.
2062set dummy orbit-config; ac_word=$2
2063echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2064echo "configure:2065: checking for $ac_word" >&5
2065if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
2066  echo $ac_n "(cached) $ac_c" 1>&6
2067else
2068  case "$ORBIT_CONFIG" in
2069  /*)
2070  ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
2071  ;;
2072  ?:/*)                 
2073  ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
2074  ;;
2075  *)
2076  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2077  ac_dummy="$PATH"
2078  for ac_dir in $ac_dummy; do
2079    test -z "$ac_dir" && ac_dir=.
2080    if test -f $ac_dir/$ac_word; then
2081      ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
2082      break
2083    fi
2084  done
2085  IFS="$ac_save_ifs"
2086  test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
2087  ;;
2088esac
2089fi
2090ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
2091if test -n "$ORBIT_CONFIG"; then
2092  echo "$ac_t""$ORBIT_CONFIG" 1>&6
2093else
2094  echo "$ac_t""no" 1>&6
2095fi
2096
2097        # Extract the first word of "orbit-idl", so it can be a program name with args.
2098set dummy orbit-idl; ac_word=$2
2099echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2100echo "configure:2101: checking for $ac_word" >&5
2101if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
2102  echo $ac_n "(cached) $ac_c" 1>&6
2103else
2104  case "$ORBIT_IDL" in
2105  /*)
2106  ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
2107  ;;
2108  ?:/*)                 
2109  ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
2110  ;;
2111  *)
2112  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2113  ac_dummy="$PATH"
2114  for ac_dir in $ac_dummy; do
2115    test -z "$ac_dir" && ac_dir=.
2116    if test -f $ac_dir/$ac_word; then
2117      ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
2118      break
2119    fi
2120  done
2121  IFS="$ac_save_ifs"
2122  test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
2123  ;;
2124esac
2125fi
2126ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
2127if test -n "$ORBIT_IDL"; then
2128  echo "$ac_t""$ORBIT_IDL" 1>&6
2129else
2130  echo "$ac_t""no" 1>&6
2131fi
2132
2133        echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
2134echo "configure:2135: checking for working ORBit environment" >&5
2135if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
2136  echo $ac_n "(cached) $ac_c" 1>&6
2137else
2138 
2139                if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
2140                        gnome_cv_orbit_found=no
2141                else
2142                        gnome_cv_orbit_found=yes
2143                fi
2144       
2145fi
2146
2147echo "$ac_t""$gnome_cv_orbit_found" 1>&6
2148       
2149
2150if test x$gnome_cv_orbit_found = xyes; then
2151  HAVE_ORBIT_TRUE=
2152  HAVE_ORBIT_FALSE='#'
2153else
2154  HAVE_ORBIT_TRUE='#'
2155  HAVE_ORBIT_FALSE=
2156fi
2157        if test x$gnome_cv_orbit_found = xyes; then
2158               
2159                ORBIT_CFLAGS=`orbit-config --cflags client server`
2160                ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
2161               
2162               
2163        else
2164                if test xfail = xfailure; then
2165                        { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
2166                fi
2167        fi
2168
2169        echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
2170echo "configure:2171: checking for gnorba libraries" >&5
2171if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
2172  echo $ac_n "(cached) $ac_c" 1>&6
2173else
2174 
2175                gnome_cv_gnorba_found=no
2176                if test x$gnome_cv_orbit_found = xyes; then
2177                        GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2178                        GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2179                        if test -n "$GNORBA_LIBS"; then
2180                                gnome_cv_gnorba_found=yes
2181                        fi
2182                fi
2183       
2184fi
2185
2186echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
2187       
2188
2189if test x$gnome_cv_gnorba_found = xyes; then
2190  HAVE_GNORBA_TRUE=
2191  HAVE_GNORBA_FALSE='#'
2192else
2193  HAVE_GNORBA_TRUE='#'
2194  HAVE_GNORBA_FALSE=
2195fi
2196        if test x$gnome_cv_orbit_found = xyes; then
2197               
2198                GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2199                GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2200               
2201               
2202        else
2203                if test xfail = xfailure; then
2204                        { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
2205                fi
2206        fi
2207
2208                GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
2209                GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
2210                GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
2211                GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
2212                ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
2213                GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
2214                GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
2215               
2216              else
2217                echo "$ac_t""no" 1>&6
2218                no_gnome_config="yes"
2219              fi
2220            fi
2221
2222            if test x$exec_prefix = xNONE; then
2223                if test x$prefix = xNONE; then
2224                    gnome_prefix=$ac_default_prefix/lib
2225                else
2226                    gnome_prefix=$prefix/lib
2227                fi
2228            else
2229                gnome_prefix=`eval echo \`echo $libdir\``
2230            fi
2231       
2232            if test "$no_gnome_config" = "yes"; then
2233              echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
2234echo "configure:2235: checking for gnomeConf.sh file in $gnome_prefix" >&5
2235              if test -f $gnome_prefix/gnomeConf.sh; then
2236                echo "$ac_t""found" 1>&6
2237                echo "loading gnome configuration from" \
2238                     "$gnome_prefix/gnomeConf.sh"
2239                . $gnome_prefix/gnomeConf.sh
2240               
2241              else
2242                echo "$ac_t""not found" 1>&6
2243                if test xfail = xfail; then
2244                  { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
2245                fi
2246              fi
2247            fi
2248        fi
2249
2250        if test -n ""; then
2251          n=""
2252          for i in $n; do
2253            echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
2254echo "configure:2255: checking extra library \"$i\"" >&5
2255            case $i in
2256              applets)
2257               
2258                GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
2259                echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
2260              docklets)
2261               
2262                GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
2263                echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
2264              capplet)
2265               
2266                GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
2267                echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
2268              *)
2269                echo "$ac_t""unknown library" 1>&6
2270            esac
2271          done
2272        fi
2273
2274
2275  VFS_GNOME_CFLAGS="\`gnome-config --cflags gnome\`"
2276  VFS_GNOMEUI_CFLAGS="\`gnome-config --cflags gnome gnomeui\`"
2277  VFS_CAPPLET_CFLAGS="\`gnome-config --cflags gnome gnomeui capplet\`"
2278  VFS_GNOME_LIBS="\`gnome-config --libs gnome\`"
2279  VFS_GNOMEUI_LIBS="\`gnome-config --libs gnome gnomeui\`"
2280  VFS_CAPPLET_LIBS="\`gnome-config --libs gnome gnomeui capplet\`"
2281  VFS_GLIB_CONFIG="glib-config"
2282else
2283  VFS_GNOME_CFLAGS="\`glib-config-2.0 --cflags\`"
2284  VFS_GNOMEUI_CFLAGS="\`glib-config-2.0 --cflags\`"
2285  VFS_CAPPLET_CFLAGS=
2286  VFS_GNOME_LIBS="\`glib-config-2.0 --libs\`"
2287  VFS_GNOMEUI_LIBS="\`glib-config-2.0 --libs\`"
2288  VFS_CAPPLET_LIBS=
2289  VFS_GLIB_CONFIG="glib-config-2.0"
2290fi
2291
2292
2293
2294
2295
2296
2297
2298
2299# Extract the first word of "gtkdoc-mkdb", so it can be a program name with args.
2300set dummy gtkdoc-mkdb; ac_word=$2
2301echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2302echo "configure:2303: checking for $ac_word" >&5
2303if eval "test \"`echo '$''{'ac_cv_prog_GTKDOC'+set}'`\" = set"; then
2304  echo $ac_n "(cached) $ac_c" 1>&6
2305else
2306  if test -n "$GTKDOC"; then
2307  ac_cv_prog_GTKDOC="$GTKDOC" # Let the user override the test.
2308else
2309  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2310  ac_dummy="$PATH"
2311  for ac_dir in $ac_dummy; do
2312    test -z "$ac_dir" && ac_dir=.
2313    if test -f $ac_dir/$ac_word; then
2314      ac_cv_prog_GTKDOC="true"
2315      break
2316    fi
2317  done
2318  IFS="$ac_save_ifs"
2319  test -z "$ac_cv_prog_GTKDOC" && ac_cv_prog_GTKDOC="false"
2320fi
2321fi
2322GTKDOC="$ac_cv_prog_GTKDOC"
2323if test -n "$GTKDOC"; then
2324  echo "$ac_t""$GTKDOC" 1>&6
2325else
2326  echo "$ac_t""no" 1>&6
2327fi
2328
2329
2330
2331if $GTKDOC; then
2332  HAVE_GTK_DOC_TRUE=
2333  HAVE_GTK_DOC_FALSE='#'
2334else
2335  HAVE_GTK_DOC_TRUE='#'
2336  HAVE_GTK_DOC_FALSE=
2337fi
2338
2339
2340# Check whether --enable-gtk-doc or --disable-gtk-doc was given.
2341if test "${enable_gtk_doc+set}" = set; then
2342  enableval="$enable_gtk_doc"
2343  enable_gtk_doc="$enableval"
2344else
2345  enable_gtk_doc=auto
2346fi
2347
2348
2349if test x$enable_gtk_doc = xauto ; then
2350  if test x$GTKDOC = xtrue ; then
2351    enable_gtk_doc=yes
2352  else
2353    enable_gtk_doc=no
2354  fi
2355fi
2356
2357
2358
2359if test x$enable_gtk_doc = xyes; then
2360  ENABLE_GTK_DOC_TRUE=
2361  ENABLE_GTK_DOC_FALSE='#'
2362else
2363  ENABLE_GTK_DOC_TRUE='#'
2364  ENABLE_GTK_DOC_FALSE=
2365fi
2366
2367# Check whether --enable-gconf or --disable-gconf was given.
2368if test "${enable_gconf+set}" = set; then
2369  enableval="$enable_gconf"
2370  gconf_enabled="yes"
2371fi
2372
2373# Check whether --enable-libefs or --disable-libefs was given.
2374if test "${enable_libefs+set}" = set; then
2375  enableval="$enable_libefs"
2376  libefs_disabled="yes"
2377fi
2378
2379# Check whether --with-default-backend or --without-default-backend was given.
2380if test "${with_default_backend+set}" = set; then
2381  withval="$with_default_backend"
2382  default_backend="$withval"
2383fi
2384
2385
2386# Check whether --with-glib-prefix or --without-glib-prefix was given.
2387if test "${with_glib_prefix+set}" = set; then
2388  withval="$with_glib_prefix"
2389  glib_config_prefix="$withval"
2390else
2391  glib_config_prefix=""
2392fi
2393
2394# Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
2395if test "${with_glib_exec_prefix+set}" = set; then
2396  withval="$with_glib_exec_prefix"
2397  glib_config_exec_prefix="$withval"
2398else
2399  glib_config_exec_prefix=""
2400fi
2401
2402# Check whether --enable-glibtest or --disable-glibtest was given.
2403if test "${enable_glibtest+set}" = set; then
2404  enableval="$enable_glibtest"
2405  :
2406else
2407  enable_glibtest=yes
2408fi
2409
2410
2411  if test x$glib_config_exec_prefix != x ; then
2412     glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
2413     if test x${GLIB_CONFIG+set} != xset ; then
2414        GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
2415     fi
2416  fi
2417  if test x$glib_config_prefix != x ; then
2418     glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
2419     if test x${GLIB_CONFIG+set} != xset ; then
2420        GLIB_CONFIG=$glib_config_prefix/bin/glib-config
2421     fi
2422  fi
2423
2424  for module in . gmodule gthread
2425  do
2426      case "$module" in
2427         gmodule)
2428             glib_config_args="$glib_config_args gmodule"
2429         ;;
2430         gthread)
2431             glib_config_args="$glib_config_args gthread"
2432         ;;
2433      esac
2434  done
2435
2436  # Extract the first word of "glib-config", so it can be a program name with args.
2437set dummy glib-config; ac_word=$2
2438echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2439echo "configure:2440: checking for $ac_word" >&5
2440if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
2441  echo $ac_n "(cached) $ac_c" 1>&6
2442else
2443  case "$GLIB_CONFIG" in
2444  /*)
2445  ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
2446  ;;
2447  ?:/*)                 
2448  ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
2449  ;;
2450  *)
2451  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2452  ac_dummy="$PATH"
2453  for ac_dir in $ac_dummy; do
2454    test -z "$ac_dir" && ac_dir=.
2455    if test -f $ac_dir/$ac_word; then
2456      ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
2457      break
2458    fi
2459  done
2460  IFS="$ac_save_ifs"
2461  test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
2462  ;;
2463esac
2464fi
2465GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
2466if test -n "$GLIB_CONFIG"; then
2467  echo "$ac_t""$GLIB_CONFIG" 1>&6
2468else
2469  echo "$ac_t""no" 1>&6
2470fi
2471
2472  min_glib_version=$GLIB_REQUIRED
2473  echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
2474echo "configure:2475: checking for GLIB - version >= $min_glib_version" >&5
2475  no_glib=""
2476  if test "$GLIB_CONFIG" = "no" ; then
2477    no_glib=yes
2478  else
2479    GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
2480    GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
2481    glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
2482           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2483    glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
2484           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2485    glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
2486           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2487    if test "x$enable_glibtest" = "xyes" ; then
2488      ac_save_CFLAGS="$CFLAGS"
2489      ac_save_LIBS="$LIBS"
2490      CFLAGS="$CFLAGS $GLIB_CFLAGS"
2491      LIBS="$GLIB_LIBS $LIBS"
2492      rm -f conf.glibtest
2493      if test "$cross_compiling" = yes; then
2494  echo $ac_n "cross compiling; assumed OK... $ac_c"
2495else
2496  cat > conftest.$ac_ext <<EOF
2497#line 2498 "configure"
2498#include "confdefs.h"
2499
2500#include <glib.h>
2501#include <stdio.h>
2502#include <stdlib.h>
2503
2504int
2505main ()
2506{
2507  int major, minor, micro;
2508  char *tmp_version;
2509
2510  system ("touch conf.glibtest");
2511
2512  /* HP/UX 9 (%@#!) writes to sscanf strings */
2513  tmp_version = g_strdup("$min_glib_version");
2514  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
2515     printf("%s, bad version string\n", "$min_glib_version");
2516     exit(1);
2517   }
2518
2519  if ((glib_major_version != $glib_config_major_version) ||
2520      (glib_minor_version != $glib_config_minor_version) ||
2521      (glib_micro_version != $glib_config_micro_version))
2522    {
2523      printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
2524             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
2525             glib_major_version, glib_minor_version, glib_micro_version);
2526      printf ("*** was found! If glib-config was correct, then it is best\n");
2527      printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
2528      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
2529      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
2530      printf("*** required on your system.\n");
2531      printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
2532      printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
2533      printf("*** before re-running configure\n");
2534    }
2535  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
2536           (glib_minor_version != GLIB_MINOR_VERSION) ||
2537           (glib_micro_version != GLIB_MICRO_VERSION))
2538    {
2539      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
2540             GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
2541      printf("*** library (version %d.%d.%d)\n",
2542             glib_major_version, glib_minor_version, glib_micro_version);
2543    }
2544  else
2545    {
2546      if ((glib_major_version > major) ||
2547        ((glib_major_version == major) && (glib_minor_version > minor)) ||
2548        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
2549      {
2550        return 0;
2551       }
2552     else
2553      {
2554        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
2555               glib_major_version, glib_minor_version, glib_micro_version);
2556        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
2557               major, minor, micro);
2558        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
2559        printf("***\n");
2560        printf("*** If you have already installed a sufficiently new version, this error\n");
2561        printf("*** probably means that the wrong copy of the glib-config shell script is\n");
2562        printf("*** being found. The easiest way to fix this is to remove the old version\n");
2563        printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
2564        printf("*** correct copy of glib-config. (In this case, you will have to\n");
2565        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
2566        printf("*** so that the correct libraries are found at run-time))\n");
2567      }
2568    }
2569  return 1;
2570}
2571
2572EOF
2573if { (eval echo configure:2574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2574then
2575  :
2576else
2577  echo "configure: failed program was:" >&5
2578  cat conftest.$ac_ext >&5
2579  rm -fr conftest*
2580  no_glib=yes
2581fi
2582rm -fr conftest*
2583fi
2584
2585       CFLAGS="$ac_save_CFLAGS"
2586       LIBS="$ac_save_LIBS"
2587     fi
2588  fi
2589  if test "x$no_glib" = x ; then
2590     echo "$ac_t""yes" 1>&6
2591     :     
2592  else
2593     echo "$ac_t""no" 1>&6
2594     if test "$GLIB_CONFIG" = "no" ; then
2595       echo "*** The glib-config script installed by GLIB could not be found"
2596       echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
2597       echo "*** your path, or set the GLIB_CONFIG environment variable to the"
2598       echo "*** full path to glib-config."
2599     else
2600       if test -f conf.glibtest ; then
2601        :
2602       else
2603          echo "*** Could not run GLIB test program, checking why..."
2604          CFLAGS="$CFLAGS $GLIB_CFLAGS"
2605          LIBS="$LIBS $GLIB_LIBS"
2606          cat > conftest.$ac_ext <<EOF
2607#line 2608 "configure"
2608#include "confdefs.h"
2609
2610#include <glib.h>
2611#include <stdio.h>
2612
2613int main() {
2614 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
2615; return 0; }
2616EOF
2617if { (eval echo configure:2618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2618  rm -rf conftest*
2619   echo "*** The test program compiled, but did not run. This usually means"
2620          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
2621          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
2622          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2623          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
2624          echo "*** is required on your system"
2625          echo "***"
2626          echo "*** If you have an old version installed, it is best to remove it, although"
2627          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2628          echo "***"
2629          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
2630          echo "*** came with the system with the command"
2631          echo "***"
2632          echo "***    rpm --erase --nodeps gtk gtk-devel"
2633else
2634  echo "configure: failed program was:" >&5
2635  cat conftest.$ac_ext >&5
2636  rm -rf conftest*
2637   echo "*** The test program failed to compile or link. See the file config.log for the"
2638          echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
2639          echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
2640          echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
2641fi
2642rm -f conftest*
2643          CFLAGS="$ac_save_CFLAGS"
2644          LIBS="$ac_save_LIBS"
2645       fi
2646     fi
2647     GLIB_CFLAGS=""
2648     GLIB_LIBS=""
2649     { echo "configure: error:
2650*** GLIB 1.2.0 or better is required. The latest version of GLIB
2651*** is always available from ftp://ftp.gtk.org/." 1>&2; exit 1; }
2652  fi
2653 
2654 
2655  rm -f conf.glibtest
2656
2657
2658# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
2659if test "${with_gtk_prefix+set}" = set; then
2660  withval="$with_gtk_prefix"
2661  gtk_config_prefix="$withval"
2662else
2663  gtk_config_prefix=""
2664fi
2665
2666# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
2667if test "${with_gtk_exec_prefix+set}" = set; then
2668  withval="$with_gtk_exec_prefix"
2669  gtk_config_exec_prefix="$withval"
2670else
2671  gtk_config_exec_prefix=""
2672fi
2673
2674# Check whether --enable-gtktest or --disable-gtktest was given.
2675if test "${enable_gtktest+set}" = set; then
2676  enableval="$enable_gtktest"
2677  :
2678else
2679  enable_gtktest=yes
2680fi
2681
2682
2683  for module in . gmodule gthread
2684  do
2685      case "$module" in
2686         gthread)
2687             gtk_config_args="$gtk_config_args gthread"
2688         ;;
2689      esac
2690  done
2691
2692  if test x$gtk_config_exec_prefix != x ; then
2693     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
2694     if test x${GTK_CONFIG+set} != xset ; then
2695        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
2696     fi
2697  fi
2698  if test x$gtk_config_prefix != x ; then
2699     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
2700     if test x${GTK_CONFIG+set} != xset ; then
2701        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
2702     fi
2703  fi
2704
2705  # Extract the first word of "gtk-config", so it can be a program name with args.
2706set dummy gtk-config; ac_word=$2
2707echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2708echo "configure:2709: checking for $ac_word" >&5
2709if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
2710  echo $ac_n "(cached) $ac_c" 1>&6
2711else
2712  case "$GTK_CONFIG" in
2713  /*)
2714  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
2715  ;;
2716  ?:/*)                 
2717  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
2718  ;;
2719  *)
2720  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2721  ac_dummy="$PATH"
2722  for ac_dir in $ac_dummy; do
2723    test -z "$ac_dir" && ac_dir=.
2724    if test -f $ac_dir/$ac_word; then
2725      ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
2726      break
2727    fi
2728  done
2729  IFS="$ac_save_ifs"
2730  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
2731  ;;
2732esac
2733fi
2734GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
2735if test -n "$GTK_CONFIG"; then
2736  echo "$ac_t""$GTK_CONFIG" 1>&6
2737else
2738  echo "$ac_t""no" 1>&6
2739fi
2740
2741  min_gtk_version=1.2.0
2742  echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
2743echo "configure:2744: checking for GTK - version >= $min_gtk_version" >&5
2744  no_gtk=""
2745  if test "$GTK_CONFIG" = "no" ; then
2746    no_gtk=yes
2747  else
2748    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
2749    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
2750    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
2751           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2752    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
2753           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2754    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
2755           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2756    if test "x$enable_gtktest" = "xyes" ; then
2757      ac_save_CFLAGS="$CFLAGS"
2758      ac_save_LIBS="$LIBS"
2759      CFLAGS="$CFLAGS $GTK_CFLAGS"
2760      LIBS="$GTK_LIBS $LIBS"
2761      rm -f conf.gtktest
2762      if test "$cross_compiling" = yes; then
2763  echo $ac_n "cross compiling; assumed OK... $ac_c"
2764else
2765  cat > conftest.$ac_ext <<EOF
2766#line 2767 "configure"
2767#include "confdefs.h"
2768
2769#include <gtk/gtk.h>
2770#include <stdio.h>
2771#include <stdlib.h>
2772
2773int
2774main ()
2775{
2776  int major, minor, micro;
2777  char *tmp_version;
2778
2779  system ("touch conf.gtktest");
2780
2781  /* HP/UX 9 (%@#!) writes to sscanf strings */
2782  tmp_version = g_strdup("$min_gtk_version");
2783  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
2784     printf("%s, bad version string\n", "$min_gtk_version");
2785     exit(1);
2786   }
2787
2788  if ((gtk_major_version != $gtk_config_major_version) ||
2789      (gtk_minor_version != $gtk_config_minor_version) ||
2790      (gtk_micro_version != $gtk_config_micro_version))
2791    {
2792      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
2793             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
2794             gtk_major_version, gtk_minor_version, gtk_micro_version);
2795      printf ("*** was found! If gtk-config was correct, then it is best\n");
2796      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
2797      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
2798      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
2799      printf("*** required on your system.\n");
2800      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
2801      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
2802      printf("*** before re-running configure\n");
2803    }
2804#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
2805  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
2806           (gtk_minor_version != GTK_MINOR_VERSION) ||
2807           (gtk_micro_version != GTK_MICRO_VERSION))
2808    {
2809      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
2810             GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
2811      printf("*** library (version %d.%d.%d)\n",
2812             gtk_major_version, gtk_minor_version, gtk_micro_version);
2813    }
2814#endif /* defined (GTK_MAJOR_VERSION) ... */
2815  else
2816    {
2817      if ((gtk_major_version > major) ||
2818        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
2819        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
2820      {
2821        return 0;
2822       }
2823     else
2824      {
2825        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
2826               gtk_major_version, gtk_minor_version, gtk_micro_version);
2827        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
2828               major, minor, micro);
2829        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
2830        printf("***\n");
2831        printf("*** If you have already installed a sufficiently new version, this error\n");
2832        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
2833        printf("*** being found. The easiest way to fix this is to remove the old version\n");
2834        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
2835        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
2836        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
2837        printf("*** so that the correct libraries are found at run-time))\n");
2838      }
2839    }
2840  return 1;
2841}
2842
2843EOF
2844if { (eval echo configure:2845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2845then
2846  :
2847else
2848  echo "configure: failed program was:" >&5
2849  cat conftest.$ac_ext >&5
2850  rm -fr conftest*
2851  no_gtk=yes
2852fi
2853rm -fr conftest*
2854fi
2855
2856       CFLAGS="$ac_save_CFLAGS"
2857       LIBS="$ac_save_LIBS"
2858     fi
2859  fi
2860  if test "x$no_gtk" = x ; then
2861     echo "$ac_t""yes" 1>&6
2862     :     
2863  else
2864     echo "$ac_t""no" 1>&6
2865     if test "$GTK_CONFIG" = "no" ; then
2866       echo "*** The gtk-config script installed by GTK could not be found"
2867       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
2868       echo "*** your path, or set the GTK_CONFIG environment variable to the"
2869       echo "*** full path to gtk-config."
2870     else
2871       if test -f conf.gtktest ; then
2872        :
2873       else
2874          echo "*** Could not run GTK test program, checking why..."
2875          CFLAGS="$CFLAGS $GTK_CFLAGS"
2876          LIBS="$LIBS $GTK_LIBS"
2877          cat > conftest.$ac_ext <<EOF
2878#line 2879 "configure"
2879#include "confdefs.h"
2880
2881#include <gtk/gtk.h>
2882#include <stdio.h>
2883
2884int main() {
2885 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
2886; return 0; }
2887EOF
2888if { (eval echo configure:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2889  rm -rf conftest*
2890   echo "*** The test program compiled, but did not run. This usually means"
2891          echo "*** that the run-time linker is not finding GTK or finding the wrong"
2892          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
2893          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2894          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
2895          echo "*** is required on your system"
2896          echo "***"
2897          echo "*** If you have an old version installed, it is best to remove it, although"
2898          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2899          echo "***"
2900          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
2901          echo "*** came with the system with the command"
2902          echo "***"
2903          echo "***    rpm --erase --nodeps gtk gtk-devel"
2904else
2905  echo "configure: failed program was:" >&5
2906  cat conftest.$ac_ext >&5
2907  rm -rf conftest*
2908   echo "*** The test program failed to compile or link. See the file config.log for the"
2909          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
2910          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
2911          echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
2912fi
2913rm -f conftest*
2914          CFLAGS="$ac_save_CFLAGS"
2915          LIBS="$ac_save_LIBS"
2916       fi
2917     fi
2918     GTK_CFLAGS=""
2919     GTK_LIBS=""
2920     { echo "configure: error:
2921*** Gtk+ 1.2.0 or better is required. The latest version of Gtk+
2922*** is always available from ftp://ftp.gtk.org/." 1>&2; exit 1; }
2923  fi
2924 
2925 
2926  rm -f conf.gtktest
2927
2928
2929cflags_set=yes
2930
2931  # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
2932if test "${enable_compile_warnings+set}" = set; then
2933  enableval="$enable_compile_warnings"
2934  :
2935else
2936  enable_compile_warnings=minimum
2937fi
2938
2939
2940  echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
2941echo "configure:2942: checking what warning flags to pass to the C compiler" >&5
2942  warnCFLAGS=
2943  if test "x$GCC" != xyes; then
2944    enable_compile_warnings=no
2945  fi
2946
2947  if test "x$enable_compile_warnings" != "xno"; then
2948    if test "x$GCC" = "xyes"; then
2949      case " $CFLAGS " in
2950      *\ \      -Wall\ \        *) ;;
2951      *) warnCFLAGS="-Wall -Wunused" ;;
2952      esac
2953
2954      ## -W is not all that useful.  And it cannot be controlled
2955      ## with individual -Wno-xxx flags, unlike -Wall
2956      if test "x$enable_compile_warnings" = "xyes"; then
2957        warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations"
2958      fi
2959    fi
2960  fi
2961  echo "$ac_t""$warnCFLAGS" 1>&6
2962
2963  # Check whether --enable-iso-c or --disable-iso-c was given.
2964if test "${enable_iso_c+set}" = set; then
2965  enableval="$enable_iso_c"
2966  :
2967else
2968  enable_iso_c=no
2969fi
2970
2971
2972  echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
2973echo "configure:2974: checking what language compliance flags to pass to the C compiler" >&5
2974  complCFLAGS=
2975  if test "x$enable_iso_c" != "xno"; then
2976    if test "x$GCC" = "xyes"; then
2977      case " $CFLAGS " in
2978      *\ \      -ansi\ \        *) ;;
2979      *) complCFLAGS="$complCFLAGS -ansi" ;;
2980      esac
2981
2982      case " $CFLAGS " in
2983      *\ \      -pedantic\ \    *) ;;
2984      *) complCFLAGS="$complCFLAGS -pedantic" ;;
2985      esac
2986    fi
2987  fi
2988  echo "$ac_t""$complCFLAGS" 1>&6
2989  if test "x$cflags_set" != "xyes"; then
2990    CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
2991    cflags_set=yes
2992   
2993  fi
2994
2995VFS_CFLAGS="$warnCFLAGS $complCFLAGS"
2996
2997if test $GNOME_PLATFORM_VERSION -lt 1095000 ; then
2998  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2999echo "configure:3000: checking how to run the C preprocessor" >&5
3000# On Suns, sometimes $CPP names a directory.
3001if test -n "$CPP" && test -d "$CPP"; then
3002  CPP=
3003fi
3004if test -z "$CPP"; then
3005if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3006  echo $ac_n "(cached) $ac_c" 1>&6
3007else
3008    # This must be in double quotes, not single quotes, because CPP may get
3009  # substituted into the Makefile and "${CC-cc}" will confuse make.
3010  CPP="${CC-cc} -E"
3011  # On the NeXT, cc -E runs the code through the compiler's parser,
3012  # not just through cpp.
3013  cat > conftest.$ac_ext <<EOF
3014#line 3015 "configure"
3015#include "confdefs.h"
3016#include <assert.h>
3017Syntax Error
3018EOF
3019ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3020{ (eval echo configure:3021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3021ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3022if test -z "$ac_err"; then
3023  :
3024else
3025  echo "$ac_err" >&5
3026  echo "configure: failed program was:" >&5
3027  cat conftest.$ac_ext >&5
3028  rm -rf conftest*
3029  CPP="${CC-cc} -E -traditional-cpp"
3030  cat > conftest.$ac_ext <<EOF
3031#line 3032 "configure"
3032#include "confdefs.h"
3033#include <assert.h>
3034Syntax Error
3035EOF
3036ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3037{ (eval echo configure:3038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3038ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3039if test -z "$ac_err"; then
3040  :
3041else
3042  echo "$ac_err" >&5
3043  echo "configure: failed program was:" >&5
3044  cat conftest.$ac_ext >&5
3045  rm -rf conftest*
3046  CPP="${CC-cc} -nologo -E"
3047  cat > conftest.$ac_ext <<EOF
3048#line 3049 "configure"
3049#include "confdefs.h"
3050#include <assert.h>
3051Syntax Error
3052EOF
3053ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3054{ (eval echo configure:3055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3055ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3056if test -z "$ac_err"; then
3057  :
3058else
3059  echo "$ac_err" >&5
3060  echo "configure: failed program was:" >&5
3061  cat conftest.$ac_ext >&5
3062  rm -rf conftest*
3063  CPP=/lib/cpp
3064fi
3065rm -f conftest*
3066fi
3067rm -f conftest*
3068fi
3069rm -f conftest*
3070  ac_cv_prog_CPP="$CPP"
3071fi
3072  CPP="$ac_cv_prog_CPP"
3073else
3074  ac_cv_prog_CPP="$CPP"
3075fi
3076echo "$ac_t""$CPP" 1>&6
3077
3078
3079  # we need an `awk' to build `gnomesupport.h'
3080 
3081
3082  # this should go away soon
3083  need_gnome_support=yes
3084
3085  save_LIBOBJS="$LIBOBJS"
3086  LIBOBJS=
3087
3088  for ac_func in getopt_long
3089do
3090echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3091echo "configure:3092: checking for $ac_func" >&5
3092if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3093  echo $ac_n "(cached) $ac_c" 1>&6
3094else
3095  cat > conftest.$ac_ext <<EOF
3096#line 3097 "configure"
3097#include "confdefs.h"
3098/* System header to define __stub macros and hopefully few prototypes,
3099    which can conflict with char $ac_func(); below.  */
3100#include <assert.h>
3101/* Override any gcc2 internal prototype to avoid an error.  */
3102/* We use char because int might match the return type of a gcc2
3103    builtin and then its argument prototype would still apply.  */
3104char $ac_func();
3105
3106int main() {
3107
3108/* The GNU C library defines this for functions which it implements
3109    to always fail with ENOSYS.  Some functions are actually named
3110    something starting with __ and the normal name is an alias.  */
3111#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3112choke me
3113#else
3114$ac_func();
3115#endif
3116
3117; return 0; }
3118EOF
3119if { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3120  rm -rf conftest*
3121  eval "ac_cv_func_$ac_func=yes"
3122else
3123  echo "configure: failed program was:" >&5
3124  cat conftest.$ac_ext >&5
3125  rm -rf conftest*
3126  eval "ac_cv_func_$ac_func=no"
3127fi
3128rm -f conftest*
3129fi
3130
3131if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3132  echo "$ac_t""yes" 1>&6
3133    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3134  cat >> confdefs.h <<EOF
3135#define $ac_tr_func 1
3136EOF
3137 
3138else
3139  echo "$ac_t""no" 1>&6
3140LIBOBJS="$LIBOBJS getopt.o getopt1.o"
3141fi
3142done
3143
3144
3145  # for `scandir'
3146  ac_header_dirent=no
3147for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3148do
3149ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3150echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3151echo "configure:3152: checking for $ac_hdr that defines DIR" >&5
3152if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3153  echo $ac_n "(cached) $ac_c" 1>&6
3154else
3155  cat > conftest.$ac_ext <<EOF
3156#line 3157 "configure"
3157#include "confdefs.h"
3158#include <sys/types.h>
3159#include <$ac_hdr>
3160int main() {
3161DIR *dirp = 0;
3162; return 0; }
3163EOF
3164if { (eval echo configure:3165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3165  rm -rf conftest*
3166  eval "ac_cv_header_dirent_$ac_safe=yes"
3167else
3168  echo "configure: failed program was:" >&5
3169  cat conftest.$ac_ext >&5
3170  rm -rf conftest*
3171  eval "ac_cv_header_dirent_$ac_safe=no"
3172fi
3173rm -f conftest*
3174fi
3175if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3176  echo "$ac_t""yes" 1>&6
3177    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3178  cat >> confdefs.h <<EOF
3179#define $ac_tr_hdr 1
3180EOF
3181 ac_header_dirent=$ac_hdr; break
3182else
3183  echo "$ac_t""no" 1>&6
3184fi
3185done
3186# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3187if test $ac_header_dirent = dirent.h; then
3188echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3189echo "configure:3190: checking for opendir in -ldir" >&5
3190ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3191if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3192  echo $ac_n "(cached) $ac_c" 1>&6
3193else
3194  ac_save_LIBS="$LIBS"
3195LIBS="-ldir  $LIBS"
3196cat > conftest.$ac_ext <<EOF
3197#line 3198 "configure"
3198#include "confdefs.h"
3199/* Override any gcc2 internal prototype to avoid an error.  */
3200/* We use char because int might match the return type of a gcc2
3201    builtin and then its argument prototype would still apply.  */
3202char opendir();
3203
3204int main() {
3205opendir()
3206; return 0; }
3207EOF
3208if { (eval echo configure:3209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3209  rm -rf conftest*
3210  eval "ac_cv_lib_$ac_lib_var=yes"
3211else
3212  echo "configure: failed program was:" >&5
3213  cat conftest.$ac_ext >&5
3214  rm -rf conftest*
3215  eval "ac_cv_lib_$ac_lib_var=no"
3216fi
3217rm -f conftest*
3218LIBS="$ac_save_LIBS"
3219
3220fi
3221if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3222  echo "$ac_t""yes" 1>&6
3223  LIBS="$LIBS -ldir"
3224else
3225  echo "$ac_t""no" 1>&6
3226fi
3227
3228else
3229echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3230echo "configure:3231: checking for opendir in -lx" >&5
3231ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3232if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3233  echo $ac_n "(cached) $ac_c" 1>&6
3234else
3235  ac_save_LIBS="$LIBS"
3236LIBS="-lx  $LIBS"
3237cat > conftest.$ac_ext <<EOF
3238#line 3239 "configure"
3239#include "confdefs.h"
3240/* Override any gcc2 internal prototype to avoid an error.  */
3241/* We use char because int might match the return type of a gcc2
3242    builtin and then its argument prototype would still apply.  */
3243char opendir();
3244
3245int main() {
3246opendir()
3247; return 0; }
3248EOF
3249if { (eval echo configure:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3250  rm -rf conftest*
3251  eval "ac_cv_lib_$ac_lib_var=yes"
3252else
3253  echo "configure: failed program was:" >&5
3254  cat conftest.$ac_ext >&5
3255  rm -rf conftest*
3256  eval "ac_cv_lib_$ac_lib_var=no"
3257fi
3258rm -f conftest*
3259LIBS="$ac_save_LIBS"
3260
3261fi
3262if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3263  echo "$ac_t""yes" 1>&6
3264  LIBS="$LIBS -lx"
3265else
3266  echo "$ac_t""no" 1>&6
3267fi
3268
3269fi
3270
3271
3272  # copied from `configure.in' of `libiberty'
3273  vars="program_invocation_short_name program_invocation_name sys_errlist"
3274  for v in $vars; do
3275    echo $ac_n "checking for $v""... $ac_c" 1>&6
3276echo "configure:3277: checking for $v" >&5
3277    if eval "test \"`echo '$''{'gnome_cv_var_$v'+set}'`\" = set"; then
3278  echo $ac_n "(cached) $ac_c" 1>&6
3279else
3280  cat > conftest.$ac_ext <<EOF
3281#line 3282 "configure"
3282#include "confdefs.h"
3283int *p;
3284int main() {
3285extern int $v; p = &$v;
3286; return 0; }
3287EOF
3288if { (eval echo configure:3289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3289  rm -rf conftest*
3290  eval "gnome_cv_var_$v=yes"
3291else
3292  echo "configure: failed program was:" >&5
3293  cat conftest.$ac_ext >&5
3294  rm -rf conftest*
3295  eval "gnome_cv_var_$v=no"
3296fi
3297rm -f conftest*
3298fi
3299
3300    if eval "test \"`echo '$gnome_cv_var_'$v`\" = yes"; then
3301      echo "$ac_t""yes" 1>&6
3302      n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3303      cat >> confdefs.h <<EOF
3304#define $n 1
3305EOF
3306
3307    else
3308      echo "$ac_t""no" 1>&6
3309    fi
3310  done
3311
3312  for ac_func in memmove mkstemp scandir strcasecmp strerror strndup strnlen
3313do
3314echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3315echo "configure:3316: checking for $ac_func" >&5
3316if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3317  echo $ac_n "(cached) $ac_c" 1>&6
3318else
3319  cat > conftest.$ac_ext <<EOF
3320#line 3321 "configure"
3321#include "confdefs.h"
3322/* System header to define __stub macros and hopefully few prototypes,
3323    which can conflict with char $ac_func(); below.  */
3324#include <assert.h>
3325/* Override any gcc2 internal prototype to avoid an error.  */
3326/* We use char because int might match the return type of a gcc2
3327    builtin and then its argument prototype would still apply.  */
3328char $ac_func();
3329
3330int main() {
3331
3332/* The GNU C library defines this for functions which it implements
3333    to always fail with ENOSYS.  Some functions are actually named
3334    something starting with __ and the normal name is an alias.  */
3335#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3336choke me
3337#else
3338$ac_func();
3339#endif
3340
3341; return 0; }
3342EOF
3343if { (eval echo configure:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3344  rm -rf conftest*
3345  eval "ac_cv_func_$ac_func=yes"
3346else
3347  echo "configure: failed program was:" >&5
3348  cat conftest.$ac_ext >&5
3349  rm -rf conftest*
3350  eval "ac_cv_func_$ac_func=no"
3351fi
3352rm -f conftest*
3353fi
3354
3355if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3356  echo "$ac_t""yes" 1>&6
3357    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3358  cat >> confdefs.h <<EOF
3359#define $ac_tr_func 1
3360EOF
3361 
3362else
3363  echo "$ac_t""no" 1>&6
3364LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3365fi
3366done
3367
3368
3369  for ac_func in strtok_r strtod strtol strtoul vasprintf vsnprintf
3370do
3371echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3372echo "configure:3373: checking for $ac_func" >&5
3373if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3374  echo $ac_n "(cached) $ac_c" 1>&6
3375else
3376  cat > conftest.$ac_ext <<EOF
3377#line 3378 "configure"
3378#include "confdefs.h"
3379/* System header to define __stub macros and hopefully few prototypes,
3380    which can conflict with char $ac_func(); below.  */
3381#include <assert.h>
3382/* Override any gcc2 internal prototype to avoid an error.  */
3383/* We use char because int might match the return type of a gcc2
3384    builtin and then its argument prototype would still apply.  */
3385char $ac_func();
3386
3387int main() {
3388
3389/* The GNU C library defines this for functions which it implements
3390    to always fail with ENOSYS.  Some functions are actually named
3391    something starting with __ and the normal name is an alias.  */
3392#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3393choke me
3394#else
3395$ac_func();
3396#endif
3397
3398; return 0; }
3399EOF
3400if { (eval echo configure:3401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3401  rm -rf conftest*
3402  eval "ac_cv_func_$ac_func=yes"
3403else
3404  echo "configure: failed program was:" >&5
3405  cat conftest.$ac_ext >&5
3406  rm -rf conftest*
3407  eval "ac_cv_func_$ac_func=no"
3408fi
3409rm -f conftest*
3410fi
3411
3412if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3413  echo "$ac_t""yes" 1>&6
3414    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3415  cat >> confdefs.h <<EOF
3416#define $ac_tr_func 1
3417EOF
3418 
3419else
3420  echo "$ac_t""no" 1>&6
3421LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3422fi
3423done
3424
3425
3426
3427  for ac_func in realpath
3428do
3429echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3430echo "configure:3431: checking for $ac_func" >&5
3431if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3432  echo $ac_n "(cached) $ac_c" 1>&6
3433else
3434  cat > conftest.$ac_ext <<EOF
3435#line 3436 "configure"
3436#include "confdefs.h"
3437/* System header to define __stub macros and hopefully few prototypes,
3438    which can conflict with char $ac_func(); below.  */
3439#include <assert.h>
3440/* Override any gcc2 internal prototype to avoid an error.  */
3441/* We use char because int might match the return type of a gcc2
3442    builtin and then its argument prototype would still apply.  */
3443char $ac_func();
3444
3445int main() {
3446
3447/* The GNU C library defines this for functions which it implements
3448    to always fail with ENOSYS.  Some functions are actually named
3449    something starting with __ and the normal name is an alias.  */
3450#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3451choke me
3452#else
3453$ac_func();
3454#endif
3455
3456; return 0; }
3457EOF
3458if { (eval echo configure:3459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3459  rm -rf conftest*
3460  eval "ac_cv_func_$ac_func=yes"
3461else
3462  echo "configure: failed program was:" >&5
3463  cat conftest.$ac_ext >&5
3464  rm -rf conftest*
3465  eval "ac_cv_func_$ac_func=no"
3466fi
3467rm -f conftest*
3468fi
3469
3470if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3471  echo "$ac_t""yes" 1>&6
3472    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3473  cat >> confdefs.h <<EOF
3474#define $ac_tr_func 1
3475EOF
3476 
3477else
3478  echo "$ac_t""no" 1>&6
3479LIBOBJS="$LIBOBJS canonicalize.o"
3480fi
3481done
3482
3483
3484  # to include `error.c' error.c has some HAVE_* checks
3485  for ac_func in vprintf doprnt strerror_r
3486do
3487echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3488echo "configure:3489: checking for $ac_func" >&5
3489if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3490  echo $ac_n "(cached) $ac_c" 1>&6
3491else
3492  cat > conftest.$ac_ext <<EOF
3493#line 3494 "configure"
3494#include "confdefs.h"
3495/* System header to define __stub macros and hopefully few prototypes,
3496    which can conflict with char $ac_func(); below.  */
3497#include <assert.h>
3498/* Override any gcc2 internal prototype to avoid an error.  */
3499/* We use char because int might match the return type of a gcc2
3500    builtin and then its argument prototype would still apply.  */
3501char $ac_func();
3502
3503int main() {
3504
3505/* The GNU C library defines this for functions which it implements
3506    to always fail with ENOSYS.  Some functions are actually named
3507    something starting with __ and the normal name is an alias.  */
3508#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3509choke me
3510#else
3511$ac_func();
3512#endif
3513
3514; return 0; }
3515EOF
3516if { (eval echo configure:3517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3517  rm -rf conftest*
3518  eval "ac_cv_func_$ac_func=yes"
3519else
3520  echo "configure: failed program was:" >&5
3521  cat conftest.$ac_ext >&5
3522  rm -rf conftest*
3523  eval "ac_cv_func_$ac_func=no"
3524fi
3525rm -f conftest*
3526fi
3527
3528if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3529  echo "$ac_t""yes" 1>&6
3530    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3531  cat >> confdefs.h <<EOF
3532#define $ac_tr_func 1
3533EOF
3534 
3535else
3536  echo "$ac_t""no" 1>&6
3537fi
3538done
3539
3540  echo $ac_n "checking for error_at_line""... $ac_c" 1>&6
3541echo "configure:3542: checking for error_at_line" >&5
3542if eval "test \"`echo '$''{'am_cv_lib_error_at_line'+set}'`\" = set"; then
3543  echo $ac_n "(cached) $ac_c" 1>&6
3544else
3545  cat > conftest.$ac_ext <<EOF
3546#line 3547 "configure"
3547#include "confdefs.h"
3548
3549int main() {
3550error_at_line(0, 0, "", 0, "");
3551; return 0; }
3552EOF
3553if { (eval echo configure:3554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3554  rm -rf conftest*
3555  am_cv_lib_error_at_line=yes
3556else
3557  echo "configure: failed program was:" >&5
3558  cat conftest.$ac_ext >&5
3559  rm -rf conftest*
3560  am_cv_lib_error_at_line=no
3561fi
3562rm -f conftest*
3563fi
3564
3565echo "$ac_t""$am_cv_lib_error_at_line" 1>&6
3566 if test $am_cv_lib_error_at_line = no; then
3567   LIBOBJS="$LIBOBJS error.o"
3568 fi
3569 
3570
3571  # This is required if we declare setreuid () and setregid ().
3572  echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3573echo "configure:3574: checking for uid_t in sys/types.h" >&5
3574if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3575  echo $ac_n "(cached) $ac_c" 1>&6
3576else
3577  cat > conftest.$ac_ext <<EOF
3578#line 3579 "configure"
3579#include "confdefs.h"
3580#include <sys/types.h>
3581EOF
3582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3583  egrep "uid_t" >/dev/null 2>&1; then
3584  rm -rf conftest*
3585  ac_cv_type_uid_t=yes
3586else
3587  rm -rf conftest*
3588  ac_cv_type_uid_t=no
3589fi
3590rm -f conftest*
3591
3592fi
3593
3594echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3595if test $ac_cv_type_uid_t = no; then
3596  cat >> confdefs.h <<\EOF
3597#define uid_t int
3598EOF
3599
3600  cat >> confdefs.h <<\EOF
3601#define gid_t int
3602EOF
3603
3604fi
3605
3606
3607  # see if we need to declare some functions.  Solaris is notorious for
3608  # putting functions into the `libc' but not listing them in the headers
3609  for ac_hdr in string.h strings.h stdlib.h unistd.h dirent.h
3610do
3611ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3612echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3613echo "configure:3614: checking for $ac_hdr" >&5
3614if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3615  echo $ac_n "(cached) $ac_c" 1>&6
3616else
3617  cat > conftest.$ac_ext <<EOF
3618#line 3619 "configure"
3619#include "confdefs.h"
3620#include <$ac_hdr>
3621EOF
3622ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3623{ (eval echo configure:3624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3624ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3625if test -z "$ac_err"; then
3626  rm -rf conftest*
3627  eval "ac_cv_header_$ac_safe=yes"
3628else
3629  echo "$ac_err" >&5
3630  echo "configure: failed program was:" >&5
3631  cat conftest.$ac_ext >&5
3632  rm -rf conftest*
3633  eval "ac_cv_header_$ac_safe=no"
3634fi
3635rm -f conftest*
3636fi
3637if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3638  echo "$ac_t""yes" 1>&6
3639    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3640  cat >> confdefs.h <<EOF
3641#define $ac_tr_hdr 1
3642EOF
3643 
3644else
3645  echo "$ac_t""no" 1>&6
3646fi
3647done
3648
3649  for ac_func in gethostname setreuid setregid getpagesize
3650do
3651echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3652echo "configure:3653: checking whether $ac_func must be declared" >&5
3653if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3654  echo $ac_n "(cached) $ac_c" 1>&6
3655else
3656  cat > conftest.$ac_ext <<EOF
3657#line 3658 "configure"
3658#include "confdefs.h"
3659
3660#include <stdio.h>
3661#ifdef HAVE_STRING_H
3662#include <string.h>
3663#else
3664#ifdef HAVE_STRINGS_H
3665#include <strings.h>
3666#endif
3667#endif
3668#ifdef HAVE_STDLIB_H
3669#include <stdlib.h>
3670#endif
3671#ifdef HAVE_UNISTD_H
3672#include <unistd.h>
3673#endif
3674
3675int main() {
3676char *(*pfn) = (char *(*)) $ac_func
3677; return 0; }
3678EOF
3679if { (eval echo configure:3680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3680  rm -rf conftest*
3681  eval "gcc_cv_decl_needed_$ac_func=no"
3682else
3683  echo "configure: failed program was:" >&5
3684  cat conftest.$ac_ext >&5
3685  rm -rf conftest*
3686  eval "gcc_cv_decl_needed_$ac_func=yes"
3687fi
3688rm -f conftest*
3689fi
3690
3691if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3692  echo "$ac_t""yes" 1>&6
3693  gcc_need_declarations="$gcc_need_declarations $ac_func"
3694  gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3695  cat >> confdefs.h <<EOF
3696#define $gcc_tr_decl 1
3697EOF
3698
3699else
3700  echo "$ac_t""no" 1>&6
3701fi
3702
3703done
3704
3705
3706  echo $ac_n "checking whether scandir must be declared""... $ac_c" 1>&6
3707echo "configure:3708: checking whether scandir must be declared" >&5
3708if eval "test \"`echo '$''{'gcc_cv_decl_needed_scandir'+set}'`\" = set"; then
3709  echo $ac_n "(cached) $ac_c" 1>&6
3710else
3711  cat > conftest.$ac_ext <<EOF
3712#line 3713 "configure"
3713#include "confdefs.h"
3714
3715#include <stdio.h>
3716#ifdef HAVE_STRING_H
3717#include <string.h>
3718#else
3719#ifdef HAVE_STRINGS_H
3720#include <strings.h>
3721#endif
3722#endif
3723#ifdef HAVE_STDLIB_H
3724#include <stdlib.h>
3725#endif
3726#ifdef HAVE_UNISTD_H
3727#include <unistd.h>
3728#endif
3729
3730#ifdef HAVE_DIRENT_H
3731#include <dirent.h>
3732#endif
3733
3734int main() {
3735char *(*pfn) = (char *(*)) scandir
3736; return 0; }
3737EOF
3738if { (eval echo configure:3739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3739  rm -rf conftest*
3740  eval "gcc_cv_decl_needed_scandir=no"
3741else
3742  echo "configure: failed program was:" >&5
3743  cat conftest.$ac_ext >&5
3744  rm -rf conftest*
3745  eval "gcc_cv_decl_needed_scandir=yes"
3746fi
3747rm -f conftest*
3748fi
3749
3750if eval "test \"`echo '$gcc_cv_decl_needed_'scandir`\" = yes"; then
3751  echo "$ac_t""yes" 1>&6
3752  gcc_need_declarations="$gcc_need_declarations scandir"
3753  gcc_tr_decl=NEED_DECLARATION_`echo scandir | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3754  cat >> confdefs.h <<EOF
3755#define $gcc_tr_decl 1
3756EOF
3757
3758else
3759  echo "$ac_t""no" 1>&6
3760fi
3761
3762
3763  # Turn our LIBOBJS into libtool objects.  This is gross, but it
3764  # requires changes to autoconf before it goes away.
3765  LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'`
3766 
3767 
3768
3769  LIBOBJS="$save_LIBOBJS"
3770 
3771
3772if test "$need_gnome_support" = yes; then
3773  BUILD_GNOME_SUPPORT_TRUE=
3774  BUILD_GNOME_SUPPORT_FALSE='#'
3775else
3776  BUILD_GNOME_SUPPORT_TRUE='#'
3777  BUILD_GNOME_SUPPORT_FALSE=
3778fi
3779
3780fi
3781
3782        PTHREAD_LIB=""
3783        echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3784echo "configure:3785: checking for pthread_create in -lpthread" >&5
3785ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3786if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3787  echo $ac_n "(cached) $ac_c" 1>&6
3788else
3789  ac_save_LIBS="$LIBS"
3790LIBS="-lpthread  $LIBS"
3791cat > conftest.$ac_ext <<EOF
3792#line 3793 "configure"
3793#include "confdefs.h"
3794/* Override any gcc2 internal prototype to avoid an error.  */
3795/* We use char because int might match the return type of a gcc2
3796    builtin and then its argument prototype would still apply.  */
3797char pthread_create();
3798
3799int main() {
3800pthread_create()
3801; return 0; }
3802EOF
3803if { (eval echo configure:3804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3804  rm -rf conftest*
3805  eval "ac_cv_lib_$ac_lib_var=yes"
3806else
3807  echo "configure: failed program was:" >&5
3808  cat conftest.$ac_ext >&5
3809  rm -rf conftest*
3810  eval "ac_cv_lib_$ac_lib_var=no"
3811fi
3812rm -f conftest*
3813LIBS="$ac_save_LIBS"
3814
3815fi
3816if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3817  echo "$ac_t""yes" 1>&6
3818  PTHREAD_LIB="-lpthread"
3819else
3820  echo "$ac_t""no" 1>&6
3821echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
3822echo "configure:3823: checking for pthread_create in -lpthreads" >&5
3823ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
3824if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3825  echo $ac_n "(cached) $ac_c" 1>&6
3826else
3827  ac_save_LIBS="$LIBS"
3828LIBS="-lpthreads  $LIBS"
3829cat > conftest.$ac_ext <<EOF
3830#line 3831 "configure"
3831#include "confdefs.h"
3832/* Override any gcc2 internal prototype to avoid an error.  */
3833/* We use char because int might match the return type of a gcc2
3834    builtin and then its argument prototype would still apply.  */
3835char pthread_create();
3836
3837int main() {
3838pthread_create()
3839; return 0; }
3840EOF
3841if { (eval echo configure:3842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3842  rm -rf conftest*
3843  eval "ac_cv_lib_$ac_lib_var=yes"
3844else
3845  echo "configure: failed program was:" >&5
3846  cat conftest.$ac_ext >&5
3847  rm -rf conftest*
3848  eval "ac_cv_lib_$ac_lib_var=no"
3849fi
3850rm -f conftest*
3851LIBS="$ac_save_LIBS"
3852
3853fi
3854if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3855  echo "$ac_t""yes" 1>&6
3856  PTHREAD_LIB="-lpthreads"
3857else
3858  echo "$ac_t""no" 1>&6
3859echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3860echo "configure:3861: checking for pthread_create in -lc_r" >&5
3861ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
3862if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3863  echo $ac_n "(cached) $ac_c" 1>&6
3864else
3865  ac_save_LIBS="$LIBS"
3866LIBS="-lc_r  $LIBS"
3867cat > conftest.$ac_ext <<EOF
3868#line 3869 "configure"
3869#include "confdefs.h"
3870/* Override any gcc2 internal prototype to avoid an error.  */
3871/* We use char because int might match the return type of a gcc2
3872    builtin and then its argument prototype would still apply.  */
3873char pthread_create();
3874
3875int main() {
3876pthread_create()
3877; return 0; }
3878EOF
3879if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3880  rm -rf conftest*
3881  eval "ac_cv_lib_$ac_lib_var=yes"
3882else
3883  echo "configure: failed program was:" >&5
3884  cat conftest.$ac_ext >&5
3885  rm -rf conftest*
3886  eval "ac_cv_lib_$ac_lib_var=no"
3887fi
3888rm -f conftest*
3889LIBS="$ac_save_LIBS"
3890
3891fi
3892if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3893  echo "$ac_t""yes" 1>&6
3894  PTHREAD_LIB="-lc_r"
3895else
3896  echo "$ac_t""no" 1>&6
3897echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
3898echo "configure:3899: checking for pthread_create" >&5
3899if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
3900  echo $ac_n "(cached) $ac_c" 1>&6
3901else
3902  cat > conftest.$ac_ext <<EOF
3903#line 3904 "configure"
3904#include "confdefs.h"
3905/* System header to define __stub macros and hopefully few prototypes,
3906    which can conflict with char pthread_create(); below.  */
3907#include <assert.h>
3908/* Override any gcc2 internal prototype to avoid an error.  */
3909/* We use char because int might match the return type of a gcc2
3910    builtin and then its argument prototype would still apply.  */
3911char pthread_create();
3912
3913int main() {
3914
3915/* The GNU C library defines this for functions which it implements
3916    to always fail with ENOSYS.  Some functions are actually named
3917    something starting with __ and the normal name is an alias.  */
3918#if defined (__stub_pthread_create) || defined (__stub___pthread_create)
3919choke me
3920#else
3921pthread_create();
3922#endif
3923
3924; return 0; }
3925EOF
3926if { (eval echo configure:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3927  rm -rf conftest*
3928  eval "ac_cv_func_pthread_create=yes"
3929else
3930  echo "configure: failed program was:" >&5
3931  cat conftest.$ac_ext >&5
3932  rm -rf conftest*
3933  eval "ac_cv_func_pthread_create=no"
3934fi
3935rm -f conftest*
3936fi
3937
3938if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
3939  echo "$ac_t""yes" 1>&6
3940  :
3941else
3942  echo "$ac_t""no" 1>&6
3943fi
3944
3945                   
3946fi
3947
3948               
3949fi
3950
3951       
3952fi
3953
3954       
3955       
3956
3957
3958echo $ac_n "checking size_t in <sys/types.h>""... $ac_c" 1>&6
3959echo "configure:3960: checking size_t in <sys/types.h>" >&5
3960if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3961  echo $ac_n "(cached) $ac_c" 1>&6
3962else
3963  cat > conftest.$ac_ext <<EOF
3964#line 3965 "configure"
3965#include "confdefs.h"
3966
3967#include <sys/types.h>
3968#if STDC_HEADERS
3969#include <stdlib.h>
3970#include <stddef.h>
3971#endif
3972
3973int main() {
3974size_t foo;
3975; return 0; }
3976EOF
3977if { (eval echo configure:3978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3978  rm -rf conftest*
3979  ac_cv_type_size_t=yes
3980else
3981  echo "configure: failed program was:" >&5
3982  cat conftest.$ac_ext >&5
3983  rm -rf conftest*
3984  ac_cv_type_size_t=no
3985fi
3986rm -f conftest*
3987fi
3988
3989echo "$ac_t""$ac_cv_type_size_t" 1>&6
3990   if test $ac_cv_type_size_t = no; then
3991      cat >> confdefs.h <<\EOF
3992#define size_t unsigned
3993EOF
3994
3995   fi
3996
3997   
3998
3999echo $ac_n "checking off_t in <sys/types.h>""... $ac_c" 1>&6
4000echo "configure:4001: checking off_t in <sys/types.h>" >&5
4001if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4002  echo $ac_n "(cached) $ac_c" 1>&6
4003else
4004  cat > conftest.$ac_ext <<EOF
4005#line 4006 "configure"
4006#include "confdefs.h"
4007
4008#include <sys/types.h>
4009#if STDC_HEADERS
4010#include <stdlib.h>
4011#include <stddef.h>
4012#endif
4013
4014int main() {
4015off_t foo;
4016; return 0; }
4017EOF
4018if { (eval echo configure:4019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4019  rm -rf conftest*
4020  ac_cv_type_off_t=yes
4021else
4022  echo "configure: failed program was:" >&5
4023  cat conftest.$ac_ext >&5
4024  rm -rf conftest*
4025  ac_cv_type_off_t=no
4026fi
4027rm -f conftest*
4028fi
4029
4030echo "$ac_t""$ac_cv_type_off_t" 1>&6
4031   if test $ac_cv_type_off_t = no; then
4032      cat >> confdefs.h <<\EOF
4033#define off_t long
4034EOF
4035
4036   fi
4037
4038   
4039
4040
4041ALL_LINGUAS="az ca da de el es fi fr ga gl hu it ja ko lt nl nn no pl pt_BR ro ru sk sl sv tr uk wa"
4042echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4043echo "configure:4044: checking for ANSI C header files" >&5
4044if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4045  echo $ac_n "(cached) $ac_c" 1>&6
4046else
4047  cat > conftest.$ac_ext <<EOF
4048#line 4049 "configure"
4049#include "confdefs.h"
4050#include <stdlib.h>
4051#include <stdarg.h>
4052#include <string.h>
4053#include <float.h>
4054EOF
4055ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4056{ (eval echo configure:4057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4057ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4058if test -z "$ac_err"; then
4059  rm -rf conftest*
4060  ac_cv_header_stdc=yes
4061else
4062  echo "$ac_err" >&5
4063  echo "configure: failed program was:" >&5
4064  cat conftest.$ac_ext >&5
4065  rm -rf conftest*
4066  ac_cv_header_stdc=no
4067fi
4068rm -f conftest*
4069
4070if test $ac_cv_header_stdc = yes; then
4071  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4072cat > conftest.$ac_ext <<EOF
4073#line 4074 "configure"
4074#include "confdefs.h"
4075#include <string.h>
4076EOF
4077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078  egrep "memchr" >/dev/null 2>&1; then
4079  :
4080else
4081  rm -rf conftest*
4082  ac_cv_header_stdc=no
4083fi
4084rm -f conftest*
4085
4086fi
4087
4088if test $ac_cv_header_stdc = yes; then
4089  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4090cat > conftest.$ac_ext <<EOF
4091#line 4092 "configure"
4092#include "confdefs.h"
4093#include <stdlib.h>
4094EOF
4095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4096  egrep "free" >/dev/null 2>&1; then
4097  :
4098else
4099  rm -rf conftest*
4100  ac_cv_header_stdc=no
4101fi
4102rm -f conftest*
4103
4104fi
4105
4106if test $ac_cv_header_stdc = yes; then
4107  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4108if test "$cross_compiling" = yes; then
4109  :
4110else
4111  cat > conftest.$ac_ext <<EOF
4112#line 4113 "configure"
4113#include "confdefs.h"
4114#include <ctype.h>
4115#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4116#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4117#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4118int main () { int i; for (i = 0; i < 256; i++)
4119if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4120exit (0); }
4121
4122EOF
4123if { (eval echo configure:4124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4124then
4125  :
4126else
4127  echo "configure: failed program was:" >&5
4128  cat conftest.$ac_ext >&5
4129  rm -fr conftest*
4130  ac_cv_header_stdc=no
4131fi
4132rm -fr conftest*
4133fi
4134
4135fi
4136fi
4137
4138echo "$ac_t""$ac_cv_header_stdc" 1>&6
4139if test $ac_cv_header_stdc = yes; then
4140  cat >> confdefs.h <<\EOF
4141#define STDC_HEADERS 1
4142EOF
4143
4144fi
4145
4146echo $ac_n "checking for working const""... $ac_c" 1>&6
4147echo "configure:4148: checking for working const" >&5
4148if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4149  echo $ac_n "(cached) $ac_c" 1>&6
4150else
4151  cat > conftest.$ac_ext <<EOF
4152#line 4153 "configure"
4153#include "confdefs.h"
4154
4155int main() {
4156
4157/* Ultrix mips cc rejects this.  */
4158typedef int charset[2]; const charset x;
4159/* SunOS 4.1.1 cc rejects this.  */
4160char const *const *ccp;
4161char **p;
4162/* NEC SVR4.0.2 mips cc rejects this.  */
4163struct point {int x, y;};
4164static struct point const zero = {0,0};
4165/* AIX XL C 1.02.0.0 rejects this.
4166   It does not let you subtract one const X* pointer from another in an arm
4167   of an if-expression whose if-part is not a constant expression */
4168const char *g = "string";
4169ccp = &g + (g ? g-g : 0);
4170/* HPUX 7.0 cc rejects these. */
4171++ccp;
4172p = (char**) ccp;
4173ccp = (char const *const *) p;
4174{ /* SCO 3.2v4 cc rejects this.  */
4175  char *t;
4176  char const *s = 0 ? (char *) 0 : (char const *) 0;
4177
4178  *t++ = 0;
4179}
4180{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4181  int x[] = {25, 17};
4182  const int *foo = &x[0];
4183  ++foo;
4184}
4185{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4186  typedef const int *iptr;
4187  iptr p = 0;
4188  ++p;
4189}
4190{ /* AIX XL C 1.02.0.0 rejects this saying
4191     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4192  struct s { int j; const int *ap[3]; };
4193  struct s *b; b->j = 5;
4194}
4195{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4196  const int foo = 10;
4197}
4198
4199; return 0; }
4200EOF
4201if { (eval echo configure:4202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4202  rm -rf conftest*
4203  ac_cv_c_const=yes
4204else
4205  echo "configure: failed program was:" >&5
4206  cat conftest.$ac_ext >&5
4207  rm -rf conftest*
4208  ac_cv_c_const=no
4209fi
4210rm -f conftest*
4211fi
4212
4213echo "$ac_t""$ac_cv_c_const" 1>&6
4214if test $ac_cv_c_const = no; then
4215  cat >> confdefs.h <<\EOF
4216#define const
4217EOF
4218
4219fi
4220
4221echo $ac_n "checking for inline""... $ac_c" 1>&6
4222echo "configure:4223: checking for inline" >&5
4223if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4224  echo $ac_n "(cached) $ac_c" 1>&6
4225else
4226  ac_cv_c_inline=no
4227for ac_kw in inline __inline__ __inline; do
4228  cat > conftest.$ac_ext <<EOF
4229#line 4230 "configure"
4230#include "confdefs.h"
4231
4232int main() {
4233} $ac_kw foo() {
4234; return 0; }
4235EOF
4236if { (eval echo configure:4237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4237  rm -rf conftest*
4238  ac_cv_c_inline=$ac_kw; break
4239else
4240  echo "configure: failed program was:" >&5
4241  cat conftest.$ac_ext >&5
4242fi
4243rm -f conftest*
4244done
4245
4246fi
4247
4248echo "$ac_t""$ac_cv_c_inline" 1>&6
4249case "$ac_cv_c_inline" in
4250  inline | yes) ;;
4251  no) cat >> confdefs.h <<\EOF
4252#define inline
4253EOF
4254 ;;
4255  *)  cat >> confdefs.h <<EOF
4256#define inline $ac_cv_c_inline
4257EOF
4258 ;;
4259esac
4260
4261# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4262# for constant arguments.  Useless!
4263echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4264echo "configure:4265: checking for working alloca.h" >&5
4265if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4266  echo $ac_n "(cached) $ac_c" 1>&6
4267else
4268  cat > conftest.$ac_ext <<EOF
4269#line 4270 "configure"
4270#include "confdefs.h"
4271#include <alloca.h>
4272int main() {
4273char *p = alloca(2 * sizeof(int));
4274; return 0; }
4275EOF
4276if { (eval echo configure:4277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4277  rm -rf conftest*
4278  ac_cv_header_alloca_h=yes
4279else
4280  echo "configure: failed program was:" >&5
4281  cat conftest.$ac_ext >&5
4282  rm -rf conftest*
4283  ac_cv_header_alloca_h=no
4284fi
4285rm -f conftest*
4286fi
4287
4288echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4289if test $ac_cv_header_alloca_h = yes; then
4290  cat >> confdefs.h <<\EOF
4291#define HAVE_ALLOCA_H 1
4292EOF
4293
4294fi
4295
4296echo $ac_n "checking for alloca""... $ac_c" 1>&6
4297echo "configure:4298: checking for alloca" >&5
4298if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4299  echo $ac_n "(cached) $ac_c" 1>&6
4300else
4301  cat > conftest.$ac_ext <<EOF
4302#line 4303 "configure"
4303#include "confdefs.h"
4304
4305#ifdef __GNUC__
4306# define alloca __builtin_alloca
4307#else
4308# ifdef _MSC_VER
4309#  include <malloc.h>
4310#  define alloca _alloca
4311# else
4312#  if HAVE_ALLOCA_H
4313#   include <alloca.h>
4314#  else
4315#   ifdef _AIX
4316 #pragma alloca
4317#   else
4318#    ifndef alloca /* predefined by HP cc +Olibcalls */
4319char *alloca ();
4320#    endif
4321#   endif
4322#  endif
4323# endif
4324#endif
4325
4326int main() {
4327char *p = (char *) alloca(1);
4328; return 0; }
4329EOF
4330if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4331  rm -rf conftest*
4332  ac_cv_func_alloca_works=yes
4333else
4334  echo "configure: failed program was:" >&5
4335  cat conftest.$ac_ext >&5
4336  rm -rf conftest*
4337  ac_cv_func_alloca_works=no
4338fi
4339rm -f conftest*
4340fi
4341
4342echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4343if test $ac_cv_func_alloca_works = yes; then
4344  cat >> confdefs.h <<\EOF
4345#define HAVE_ALLOCA 1
4346EOF
4347
4348fi
4349
4350if test $ac_cv_func_alloca_works = no; then
4351  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4352  # that cause trouble.  Some versions do not even contain alloca or
4353  # contain a buggy version.  If you still want to use their alloca,
4354  # use ar to extract alloca.o from them instead of compiling alloca.c.
4355  ALLOCA=alloca.${ac_objext}
4356  cat >> confdefs.h <<\EOF
4357#define C_ALLOCA 1
4358EOF
4359
4360
4361echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4362echo "configure:4363: checking whether alloca needs Cray hooks" >&5
4363if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4364  echo $ac_n "(cached) $ac_c" 1>&6
4365else
4366  cat > conftest.$ac_ext <<EOF
4367#line 4368 "configure"
4368#include "confdefs.h"
4369#if defined(CRAY) && ! defined(CRAY2)
4370webecray
4371#else
4372wenotbecray
4373#endif
4374
4375EOF
4376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4377  egrep "webecray" >/dev/null 2>&1; then
4378  rm -rf conftest*
4379  ac_cv_os_cray=yes
4380else
4381  rm -rf conftest*
4382  ac_cv_os_cray=no
4383fi
4384rm -f conftest*
4385
4386fi
4387
4388echo "$ac_t""$ac_cv_os_cray" 1>&6
4389if test $ac_cv_os_cray = yes; then
4390for ac_func in _getb67 GETB67 getb67; do
4391  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4392echo "configure:4393: checking for $ac_func" >&5
4393if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4394  echo $ac_n "(cached) $ac_c" 1>&6
4395else
4396  cat > conftest.$ac_ext <<EOF
4397#line 4398 "configure"
4398#include "confdefs.h"
4399/* System header to define __stub macros and hopefully few prototypes,
4400    which can conflict with char $ac_func(); below.  */
4401#include <assert.h>
4402/* Override any gcc2 internal prototype to avoid an error.  */
4403/* We use char because int might match the return type of a gcc2
4404    builtin and then its argument prototype would still apply.  */
4405char $ac_func();
4406
4407int main() {
4408
4409/* The GNU C library defines this for functions which it implements
4410    to always fail with ENOSYS.  Some functions are actually named
4411    something starting with __ and the normal name is an alias.  */
4412#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4413choke me
4414#else
4415$ac_func();
4416#endif
4417
4418; return 0; }
4419EOF
4420if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4421  rm -rf conftest*
4422  eval "ac_cv_func_$ac_func=yes"
4423else
4424  echo "configure: failed program was:" >&5
4425  cat conftest.$ac_ext >&5
4426  rm -rf conftest*
4427  eval "ac_cv_func_$ac_func=no"
4428fi
4429rm -f conftest*
4430fi
4431
4432if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4433  echo "$ac_t""yes" 1>&6
4434  cat >> confdefs.h <<EOF
4435#define CRAY_STACKSEG_END $ac_func
4436EOF
4437
4438  break
4439else
4440  echo "$ac_t""no" 1>&6
4441fi
4442
4443done
4444fi
4445
4446echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4447echo "configure:4448: checking stack direction for C alloca" >&5
4448if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4449  echo $ac_n "(cached) $ac_c" 1>&6
4450else
4451  if test "$cross_compiling" = yes; then
4452  ac_cv_c_stack_direction=0
4453else
4454  cat > conftest.$ac_ext <<EOF
4455#line 4456 "configure"
4456#include "confdefs.h"
4457find_stack_direction ()
4458{
4459  static char *addr = 0;
4460  auto char dummy;
4461  if (addr == 0)
4462    {
4463      addr = &dummy;
4464      return find_stack_direction ();
4465    }
4466  else
4467    return (&dummy > addr) ? 1 : -1;
4468}
4469main ()
4470{
4471  exit (find_stack_direction() < 0);
4472}
4473EOF
4474if { (eval echo configure:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4475then
4476  ac_cv_c_stack_direction=1
4477else
4478  echo "configure: failed program was:" >&5
4479  cat conftest.$ac_ext >&5
4480  rm -fr conftest*
4481  ac_cv_c_stack_direction=-1
4482fi
4483rm -fr conftest*
4484fi
4485
4486fi
4487
4488echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4489cat >> confdefs.h <<EOF
4490#define STACK_DIRECTION $ac_cv_c_stack_direction
4491EOF
4492
4493fi
4494
4495for ac_hdr in unistd.h
4496do
4497ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4498echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4499echo "configure:4500: checking for $ac_hdr" >&5
4500if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4501  echo $ac_n "(cached) $ac_c" 1>&6
4502else
4503  cat > conftest.$ac_ext <<EOF
4504#line 4505 "configure"
4505#include "confdefs.h"
4506#include <$ac_hdr>
4507EOF
4508ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4509{ (eval echo configure:4510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4510ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4511if test -z "$ac_err"; then
4512  rm -rf conftest*
4513  eval "ac_cv_header_$ac_safe=yes"
4514else
4515  echo "$ac_err" >&5
4516  echo "configure: failed program was:" >&5
4517  cat conftest.$ac_ext >&5
4518  rm -rf conftest*
4519  eval "ac_cv_header_$ac_safe=no"
4520fi
4521rm -f conftest*
4522fi
4523if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4524  echo "$ac_t""yes" 1>&6
4525    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4526  cat >> confdefs.h <<EOF
4527#define $ac_tr_hdr 1
4528EOF
4529 
4530else
4531  echo "$ac_t""no" 1>&6
4532fi
4533done
4534
4535for ac_func in getpagesize
4536do
4537echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4538echo "configure:4539: checking for $ac_func" >&5
4539if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4540  echo $ac_n "(cached) $ac_c" 1>&6
4541else
4542  cat > conftest.$ac_ext <<EOF
4543#line 4544 "configure"
4544#include "confdefs.h"
4545/* System header to define __stub macros and hopefully few prototypes,
4546    which can conflict with char $ac_func(); below.  */
4547#include <assert.h>
4548/* Override any gcc2 internal prototype to avoid an error.  */
4549/* We use char because int might match the return type of a gcc2
4550    builtin and then its argument prototype would still apply.  */
4551char $ac_func();
4552
4553int main() {
4554
4555/* The GNU C library defines this for functions which it implements
4556    to always fail with ENOSYS.  Some functions are actually named
4557    something starting with __ and the normal name is an alias.  */
4558#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4559choke me
4560#else
4561$ac_func();
4562#endif
4563
4564; return 0; }
4565EOF
4566if { (eval echo configure:4567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4567  rm -rf conftest*
4568  eval "ac_cv_func_$ac_func=yes"
4569else
4570  echo "configure: failed program was:" >&5
4571  cat conftest.$ac_ext >&5
4572  rm -rf conftest*
4573  eval "ac_cv_func_$ac_func=no"
4574fi
4575rm -f conftest*
4576fi
4577
4578if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4579  echo "$ac_t""yes" 1>&6
4580    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4581  cat >> confdefs.h <<EOF
4582#define $ac_tr_func 1
4583EOF
4584 
4585else
4586  echo "$ac_t""no" 1>&6
4587fi
4588done
4589
4590echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4591echo "configure:4592: checking for working mmap" >&5
4592if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4593  echo $ac_n "(cached) $ac_c" 1>&6
4594else
4595  if test "$cross_compiling" = yes; then
4596  ac_cv_func_mmap_fixed_mapped=no
4597else
4598  cat > conftest.$ac_ext <<EOF
4599#line 4600 "configure"
4600#include "confdefs.h"
4601
4602/* Thanks to Mike Haertel and Jim Avera for this test.
4603   Here is a matrix of mmap possibilities:
4604        mmap private not fixed
4605        mmap private fixed at somewhere currently unmapped
4606        mmap private fixed at somewhere already mapped
4607        mmap shared not fixed
4608        mmap shared fixed at somewhere currently unmapped
4609        mmap shared fixed at somewhere already mapped
4610   For private mappings, we should verify that changes cannot be read()
4611   back from the file, nor mmap's back from the file at a different
4612   address.  (There have been systems where private was not correctly
4613   implemented like the infamous i386 svr4.0, and systems where the
4614   VM page cache was not coherent with the filesystem buffer cache
4615   like early versions of FreeBSD and possibly contemporary NetBSD.)
4616   For shared mappings, we should conversely verify that changes get
4617   propogated back to all the places they're supposed to be.
4618
4619   Grep wants private fixed already mapped.
4620   The main things grep needs to know about mmap are:
4621   * does it exist and is it safe to write into the mmap'd area
4622   * how to use it (BSD variants)  */
4623#include <sys/types.h>
4624#include <fcntl.h>
4625#include <sys/mman.h>
4626
4627/* This mess was copied from the GNU getpagesize.h.  */
4628#ifndef HAVE_GETPAGESIZE
4629# ifdef HAVE_UNISTD_H
4630#  include <unistd.h>
4631# endif
4632
4633/* Assume that all systems that can run configure have sys/param.h.  */
4634# ifndef HAVE_SYS_PARAM_H
4635#  define HAVE_SYS_PARAM_H 1
4636# endif
4637
4638# ifdef _SC_PAGESIZE
4639#  define getpagesize() sysconf(_SC_PAGESIZE)
4640# else /* no _SC_PAGESIZE */
4641#  ifdef HAVE_SYS_PARAM_H
4642#   include <sys/param.h>
4643#   ifdef EXEC_PAGESIZE
4644#    define getpagesize() EXEC_PAGESIZE
4645#   else /* no EXEC_PAGESIZE */
4646#    ifdef NBPG
4647#     define getpagesize() NBPG * CLSIZE
4648#     ifndef CLSIZE
4649#      define CLSIZE 1
4650#     endif /* no CLSIZE */
4651#    else /* no NBPG */
4652#     ifdef NBPC
4653#      define getpagesize() NBPC
4654#     else /* no NBPC */
4655#      ifdef PAGESIZE
4656#       define getpagesize() PAGESIZE
4657#      endif /* PAGESIZE */
4658#     endif /* no NBPC */
4659#    endif /* no NBPG */
4660#   endif /* no EXEC_PAGESIZE */
4661#  else /* no HAVE_SYS_PARAM_H */
4662#   define getpagesize() 8192   /* punt totally */
4663#  endif /* no HAVE_SYS_PARAM_H */
4664# endif /* no _SC_PAGESIZE */
4665
4666#endif /* no HAVE_GETPAGESIZE */
4667
4668#ifdef __cplusplus
4669extern "C" { void *malloc(unsigned); }
4670#else
4671char *malloc();
4672#endif
4673
4674int
4675main()
4676{
4677        char *data, *data2, *data3;
4678        int i, pagesize;
4679        int fd;
4680
4681        pagesize = getpagesize();
4682
4683        /*
4684         * First, make a file with some known garbage in it.
4685         */
4686        data = malloc(pagesize);
4687        if (!data)
4688                exit(1);
4689        for (i = 0; i < pagesize; ++i)
4690                *(data + i) = rand();
4691        umask(0);
4692        fd = creat("conftestmmap", 0600);
4693        if (fd < 0)
4694                exit(1);
4695        if (write(fd, data, pagesize) != pagesize)
4696                exit(1);
4697        close(fd);
4698
4699        /*
4700         * Next, try to mmap the file at a fixed address which
4701         * already has something else allocated at it.  If we can,
4702         * also make sure that we see the same garbage.
4703         */
4704        fd = open("conftestmmap", O_RDWR);
4705        if (fd < 0)
4706                exit(1);
4707        data2 = malloc(2 * pagesize);
4708        if (!data2)
4709                exit(1);
4710        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4711        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4712            MAP_PRIVATE | MAP_FIXED, fd, 0L))
4713                exit(1);
4714        for (i = 0; i < pagesize; ++i)
4715                if (*(data + i) != *(data2 + i))
4716                        exit(1);
4717
4718        /*
4719         * Finally, make sure that changes to the mapped area
4720         * do not percolate back to the file as seen by read().
4721         * (This is a bug on some variants of i386 svr4.0.)
4722         */
4723        for (i = 0; i < pagesize; ++i)
4724                *(data2 + i) = *(data2 + i) + 1;
4725        data3 = malloc(pagesize);
4726        if (!data3)
4727                exit(1);
4728        if (read(fd, data3, pagesize) != pagesize)
4729                exit(1);
4730        for (i = 0; i < pagesize; ++i)
4731                if (*(data + i) != *(data3 + i))
4732                        exit(1);
4733        close(fd);
4734        unlink("conftestmmap");
4735        exit(0);
4736}
4737
4738EOF
4739if { (eval echo configure:4740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4740then
4741  ac_cv_func_mmap_fixed_mapped=yes
4742else
4743  echo "configure: failed program was:" >&5
4744  cat conftest.$ac_ext >&5
4745  rm -fr conftest*
4746  ac_cv_func_mmap_fixed_mapped=no
4747fi
4748rm -fr conftest*
4749fi
4750
4751fi
4752
4753echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4754if test $ac_cv_func_mmap_fixed_mapped = yes; then
4755  cat >> confdefs.h <<\EOF
4756#define HAVE_MMAP 1
4757EOF
4758
4759fi
4760
4761                             
4762   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4763unistd.h sys/param.h
4764do
4765ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4766echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4767echo "configure:4768: checking for $ac_hdr" >&5
4768if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4769  echo $ac_n "(cached) $ac_c" 1>&6
4770else
4771  cat > conftest.$ac_ext <<EOF
4772#line 4773 "configure"
4773#include "confdefs.h"
4774#include <$ac_hdr>
4775EOF
4776ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4777{ (eval echo configure:4778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4778ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4779if test -z "$ac_err"; then
4780  rm -rf conftest*
4781  eval "ac_cv_header_$ac_safe=yes"
4782else
4783  echo "$ac_err" >&5
4784  echo "configure: failed program was:" >&5
4785  cat conftest.$ac_ext >&5
4786  rm -rf conftest*
4787  eval "ac_cv_header_$ac_safe=no"
4788fi
4789rm -f conftest*
4790fi
4791if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4792  echo "$ac_t""yes" 1>&6
4793    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4794  cat >> confdefs.h <<EOF
4795#define $ac_tr_hdr 1
4796EOF
4797 
4798else
4799  echo "$ac_t""no" 1>&6
4800fi
4801done
4802
4803   for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4804strdup __argz_count __argz_stringify __argz_next
4805do
4806echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4807echo "configure:4808: checking for $ac_func" >&5
4808if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4809  echo $ac_n "(cached) $ac_c" 1>&6
4810else
4811  cat > conftest.$ac_ext <<EOF
4812#line 4813 "configure"
4813#include "confdefs.h"
4814/* System header to define __stub macros and hopefully few prototypes,
4815    which can conflict with char $ac_func(); below.  */
4816#include <assert.h>
4817/* Override any gcc2 internal prototype to avoid an error.  */
4818/* We use char because int might match the return type of a gcc2
4819    builtin and then its argument prototype would still apply.  */
4820char $ac_func();
4821
4822int main() {
4823
4824/* The GNU C library defines this for functions which it implements
4825    to always fail with ENOSYS.  Some functions are actually named
4826    something starting with __ and the normal name is an alias.  */
4827#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4828choke me
4829#else
4830$ac_func();
4831#endif
4832
4833; return 0; }
4834EOF
4835if { (eval echo configure:4836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4836  rm -rf conftest*
4837  eval "ac_cv_func_$ac_func=yes"
4838else
4839  echo "configure: failed program was:" >&5
4840  cat conftest.$ac_ext >&5
4841  rm -rf conftest*
4842  eval "ac_cv_func_$ac_func=no"
4843fi
4844rm -f conftest*
4845fi
4846
4847if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4848  echo "$ac_t""yes" 1>&6
4849    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4850  cat >> confdefs.h <<EOF
4851#define $ac_tr_func 1
4852EOF
4853 
4854else
4855  echo "$ac_t""no" 1>&6
4856fi
4857done
4858
4859
4860   if test "${ac_cv_func_stpcpy+set}" != "set"; then
4861     for ac_func in stpcpy
4862do
4863echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4864echo "configure:4865: checking for $ac_func" >&5
4865if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4866  echo $ac_n "(cached) $ac_c" 1>&6
4867else
4868  cat > conftest.$ac_ext <<EOF
4869#line 4870 "configure"
4870#include "confdefs.h"
4871/* System header to define __stub macros and hopefully few prototypes,
4872    which can conflict with char $ac_func(); below.  */
4873#include <assert.h>
4874/* Override any gcc2 internal prototype to avoid an error.  */
4875/* We use char because int might match the return type of a gcc2
4876    builtin and then its argument prototype would still apply.  */
4877char $ac_func();
4878
4879int main() {
4880
4881/* The GNU C library defines this for functions which it implements
4882    to always fail with ENOSYS.  Some functions are actually named
4883    something starting with __ and the normal name is an alias.  */
4884#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4885choke me
4886#else
4887$ac_func();
4888#endif
4889
4890; return 0; }
4891EOF
4892if { (eval echo configure:4893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4893  rm -rf conftest*
4894  eval "ac_cv_func_$ac_func=yes"
4895else
4896  echo "configure: failed program was:" >&5
4897  cat conftest.$ac_ext >&5
4898  rm -rf conftest*
4899  eval "ac_cv_func_$ac_func=no"
4900fi
4901rm -f conftest*
4902fi
4903
4904if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4905  echo "$ac_t""yes" 1>&6
4906    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4907  cat >> confdefs.h <<EOF
4908#define $ac_tr_func 1
4909EOF
4910 
4911else
4912  echo "$ac_t""no" 1>&6
4913fi
4914done
4915
4916   fi
4917   if test "${ac_cv_func_stpcpy}" = "yes"; then
4918     cat >> confdefs.h <<\EOF
4919#define HAVE_STPCPY 1
4920EOF
4921
4922   fi
4923
4924   if test $ac_cv_header_locale_h = yes; then
4925    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4926echo "configure:4927: checking for LC_MESSAGES" >&5
4927if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4928  echo $ac_n "(cached) $ac_c" 1>&6
4929else
4930  cat > conftest.$ac_ext <<EOF
4931#line 4932 "configure"
4932#include "confdefs.h"
4933#include <locale.h>
4934int main() {
4935return LC_MESSAGES
4936; return 0; }
4937EOF
4938if { (eval echo configure:4939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4939  rm -rf conftest*
4940  am_cv_val_LC_MESSAGES=yes
4941else
4942  echo "configure: failed program was:" >&5
4943  cat conftest.$ac_ext >&5
4944  rm -rf conftest*
4945  am_cv_val_LC_MESSAGES=no
4946fi
4947rm -f conftest*
4948fi
4949
4950echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4951    if test $am_cv_val_LC_MESSAGES = yes; then
4952      cat >> confdefs.h <<\EOF
4953#define HAVE_LC_MESSAGES 1
4954EOF
4955
4956    fi
4957  fi
4958   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
4959echo "configure:4960: checking whether NLS is requested" >&5
4960        # Check whether --enable-nls or --disable-nls was given.
4961if test "${enable_nls+set}" = set; then
4962  enableval="$enable_nls"
4963  USE_NLS=$enableval
4964else
4965  USE_NLS=yes
4966fi
4967
4968    echo "$ac_t""$USE_NLS" 1>&6
4969   
4970
4971    USE_INCLUDED_LIBINTL=no
4972
4973        if test "$USE_NLS" = "yes"; then
4974#      AC_DEFINE(ENABLE_NLS)
4975#      AC_MSG_CHECKING([whether included gettext is requested])
4976#      AC_ARG_WITH(included-gettext,
4977#        [  --with-included-gettext use the GNU gettext library included here],
4978#        nls_cv_force_use_gnu_gettext=$withval,
4979#        nls_cv_force_use_gnu_gettext=no)
4980#      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
4981      nls_cv_force_use_gnu_gettext="no"
4982
4983      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4984      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4985                                        nls_cv_header_intl=
4986        nls_cv_header_libgt=
4987        CATOBJEXT=NONE
4988
4989        ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4990echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4991echo "configure:4992: checking for libintl.h" >&5
4992if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4993  echo $ac_n "(cached) $ac_c" 1>&6
4994else
4995  cat > conftest.$ac_ext <<EOF
4996#line 4997 "configure"
4997#include "confdefs.h"
4998#include <libintl.h>
4999EOF
5000ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5001{ (eval echo configure:5002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5002ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5003if test -z "$ac_err"; then
5004  rm -rf conftest*
5005  eval "ac_cv_header_$ac_safe=yes"
5006else
5007  echo "$ac_err" >&5
5008  echo "configure: failed program was:" >&5
5009  cat conftest.$ac_ext >&5
5010  rm -rf conftest*
5011  eval "ac_cv_header_$ac_safe=no"
5012fi
5013rm -f conftest*
5014fi
5015if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5016  echo "$ac_t""yes" 1>&6
5017  echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
5018echo "configure:5019: checking for gettext in libc" >&5
5019if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
5020  echo $ac_n "(cached) $ac_c" 1>&6
5021else
5022  cat > conftest.$ac_ext <<EOF
5023#line 5024 "configure"
5024#include "confdefs.h"
5025#include <libintl.h>
5026int main() {
5027return (int) gettext ("")
5028; return 0; }
5029EOF
5030if { (eval echo configure:5031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5031  rm -rf conftest*
5032  gt_cv_func_gettext_libc=yes
5033else
5034  echo "configure: failed program was:" >&5
5035  cat conftest.$ac_ext >&5
5036  rm -rf conftest*
5037  gt_cv_func_gettext_libc=no
5038fi
5039rm -f conftest*
5040fi
5041
5042echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
5043
5044           if test "$gt_cv_func_gettext_libc" != "yes"; then
5045             echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
5046echo "configure:5047: checking for bindtextdomain in -lintl" >&5
5047ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
5048if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5049  echo $ac_n "(cached) $ac_c" 1>&6
5050else
5051  ac_save_LIBS="$LIBS"
5052LIBS="-lintl  $LIBS"
5053cat > conftest.$ac_ext <<EOF
5054#line 5055 "configure"
5055#include "confdefs.h"
5056/* Override any gcc2 internal prototype to avoid an error.  */
5057/* We use char because int might match the return type of a gcc2
5058    builtin and then its argument prototype would still apply.  */
5059char bindtextdomain();
5060
5061int main() {
5062bindtextdomain()
5063; return 0; }
5064EOF
5065if { (eval echo configure:5066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5066  rm -rf conftest*
5067  eval "ac_cv_lib_$ac_lib_var=yes"
5068else
5069  echo "configure: failed program was:" >&5
5070  cat conftest.$ac_ext >&5
5071  rm -rf conftest*
5072  eval "ac_cv_lib_$ac_lib_var=no"
5073fi
5074rm -f conftest*
5075LIBS="$ac_save_LIBS"
5076
5077fi
5078if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5079  echo "$ac_t""yes" 1>&6
5080  echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
5081echo "configure:5082: checking for gettext in libintl" >&5
5082if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
5083  echo $ac_n "(cached) $ac_c" 1>&6
5084else
5085  echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
5086echo "configure:5087: checking for gettext in -lintl" >&5
5087ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
5088if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5089  echo $ac_n "(cached) $ac_c" 1>&6
5090else
5091  ac_save_LIBS="$LIBS"
5092LIBS="-lintl  $LIBS"
5093cat > conftest.$ac_ext <<EOF
5094#line 5095 "configure"
5095#include "confdefs.h"
5096/* Override any gcc2 internal prototype to avoid an error.  */
5097/* We use char because int might match the return type of a gcc2
5098    builtin and then its argument prototype would still apply.  */
5099char gettext();
5100
5101int main() {
5102gettext()
5103; return 0; }
5104EOF
5105if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5106  rm -rf conftest*
5107  eval "ac_cv_lib_$ac_lib_var=yes"
5108else
5109  echo "configure: failed program was:" >&5
5110  cat conftest.$ac_ext >&5
5111  rm -rf conftest*
5112  eval "ac_cv_lib_$ac_lib_var=no"
5113fi
5114rm -f conftest*
5115LIBS="$ac_save_LIBS"
5116
5117fi
5118if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5119  echo "$ac_t""yes" 1>&6
5120  gt_cv_func_gettext_libintl=yes
5121else
5122  echo "$ac_t""no" 1>&6
5123gt_cv_func_gettext_libintl=no
5124fi
5125
5126fi
5127
5128echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
5129else
5130  echo "$ac_t""no" 1>&6
5131fi
5132
5133           fi
5134
5135           if test "$gt_cv_func_gettext_libc" = "yes" \
5136              || test "$gt_cv_func_gettext_libintl" = "yes"; then
5137              cat >> confdefs.h <<\EOF
5138#define HAVE_GETTEXT 1
5139EOF
5140
5141              # Extract the first word of "msgfmt", so it can be a program name with args.
5142set dummy msgfmt; ac_word=$2
5143echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5144echo "configure:5145: checking for $ac_word" >&5
5145if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
5146  echo $ac_n "(cached) $ac_c" 1>&6
5147else
5148  case "$MSGFMT" in
5149  /*)
5150  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5151  ;;
5152  *)
5153  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5154  for ac_dir in $PATH; do
5155    test -z "$ac_dir" && ac_dir=.
5156    if test -f $ac_dir/$ac_word; then
5157      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5158        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5159        break
5160      fi
5161    fi
5162  done
5163  IFS="$ac_save_ifs"
5164  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5165  ;;
5166esac
5167fi
5168MSGFMT="$ac_cv_path_MSGFMT"
5169if test -n "$MSGFMT"; then
5170  echo "$ac_t""$MSGFMT" 1>&6
5171else
5172  echo "$ac_t""no" 1>&6
5173fi
5174              if test "$MSGFMT" != "no"; then
5175                for ac_func in dcgettext
5176do
5177echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5178echo "configure:5179: checking for $ac_func" >&5
5179if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5180  echo $ac_n "(cached) $ac_c" 1>&6
5181else
5182  cat > conftest.$ac_ext <<EOF
5183#line 5184 "configure"
5184#include "confdefs.h"
5185/* System header to define __stub macros and hopefully few prototypes,
5186    which can conflict with char $ac_func(); below.  */
5187#include <assert.h>
5188/* Override any gcc2 internal prototype to avoid an error.  */
5189/* We use char because int might match the return type of a gcc2
5190    builtin and then its argument prototype would still apply.  */
5191char $ac_func();
5192
5193int main() {
5194
5195/* The GNU C library defines this for functions which it implements
5196    to always fail with ENOSYS.  Some functions are actually named
5197    something starting with __ and the normal name is an alias.  */
5198#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5199choke me
5200#else
5201$ac_func();
5202#endif
5203
5204; return 0; }
5205EOF
5206if { (eval echo configure:5207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5207  rm -rf conftest*
5208  eval "ac_cv_func_$ac_func=yes"
5209else
5210  echo "configure: failed program was:" >&5
5211  cat conftest.$ac_ext >&5
5212  rm -rf conftest*
5213  eval "ac_cv_func_$ac_func=no"
5214fi
5215rm -f conftest*
5216fi
5217
5218if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5219  echo "$ac_t""yes" 1>&6
5220    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5221  cat >> confdefs.h <<EOF
5222#define $ac_tr_func 1
5223EOF
5224 
5225else
5226  echo "$ac_t""no" 1>&6
5227fi
5228done
5229
5230                # Extract the first word of "gmsgfmt", so it can be a program name with args.
5231set dummy gmsgfmt; ac_word=$2
5232echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5233echo "configure:5234: checking for $ac_word" >&5
5234if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
5235  echo $ac_n "(cached) $ac_c" 1>&6
5236else
5237  case "$GMSGFMT" in
5238  /*)
5239  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5240  ;;
5241  ?:/*)                 
5242  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5243  ;;
5244  *)
5245  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5246  ac_dummy="$PATH"
5247  for ac_dir in $ac_dummy; do
5248    test -z "$ac_dir" && ac_dir=.
5249    if test -f $ac_dir/$ac_word; then
5250      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
5251      break
5252    fi
5253  done
5254  IFS="$ac_save_ifs"
5255  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5256  ;;
5257esac
5258fi
5259GMSGFMT="$ac_cv_path_GMSGFMT"
5260if test -n "$GMSGFMT"; then
5261  echo "$ac_t""$GMSGFMT" 1>&6
5262else
5263  echo "$ac_t""no" 1>&6
5264fi
5265
5266                # Extract the first word of "xgettext", so it can be a program name with args.
5267set dummy xgettext; ac_word=$2
5268echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5269echo "configure:5270: checking for $ac_word" >&5
5270if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
5271  echo $ac_n "(cached) $ac_c" 1>&6
5272else
5273  case "$XGETTEXT" in
5274  /*)
5275  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5276  ;;
5277  *)
5278  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5279  for ac_dir in $PATH; do
5280    test -z "$ac_dir" && ac_dir=.
5281    if test -f $ac_dir/$ac_word; then
5282      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5283        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5284        break
5285      fi
5286    fi
5287  done
5288  IFS="$ac_save_ifs"
5289  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5290  ;;
5291esac
5292fi
5293XGETTEXT="$ac_cv_path_XGETTEXT"
5294if test -n "$XGETTEXT"; then
5295  echo "$ac_t""$XGETTEXT" 1>&6
5296else
5297  echo "$ac_t""no" 1>&6
5298fi
5299
5300                cat > conftest.$ac_ext <<EOF
5301#line 5302 "configure"
5302#include "confdefs.h"
5303
5304int main() {
5305extern int _nl_msg_cat_cntr;
5306                               return _nl_msg_cat_cntr
5307; return 0; }
5308EOF
5309if { (eval echo configure:5310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5310  rm -rf conftest*
5311  CATOBJEXT=.gmo
5312                   DATADIRNAME=share
5313else
5314  echo "configure: failed program was:" >&5
5315  cat conftest.$ac_ext >&5
5316  rm -rf conftest*
5317  CATOBJEXT=.mo
5318                   DATADIRNAME=lib
5319fi
5320rm -f conftest*
5321                INSTOBJEXT=.mo
5322              fi
5323            fi
5324
5325            # Added by Martin Baulig 12/15/98 for libc5 systems
5326            if test "$gt_cv_func_gettext_libc" != "yes" \
5327               && test "$gt_cv_func_gettext_libintl" = "yes"; then
5328               INTLLIBS=-lintl
5329               LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5330            fi
5331       
5332else
5333  echo "$ac_t""no" 1>&6
5334fi
5335
5336
5337        if test "$CATOBJEXT" = "NONE"; then
5338          echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
5339echo "configure:5340: checking whether catgets can be used" >&5
5340          # Check whether --with-catgets or --without-catgets was given.
5341if test "${with_catgets+set}" = set; then
5342  withval="$with_catgets"
5343  nls_cv_use_catgets=$withval
5344else
5345  nls_cv_use_catgets=no
5346fi
5347
5348          echo "$ac_t""$nls_cv_use_catgets" 1>&6
5349
5350          if test "$nls_cv_use_catgets" = "yes"; then
5351                    echo $ac_n "checking for main in -li""... $ac_c" 1>&6
5352echo "configure:5353: checking for main in -li" >&5
5353ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
5354if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5355  echo $ac_n "(cached) $ac_c" 1>&6
5356else
5357  ac_save_LIBS="$LIBS"
5358LIBS="-li  $LIBS"
5359cat > conftest.$ac_ext <<EOF
5360#line 5361 "configure"
5361#include "confdefs.h"
5362
5363int main() {
5364main()
5365; return 0; }
5366EOF
5367if { (eval echo configure:5368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5368  rm -rf conftest*
5369  eval "ac_cv_lib_$ac_lib_var=yes"
5370else
5371  echo "configure: failed program was:" >&5
5372  cat conftest.$ac_ext >&5
5373  rm -rf conftest*
5374  eval "ac_cv_lib_$ac_lib_var=no"
5375fi
5376rm -f conftest*
5377LIBS="$ac_save_LIBS"
5378
5379fi
5380if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5381  echo "$ac_t""yes" 1>&6
5382    ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5383    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5384  cat >> confdefs.h <<EOF
5385#define $ac_tr_lib 1
5386EOF
5387
5388  LIBS="-li $LIBS"
5389
5390else
5391  echo "$ac_t""no" 1>&6
5392fi
5393
5394            echo $ac_n "checking for catgets""... $ac_c" 1>&6
5395echo "configure:5396: checking for catgets" >&5
5396if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
5397  echo $ac_n "(cached) $ac_c" 1>&6
5398else
5399  cat > conftest.$ac_ext <<EOF
5400#line 5401 "configure"
5401#include "confdefs.h"
5402/* System header to define __stub macros and hopefully few prototypes,
5403    which can conflict with char catgets(); below.  */
5404#include <assert.h>
5405/* Override any gcc2 internal prototype to avoid an error.  */
5406/* We use char because int might match the return type of a gcc2
5407    builtin and then its argument prototype would still apply.  */
5408char catgets();
5409
5410int main() {
5411
5412/* The GNU C library defines this for functions which it implements
5413    to always fail with ENOSYS.  Some functions are actually named
5414    something starting with __ and the normal name is an alias.  */
5415#if defined (__stub_catgets) || defined (__stub___catgets)
5416choke me
5417#else
5418catgets();
5419#endif
5420
5421; return 0; }
5422EOF
5423if { (eval echo configure:5424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5424  rm -rf conftest*
5425  eval "ac_cv_func_catgets=yes"
5426else
5427  echo "configure: failed program was:" >&5
5428  cat conftest.$ac_ext >&5
5429  rm -rf conftest*
5430  eval "ac_cv_func_catgets=no"
5431fi
5432rm -f conftest*
5433fi
5434
5435if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
5436  echo "$ac_t""yes" 1>&6
5437  cat >> confdefs.h <<\EOF
5438#define HAVE_CATGETS 1
5439EOF
5440
5441               INTLOBJS="\$(CATOBJS)"
5442               # Extract the first word of "gencat", so it can be a program name with args.
5443set dummy gencat; ac_word=$2
5444echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5445echo "configure:5446: checking for $ac_word" >&5
5446if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
5447  echo $ac_n "(cached) $ac_c" 1>&6
5448else
5449  case "$GENCAT" in
5450  /*)
5451  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
5452  ;;
5453  ?:/*)                 
5454  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
5455  ;;
5456  *)
5457  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5458  ac_dummy="$PATH"
5459  for ac_dir in $ac_dummy; do
5460    test -z "$ac_dir" && ac_dir=.
5461    if test -f $ac_dir/$ac_word; then
5462      ac_cv_path_GENCAT="$ac_dir/$ac_word"
5463      break
5464    fi
5465  done
5466  IFS="$ac_save_ifs"
5467  test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
5468  ;;
5469esac
5470fi
5471GENCAT="$ac_cv_path_GENCAT"
5472if test -n "$GENCAT"; then
5473  echo "$ac_t""$GENCAT" 1>&6
5474else
5475  echo "$ac_t""no" 1>&6
5476fi
5477#              if test "$GENCAT" != "no"; then
5478#                AC_PATH_PROG(GMSGFMT, gmsgfmt, no)
5479#                if test "$GMSGFMT" = "no"; then
5480#                  AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt,
5481#                   [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)
5482#                fi
5483#                AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
5484#                  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
5485#                USE_INCLUDED_LIBINTL=yes
5486#                CATOBJEXT=.cat
5487#                INSTOBJEXT=.cat
5488#                DATADIRNAME=lib
5489#                INTLDEPS='$(top_builddir)/intl/libintl.a'
5490#                INTLLIBS=$INTLDEPS
5491#                LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5492#                nls_cv_header_intl=intl/libintl.h
5493#                nls_cv_header_libgt=intl/libgettext.h
5494#              fi
5495           
5496else
5497  echo "$ac_t""no" 1>&6
5498fi
5499
5500          fi
5501        fi
5502
5503        if test "$CATOBJEXT" = "NONE"; then
5504                          nls_cv_use_gnu_gettext=yes
5505        fi
5506      fi
5507
5508      if test "$nls_cv_use_gnu_gettext" != "yes"; then
5509        cat >> confdefs.h <<\EOF
5510#define ENABLE_NLS 1
5511EOF
5512
5513      else
5514         # Unset this variable since we use the non-zero value as a flag.
5515         CATOBJEXT=
5516#        dnl Mark actions used to generate GNU NLS library.
5517#        INTLOBJS="\$(GETTOBJS)"
5518#        AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
5519#         [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)
5520#        AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
5521#        AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
5522#         [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
5523#        AC_SUBST(MSGFMT)
5524#       USE_INCLUDED_LIBINTL=yes
5525#        CATOBJEXT=.gmo
5526#        INSTOBJEXT=.mo
5527#        DATADIRNAME=share
5528#       INTLDEPS='$(top_builddir)/intl/libintl.a'
5529#       INTLLIBS=$INTLDEPS
5530#       LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5531#        nls_cv_header_intl=intl/libintl.h
5532#        nls_cv_header_libgt=intl/libgettext.h
5533      fi
5534
5535            if test "$XGETTEXT" != ":"; then
5536                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5537          : ;
5538        else
5539          echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
5540          XGETTEXT=":"
5541        fi
5542      fi
5543
5544      # We need to process the po/ directory.
5545      POSUB=po
5546    else
5547      DATADIRNAME=share
5548      nls_cv_header_intl=intl/libintl.h
5549      nls_cv_header_libgt=intl/libgettext.h
5550    fi
5551   
5552   
5553
5554
5555#    # If this is used in GNU gettext we have to set USE_NLS to `yes'
5556#    # because some of the sources are only built for this goal.
5557#    if test "$PACKAGE" = gettext; then
5558#      USE_NLS=yes
5559#      USE_INCLUDED_LIBINTL=yes
5560#    fi
5561
5562                for lang in $ALL_LINGUAS; do
5563      GMOFILES="$GMOFILES $lang.gmo"
5564      POFILES="$POFILES $lang.po"
5565    done
5566
5567       
5568   
5569   
5570   
5571   
5572   
5573   
5574   
5575   
5576   
5577   
5578 
5579
5580   if test "x$CATOBJEXT" != "x"; then
5581     if test "x$ALL_LINGUAS" = "x"; then
5582       LINGUAS=
5583     else
5584       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
5585echo "configure:5586: checking for catalogs to be installed" >&5
5586       NEW_LINGUAS=
5587       if test "x$LINGUAS" = "x"; then
5588           LINGUAS=$ALL_LINGUAS
5589       fi
5590       for lang in $LINGUAS; do
5591         case "$ALL_LINGUAS" in
5592          *\ $lang\ *|$lang\ *|*\ $lang) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5593         esac
5594       done
5595       LINGUAS=$NEW_LINGUAS
5596       echo "$ac_t""$LINGUAS" 1>&6
5597     fi
5598
5599          if test -n "$LINGUAS"; then
5600       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5601     fi
5602   fi
5603
5604            if test $ac_cv_header_locale_h = yes; then
5605     INCLUDE_LOCALE_H="#include <locale.h>"
5606   else
5607     INCLUDE_LOCALE_H="\
5608/* The system does not provide the header <locale.h>.  Take care yourself.  */"
5609   fi
5610   
5611
5612            test -d intl || mkdir intl
5613   if test "$CATOBJEXT" = ".cat"; then
5614     ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
5615echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
5616echo "configure:5617: checking for linux/version.h" >&5
5617if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5618  echo $ac_n "(cached) $ac_c" 1>&6
5619else
5620  cat > conftest.$ac_ext <<EOF
5621#line 5622 "configure"
5622#include "confdefs.h"
5623#include <linux/version.h>
5624EOF
5625ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5626{ (eval echo configure:5627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5627ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5628if test -z "$ac_err"; then
5629  rm -rf conftest*
5630  eval "ac_cv_header_$ac_safe=yes"
5631else
5632  echo "$ac_err" >&5
5633  echo "configure: failed program was:" >&5
5634  cat conftest.$ac_ext >&5
5635  rm -rf conftest*
5636  eval "ac_cv_header_$ac_safe=no"
5637fi
5638rm -f conftest*
5639fi
5640if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5641  echo "$ac_t""yes" 1>&6
5642  msgformat=linux
5643else
5644  echo "$ac_t""no" 1>&6
5645msgformat=xopen
5646fi
5647
5648
5649               sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
5650   fi
5651      sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5652     $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
5653
5654            if test "$PACKAGE" = "gettext"; then
5655     GT_NO="#NO#"
5656     GT_YES=
5657   else
5658     GT_NO=
5659     GT_YES="#YES#"
5660   fi
5661   
5662   
5663
5664            MKINSTALLDIRS=
5665   if test -n "$ac_aux_dir"; then
5666     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5667   fi
5668   if test -z "$MKINSTALLDIRS"; then
5669     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5670   fi
5671   
5672
5673      l=
5674   
5675
5676         test -d po || mkdir po
5677   if test "x$srcdir" != "x."; then
5678     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5679       posrcprefix="$srcdir/"
5680     else
5681       posrcprefix="../$srcdir/"
5682     fi
5683   else
5684     posrcprefix="../"
5685   fi
5686   rm -f po/POTFILES
5687   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5688        < $srcdir/po/POTFILES.in > po/POTFILES
5689 
5690
5691# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5692# for constant arguments.  Useless!
5693echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5694echo "configure:5695: checking for working alloca.h" >&5
5695if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5696  echo $ac_n "(cached) $ac_c" 1>&6
5697else
5698  cat > conftest.$ac_ext <<EOF
5699#line 5700 "configure"
5700#include "confdefs.h"
5701#include <alloca.h>
5702int main() {
5703char *p = alloca(2 * sizeof(int));
5704; return 0; }
5705EOF
5706if { (eval echo configure:5707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5707  rm -rf conftest*
5708  ac_cv_header_alloca_h=yes
5709else
5710  echo "configure: failed program was:" >&5
5711  cat conftest.$ac_ext >&5
5712  rm -rf conftest*
5713  ac_cv_header_alloca_h=no
5714fi
5715rm -f conftest*
5716fi
5717
5718echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5719if test $ac_cv_header_alloca_h = yes; then
5720  cat >> confdefs.h <<\EOF
5721#define HAVE_ALLOCA_H 1
5722EOF
5723
5724fi
5725
5726echo $ac_n "checking for alloca""... $ac_c" 1>&6
5727echo "configure:5728: checking for alloca" >&5
5728if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5729  echo $ac_n "(cached) $ac_c" 1>&6
5730else
5731  cat > conftest.$ac_ext <<EOF
5732#line 5733 "configure"
5733#include "confdefs.h"
5734
5735#ifdef __GNUC__
5736# define alloca __builtin_alloca
5737#else
5738# ifdef _MSC_VER
5739#  include <malloc.h>
5740#  define alloca _alloca
5741# else
5742#  if HAVE_ALLOCA_H
5743#   include <alloca.h>
5744#  else
5745#   ifdef _AIX
5746 #pragma alloca
5747#   else
5748#    ifndef alloca /* predefined by HP cc +Olibcalls */
5749char *alloca ();
5750#    endif
5751#   endif
5752#  endif
5753# endif
5754#endif
5755
5756int main() {
5757char *p = (char *) alloca(1);
5758; return 0; }
5759EOF
5760if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5761  rm -rf conftest*
5762  ac_cv_func_alloca_works=yes
5763else
5764  echo "configure: failed program was:" >&5
5765  cat conftest.$ac_ext >&5
5766  rm -rf conftest*
5767  ac_cv_func_alloca_works=no
5768fi
5769rm -f conftest*
5770fi
5771
5772echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5773if test $ac_cv_func_alloca_works = yes; then
5774  cat >> confdefs.h <<\EOF
5775#define HAVE_ALLOCA 1
5776EOF
5777
5778fi
5779
5780if test $ac_cv_func_alloca_works = no; then
5781  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5782  # that cause trouble.  Some versions do not even contain alloca or
5783  # contain a buggy version.  If you still want to use their alloca,
5784  # use ar to extract alloca.o from them instead of compiling alloca.c.
5785  ALLOCA=alloca.${ac_objext}
5786  cat >> confdefs.h <<\EOF
5787#define C_ALLOCA 1
5788EOF
5789
5790
5791echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5792echo "configure:5793: checking whether alloca needs Cray hooks" >&5
5793if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5794  echo $ac_n "(cached) $ac_c" 1>&6
5795else
5796  cat > conftest.$ac_ext <<EOF
5797#line 5798 "configure"
5798#include "confdefs.h"
5799#if defined(CRAY) && ! defined(CRAY2)
5800webecray
5801#else
5802wenotbecray
5803#endif
5804
5805EOF
5806if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5807  egrep "webecray" >/dev/null 2>&1; then
5808  rm -rf conftest*
5809  ac_cv_os_cray=yes
5810else
5811  rm -rf conftest*
5812  ac_cv_os_cray=no
5813fi
5814rm -f conftest*
5815
5816fi
5817
5818echo "$ac_t""$ac_cv_os_cray" 1>&6
5819if test $ac_cv_os_cray = yes; then
5820for ac_func in _getb67 GETB67 getb67; do
5821  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5822echo "configure:5823: checking for $ac_func" >&5
5823if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5824  echo $ac_n "(cached) $ac_c" 1>&6
5825else
5826  cat > conftest.$ac_ext <<EOF
5827#line 5828 "configure"
5828#include "confdefs.h"
5829/* System header to define __stub macros and hopefully few prototypes,
5830    which can conflict with char $ac_func(); below.  */
5831#include <assert.h>
5832/* Override any gcc2 internal prototype to avoid an error.  */
5833/* We use char because int might match the return type of a gcc2
5834    builtin and then its argument prototype would still apply.  */
5835char $ac_func();
5836
5837int main() {
5838
5839/* The GNU C library defines this for functions which it implements
5840    to always fail with ENOSYS.  Some functions are actually named
5841    something starting with __ and the normal name is an alias.  */
5842#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5843choke me
5844#else
5845$ac_func();
5846#endif
5847
5848; return 0; }
5849EOF
5850if { (eval echo configure:5851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5851  rm -rf conftest*
5852  eval "ac_cv_func_$ac_func=yes"
5853else
5854  echo "configure: failed program was:" >&5
5855  cat conftest.$ac_ext >&5
5856  rm -rf conftest*
5857  eval "ac_cv_func_$ac_func=no"
5858fi
5859rm -f conftest*
5860fi
5861
5862if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5863  echo "$ac_t""yes" 1>&6
5864  cat >> confdefs.h <<EOF
5865#define CRAY_STACKSEG_END $ac_func
5866EOF
5867
5868  break
5869else
5870  echo "$ac_t""no" 1>&6
5871fi
5872
5873done
5874fi
5875
5876echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5877echo "configure:5878: checking stack direction for C alloca" >&5
5878if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5879  echo $ac_n "(cached) $ac_c" 1>&6
5880else
5881  if test "$cross_compiling" = yes; then
5882  ac_cv_c_stack_direction=0
5883else
5884  cat > conftest.$ac_ext <<EOF
5885#line 5886 "configure"
5886#include "confdefs.h"
5887find_stack_direction ()
5888{
5889  static char *addr = 0;
5890  auto char dummy;
5891  if (addr == 0)
5892    {
5893      addr = &dummy;
5894      return find_stack_direction ();
5895    }
5896  else
5897    return (&dummy > addr) ? 1 : -1;
5898}
5899main ()
5900{
5901  exit (find_stack_direction() < 0);
5902}
5903EOF
5904if { (eval echo configure:5905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5905then
5906  ac_cv_c_stack_direction=1
5907else
5908  echo "configure: failed program was:" >&5
5909  cat conftest.$ac_ext >&5
5910  rm -fr conftest*
5911  ac_cv_c_stack_direction=-1
5912fi
5913rm -fr conftest*
5914fi
5915
5916fi
5917
5918echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5919cat >> confdefs.h <<EOF
5920#define STACK_DIRECTION $ac_cv_c_stack_direction
5921EOF
5922
5923fi
5924
5925for ac_func in getdtablesize open64 lseek64 statvfs
5926do
5927echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5928echo "configure:5929: checking for $ac_func" >&5
5929if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5930  echo $ac_n "(cached) $ac_c" 1>&6
5931else
5932  cat > conftest.$ac_ext <<EOF
5933#line 5934 "configure"
5934#include "confdefs.h"
5935/* System header to define __stub macros and hopefully few prototypes,
5936    which can conflict with char $ac_func(); below.  */
5937#include <assert.h>
5938/* Override any gcc2 internal prototype to avoid an error.  */
5939/* We use char because int might match the return type of a gcc2
5940    builtin and then its argument prototype would still apply.  */
5941char $ac_func();
5942
5943int main() {
5944
5945/* The GNU C library defines this for functions which it implements
5946    to always fail with ENOSYS.  Some functions are actually named
5947    something starting with __ and the normal name is an alias.  */
5948#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5949choke me
5950#else
5951$ac_func();
5952#endif
5953
5954; return 0; }
5955EOF
5956if { (eval echo configure:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5957  rm -rf conftest*
5958  eval "ac_cv_func_$ac_func=yes"
5959else
5960  echo "configure: failed program was:" >&5
5961  cat conftest.$ac_ext >&5
5962  rm -rf conftest*
5963  eval "ac_cv_func_$ac_func=no"
5964fi
5965rm -f conftest*
5966fi
5967
5968if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5969  echo "$ac_t""yes" 1>&6
5970    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5971  cat >> confdefs.h <<EOF
5972#define $ac_tr_func 1
5973EOF
5974 
5975else
5976  echo "$ac_t""no" 1>&6
5977fi
5978done
5979
5980for ac_func in getdelim
5981do
5982echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5983echo "configure:5984: checking for $ac_func" >&5
5984if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5985  echo $ac_n "(cached) $ac_c" 1>&6
5986else
5987  cat > conftest.$ac_ext <<EOF
5988#line 5989 "configure"
5989#include "confdefs.h"
5990/* System header to define __stub macros and hopefully few prototypes,
5991    which can conflict with char $ac_func(); below.  */
5992#include <assert.h>
5993/* Override any gcc2 internal prototype to avoid an error.  */
5994/* We use char because int might match the return type of a gcc2
5995    builtin and then its argument prototype would still apply.  */
5996char $ac_func();
5997
5998int main() {
5999
6000/* The GNU C library defines this for functions which it implements
6001    to always fail with ENOSYS.  Some functions are actually named
6002    something starting with __ and the normal name is an alias.  */
6003#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6004choke me
6005#else
6006$ac_func();
6007#endif
6008
6009; return 0; }
6010EOF
6011if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6012  rm -rf conftest*
6013  eval "ac_cv_func_$ac_func=yes"
6014else
6015  echo "configure: failed program was:" >&5
6016  cat conftest.$ac_ext >&5
6017  rm -rf conftest*
6018  eval "ac_cv_func_$ac_func=no"
6019fi
6020rm -f conftest*
6021fi
6022
6023if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6024  echo "$ac_t""yes" 1>&6
6025    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6026  cat >> confdefs.h <<EOF
6027#define $ac_tr_func 1
6028EOF
6029 
6030else
6031  echo "$ac_t""no" 1>&6
6032LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
6033fi
6034done
6035
6036
6037
6038echo $ac_n "checking size of int""... $ac_c" 1>&6
6039echo "configure:6040: checking size of int" >&5
6040if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
6041  echo $ac_n "(cached) $ac_c" 1>&6
6042else
6043  if test "$cross_compiling" = yes; then
6044    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
6045else
6046  cat > conftest.$ac_ext <<EOF
6047#line 6048 "configure"
6048#include "confdefs.h"
6049#include <stdio.h>
6050main()
6051{
6052  FILE *f=fopen("conftestval", "w");
6053  if (!f) exit(1);
6054  fprintf(f, "%d\n", sizeof(int));
6055  exit(0);
6056}
6057EOF
6058if { (eval echo configure:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6059then
6060  ac_cv_sizeof_int=`cat conftestval`
6061else
6062  echo "configure: failed program was:" >&5
6063  cat conftest.$ac_ext >&5
6064  rm -fr conftest*
6065  ac_cv_sizeof_int=0
6066fi
6067rm -fr conftest*
6068fi
6069
6070fi
6071echo "$ac_t""$ac_cv_sizeof_int" 1>&6
6072cat >> confdefs.h <<EOF
6073#define SIZEOF_INT $ac_cv_sizeof_int
6074EOF
6075
6076
6077echo $ac_n "checking size of long""... $ac_c" 1>&6
6078echo "configure:6079: checking size of long" >&5
6079if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
6080  echo $ac_n "(cached) $ac_c" 1>&6
6081else
6082  if test "$cross_compiling" = yes; then
6083    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
6084else
6085  cat > conftest.$ac_ext <<EOF
6086#line 6087 "configure"
6087#include "confdefs.h"
6088#include <stdio.h>
6089main()
6090{
6091  FILE *f=fopen("conftestval", "w");
6092  if (!f) exit(1);
6093  fprintf(f, "%d\n", sizeof(long));
6094  exit(0);
6095}
6096EOF
6097if { (eval echo configure:6098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6098then
6099  ac_cv_sizeof_long=`cat conftestval`
6100else
6101  echo "configure: failed program was:" >&5
6102  cat conftest.$ac_ext >&5
6103  rm -fr conftest*
6104  ac_cv_sizeof_long=0
6105fi
6106rm -fr conftest*
6107fi
6108
6109fi
6110echo "$ac_t""$ac_cv_sizeof_long" 1>&6
6111cat >> confdefs.h <<EOF
6112#define SIZEOF_LONG $ac_cv_sizeof_long
6113EOF
6114
6115
6116echo $ac_n "checking size of long long""... $ac_c" 1>&6
6117echo "configure:6118: checking size of long long" >&5
6118if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6119  echo $ac_n "(cached) $ac_c" 1>&6
6120else
6121  if test "$cross_compiling" = yes; then
6122    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
6123else
6124  cat > conftest.$ac_ext <<EOF
6125#line 6126 "configure"
6126#include "confdefs.h"
6127#include <stdio.h>
6128main()
6129{
6130  FILE *f=fopen("conftestval", "w");
6131  if (!f) exit(1);
6132  fprintf(f, "%d\n", sizeof(long long));
6133  exit(0);
6134}
6135EOF
6136if { (eval echo configure:6137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6137then
6138  ac_cv_sizeof_long_long=`cat conftestval`
6139else
6140  echo "configure: failed program was:" >&5
6141  cat conftest.$ac_ext >&5
6142  rm -fr conftest*
6143  ac_cv_sizeof_long_long=0
6144fi
6145rm -fr conftest*
6146fi
6147
6148fi
6149echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6150cat >> confdefs.h <<EOF
6151#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6152EOF
6153
6154
6155
6156VFS_SIZE="unsigned long"
6157VFS_OFFSET="long"
6158VFS_SIZE_IS="UNSIGNED_LONG"
6159VFS_OFFSET_IS="LONG"
6160VFS_SIZE_PRINTF="lu"
6161VFS_OFFSET_PRINTF="ld"
6162
6163case 8 in
6164$ac_cv_sizeof_int)
6165  VFS_SIZE="unsigned int"
6166  VFS_OFFSET="int"
6167  VFS_SIZE_IS="UNSIGNED_INT"
6168  VFS_OFFSET_IS="INT"
6169  VFS_SIZE_PRINTF="u"
6170  VFS_OFFSET_PRINTF="d"
6171  ;;
6172$ac_cv_sizeof_long)
6173  # Nothing happens here, we are already using a long
6174  ;;
6175$ac_cv_sizeof_long_long)
6176  VFS_SIZE="unsigned long long"
6177  VFS_OFFSET="long long"
6178  VFS_SIZE_IS="UNSIGNED_LONG_LONG"
6179  VFS_OFFSET_IS="LONG_LONG"
6180  VFS_SIZE_PRINTF="Lu"
6181  VFS_OFFSET_PRINTF="Ld"
6182  ;;
6183esac
6184
6185
6186
6187
6188
6189
6190
6191
6192for ac_hdr in sys/resource.h sys/vfs.h sys/mount.h sys/statvfs.h
6193do
6194ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6195echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6196echo "configure:6197: checking for $ac_hdr" >&5
6197if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6198  echo $ac_n "(cached) $ac_c" 1>&6
6199else
6200  cat > conftest.$ac_ext <<EOF
6201#line 6202 "configure"
6202#include "confdefs.h"
6203#include <$ac_hdr>
6204EOF
6205ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6206{ (eval echo configure:6207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6207ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6208if test -z "$ac_err"; then
6209  rm -rf conftest*
6210  eval "ac_cv_header_$ac_safe=yes"
6211else
6212  echo "$ac_err" >&5
6213  echo "configure: failed program was:" >&5
6214  cat conftest.$ac_ext >&5
6215  rm -rf conftest*
6216  eval "ac_cv_header_$ac_safe=no"
6217fi
6218rm -f conftest*
6219fi
6220if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6221  echo "$ac_t""yes" 1>&6
6222    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6223  cat >> confdefs.h <<EOF
6224#define $ac_tr_hdr 1
6225EOF
6226 
6227else
6228  echo "$ac_t""no" 1>&6
6229fi
6230done
6231
6232
6233
6234# Check whether --enable-more-warnings or --disable-more-warnings was given.
6235if test "${enable_more_warnings+set}" = set; then
6236  enableval="$enable_more_warnings"
6237  set_more_warnings="$enableval"
6238else
6239 
6240if test -f $srcdir/CVSVERSION; then
6241        set_more_warnings=yes
6242else
6243        set_more_warnings=no
6244fi
6245
6246fi
6247
6248
6249WERROR=""
6250if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
6251        echo "enable compile warnings = $set_more_warnings"
6252        VFS_CFLAGS="-Wall \
6253        -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
6254        -Wnested-externs -Wpointer-arith"
6255        WERROR="-Werror"
6256
6257        for option in -Wsign-promo -Wno-sign-compare; do
6258                SAVE_CFLAGS="$CFLAGS"
6259                CFLAGS="$VFS_CFLAGS $option $CFLAGS"
6260                echo $ac_n "checking whether gcc understands $option""... $ac_c" 1>&6
6261echo "configure:6262: checking whether gcc understands $option" >&5
6262                cat > conftest.$ac_ext <<EOF
6263#line 6264 "configure"
6264#include "confdefs.h"
6265
6266int main() {
6267
6268; return 0; }
6269EOF
6270if { (eval echo configure:6271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6271  rm -rf conftest*
6272  has_option=yes
6273else
6274  echo "configure: failed program was:" >&5
6275  cat conftest.$ac_ext >&5
6276  rm -rf conftest*
6277  has_option=no
6278fi
6279rm -f conftest*
6280                CFLAGS="$SAVE_CFLAGS"
6281                if test $has_option = yes; then
6282                  VFS_CFLAGS="$VFS_CFLAGS $option"
6283                fi
6284                echo "$ac_t""$has_option" 1>&6
6285                unset has_option
6286                unset SAVE_CFLAGS
6287        done
6288        unset option
6289fi
6290
6291
6292
6293using_oaf=no
6294# Extract the first word of "oaf-config", so it can be a program name with args.
6295set dummy oaf-config; ac_word=$2
6296echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6297echo "configure:6298: checking for $ac_word" >&5
6298if eval "test \"`echo '$''{'ac_cv_path_OAF_CONFIG'+set}'`\" = set"; then
6299  echo $ac_n "(cached) $ac_c" 1>&6
6300else
6301  case "$OAF_CONFIG" in
6302  /*)
6303  ac_cv_path_OAF_CONFIG="$OAF_CONFIG" # Let the user override the test with a path.
6304  ;;
6305  ?:/*)                 
6306  ac_cv_path_OAF_CONFIG="$OAF_CONFIG" # Let the user override the test with a dos path.
6307  ;;
6308  *)
6309  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6310  ac_dummy="$PATH"
6311  for ac_dir in $ac_dummy; do
6312    test -z "$ac_dir" && ac_dir=.
6313    if test -f $ac_dir/$ac_word; then
6314      ac_cv_path_OAF_CONFIG="$ac_dir/$ac_word"
6315      break
6316    fi
6317  done
6318  IFS="$ac_save_ifs"
6319  test -z "$ac_cv_path_OAF_CONFIG" && ac_cv_path_OAF_CONFIG="no"
6320  ;;
6321esac
6322fi
6323OAF_CONFIG="$ac_cv_path_OAF_CONFIG"
6324if test -n "$OAF_CONFIG"; then
6325  echo "$ac_t""$OAF_CONFIG" 1>&6
6326else
6327  echo "$ac_t""no" 1>&6
6328fi
6329
6330if test x$OAF_CONFIG = xno; then
6331        echo "$ac_t"""The program oaf-config was not found"" 1>&6
6332        OAF_LIBS=""
6333        OAF_CFLAGS=""
6334else
6335       
6336        ez_want_version=$OAF_REQUIRED
6337
6338        case ">=" in
6339                ">")    ez_operator=-gt ;;
6340                ">=")   ez_operator=-ge ;;
6341                "<")    ez_operator=-lt ;;
6342                "<=")   ez_operator=-le ;;
6343                "=")    ez_operator=-eq ;;
6344                "!=")   ez_operator=-ne ;;
6345                *)      { echo "configure: error: Unknown operator >= in configure script" 1>&2; exit 1; } ;;
6346        esac
6347
6348        echo $ac_n "checking for oaf >= $ez_want_version""... $ac_c" 1>&6
6349echo "configure:6350: checking for oaf >= $ez_want_version" >&5
6350
6351        if ez_installed_version="`$OAF_CONFIG --version`"
6352        then
6353                echo "$ac_t""$ez_installed_version" 1>&6
6354        else
6355                { echo "configure: error: $OAF_CONFIG --version failed" 1>&2; exit 1; }
6356        fi
6357
6358        if test "`
6359
6360                                                               
6361        echo "$ez_installed_version" |
6362        tr . '\012' |
6363        sed -e 's/^/000/' -e 's/^.*\(...\)/\1/' |
6364        tr -d '\012' |
6365        sed 's/$/000000000/
6366             s/^\(.........\).*/\1/'
6367`" "$ez_operator" \
6368                "`
6369
6370                                                               
6371        echo "$ez_want_version" |
6372        tr . '\012' |
6373        sed -e 's/^/000/' -e 's/^.*\(...\)/\1/' |
6374        tr -d '\012' |
6375        sed 's/$/000000000/
6376             s/^\(.........\).*/\1/'
6377`"
6378        then
6379                :
6380               
6381        else
6382                { echo "configure: error: oaf version $ez_want_version is required." 1>&2; exit 1; }
6383        fi
6384
6385        using_oaf=yes
6386        cat >> confdefs.h <<\EOF
6387#define USING_OAF 1
6388EOF
6389
6390        OAF_LIBS=`$OAF_CONFIG --libs`
6391        OAF_CFLAGS=`$OAF_CONFIG --cflags`
6392fi
6393
6394
6395if test x"$using_oaf" = "xyes"; then
6396  USING_OAF_TRUE=
6397  USING_OAF_FALSE='#'
6398else
6399  USING_OAF_TRUE='#'
6400  USING_OAF_FALSE=
6401fi
6402
6403
6404
6405GNOME_VFS_DIR=`(cd $srcdir; pwd)`
6406
6407
6408
6409
6410if false; then
6411  INSIDE_GNOME_DOCU_TRUE=
6412  INSIDE_GNOME_DOCU_FALSE='#'
6413else
6414  INSIDE_GNOME_DOCU_TRUE='#'
6415  INSIDE_GNOME_DOCU_FALSE=
6416fi
6417
6418VFSCORBA_LIBDIR='-L$$ATHTOOLROOT${libdir}'
6419VFSCORBA_INCLUDEDIR='-I$$ATHTOOLROOT${includedir} -I$$ATHTOOLROOT${libdir}/vfs/include'
6420VFSCORBA_INCLUDEDIR="$VFSCORBA_INCLUDEDIR $VFS_GNOMEUI_CFLAGS \`orbit-config --cflags server\`"
6421VFSCORBA_LIBS="-lgnomevfs -lgnomevfs-corba $VFS_GNOMEUI_LIBS \`orbit-config --libs server\`"
6422
6423
6424
6425
6426VFSPTHREAD_LIBDIR='-L$$ATHTOOLROOT${libdir}'
6427VFSPTHREAD_INCLUDEDIR='-I$$ATHTOOLROOT${includedir} -I$$ATHTOOLROOT${libdir}/vfs/include'
6428VFSPTHREAD_INCLUDEDIR="$VFSPTHREAD_INCLUDEDIR $VFS_GNOME_CFLAGS"
6429VFSPTHREAD_LIBS="-lgnomevfs -lgnomevfs-pthread $VFS_GNOME_LIBS \`$VFS_GLIB_CONFIG --libs gthread\`"
6430
6431
6432
6433
6434if test -z "$default_backend"; then
6435        default_backend="pthread"
6436fi
6437cat >> confdefs.h <<EOF
6438#define GNOME_VFS_DEFAULT_BACKEND "$default_backend"
6439EOF
6440
6441
6442VFS_LIBS="-lgnomevfs \`$VFS_GLIB_CONFIG --libs gthread gmodule\`"
6443VFS_LIBDIR='-L$$ATHTOOLROOT${libdir}'
6444VFS_INCLUDEDIR='-I$$ATHTOOLROOT${includedir} -I$$ATHTOOLROOT${libdir}/vfs/include'" \`$VFS_GLIB_CONFIG --cflags gthread gmodule\`"
6445
6446
6447
6448
6449
6450
6451# Extract the first word of "xml-config", so it can be a program name with args.
6452set dummy xml-config; ac_word=$2
6453echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6454echo "configure:6455: checking for $ac_word" >&5
6455if eval "test \"`echo '$''{'ac_cv_path_XML_CONFIG'+set}'`\" = set"; then
6456  echo $ac_n "(cached) $ac_c" 1>&6
6457else
6458  case "$XML_CONFIG" in
6459  /*)
6460  ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
6461  ;;
6462  ?:/*)                 
6463  ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a dos path.
6464  ;;
6465  *)
6466  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6467  ac_dummy="$PATH"
6468  for ac_dir in $ac_dummy; do
6469    test -z "$ac_dir" && ac_dir=.
6470    if test -f $ac_dir/$ac_word; then
6471      ac_cv_path_XML_CONFIG="$ac_dir/$ac_word"
6472      break
6473    fi
6474  done
6475  IFS="$ac_save_ifs"
6476  test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
6477  ;;
6478esac
6479fi
6480XML_CONFIG="$ac_cv_path_XML_CONFIG"
6481if test -n "$XML_CONFIG"; then
6482  echo "$ac_t""$XML_CONFIG" 1>&6
6483else
6484  echo "$ac_t""no" 1>&6
6485fi
6486
6487if test x$XML_CONFIG = "xno"; then
6488  { echo "configure: error: Couldn't find xml-config please install the gnome-xml package" 1>&2; exit 1; }
6489fi
6490XML_LIBS=`$XML_CONFIG --libs`
6491XML_CFLAGS=`$XML_CONFIG --cflags`
6492
6493
6494
6495
6496# Check whether --with-gconf-prefix or --without-gconf-prefix was given.
6497if test "${with_gconf_prefix+set}" = set; then
6498  withval="$with_gconf_prefix"
6499  gconf_config_prefix="$withval"
6500else
6501  gconf_config_prefix=""
6502fi
6503
6504# Check whether --with-gconf-exec-prefix or --without-gconf-exec-prefix was given.
6505if test "${with_gconf_exec_prefix+set}" = set; then
6506  withval="$with_gconf_exec_prefix"
6507  gconf_config_exec_prefix="$withval"
6508else
6509  gconf_config_exec_prefix=""
6510fi
6511
6512# Check whether --enable-gconftest or --disable-gconftest was given.
6513if test "${enable_gconftest+set}" = set; then
6514  enableval="$enable_gconftest"
6515  :
6516else
6517  enable_gconftest=yes
6518fi
6519
6520
6521  gconf_config_args="$gconf_config_args"
6522
6523  if test x$gconf_config_exec_prefix != x ; then
6524     gconf_config_args="$gconf_config_args --exec-prefix=$gconf_config_exec_prefix"
6525     if test x${GCONF_CONFIG+set} != xset ; then
6526        GCONF_CONFIG=$gconf_config_exec_prefix/bin/gconf-config
6527     fi
6528  fi
6529  if test x$gconf_config_prefix != x ; then
6530     gconf_config_args="$gconf_config_args --prefix=$gconf_config_prefix"
6531     if test x${GCONF_CONFIG+set} != xset ; then
6532        GCONF_CONFIG=$gconf_config_prefix/bin/gconf-config
6533     fi
6534  fi
6535
6536  # Extract the first word of "gconf-config", so it can be a program name with args.
6537set dummy gconf-config; ac_word=$2
6538echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6539echo "configure:6540: checking for $ac_word" >&5
6540if eval "test \"`echo '$''{'ac_cv_path_GCONF_CONFIG'+set}'`\" = set"; then
6541  echo $ac_n "(cached) $ac_c" 1>&6
6542else
6543  case "$GCONF_CONFIG" in
6544  /*)
6545  ac_cv_path_GCONF_CONFIG="$GCONF_CONFIG" # Let the user override the test with a path.
6546  ;;
6547  ?:/*)                 
6548  ac_cv_path_GCONF_CONFIG="$GCONF_CONFIG" # Let the user override the test with a dos path.
6549  ;;
6550  *)
6551  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6552  ac_dummy="$PATH"
6553  for ac_dir in $ac_dummy; do
6554    test -z "$ac_dir" && ac_dir=.
6555    if test -f $ac_dir/$ac_word; then
6556      ac_cv_path_GCONF_CONFIG="$ac_dir/$ac_word"
6557      break
6558    fi
6559  done
6560  IFS="$ac_save_ifs"
6561  test -z "$ac_cv_path_GCONF_CONFIG" && ac_cv_path_GCONF_CONFIG="no"
6562  ;;
6563esac
6564fi
6565GCONF_CONFIG="$ac_cv_path_GCONF_CONFIG"
6566if test -n "$GCONF_CONFIG"; then
6567  echo "$ac_t""$GCONF_CONFIG" 1>&6
6568else
6569  echo "$ac_t""no" 1>&6
6570fi
6571
6572  min_gconf_version=$GCONF_REQUIRED
6573  echo $ac_n "checking for GCONF - version >= $min_gconf_version""... $ac_c" 1>&6
6574echo "configure:6575: checking for GCONF - version >= $min_gconf_version" >&5
6575  no_gconf=""
6576  if test "$GCONF_CONFIG" = "no" ; then
6577    no_gconf=yes
6578  else
6579    GCONF_CFLAGS="`$GCONF_CONFIG  $gconf_config_args --cflags gconf gconf-gtk`"
6580    GCONF_LIBS="`$GCONF_CONFIG  $gconf_config_args --libs gconf gconf-gtk`"
6581    gconf_config_major_version=`$GCONF_CONFIG $gconf_config_args --version | \
6582           sed -e 's,^[^0-9.]*,,g' -e 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6583    gconf_config_minor_version=`$GCONF_CONFIG $gconf_config_args --version | \
6584           sed -e 's,^[^0-9.]*,,g' -e 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6585    gconf_config_micro_version=`$GCONF_CONFIG $gconf_config_args --version | \
6586           sed -e 's,^[^0-9\.]*,,g' -e 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6587  fi
6588  if test "x$no_gconf" = x ; then
6589     echo "$ac_t""yes" 1>&6
6590     :     
6591  else
6592     echo "$ac_t""no" 1>&6
6593     if test "$GCONF_CONFIG" = "no" ; then
6594       echo "*** The gconf-config script installed by GCONF could not be found"
6595       echo "*** If GCONF was installed in PREFIX, make sure PREFIX/bin is in"
6596       echo "*** your path, or set the GCONF_CONFIG environment variable to the"
6597       echo "*** full path to gconf-config."
6598     else
6599        :
6600     fi
6601     GCONF_CFLAGS=""
6602     GCONF_LIBS=""
6603     :
6604  fi
6605 
6606 
6607  rm -f conf.gconftest
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618if false; then
6619  HAVE_LIBEFS_TRUE=
6620  HAVE_LIBEFS_FALSE='#'
6621else
6622  HAVE_LIBEFS_TRUE='#'
6623  HAVE_LIBEFS_FALSE=
6624fi
6625LIBEFS_LIBS=""
6626LIBEFS_CFLAGS=""
6627
6628
6629
6630
6631
6632echo $ac_n "checking for t_accept in -lnsl""... $ac_c" 1>&6
6633echo "configure:6634: checking for t_accept in -lnsl" >&5
6634ac_lib_var=`echo nsl'_'t_accept | sed 'y%./+-%__p_%'`
6635if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6636  echo $ac_n "(cached) $ac_c" 1>&6
6637else
6638  ac_save_LIBS="$LIBS"
6639LIBS="-lnsl  $LIBS"
6640cat > conftest.$ac_ext <<EOF
6641#line 6642 "configure"
6642#include "confdefs.h"
6643/* Override any gcc2 internal prototype to avoid an error.  */
6644/* We use char because int might match the return type of a gcc2
6645    builtin and then its argument prototype would still apply.  */
6646char t_accept();
6647
6648int main() {
6649t_accept()
6650; return 0; }
6651EOF
6652if { (eval echo configure:6653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6653  rm -rf conftest*
6654  eval "ac_cv_lib_$ac_lib_var=yes"
6655else
6656  echo "configure: failed program was:" >&5
6657  cat conftest.$ac_ext >&5
6658  rm -rf conftest*
6659  eval "ac_cv_lib_$ac_lib_var=no"
6660fi
6661rm -f conftest*
6662LIBS="$ac_save_LIBS"
6663
6664fi
6665if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6666  echo "$ac_t""yes" 1>&6
6667    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6668    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6669  cat >> confdefs.h <<EOF
6670#define $ac_tr_lib 1
6671EOF
6672
6673  LIBS="-lnsl $LIBS"
6674
6675else
6676  echo "$ac_t""no" 1>&6
6677fi
6678
6679echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
6680echo "configure:6681: checking for socket in -lsocket" >&5
6681ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
6682if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6683  echo $ac_n "(cached) $ac_c" 1>&6
6684else
6685  ac_save_LIBS="$LIBS"
6686LIBS="-lsocket  $LIBS"
6687cat > conftest.$ac_ext <<EOF
6688#line 6689 "configure"
6689#include "confdefs.h"
6690/* Override any gcc2 internal prototype to avoid an error.  */
6691/* We use char because int might match the return type of a gcc2
6692    builtin and then its argument prototype would still apply.  */
6693char socket();
6694
6695int main() {
6696socket()
6697; return 0; }
6698EOF
6699if { (eval echo configure:6700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6700  rm -rf conftest*
6701  eval "ac_cv_lib_$ac_lib_var=yes"
6702else
6703  echo "configure: failed program was:" >&5
6704  cat conftest.$ac_ext >&5
6705  rm -rf conftest*
6706  eval "ac_cv_lib_$ac_lib_var=no"
6707fi
6708rm -f conftest*
6709LIBS="$ac_save_LIBS"
6710
6711fi
6712if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6713  echo "$ac_t""yes" 1>&6
6714    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6715    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6716  cat >> confdefs.h <<EOF
6717#define $ac_tr_lib 1
6718EOF
6719
6720  LIBS="-lsocket $LIBS"
6721
6722else
6723  echo "$ac_t""no" 1>&6
6724fi
6725
6726echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6
6727echo "configure:6728: checking for sem_init in -lrt" >&5
6728ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'`
6729if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6730  echo $ac_n "(cached) $ac_c" 1>&6
6731else
6732  ac_save_LIBS="$LIBS"
6733LIBS="-lrt  $LIBS"
6734cat > conftest.$ac_ext <<EOF
6735#line 6736 "configure"
6736#include "confdefs.h"
6737/* Override any gcc2 internal prototype to avoid an error.  */
6738/* We use char because int might match the return type of a gcc2
6739    builtin and then its argument prototype would still apply.  */
6740char sem_init();
6741
6742int main() {
6743sem_init()
6744; return 0; }
6745EOF
6746if { (eval echo configure:6747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6747  rm -rf conftest*
6748  eval "ac_cv_lib_$ac_lib_var=yes"
6749else
6750  echo "configure: failed program was:" >&5
6751  cat conftest.$ac_ext >&5
6752  rm -rf conftest*
6753  eval "ac_cv_lib_$ac_lib_var=no"
6754fi
6755rm -f conftest*
6756LIBS="$ac_save_LIBS"
6757
6758fi
6759if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6760  echo "$ac_t""yes" 1>&6
6761    ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6762    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6763  cat >> confdefs.h <<EOF
6764#define $ac_tr_lib 1
6765EOF
6766
6767  LIBS="-lrt $LIBS"
6768
6769else
6770  echo "$ac_t""no" 1>&6
6771fi
6772
6773
6774have_socket=no
6775for ac_func in socket
6776do
6777echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6778echo "configure:6779: checking for $ac_func" >&5
6779if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6780  echo $ac_n "(cached) $ac_c" 1>&6
6781else
6782  cat > conftest.$ac_ext <<EOF
6783#line 6784 "configure"
6784#include "confdefs.h"
6785/* System header to define __stub macros and hopefully few prototypes,
6786    which can conflict with char $ac_func(); below.  */
6787#include <assert.h>
6788/* Override any gcc2 internal prototype to avoid an error.  */
6789/* We use char because int might match the return type of a gcc2
6790    builtin and then its argument prototype would still apply.  */
6791char $ac_func();
6792
6793int main() {
6794
6795/* The GNU C library defines this for functions which it implements
6796    to always fail with ENOSYS.  Some functions are actually named
6797    something starting with __ and the normal name is an alias.  */
6798#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6799choke me
6800#else
6801$ac_func();
6802#endif
6803
6804; return 0; }
6805EOF
6806if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6807  rm -rf conftest*
6808  eval "ac_cv_func_$ac_func=yes"
6809else
6810  echo "configure: failed program was:" >&5
6811  cat conftest.$ac_ext >&5
6812  rm -rf conftest*
6813  eval "ac_cv_func_$ac_func=no"
6814fi
6815rm -f conftest*
6816fi
6817
6818if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6819  echo "$ac_t""yes" 1>&6
6820    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6821  cat >> confdefs.h <<EOF
6822#define $ac_tr_func 1
6823EOF
6824 have_socket=yes
6825else
6826  echo "$ac_t""no" 1>&6
6827fi
6828done
6829
6830if test $have_socket = no; then
6831  # socket is not in the default libraries.  See if it's in some other.
6832  for lib in bsd socket inet; do
6833    echo $ac_n "checking for socket in -l$lib""... $ac_c" 1>&6
6834echo "configure:6835: checking for socket in -l$lib" >&5
6835ac_lib_var=`echo $lib'_'socket | sed 'y%./+-%__p_%'`
6836if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6837  echo $ac_n "(cached) $ac_c" 1>&6
6838else
6839  ac_save_LIBS="$LIBS"
6840LIBS="-l$lib  $LIBS"
6841cat > conftest.$ac_ext <<EOF
6842#line 6843 "configure"
6843#include "confdefs.h"
6844/* Override any gcc2 internal prototype to avoid an error.  */
6845/* We use char because int might match the return type of a gcc2
6846    builtin and then its argument prototype would still apply.  */
6847char socket();
6848
6849int main() {
6850socket()
6851; return 0; }
6852EOF
6853if { (eval echo configure:6854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6854  rm -rf conftest*
6855  eval "ac_cv_lib_$ac_lib_var=yes"
6856else
6857  echo "configure: failed program was:" >&5
6858  cat conftest.$ac_ext >&5
6859  rm -rf conftest*
6860  eval "ac_cv_lib_$ac_lib_var=no"
6861fi
6862rm -f conftest*
6863LIBS="$ac_save_LIBS"
6864
6865fi
6866if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6867  echo "$ac_t""yes" 1>&6
6868 
6869          LIBS="$LIBS -l$lib"
6870          have_socket=yes
6871          cat >> confdefs.h <<\EOF
6872#define HAVE_SOCKET 1
6873EOF
6874
6875          break
6876else
6877  echo "$ac_t""no" 1>&6
6878fi
6879
6880  done
6881fi
6882
6883have_gethostbyname=no
6884echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6885echo "configure:6886: checking for gethostbyname" >&5
6886if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6887  echo $ac_n "(cached) $ac_c" 1>&6
6888else
6889  cat > conftest.$ac_ext <<EOF
6890#line 6891 "configure"
6891#include "confdefs.h"
6892/* System header to define __stub macros and hopefully few prototypes,
6893    which can conflict with char gethostbyname(); below.  */
6894#include <assert.h>
6895/* Override any gcc2 internal prototype to avoid an error.  */
6896/* We use char because int might match the return type of a gcc2
6897    builtin and then its argument prototype would still apply.  */
6898char gethostbyname();
6899
6900int main() {
6901
6902/* The GNU C library defines this for functions which it implements
6903    to always fail with ENOSYS.  Some functions are actually named
6904    something starting with __ and the normal name is an alias.  */
6905#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6906choke me
6907#else
6908gethostbyname();
6909#endif
6910
6911; return 0; }
6912EOF
6913if { (eval echo configure:6914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6914  rm -rf conftest*
6915  eval "ac_cv_func_gethostbyname=yes"
6916else
6917  echo "configure: failed program was:" >&5
6918  cat conftest.$ac_ext >&5
6919  rm -rf conftest*
6920  eval "ac_cv_func_gethostbyname=no"
6921fi
6922rm -f conftest*
6923fi
6924
6925if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6926  echo "$ac_t""yes" 1>&6
6927  have_gethostbyname=yes
6928else
6929  echo "$ac_t""no" 1>&6
6930fi
6931
6932if test $have_gethostbyname = no; then
6933  # gethostbyname is not in the default libraries.  See if it's in some other.
6934  for lib in bsd socket inet; do
6935    echo $ac_n "checking for gethostbyname in -l$lib""... $ac_c" 1>&6
6936echo "configure:6937: checking for gethostbyname in -l$lib" >&5
6937ac_lib_var=`echo $lib'_'gethostbyname | sed 'y%./+-%__p_%'`
6938if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6939  echo $ac_n "(cached) $ac_c" 1>&6
6940else
6941  ac_save_LIBS="$LIBS"
6942LIBS="-l$lib  $LIBS"
6943cat > conftest.$ac_ext <<EOF
6944#line 6945 "configure"
6945#include "confdefs.h"
6946/* Override any gcc2 internal prototype to avoid an error.  */
6947/* We use char because int might match the return type of a gcc2
6948    builtin and then its argument prototype would still apply.  */
6949char gethostbyname();
6950
6951int main() {
6952gethostbyname()
6953; return 0; }
6954EOF
6955if { (eval echo configure:6956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6956  rm -rf conftest*
6957  eval "ac_cv_lib_$ac_lib_var=yes"
6958else
6959  echo "configure: failed program was:" >&5
6960  cat conftest.$ac_ext >&5
6961  rm -rf conftest*
6962  eval "ac_cv_lib_$ac_lib_var=no"
6963fi
6964rm -f conftest*
6965LIBS="$ac_save_LIBS"
6966
6967fi
6968if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6969  echo "$ac_t""yes" 1>&6
6970  LIBS="$LIBS -l$lib"; have_gethostbyname=yes; break
6971else
6972  echo "$ac_t""no" 1>&6
6973fi
6974
6975  done
6976fi
6977
6978echo $ac_n "checking for bzCompressInit in -lbz2""... $ac_c" 1>&6
6979echo "configure:6980: checking for bzCompressInit in -lbz2" >&5
6980ac_lib_var=`echo bz2'_'bzCompressInit | sed 'y%./+-%__p_%'`
6981if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6982  echo $ac_n "(cached) $ac_c" 1>&6
6983else
6984  ac_save_LIBS="$LIBS"
6985LIBS="-lbz2  $LIBS"
6986cat > conftest.$ac_ext <<EOF
6987#line 6988 "configure"
6988#include "confdefs.h"
6989/* Override any gcc2 internal prototype to avoid an error.  */
6990/* We use char because int might match the return type of a gcc2
6991    builtin and then its argument prototype would still apply.  */
6992char bzCompressInit();
6993
6994int main() {
6995bzCompressInit()
6996; return 0; }
6997EOF
6998if { (eval echo configure:6999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6999  rm -rf conftest*
7000  eval "ac_cv_lib_$ac_lib_var=yes"
7001else
7002  echo "configure: failed program was:" >&5
7003  cat conftest.$ac_ext >&5
7004  rm -rf conftest*
7005  eval "ac_cv_lib_$ac_lib_var=no"
7006fi
7007rm -f conftest*
7008LIBS="$ac_save_LIBS"
7009
7010fi
7011if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7012  echo "$ac_t""yes" 1>&6
7013  cat >> confdefs.h <<\EOF
7014#define HAVE_OLDER_BZIP2 1
7015EOF
7016
7017else
7018  echo "$ac_t""no" 1>&6
7019fi
7020
7021
7022if test $have_socket = yes; then
7023   
7024av_struct_linger=no
7025echo $ac_n "checking struct linger is available""... $ac_c" 1>&6
7026echo "configure:7027: checking struct linger is available" >&5
7027if test "$cross_compiling" = yes; then
7028 
7029av_struct_linger=no
7030
7031else
7032  cat > conftest.$ac_ext <<EOF
7033#line 7034 "configure"
7034#include "confdefs.h"
7035
7036#include <sys/types.h>
7037#include <sys/socket.h>
7038
7039struct linger li;
7040
7041main ()
7042{
7043    li.l_onoff = 1;
7044    li.l_linger = 120;
7045    exit (0);
7046}
7047
7048EOF
7049if { (eval echo configure:7050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7050then
7051 
7052cat >> confdefs.h <<\EOF
7053#define HAVE_STRUCT_LINGER 1
7054EOF
7055
7056av_struct_linger=yes
7057
7058else
7059  echo "configure: failed program was:" >&5
7060  cat conftest.$ac_ext >&5
7061  rm -fr conftest*
7062 
7063av_struct_linger=no
7064
7065fi
7066rm -fr conftest*
7067fi
7068
7069echo "$ac_t""$av_struct_linger" 1>&6
7070
7071fi
7072
7073
7074
7075
7076
7077
7078TOP_BUILDDIR="`pwd`"
7079
7080
7081
7082trap '' 1 2 15
7083cat > confcache <<\EOF
7084# This file is a shell script that caches the results of configure
7085# tests run on this system so they can be shared between configure
7086# scripts and configure runs.  It is not useful on other systems.
7087# If it contains results you don't want to keep, you may remove or edit it.
7088#
7089# By default, configure uses ./config.cache as the cache file,
7090# creating it if it does not exist already.  You can give configure
7091# the --cache-file=FILE option to use a different cache file; that is
7092# what configure does when it calls configure scripts in
7093# subdirectories, so they share the cache.
7094# Giving --cache-file=/dev/null disables caching, for debugging configure.
7095# config.status only pays attention to the cache file if you give it the
7096# --recheck option to rerun configure.
7097#
7098EOF
7099# The following way of writing the cache mishandles newlines in values,
7100# but we know of no workaround that is simple, portable, and efficient.
7101# So, don't put newlines in cache variables' values.
7102# Ultrix sh set writes to stderr and can't be redirected directly,
7103# and sets the high bit in the cache file unless we assign to the vars.
7104(set) 2>&1 |
7105  case `(ac_space=' '; set | grep ac_space) 2>&1` in
7106  *ac_space=\ *)
7107    # `set' does not quote correctly, so add quotes (double-quote substitution
7108    # turns \\\\ into \\, and sed turns \\ into \).
7109    sed -n \
7110      -e "s/'/'\\\\''/g" \
7111      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7112    ;;
7113  *)
7114    # `set' quotes correctly as required by POSIX, so do not add quotes.
7115    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7116    ;;
7117  esac >> confcache
7118if cmp -s $cache_file confcache; then
7119  :
7120else
7121  if test -w $cache_file; then
7122    echo "updating cache $cache_file"
7123    cat confcache > $cache_file
7124  else
7125    echo "not updating unwritable cache $cache_file"
7126  fi
7127fi
7128rm -f confcache
7129
7130trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7131
7132test "x$prefix" = xNONE && prefix=$ac_default_prefix
7133# Let make expand exec_prefix.
7134test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7135
7136# Any assignment to VPATH causes Sun make to only execute
7137# the first set of double-colon rules, so remove it if not needed.
7138# If there is a colon in the path, we need to keep it.
7139if test "x$srcdir" = x.; then
7140  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
7141fi
7142
7143trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7144
7145DEFS=-DHAVE_CONFIG_H
7146
7147# Without the "./", some shells look in PATH for config.status.
7148: ${CONFIG_STATUS=./config.status}
7149
7150echo creating $CONFIG_STATUS
7151rm -f $CONFIG_STATUS
7152cat > $CONFIG_STATUS <<EOF
7153#! /bin/sh
7154# Generated automatically by configure.
7155# Run this file to recreate the current configuration.
7156# This directory was configured as follows,
7157# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7158#
7159# $0 $ac_configure_args
7160#
7161# Compiler output produced by configure, useful for debugging
7162# configure, is in ./config.log if it exists.
7163
7164ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7165for ac_option
7166do
7167  case "\$ac_option" in
7168  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7169    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7170    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7171  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7172    echo "$CONFIG_STATUS generated by autoconf version 2.13"
7173    exit 0 ;;
7174  -help | --help | --hel | --he | --h)
7175    echo "\$ac_cs_usage"; exit 0 ;;
7176  *) echo "\$ac_cs_usage"; exit 1 ;;
7177  esac
7178done
7179
7180ac_given_srcdir=$srcdir
7181ac_given_INSTALL="$INSTALL"
7182
7183trap 'rm -fr `echo "
7184Makefile
7185gnome-vfs.spec
7186libgnomevfs/gnome-vfs-file-size.h
7187data/Makefile
7188data/mime/Makefile
7189idl/Makefile
7190intl/Makefile
7191libgnomevfs-corba/Makefile
7192libgnomevfs-pthread/Makefile
7193libgnomevfs/Makefile
7194modules/Makefile
7195modules/extfs/Makefile
7196modules/extfs/ar
7197modules/extfs/cpio
7198modules/extfs/deb
7199modules/extfs/lha
7200modules/extfs/rar
7201modules/extfs/zip
7202modules/extfs/zoo
7203man/Makefile
7204man/gnome-vfs-mime.5
7205devel-docs/Makefile
7206devel-docs/gnome-vfs/Makefile
7207devel-docs/gnome-vfs-tutorial/Makefile
7208po/Makefile.in
7209test/Makefile
7210test/gnome-file-selection/Makefile
7211test/vfs-run
7212macros/Makefile
7213 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7214EOF
7215cat >> $CONFIG_STATUS <<EOF
7216
7217# Protect against being on the right side of a sed subst in config.status.
7218sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7219 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7220$ac_vpsub
7221$extrasub
7222s%@SHELL@%$SHELL%g
7223s%@CFLAGS@%$CFLAGS%g
7224s%@CPPFLAGS@%$CPPFLAGS%g
7225s%@CXXFLAGS@%$CXXFLAGS%g
7226s%@FFLAGS@%$FFLAGS%g
7227s%@DEFS@%$DEFS%g
7228s%@LDFLAGS@%$LDFLAGS%g
7229s%@LIBS@%$LIBS%g
7230s%@exec_prefix@%$exec_prefix%g
7231s%@prefix@%$prefix%g
7232s%@program_transform_name@%$program_transform_name%g
7233s%@bindir@%$bindir%g
7234s%@sbindir@%$sbindir%g
7235s%@libexecdir@%$libexecdir%g
7236s%@datadir@%$datadir%g
7237s%@sysconfdir@%$sysconfdir%g
7238s%@sharedstatedir@%$sharedstatedir%g
7239s%@localstatedir@%$localstatedir%g
7240s%@libdir@%$libdir%g
7241s%@includedir@%$includedir%g
7242s%@oldincludedir@%$oldincludedir%g
7243s%@infodir@%$infodir%g
7244s%@mandir@%$mandir%g
7245s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7246s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7247s%@INSTALL_DATA@%$INSTALL_DATA%g
7248s%@PACKAGE@%$PACKAGE%g
7249s%@VERSION@%$VERSION%g
7250s%@ACLOCAL@%$ACLOCAL%g
7251s%@AUTOCONF@%$AUTOCONF%g
7252s%@AUTOMAKE@%$AUTOMAKE%g
7253s%@AUTOHEADER@%$AUTOHEADER%g
7254s%@MAKEINFO@%$MAKEINFO%g
7255s%@SET_MAKE@%$SET_MAKE%g
7256s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
7257s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
7258s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7259s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7260s%@MAINT@%$MAINT%g
7261s%@XML_I18N_MERGE_OAF_RULE@%$XML_I18N_MERGE_OAF_RULE%g
7262s%@XML_I18N_MERGE_KEYS_RULE@%$XML_I18N_MERGE_KEYS_RULE%g
7263s%@XML_I18N_MERGE_DESKTOP_RULE@%$XML_I18N_MERGE_DESKTOP_RULE%g
7264s%@XML_I18N_EXTRACT@%$XML_I18N_EXTRACT%g
7265s%@XML_I18N_MERGE@%$XML_I18N_MERGE%g
7266s%@XML_I18N_UPDATE@%$XML_I18N_UPDATE%g
7267s%@XML_I18N_TOOLS_PERL@%$XML_I18N_TOOLS_PERL%g
7268s%@CC@%$CC%g
7269s%@AWK@%$AWK%g
7270s%@host@%$host%g
7271s%@host_alias@%$host_alias%g
7272s%@host_cpu@%$host_cpu%g
7273s%@host_vendor@%$host_vendor%g
7274s%@host_os@%$host_os%g
7275s%@build@%$build%g
7276s%@build_alias@%$build_alias%g
7277s%@build_cpu@%$build_cpu%g
7278s%@build_vendor@%$build_vendor%g
7279s%@build_os@%$build_os%g
7280s%@RANLIB@%$RANLIB%g
7281s%@LN_S@%$LN_S%g
7282s%@LIBTOOL@%$LIBTOOL%g
7283s%@GLIB_REQUIRED@%$GLIB_REQUIRED%g
7284s%@GCONF_REQUIRED@%$GCONF_REQUIRED%g
7285s%@ENABLE_PROFILER@%$ENABLE_PROFILER%g
7286s%@ENABLE_PROFILER_TRUE@%$ENABLE_PROFILER_TRUE%g
7287s%@ENABLE_PROFILER_FALSE@%$ENABLE_PROFILER_FALSE%g
7288s%@PLATFORM_GNOME_2_TRUE@%$PLATFORM_GNOME_2_TRUE%g
7289s%@PLATFORM_GNOME_2_FALSE@%$PLATFORM_GNOME_2_FALSE%g
7290s%@GNOME_LIBS@%$GNOME_LIBS%g
7291s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
7292s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
7293s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
7294s%@ZVT_LIBS@%$ZVT_LIBS%g
7295s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
7296s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
7297s%@GNOME_CONFIG@%$GNOME_CONFIG%g
7298s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
7299s%@ORBIT_IDL@%$ORBIT_IDL%g
7300s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
7301s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
7302s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
7303s%@ORBIT_LIBS@%$ORBIT_LIBS%g
7304s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
7305s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
7306s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
7307s%@GNORBA_LIBS@%$GNORBA_LIBS%g
7308s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
7309s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
7310s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
7311s%@VFS_GNOME_CFLAGS@%$VFS_GNOME_CFLAGS%g
7312s%@VFS_GNOMEUI_CFLAGS@%$VFS_GNOMEUI_CFLAGS%g
7313s%@VFS_CAPPLET_CFLAGS@%$VFS_CAPPLET_CFLAGS%g
7314s%@VFS_GNOME_LIBS@%$VFS_GNOME_LIBS%g
7315s%@VFS_GNOMEUI_LIBS@%$VFS_GNOMEUI_LIBS%g
7316s%@VFS_CAPPLET_LIBS@%$VFS_CAPPLET_LIBS%g
7317s%@GTKDOC@%$GTKDOC%g
7318s%@HAVE_GTK_DOC_TRUE@%$HAVE_GTK_DOC_TRUE%g
7319s%@HAVE_GTK_DOC_FALSE@%$HAVE_GTK_DOC_FALSE%g
7320s%@HAVE_GTK_DOC@%$HAVE_GTK_DOC%g
7321s%@ENABLE_GTK_DOC_TRUE@%$ENABLE_GTK_DOC_TRUE%g
7322s%@ENABLE_GTK_DOC_FALSE@%$ENABLE_GTK_DOC_FALSE%g
7323s%@GLIB_CONFIG@%$GLIB_CONFIG%g
7324s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
7325s%@GLIB_LIBS@%$GLIB_LIBS%g
7326s%@GTK_CONFIG@%$GTK_CONFIG%g
7327s%@GTK_CFLAGS@%$GTK_CFLAGS%g
7328s%@GTK_LIBS@%$GTK_LIBS%g
7329s%@cflags_set@%$cflags_set%g
7330s%@LIBOBJS@%$LIBOBJS%g
7331s%@CPP@%$CPP%g
7332s%@need_gnome_support@%$need_gnome_support%g
7333s%@LTLIBOBJS@%$LTLIBOBJS%g
7334s%@BUILD_GNOME_SUPPORT_TRUE@%$BUILD_GNOME_SUPPORT_TRUE%g
7335s%@BUILD_GNOME_SUPPORT_FALSE@%$BUILD_GNOME_SUPPORT_FALSE%g
7336s%@PTHREAD_LIB@%$PTHREAD_LIB%g
7337s%@ALLOCA@%$ALLOCA%g
7338s%@USE_NLS@%$USE_NLS%g
7339s%@MSGFMT@%$MSGFMT%g
7340s%@GMSGFMT@%$GMSGFMT%g
7341s%@XGETTEXT@%$XGETTEXT%g
7342s%@GENCAT@%$GENCAT%g
7343s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7344s%@CATALOGS@%$CATALOGS%g
7345s%@CATOBJEXT@%$CATOBJEXT%g
7346s%@DATADIRNAME@%$DATADIRNAME%g
7347s%@GMOFILES@%$GMOFILES%g
7348s%@INSTOBJEXT@%$INSTOBJEXT%g
7349s%@INTLDEPS@%$INTLDEPS%g
7350s%@INTLLIBS@%$INTLLIBS%g
7351s%@INTLOBJS@%$INTLOBJS%g
7352s%@POFILES@%$POFILES%g
7353s%@POSUB@%$POSUB%g
7354s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7355s%@GT_NO@%$GT_NO%g
7356s%@GT_YES@%$GT_YES%g
7357s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7358s%@l@%$l%g
7359s%@VFS_SIZE@%$VFS_SIZE%g
7360s%@VFS_OFFSET@%$VFS_OFFSET%g
7361s%@VFS_SIZE_IS@%$VFS_SIZE_IS%g
7362s%@VFS_OFFSET_IS@%$VFS_OFFSET_IS%g
7363s%@VFS_SIZE_PRINTF@%$VFS_SIZE_PRINTF%g
7364s%@VFS_OFFSET_PRINTF@%$VFS_OFFSET_PRINTF%g
7365s%@WERROR@%$WERROR%g
7366s%@VFS_CFLAGS@%$VFS_CFLAGS%g
7367s%@OAF_CONFIG@%$OAF_CONFIG%g
7368s%@OAF_REQUIRED@%$OAF_REQUIRED%g
7369s%@USING_OAF_TRUE@%$USING_OAF_TRUE%g
7370s%@USING_OAF_FALSE@%$USING_OAF_FALSE%g
7371s%@OAF_LIBS@%$OAF_LIBS%g
7372s%@OAF_CFLAGS@%$OAF_CFLAGS%g
7373s%@GNOME_VFS_DIR@%$GNOME_VFS_DIR%g
7374s%@INSIDE_GNOME_DOCU_TRUE@%$INSIDE_GNOME_DOCU_TRUE%g
7375s%@INSIDE_GNOME_DOCU_FALSE@%$INSIDE_GNOME_DOCU_FALSE%g
7376s%@VFSCORBA_LIBDIR@%$VFSCORBA_LIBDIR%g
7377s%@VFSCORBA_INCLUDEDIR@%$VFSCORBA_INCLUDEDIR%g
7378s%@VFSCORBA_LIBS@%$VFSCORBA_LIBS%g
7379s%@VFSPTHREAD_LIBDIR@%$VFSPTHREAD_LIBDIR%g
7380s%@VFSPTHREAD_INCLUDEDIR@%$VFSPTHREAD_INCLUDEDIR%g
7381s%@VFSPTHREAD_LIBS@%$VFSPTHREAD_LIBS%g
7382s%@VFS_LIBDIR@%$VFS_LIBDIR%g
7383s%@VFS_INCLUDEDIR@%$VFS_INCLUDEDIR%g
7384s%@VFS_LIBS@%$VFS_LIBS%g
7385s%@XML_CONFIG@%$XML_CONFIG%g
7386s%@XML_LIBS@%$XML_LIBS%g
7387s%@XML_CFLAGS@%$XML_CFLAGS%g
7388s%@GCONF_CONFIG@%$GCONF_CONFIG%g
7389s%@GCONF_CFLAGS@%$GCONF_CFLAGS%g
7390s%@GCONF_LIBS@%$GCONF_LIBS%g
7391s%@HAVE_LIBEFS_TRUE@%$HAVE_LIBEFS_TRUE%g
7392s%@HAVE_LIBEFS_FALSE@%$HAVE_LIBEFS_FALSE%g
7393s%@LIBEFS_LIBS@%$LIBEFS_LIBS%g
7394s%@LIBEFS_CFLAGS@%$LIBEFS_CFLAGS%g
7395s%@TOP_BUILDDIR@%$TOP_BUILDDIR%g
7396
7397CEOF
7398EOF
7399
7400cat >> $CONFIG_STATUS <<\EOF
7401
7402# Split the substitutions into bite-sized pieces for seds with
7403# small command number limits, like on Digital OSF/1 and HP-UX.
7404ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7405ac_file=1 # Number of current file.
7406ac_beg=1 # First line for current file.
7407ac_end=$ac_max_sed_cmds # Line after last line for current file.
7408ac_more_lines=:
7409ac_sed_cmds=""
7410while $ac_more_lines; do
7411  if test $ac_beg -gt 1; then
7412    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7413  else
7414    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7415  fi
7416  if test ! -s conftest.s$ac_file; then
7417    ac_more_lines=false
7418    rm -f conftest.s$ac_file
7419  else
7420    if test -z "$ac_sed_cmds"; then
7421      ac_sed_cmds="sed -f conftest.s$ac_file"
7422    else
7423      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7424    fi
7425    ac_file=`expr $ac_file + 1`
7426    ac_beg=$ac_end
7427    ac_end=`expr $ac_end + $ac_max_sed_cmds`
7428  fi
7429done
7430if test -z "$ac_sed_cmds"; then
7431  ac_sed_cmds=cat
7432fi
7433EOF
7434
7435cat >> $CONFIG_STATUS <<EOF
7436
7437CONFIG_FILES=\${CONFIG_FILES-"Makefile
7438gnome-vfs.spec
7439libgnomevfs/gnome-vfs-file-size.h
7440data/Makefile
7441data/mime/Makefile
7442idl/Makefile
7443intl/Makefile
7444libgnomevfs-corba/Makefile
7445libgnomevfs-pthread/Makefile
7446libgnomevfs/Makefile
7447modules/Makefile
7448modules/extfs/Makefile
7449modules/extfs/ar
7450modules/extfs/cpio
7451modules/extfs/deb
7452modules/extfs/lha
7453modules/extfs/rar
7454modules/extfs/zip
7455modules/extfs/zoo
7456man/Makefile
7457man/gnome-vfs-mime.5
7458devel-docs/Makefile
7459devel-docs/gnome-vfs/Makefile
7460devel-docs/gnome-vfs-tutorial/Makefile
7461po/Makefile.in
7462test/Makefile
7463test/gnome-file-selection/Makefile
7464test/vfs-run
7465macros/Makefile
7466"}
7467EOF
7468cat >> $CONFIG_STATUS <<\EOF
7469for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7470  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7471  case "$ac_file" in
7472  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7473       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7474  *) ac_file_in="${ac_file}.in" ;;
7475  esac
7476
7477  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7478
7479  # Remove last slash and all that follows it.  Not all systems have dirname.
7480  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7481  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7482    # The file is in a subdirectory.
7483    test ! -d "$ac_dir" && mkdir "$ac_dir"
7484    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7485    # A "../" for each directory in $ac_dir_suffix.
7486    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7487  else
7488    ac_dir_suffix= ac_dots=
7489  fi
7490
7491  case "$ac_given_srcdir" in
7492  .)  srcdir=.
7493      if test -z "$ac_dots"; then top_srcdir=.
7494      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7495  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7496  *) # Relative path.
7497    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7498    top_srcdir="$ac_dots$ac_given_srcdir" ;;
7499  esac
7500
7501  case "$ac_given_INSTALL" in
7502  [/$]*) INSTALL="$ac_given_INSTALL" ;;
7503  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7504  esac
7505
7506  echo creating "$ac_file"
7507  rm -f "$ac_file"
7508  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7509  case "$ac_file" in
7510  *Makefile*) ac_comsub="1i\\
7511# $configure_input" ;;
7512  *) ac_comsub= ;;
7513  esac
7514
7515  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7516  sed -e "$ac_comsub
7517s%@configure_input@%$configure_input%g
7518s%@srcdir@%$srcdir%g
7519s%@top_srcdir@%$top_srcdir%g
7520s%@INSTALL@%$INSTALL%g
7521" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7522fi; done
7523rm -f conftest.s*
7524
7525# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7526# NAME is the cpp macro being defined and VALUE is the value it is being given.
7527#
7528# ac_d sets the value in "#define NAME VALUE" lines.
7529ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
7530ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
7531ac_dC='\3'
7532ac_dD='%g'
7533# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7534ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7535ac_uB='\([      ]\)%\1#\2define\3'
7536ac_uC=' '
7537ac_uD='\4%g'
7538# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7539ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7540ac_eB='$%\1#\2define\3'
7541ac_eC=' '
7542ac_eD='%g'
7543
7544if test "${CONFIG_HEADERS+set}" != set; then
7545EOF
7546cat >> $CONFIG_STATUS <<EOF
7547  CONFIG_HEADERS="config.h"
7548EOF
7549cat >> $CONFIG_STATUS <<\EOF
7550fi
7551for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7552  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7553  case "$ac_file" in
7554  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7555       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7556  *) ac_file_in="${ac_file}.in" ;;
7557  esac
7558
7559  echo creating $ac_file
7560
7561  rm -f conftest.frag conftest.in conftest.out
7562  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7563  cat $ac_file_inputs > conftest.in
7564
7565EOF
7566
7567# Transform confdefs.h into a sed script conftest.vals that substitutes
7568# the proper values into config.h.in to produce config.h.  And first:
7569# Protect against being on the right side of a sed subst in config.status.
7570# Protect against being in an unquoted here document in config.status.
7571rm -f conftest.vals
7572cat > conftest.hdr <<\EOF
7573s/[\\&%]/\\&/g
7574s%[\\$`]%\\&%g
7575s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7576s%ac_d%ac_u%gp
7577s%ac_u%ac_e%gp
7578EOF
7579sed -n -f conftest.hdr confdefs.h > conftest.vals
7580rm -f conftest.hdr
7581
7582# This sed command replaces #undef with comments.  This is necessary, for
7583# example, in the case of _POSIX_SOURCE, which is predefined and required
7584# on some systems where configure will not decide to define it.
7585cat >> conftest.vals <<\EOF
7586s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7587EOF
7588
7589# Break up conftest.vals because some shells have a limit on
7590# the size of here documents, and old seds have small limits too.
7591
7592rm -f conftest.tail
7593while :
7594do
7595  ac_lines=`grep -c . conftest.vals`
7596  # grep -c gives empty output for an empty file on some AIX systems.
7597  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7598  # Write a limited-size here document to conftest.frag.
7599  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7600  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7601  echo 'CEOF
7602  sed -f conftest.frag conftest.in > conftest.out
7603  rm -f conftest.in
7604  mv conftest.out conftest.in
7605' >> $CONFIG_STATUS
7606  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7607  rm -f conftest.vals
7608  mv conftest.tail conftest.vals
7609done
7610rm -f conftest.vals
7611
7612cat >> $CONFIG_STATUS <<\EOF
7613  rm -f conftest.frag conftest.h
7614  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
7615  cat conftest.in >> conftest.h
7616  rm -f conftest.in
7617  if cmp -s $ac_file conftest.h 2>/dev/null; then
7618    echo "$ac_file is unchanged"
7619    rm -f conftest.h
7620  else
7621    # Remove last slash and all that follows it.  Not all systems have dirname.
7622      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7623      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7624      # The file is in a subdirectory.
7625      test ! -d "$ac_dir" && mkdir "$ac_dir"
7626    fi
7627    rm -f $ac_file
7628    mv conftest.h $ac_file
7629  fi
7630fi; done
7631
7632EOF
7633
7634cat >> $CONFIG_STATUS <<EOF
7635ac_sources="$nls_cv_header_libgt"
7636ac_dests="$nls_cv_header_intl"
7637EOF
7638
7639cat >> $CONFIG_STATUS <<\EOF
7640srcdir=$ac_given_srcdir
7641while test -n "$ac_sources"; do
7642  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7643  set $ac_sources; ac_source=$1; shift; ac_sources=$*
7644
7645  echo "linking $srcdir/$ac_source to $ac_dest"
7646
7647  if test ! -r $srcdir/$ac_source; then
7648    { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7649  fi
7650  rm -f $ac_dest
7651
7652  # Make relative symlinks.
7653  # Remove last slash and all that follows it.  Not all systems have dirname.
7654  ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7655  if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7656    # The dest file is in a subdirectory.
7657    test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7658    ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7659    # A "../" for each directory in $ac_dest_dir_suffix.
7660    ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7661  else
7662    ac_dest_dir_suffix= ac_dots=
7663  fi
7664
7665  case "$srcdir" in
7666  [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7667  *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7668  esac
7669
7670  # Make a symlink if possible; otherwise try a hard link.
7671  if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7672    ln $srcdir/$ac_source $ac_dest; then :
7673  else
7674    { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7675  fi
7676done
7677EOF
7678cat >> $CONFIG_STATUS <<EOF
7679
7680XML_I18N_TOOLS_PERL=${XML_I18N_TOOLS_PERL}
7681
7682
7683EOF
7684cat >> $CONFIG_STATUS <<\EOF
7685test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7686
7687sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-extract.in > xml-i18n-extract;
7688chmod ugo+x xml-i18n-extract;
7689
7690sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-merge.in > xml-i18n-merge;
7691chmod ugo+x xml-i18n-merge;
7692
7693sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-update.in > xml-i18n-update;
7694chmod ugo+x xml-i18n-update;
7695
7696case "$CONFIG_FILES" in *po/Makefile.in*)
7697        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
7698      esac
7699
7700exit 0
7701EOF
7702chmod +x $CONFIG_STATUS
7703rm -fr confdefs* $ac_clean_files
7704test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7705
7706
7707chmod u+x test/vfs-run
7708
7709
7710echo "<= gnome-vfs configuration summary :"
7711case "X$ENABLE_PROFILER" in
7712X1)
7713echo "
7714Enable profiler         : YES"
7715;;
7716*)
7717echo "
7718Enable profiler         : NO"
7719echo
7720;;
7721esac
7722
7723echo "
7724CFLAGS                  : $CFLAGS
7725LDFLAGS                 : $LDFLAGS"
7726echo
Note: See TracBrowser for help on using the repository browser.