ftp://ftp.redhat.com/pub/redhat/linux/rawhide/SRPMS/SRPMS/gnome-vfs2-2.3.8-1.src.rpm
[gnome-vfs-httpcaptive.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Find the correct PATH separator.  Usually this is `:', but
244 # DJGPP uses `;' like DOS.
245 if test "X${PATH_SEPARATOR+set}" != Xset; then
246   UNAME=${UNAME-`uname 2>/dev/null`}
247   case X$UNAME in
248     *-DOS) lt_cv_sys_path_separator=';' ;;
249     *)     lt_cv_sys_path_separator=':' ;;
250   esac
251   PATH_SEPARATOR=$lt_cv_sys_path_separator
252 fi
253
254
255 # Check that we are running under the correct shell.
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 case X$ECHO in
259 X*--fallback-echo)
260   # Remove one level of quotation (which was required for Make).
261   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262   ;;
263 esac
264
265 echo=${ECHO-echo}
266 if test "X$1" = X--no-reexec; then
267   # Discard the --no-reexec flag, and continue.
268   shift
269 elif test "X$1" = X--fallback-echo; then
270   # Avoid inline document here, it may be left over
271   :
272 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273   # Yippee, $echo works!
274   :
275 else
276   # Restart under the correct shell.
277   exec $SHELL "$0" --no-reexec ${1+"$@"}
278 fi
279
280 if test "X$1" = X--fallback-echo; then
281   # used as fallback echo
282   shift
283   cat <<EOF
284
285 EOF
286   exit 0
287 fi
288
289 # The HP-UX ksh and POSIX shell print the target directory to stdout
290 # if CDPATH is set.
291 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293 if test -z "$ECHO"; then
294 if test "X${echo_test_string+set}" != Xset; then
295 # find a string as large as possible, as long as the shell can cope with it
296   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299        echo_test_string="`eval $cmd`" &&
300        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301     then
302       break
303     fi
304   done
305 fi
306
307 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309    test "X$echo_testing_string" = "X$echo_test_string"; then
310   :
311 else
312   # The Solaris, AIX, and Digital Unix default echo programs unquote
313   # backslashes.  This makes it impossible to quote backslashes using
314   #   echo "$something" | sed 's/\\/\\\\/g'
315   #
316   # So, first we look for a working echo in the user's PATH.
317
318   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319   for dir in $PATH /usr/ucb; do
320     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323        test "X$echo_testing_string" = "X$echo_test_string"; then
324       echo="$dir/echo"
325       break
326     fi
327   done
328   IFS="$save_ifs"
329
330   if test "X$echo" = Xecho; then
331     # We didn't find a better echo, so look for alternatives.
332     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334        test "X$echo_testing_string" = "X$echo_test_string"; then
335       # This shell has a builtin print -r that does the trick.
336       echo='print -r'
337     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338          test "X$CONFIG_SHELL" != X/bin/ksh; then
339       # If we have ksh, try running configure again with it.
340       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341       export ORIGINAL_CONFIG_SHELL
342       CONFIG_SHELL=/bin/ksh
343       export CONFIG_SHELL
344       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345     else
346       # Try using printf.
347       echo='printf %s\n'
348       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350          test "X$echo_testing_string" = "X$echo_test_string"; then
351         # Cool, printf works
352         :
353       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358         export CONFIG_SHELL
359         SHELL="$CONFIG_SHELL"
360         export SHELL
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363            test "X$echo_testing_string" = 'X\t' &&
364            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365            test "X$echo_testing_string" = "X$echo_test_string"; then
366         echo="$CONFIG_SHELL $0 --fallback-echo"
367       else
368         # maybe with a smaller string...
369         prev=:
370
371         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373           then
374             break
375           fi
376           prev="$cmd"
377         done
378
379         if test "$prev" != 'sed 50q "$0"'; then
380           echo_test_string=`eval $prev`
381           export echo_test_string
382           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383         else
384           # Oops.  We lost completely, so just stick with echo.
385           echo=echo
386         fi
387       fi
388     fi
389   fi
390 fi
391 fi
392
393 # Copy echo and quote the copy suitably for passing to libtool from
394 # the Makefile, instead of quoting the original, which is used later.
395 ECHO=$echo
396 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 fi
399
400
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME=
427 PACKAGE_TARNAME=
428 PACKAGE_VERSION=
429 PACKAGE_STRING=
430 PACKAGE_BUGREPORT=
431
432 ac_unique_file="libgnomevfs/gnome-vfs.h"
433 # Factoring default headers for most tests.
434 ac_includes_default="\
435 #include <stdio.h>
436 #if HAVE_SYS_TYPES_H
437 # include <sys/types.h>
438 #endif
439 #if HAVE_SYS_STAT_H
440 # include <sys/stat.h>
441 #endif
442 #if STDC_HEADERS
443 # include <stdlib.h>
444 # include <stddef.h>
445 #else
446 # if HAVE_STDLIB_H
447 #  include <stdlib.h>
448 # endif
449 #endif
450 #if HAVE_STRING_H
451 # if !STDC_HEADERS && HAVE_MEMORY_H
452 #  include <memory.h>
453 # endif
454 # include <string.h>
455 #endif
456 #if HAVE_STRINGS_H
457 # include <strings.h>
458 #endif
459 #if HAVE_INTTYPES_H
460 # include <inttypes.h>
461 #else
462 # if HAVE_STDINT_H
463 #  include <stdint.h>
464 # endif
465 #endif
466 #if HAVE_UNISTD_H
467 # include <unistd.h>
468 #endif"
469
470 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LIBGNOMEVFS_CURRENT LIBGNOMEVFS_REVISION LIBGNOMEVFS_AGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE ACLOCAL_AMFLAGS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GNOME_ACLOCAL_DIR GNOME_ACLOCAL_FLAGS INSIDE_GNOME_DOCU_TRUE INSIDE_GNOME_DOCU_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP AWK build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP EGREP LIBTOOL INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_PROP_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XML_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL BONOBO_ACTIVATION_REQUIRED BONOBO_REQUIRED GCONF_REQUIRED GLIB_REQUIRED LIBIDL_REQUIRED ORBIT_REQUIRED XML_REQUIRED PKG_CONFIG MODULES_XML_CFLAGS MODULES_XML_LIBS MODULES_CFLAGS MODULES_LIBS MODULES_FILE_CFLAGS MODULES_FILE_LIBS MODULES_GCONF_CFLAGS MODULES_GCONF_LIBS MODULES_XML_GCONF_CFLAGS MODULES_XML_GCONF_LIBS MONIKERS_CFLAGS MONIKERS_LIBS TEST_CFLAGS TEST_LIBS ORBIT_IDL BONOBO_IDLDIR WARN_CFLAGS GETTEXT_PACKAGE USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS ALLOCA GCONFTOOL GCONF_SCHEMA_CONFIG_SOURCE GCONF_SCHEMA_FILE_DIR GCONF_SCHEMAS_INSTALL_TRUE GCONF_SCHEMAS_INSTALL_FALSE VFS_SIZE VFS_OFFSET VFS_SIZE_IS VFS_OFFSET_IS VFS_SIZE_PRINTF VFS_OFFSET_PRINTF ENABLE_PROFILER ENABLE_PROFILER_TRUE ENABLE_PROFILER_FALSE VFS_CFLAGS GNOME_VFS_DIR VFS_LIBDIR VFS_INCLUDEDIR VFS_LIBS HAVE_LIBEFS_TRUE HAVE_LIBEFS_FALSE LIBEFS_LIBS LIBEFS_CFLAGS BZ2_LIBS HAVE_CDDA_TRUE HAVE_CDDA_FALSE BUILD_CDEMENU_MODULE_TRUE BUILD_CDEMENU_MODULE_FALSE HAVE_SSL_TRUE HAVE_SSL_FALSE OPENSSL_CFLAGS OPENSSL_LIBS LIBGNUTLS_CONFIG LIBGNUTLS_CFLAGS LIBGNUTLS_LIBS LIBGNOMEVFS_CFLAGS LIBGNOMEVFS_LIBS FAM_LIBS HTML_DIR GTKDOC DB2HTML HAVE_DOCBOOK_TRUE HAVE_DOCBOOK_FALSE HAVE_GTK_DOC_TRUE HAVE_GTK_DOC_FALSE HAVE_GTK_DOC ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE POPT_LIBS TOP_BUILDDIR LIBOBJS LTLIBOBJS'
471 ac_subst_files=''
472
473 # Initialize some variables set by options.
474 ac_init_help=
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
478 cache_file=/dev/null
479 exec_prefix=NONE
480 no_create=
481 no_recursion=
482 prefix=NONE
483 program_prefix=NONE
484 program_suffix=NONE
485 program_transform_name=s,x,x,
486 silent=
487 site=
488 srcdir=
489 verbose=
490 x_includes=NONE
491 x_libraries=NONE
492
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
510
511 ac_prev=
512 for ac_option
513 do
514   # If the previous option needs an argument, assign it.
515   if test -n "$ac_prev"; then
516     eval "$ac_prev=\$ac_option"
517     ac_prev=
518     continue
519   fi
520
521   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523   # Accept the important Cygnus configure options, so we can diagnose typos.
524
525   case $ac_option in
526
527   -bindir | --bindir | --bindi | --bind | --bin | --bi)
528     ac_prev=bindir ;;
529   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530     bindir=$ac_optarg ;;
531
532   -build | --build | --buil | --bui | --bu)
533     ac_prev=build_alias ;;
534   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535     build_alias=$ac_optarg ;;
536
537   -cache-file | --cache-file | --cache-fil | --cache-fi \
538   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539     ac_prev=cache_file ;;
540   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542     cache_file=$ac_optarg ;;
543
544   --config-cache | -C)
545     cache_file=config.cache ;;
546
547   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548     ac_prev=datadir ;;
549   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550   | --da=*)
551     datadir=$ac_optarg ;;
552
553   -disable-* | --disable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     eval "enable_$ac_feature=no" ;;
561
562   -enable-* | --enable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     case $ac_option in
570       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571       *) ac_optarg=yes ;;
572     esac
573     eval "enable_$ac_feature='$ac_optarg'" ;;
574
575   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577   | --exec | --exe | --ex)
578     ac_prev=exec_prefix ;;
579   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581   | --exec=* | --exe=* | --ex=*)
582     exec_prefix=$ac_optarg ;;
583
584   -gas | --gas | --ga | --g)
585     # Obsolete; use --with-gas.
586     with_gas=yes ;;
587
588   -help | --help | --hel | --he | -h)
589     ac_init_help=long ;;
590   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591     ac_init_help=recursive ;;
592   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593     ac_init_help=short ;;
594
595   -host | --host | --hos | --ho)
596     ac_prev=host_alias ;;
597   -host=* | --host=* | --hos=* | --ho=*)
598     host_alias=$ac_optarg ;;
599
600   -includedir | --includedir | --includedi | --included | --include \
601   | --includ | --inclu | --incl | --inc)
602     ac_prev=includedir ;;
603   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604   | --includ=* | --inclu=* | --incl=* | --inc=*)
605     includedir=$ac_optarg ;;
606
607   -infodir | --infodir | --infodi | --infod | --info | --inf)
608     ac_prev=infodir ;;
609   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610     infodir=$ac_optarg ;;
611
612   -libdir | --libdir | --libdi | --libd)
613     ac_prev=libdir ;;
614   -libdir=* | --libdir=* | --libdi=* | --libd=*)
615     libdir=$ac_optarg ;;
616
617   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618   | --libexe | --libex | --libe)
619     ac_prev=libexecdir ;;
620   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621   | --libexe=* | --libex=* | --libe=*)
622     libexecdir=$ac_optarg ;;
623
624   -localstatedir | --localstatedir | --localstatedi | --localstated \
625   | --localstate | --localstat | --localsta | --localst \
626   | --locals | --local | --loca | --loc | --lo)
627     ac_prev=localstatedir ;;
628   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631     localstatedir=$ac_optarg ;;
632
633   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634     ac_prev=mandir ;;
635   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636     mandir=$ac_optarg ;;
637
638   -nfp | --nfp | --nf)
639     # Obsolete; use --without-fp.
640     with_fp=no ;;
641
642   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643   | --no-cr | --no-c | -n)
644     no_create=yes ;;
645
646   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648     no_recursion=yes ;;
649
650   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652   | --oldin | --oldi | --old | --ol | --o)
653     ac_prev=oldincludedir ;;
654   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657     oldincludedir=$ac_optarg ;;
658
659   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660     ac_prev=prefix ;;
661   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662     prefix=$ac_optarg ;;
663
664   -program-prefix | --program-prefix | --program-prefi | --program-pref \
665   | --program-pre | --program-pr | --program-p)
666     ac_prev=program_prefix ;;
667   -program-prefix=* | --program-prefix=* | --program-prefi=* \
668   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669     program_prefix=$ac_optarg ;;
670
671   -program-suffix | --program-suffix | --program-suffi | --program-suff \
672   | --program-suf | --program-su | --program-s)
673     ac_prev=program_suffix ;;
674   -program-suffix=* | --program-suffix=* | --program-suffi=* \
675   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676     program_suffix=$ac_optarg ;;
677
678   -program-transform-name | --program-transform-name \
679   | --program-transform-nam | --program-transform-na \
680   | --program-transform-n | --program-transform- \
681   | --program-transform | --program-transfor \
682   | --program-transfo | --program-transf \
683   | --program-trans | --program-tran \
684   | --progr-tra | --program-tr | --program-t)
685     ac_prev=program_transform_name ;;
686   -program-transform-name=* | --program-transform-name=* \
687   | --program-transform-nam=* | --program-transform-na=* \
688   | --program-transform-n=* | --program-transform-=* \
689   | --program-transform=* | --program-transfor=* \
690   | --program-transfo=* | --program-transf=* \
691   | --program-trans=* | --program-tran=* \
692   | --progr-tra=* | --program-tr=* | --program-t=*)
693     program_transform_name=$ac_optarg ;;
694
695   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696   | -silent | --silent | --silen | --sile | --sil)
697     silent=yes ;;
698
699   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700     ac_prev=sbindir ;;
701   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702   | --sbi=* | --sb=*)
703     sbindir=$ac_optarg ;;
704
705   -sharedstatedir | --sharedstatedir | --sharedstatedi \
706   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707   | --sharedst | --shareds | --shared | --share | --shar \
708   | --sha | --sh)
709     ac_prev=sharedstatedir ;;
710   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713   | --sha=* | --sh=*)
714     sharedstatedir=$ac_optarg ;;
715
716   -site | --site | --sit)
717     ac_prev=site ;;
718   -site=* | --site=* | --sit=*)
719     site=$ac_optarg ;;
720
721   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722     ac_prev=srcdir ;;
723   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724     srcdir=$ac_optarg ;;
725
726   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727   | --syscon | --sysco | --sysc | --sys | --sy)
728     ac_prev=sysconfdir ;;
729   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731     sysconfdir=$ac_optarg ;;
732
733   -target | --target | --targe | --targ | --tar | --ta | --t)
734     ac_prev=target_alias ;;
735   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736     target_alias=$ac_optarg ;;
737
738   -v | -verbose | --verbose | --verbos | --verbo | --verb)
739     verbose=yes ;;
740
741   -version | --version | --versio | --versi | --vers | -V)
742     ac_init_version=: ;;
743
744   -with-* | --with-*)
745     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746     # Reject names that are not valid shell variable names.
747     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748       { echo "$as_me: error: invalid package name: $ac_package" >&2
749    { (exit 1); exit 1; }; }
750     ac_package=`echo $ac_package| sed 's/-/_/g'`
751     case $ac_option in
752       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753       *) ac_optarg=yes ;;
754     esac
755     eval "with_$ac_package='$ac_optarg'" ;;
756
757   -without-* | --without-*)
758     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759     # Reject names that are not valid shell variable names.
760     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761       { echo "$as_me: error: invalid package name: $ac_package" >&2
762    { (exit 1); exit 1; }; }
763     ac_package=`echo $ac_package | sed 's/-/_/g'`
764     eval "with_$ac_package=no" ;;
765
766   --x)
767     # Obsolete; use --with-x.
768     with_x=yes ;;
769
770   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771   | --x-incl | --x-inc | --x-in | --x-i)
772     ac_prev=x_includes ;;
773   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775     x_includes=$ac_optarg ;;
776
777   -x-libraries | --x-libraries | --x-librarie | --x-librari \
778   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779     ac_prev=x_libraries ;;
780   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782     x_libraries=$ac_optarg ;;
783
784   -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786    { (exit 1); exit 1; }; }
787     ;;
788
789   *=*)
790     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791     # Reject names that are not valid shell variable names.
792     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794    { (exit 1); exit 1; }; }
795     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796     eval "$ac_envvar='$ac_optarg'"
797     export $ac_envvar ;;
798
799   *)
800     # FIXME: should be removed in autoconf 3.0.
801     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805     ;;
806
807   esac
808 done
809
810 if test -n "$ac_prev"; then
811   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812   { echo "$as_me: error: missing argument to $ac_option" >&2
813    { (exit 1); exit 1; }; }
814 fi
815
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
818 do
819   eval ac_val=$`echo $ac_var`
820   case $ac_val in
821     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823    { (exit 1); exit 1; }; };;
824   esac
825 done
826
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829               localstatedir libdir includedir oldincludedir infodir mandir
830 do
831   eval ac_val=$`echo $ac_var`
832   case $ac_val in
833     [\\/$]* | ?:[\\/]* ) ;;
834     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835    { (exit 1); exit 1; }; };;
836   esac
837 done
838
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
842 build=$build_alias
843 host=$host_alias
844 target=$target_alias
845
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848   if test "x$build_alias" = x; then
849     cross_compiling=maybe
850     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851     If a cross compiler is detected then cross compile mode will be used." >&2
852   elif test "x$build_alias" != "x$host_alias"; then
853     cross_compiling=yes
854   fi
855 fi
856
857 ac_tool_prefix=
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860 test "$silent" = yes && exec 6>/dev/null
861
862
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865   ac_srcdir_defaulted=yes
866   # Try the directory containing this script, then its parent.
867   ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869          X"$0" : 'X\(//\)[^/]' \| \
870          X"$0" : 'X\(//\)$' \| \
871          X"$0" : 'X\(/\)' \| \
872          .     : '\(.\)' 2>/dev/null ||
873 echo X"$0" |
874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876           /^X\(\/\/\)$/{ s//\1/; q; }
877           /^X\(\/\).*/{ s//\1/; q; }
878           s/.*/./; q'`
879   srcdir=$ac_confdir
880   if test ! -r $srcdir/$ac_unique_file; then
881     srcdir=..
882   fi
883 else
884   ac_srcdir_defaulted=no
885 fi
886 if test ! -r $srcdir/$ac_unique_file; then
887   if test "$ac_srcdir_defaulted" = yes; then
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889    { (exit 1); exit 1; }; }
890   else
891     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892    { (exit 1); exit 1; }; }
893   fi
894 fi
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897    { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CC_set=${CC+set}
912 ac_env_CC_value=$CC
913 ac_cv_env_CC_set=${CC+set}
914 ac_cv_env_CC_value=$CC
915 ac_env_CFLAGS_set=${CFLAGS+set}
916 ac_env_CFLAGS_value=$CFLAGS
917 ac_cv_env_CFLAGS_set=${CFLAGS+set}
918 ac_cv_env_CFLAGS_value=$CFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CPP_set=${CPP+set}
928 ac_env_CPP_value=$CPP
929 ac_cv_env_CPP_set=${CPP+set}
930 ac_cv_env_CPP_value=$CPP
931
932 #
933 # Report the --help message.
934 #
935 if test "$ac_init_help" = "long"; then
936   # Omit some internal or obsolete options to make the list less imposing.
937   # This message is too long to be a string in the A/UX 3.1 sh.
938   cat <<_ACEOF
939 \`configure' configures this package to adapt to many kinds of systems.
940
941 Usage: $0 [OPTION]... [VAR=VALUE]...
942
943 To assign environment variables (e.g., CC, CFLAGS...), specify them as
944 VAR=VALUE.  See below for descriptions of some of the useful variables.
945
946 Defaults for the options are specified in brackets.
947
948 Configuration:
949   -h, --help              display this help and exit
950       --help=short        display options specific to this package
951       --help=recursive    display the short help of all the included packages
952   -V, --version           display version information and exit
953   -q, --quiet, --silent   do not print \`checking...' messages
954       --cache-file=FILE   cache test results in FILE [disabled]
955   -C, --config-cache      alias for \`--cache-file=config.cache'
956   -n, --no-create         do not create output files
957       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
958
959 _ACEOF
960
961   cat <<_ACEOF
962 Installation directories:
963   --prefix=PREFIX         install architecture-independent files in PREFIX
964                           [$ac_default_prefix]
965   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
966                           [PREFIX]
967
968 By default, \`make install' will install all the files in
969 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
970 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971 for instance \`--prefix=\$HOME'.
972
973 For better control, use the options below.
974
975 Fine tuning of the installation directories:
976   --bindir=DIR           user executables [EPREFIX/bin]
977   --sbindir=DIR          system admin executables [EPREFIX/sbin]
978   --libexecdir=DIR       program executables [EPREFIX/libexec]
979   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
980   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
981   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
982   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
983   --libdir=DIR           object code libraries [EPREFIX/lib]
984   --includedir=DIR       C header files [PREFIX/include]
985   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
986   --infodir=DIR          info documentation [PREFIX/info]
987   --mandir=DIR           man documentation [PREFIX/man]
988 _ACEOF
989
990   cat <<\_ACEOF
991
992 Program names:
993   --program-prefix=PREFIX            prepend PREFIX to installed program names
994   --program-suffix=SUFFIX            append SUFFIX to installed program names
995   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
996
997 System types:
998   --build=BUILD     configure for building on BUILD [guessed]
999   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1000 _ACEOF
1001 fi
1002
1003 if test -n "$ac_init_help"; then
1004
1005   cat <<\_ACEOF
1006
1007 Optional Features:
1008   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1009   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1010   --enable-maintainer-mode enable make rules and dependencies not useful
1011                           (and sometimes confusing) to the casual installer
1012   --enable-shared=PKGS  build shared libraries default=yes
1013   --enable-static=PKGS  build static libraries default=yes
1014   --enable-fast-install=PKGS  optimize for fast installation default=yes
1015   --disable-libtool-lock  avoid locking (might break parallel builds)
1016   --enable-compile-warnings=no/minimum/yes/maximum/error        Turn on compiler warnings.
1017   --enable-iso-c          Try to warn if code is not ISO C
1018   --disable-schemas-install     Disable the schemas installation
1019   --enable-profiler             Enable profiler
1020   --enable-more-warnings  Maximum compiler warnings
1021   --disable-openssl       build without openssl support
1022   --enable-gnutls         build with gnutls support
1023   --enable-gtk-doc  Use gtk-doc to build documentation default=auto
1024  --enable-ipv6 enable IPv6 extensions
1025
1026 Optional Packages:
1027   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1028   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1029   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1030   --with-pic              try to use only PIC/non-PIC objects default=use both
1031   --with-gconf-source=sourceaddress      Config database for installing schema files.
1032   --with-gconf-schema-file-dir=dir        Directory for installing schema files.
1033   --with-openssl-includes=PREFIX     Location of OpenSSL includes.
1034   --with-openssl-libs=PREFIX            Location of OpenSSL libs.
1035   --with-libgnutls-prefix=PFX   Prefix where libgnutls is installed (optional)
1036   --with-html-dir=PATH path to installed docs
1037   --with-afs              support -fstype afs
1038
1039 Some influential environment variables:
1040   CC          C compiler command
1041   CFLAGS      C compiler flags
1042   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1043               nonstandard directory <lib dir>
1044   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1045               headers in a nonstandard directory <include dir>
1046   CPP         C preprocessor
1047
1048 Use these variables to override the choices made by `configure' or to help
1049 it to find libraries and programs with nonstandard names/locations.
1050
1051 _ACEOF
1052 fi
1053
1054 if test "$ac_init_help" = "recursive"; then
1055   # If there are subdirs, report their specific --help.
1056   ac_popdir=`pwd`
1057   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1058     test -d $ac_dir || continue
1059     ac_builddir=.
1060
1061 if test "$ac_dir" != .; then
1062   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1063   # A "../" for each directory in $ac_dir_suffix.
1064   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065 else
1066   ac_dir_suffix= ac_top_builddir=
1067 fi
1068
1069 case $srcdir in
1070   .)  # No --srcdir option.  We are building in place.
1071     ac_srcdir=.
1072     if test -z "$ac_top_builddir"; then
1073        ac_top_srcdir=.
1074     else
1075        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076     fi ;;
1077   [\\/]* | ?:[\\/]* )  # Absolute path.
1078     ac_srcdir=$srcdir$ac_dir_suffix;
1079     ac_top_srcdir=$srcdir ;;
1080   *) # Relative path.
1081     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1082     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1083 esac
1084 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1085 # absolute.
1086 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1087 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1088 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1089 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1090
1091     cd $ac_dir
1092     # Check for guested configure; otherwise get Cygnus style configure.
1093     if test -f $ac_srcdir/configure.gnu; then
1094       echo
1095       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1096     elif test -f $ac_srcdir/configure; then
1097       echo
1098       $SHELL $ac_srcdir/configure  --help=recursive
1099     elif test -f $ac_srcdir/configure.ac ||
1100            test -f $ac_srcdir/configure.in; then
1101       echo
1102       $ac_configure --help
1103     else
1104       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1105     fi
1106     cd $ac_popdir
1107   done
1108 fi
1109
1110 test -n "$ac_init_help" && exit 0
1111 if $ac_init_version; then
1112   cat <<\_ACEOF
1113
1114 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1115 Free Software Foundation, Inc.
1116 This configure script is free software; the Free Software Foundation
1117 gives unlimited permission to copy, distribute and modify it.
1118 _ACEOF
1119   exit 0
1120 fi
1121 exec 5>config.log
1122 cat >&5 <<_ACEOF
1123 This file contains any messages produced by compilers while
1124 running configure, to aid debugging if configure makes a mistake.
1125
1126 It was created by $as_me, which was
1127 generated by GNU Autoconf 2.57.  Invocation command line was
1128
1129   $ $0 $@
1130
1131 _ACEOF
1132 {
1133 cat <<_ASUNAME
1134 ## --------- ##
1135 ## Platform. ##
1136 ## --------- ##
1137
1138 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1139 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1140 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1141 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1142 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1143
1144 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1145 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1146
1147 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1148 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1149 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1150 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1151 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1152 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1153 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1154
1155 _ASUNAME
1156
1157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1158 for as_dir in $PATH
1159 do
1160   IFS=$as_save_IFS
1161   test -z "$as_dir" && as_dir=.
1162   echo "PATH: $as_dir"
1163 done
1164
1165 } >&5
1166
1167 cat >&5 <<_ACEOF
1168
1169
1170 ## ----------- ##
1171 ## Core tests. ##
1172 ## ----------- ##
1173
1174 _ACEOF
1175
1176
1177 # Keep a trace of the command line.
1178 # Strip out --no-create and --no-recursion so they do not pile up.
1179 # Strip out --silent because we don't want to record it for future runs.
1180 # Also quote any args containing shell meta-characters.
1181 # Make two passes to allow for proper duplicate-argument suppression.
1182 ac_configure_args=
1183 ac_configure_args0=
1184 ac_configure_args1=
1185 ac_sep=
1186 ac_must_keep_next=false
1187 for ac_pass in 1 2
1188 do
1189   for ac_arg
1190   do
1191     case $ac_arg in
1192     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1193     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194     | -silent | --silent | --silen | --sile | --sil)
1195       continue ;;
1196     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1197       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1198     esac
1199     case $ac_pass in
1200     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1201     2)
1202       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1203       if test $ac_must_keep_next = true; then
1204         ac_must_keep_next=false # Got value, back to normal.
1205       else
1206         case $ac_arg in
1207           *=* | --config-cache | -C | -disable-* | --disable-* \
1208           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1209           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1210           | -with-* | --with-* | -without-* | --without-* | --x)
1211             case "$ac_configure_args0 " in
1212               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1213             esac
1214             ;;
1215           -* ) ac_must_keep_next=true ;;
1216         esac
1217       fi
1218       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1219       # Get rid of the leading space.
1220       ac_sep=" "
1221       ;;
1222     esac
1223   done
1224 done
1225 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1226 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1227
1228 # When interrupted or exit'd, cleanup temporary files, and complete
1229 # config.log.  We remove comments because anyway the quotes in there
1230 # would cause problems or look ugly.
1231 # WARNING: Be sure not to use single quotes in there, as some shells,
1232 # such as our DU 5.0 friend, will then `close' the trap.
1233 trap 'exit_status=$?
1234   # Save into config.log some information that might help in debugging.
1235   {
1236     echo
1237
1238     cat <<\_ASBOX
1239 ## ---------------- ##
1240 ## Cache variables. ##
1241 ## ---------------- ##
1242 _ASBOX
1243     echo
1244     # The following way of writing the cache mishandles newlines in values,
1245 {
1246   (set) 2>&1 |
1247     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1248     *ac_space=\ *)
1249       sed -n \
1250         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1251           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1252       ;;
1253     *)
1254       sed -n \
1255         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1256       ;;
1257     esac;
1258 }
1259     echo
1260
1261     cat <<\_ASBOX
1262 ## ----------------- ##
1263 ## Output variables. ##
1264 ## ----------------- ##
1265 _ASBOX
1266     echo
1267     for ac_var in $ac_subst_vars
1268     do
1269       eval ac_val=$`echo $ac_var`
1270       echo "$ac_var='"'"'$ac_val'"'"'"
1271     done | sort
1272     echo
1273
1274     if test -n "$ac_subst_files"; then
1275       cat <<\_ASBOX
1276 ## ------------- ##
1277 ## Output files. ##
1278 ## ------------- ##
1279 _ASBOX
1280       echo
1281       for ac_var in $ac_subst_files
1282       do
1283         eval ac_val=$`echo $ac_var`
1284         echo "$ac_var='"'"'$ac_val'"'"'"
1285       done | sort
1286       echo
1287     fi
1288
1289     if test -s confdefs.h; then
1290       cat <<\_ASBOX
1291 ## ----------- ##
1292 ## confdefs.h. ##
1293 ## ----------- ##
1294 _ASBOX
1295       echo
1296       sed "/^$/d" confdefs.h | sort
1297       echo
1298     fi
1299     test "$ac_signal" != 0 &&
1300       echo "$as_me: caught signal $ac_signal"
1301     echo "$as_me: exit $exit_status"
1302   } >&5
1303   rm -f core core.* *.core &&
1304   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1305     exit $exit_status
1306      ' 0
1307 for ac_signal in 1 2 13 15; do
1308   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1309 done
1310 ac_signal=0
1311
1312 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1313 rm -rf conftest* confdefs.h
1314 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1315 echo >confdefs.h
1316
1317 # Predefined preprocessor variables.
1318
1319 cat >>confdefs.h <<_ACEOF
1320 #define PACKAGE_NAME "$PACKAGE_NAME"
1321 _ACEOF
1322
1323
1324 cat >>confdefs.h <<_ACEOF
1325 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1326 _ACEOF
1327
1328
1329 cat >>confdefs.h <<_ACEOF
1330 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1331 _ACEOF
1332
1333
1334 cat >>confdefs.h <<_ACEOF
1335 #define PACKAGE_STRING "$PACKAGE_STRING"
1336 _ACEOF
1337
1338
1339 cat >>confdefs.h <<_ACEOF
1340 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1341 _ACEOF
1342
1343
1344 # Let the site file select an alternate cache file if it wants to.
1345 # Prefer explicitly selected file to automatically selected ones.
1346 if test -z "$CONFIG_SITE"; then
1347   if test "x$prefix" != xNONE; then
1348     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1349   else
1350     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1351   fi
1352 fi
1353 for ac_site_file in $CONFIG_SITE; do
1354   if test -r "$ac_site_file"; then
1355     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1356 echo "$as_me: loading site script $ac_site_file" >&6;}
1357     sed 's/^/| /' "$ac_site_file" >&5
1358     . "$ac_site_file"
1359   fi
1360 done
1361
1362 if test -r "$cache_file"; then
1363   # Some versions of bash will fail to source /dev/null (special
1364   # files actually), so we avoid doing that.
1365   if test -f "$cache_file"; then
1366     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1367 echo "$as_me: loading cache $cache_file" >&6;}
1368     case $cache_file in
1369       [\\/]* | ?:[\\/]* ) . $cache_file;;
1370       *)                      . ./$cache_file;;
1371     esac
1372   fi
1373 else
1374   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1375 echo "$as_me: creating cache $cache_file" >&6;}
1376   >$cache_file
1377 fi
1378
1379 # Check that the precious variables saved in the cache have kept the same
1380 # value.
1381 ac_cache_corrupted=false
1382 for ac_var in `(set) 2>&1 |
1383                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1384   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1385   eval ac_new_set=\$ac_env_${ac_var}_set
1386   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1387   eval ac_new_val="\$ac_env_${ac_var}_value"
1388   case $ac_old_set,$ac_new_set in
1389     set,)
1390       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1391 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1392       ac_cache_corrupted=: ;;
1393     ,set)
1394       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1395 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1396       ac_cache_corrupted=: ;;
1397     ,);;
1398     *)
1399       if test "x$ac_old_val" != "x$ac_new_val"; then
1400         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1401 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1402         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1403 echo "$as_me:   former value:  $ac_old_val" >&2;}
1404         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1405 echo "$as_me:   current value: $ac_new_val" >&2;}
1406         ac_cache_corrupted=:
1407       fi;;
1408   esac
1409   # Pass precious variables to config.status.
1410   if test "$ac_new_set" = set; then
1411     case $ac_new_val in
1412     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1413       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1414     *) ac_arg=$ac_var=$ac_new_val ;;
1415     esac
1416     case " $ac_configure_args " in
1417       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1418       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1419     esac
1420   fi
1421 done
1422 if $ac_cache_corrupted; then
1423   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1424 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1425   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1426 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1427    { (exit 1); exit 1; }; }
1428 fi
1429
1430 ac_ext=c
1431 ac_cpp='$CPP $CPPFLAGS'
1432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455 # Making releases:
1456 #   LIBGNOMEVFS_MICRO_VERSION += 1;
1457 #   LIBGNOMEVFS_INTERFACE_AGE += 1;
1458 # if any functions have been added, set LIBGNOMEVFS_INTERFACE_AGE to 0.
1459 # if backwards compatibility has been broken,
1460 # set LIBGNOMEVFS_BINARY_AGE and LIBGNOMEVFS_INTERFACE_AGE to 0.
1461 #
1462 LIBGNOMEVFS_MAJOR_VERSION=2
1463 LIBGNOMEVFS_MINOR_VERSION=3
1464 LIBGNOMEVFS_MICRO_VERSION=8
1465 LIBGNOMEVFS_INTERFACE_AGE=8
1466 # If you need a modifier for the version number.
1467 # Normally empty, but can be used to make "fixup" releases.
1468 LIBGNOMEVFS_EXTRAVERSION=
1469
1470
1471 LIBGNOMEVFS_CURRENT=`expr 100 '*' $LIBGNOMEVFS_MINOR_VERSION + $LIBGNOMEVFS_MICRO_VERSION - $LIBGNOMEVFS_INTERFACE_AGE`
1472 LIBGNOMEVFS_BINARY_AGE=`expr 100 '*' $LIBGNOMEVFS_MINOR_VERSION + $LIBGNOMEVFS_MICRO_VERSION`
1473 LIBGNOMEVFS_REVISION=$LIBGNOMEVFS_INTERFACE_AGE
1474 LIBGNOMEVFS_AGE=`expr $LIBGNOMEVFS_BINARY_AGE - $LIBGNOMEVFS_INTERFACE_AGE`
1475 LIBGNOMEVFS_VERSION=$LIBGNOMEVFS_MAJOR_VERSION.$LIBGNOMEVFS_MINOR_VERSION.$LIBGNOMEVFS_MICRO_VERSION$LIBGNOMEVFS_EXTRAVERSION
1476
1477
1478
1479
1480
1481
1482
1483           ac_config_headers="$ac_config_headers config.h"
1484
1485           ac_config_commands="$ac_config_commands default-1"
1486
1487 am__api_version="1.4"
1488 ac_aux_dir=
1489 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1490   if test -f $ac_dir/install-sh; then
1491     ac_aux_dir=$ac_dir
1492     ac_install_sh="$ac_aux_dir/install-sh -c"
1493     break
1494   elif test -f $ac_dir/install.sh; then
1495     ac_aux_dir=$ac_dir
1496     ac_install_sh="$ac_aux_dir/install.sh -c"
1497     break
1498   elif test -f $ac_dir/shtool; then
1499     ac_aux_dir=$ac_dir
1500     ac_install_sh="$ac_aux_dir/shtool install -c"
1501     break
1502   fi
1503 done
1504 if test -z "$ac_aux_dir"; then
1505   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1506 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1507    { (exit 1); exit 1; }; }
1508 fi
1509 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
1513 # Find a good install program.  We prefer a C program (faster),
1514 # so one script is as good as another.  But avoid the broken or
1515 # incompatible versions:
1516 # SysV /etc/install, /usr/sbin/install
1517 # SunOS /usr/etc/install
1518 # IRIX /sbin/install
1519 # AIX /bin/install
1520 # AmigaOS /C/install, which installs bootblocks on floppy discs
1521 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1522 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1523 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1524 # ./install, which can be erroneously created by make from ./install.sh.
1525 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1526 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1527 if test -z "$INSTALL"; then
1528 if test "${ac_cv_path_install+set}" = set; then
1529   echo $ECHO_N "(cached) $ECHO_C" >&6
1530 else
1531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 for as_dir in $PATH
1533 do
1534   IFS=$as_save_IFS
1535   test -z "$as_dir" && as_dir=.
1536   # Account for people who put trailing slashes in PATH elements.
1537 case $as_dir/ in
1538   ./ | .// | /cC/* | \
1539   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1540   /usr/ucb/* ) ;;
1541   *)
1542     # OSF1 and SCO ODT 3.0 have their own names for install.
1543     # Don't use installbsd from OSF since it installs stuff as root
1544     # by default.
1545     for ac_prog in ginstall scoinst install; do
1546       for ac_exec_ext in '' $ac_executable_extensions; do
1547         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1548           if test $ac_prog = install &&
1549             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1550             # AIX install.  It has an incompatible calling convention.
1551             :
1552           elif test $ac_prog = install &&
1553             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1554             # program-specific install script used by HP pwplus--don't use.
1555             :
1556           else
1557             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1558             break 3
1559           fi
1560         fi
1561       done
1562     done
1563     ;;
1564 esac
1565 done
1566
1567
1568 fi
1569   if test "${ac_cv_path_install+set}" = set; then
1570     INSTALL=$ac_cv_path_install
1571   else
1572     # As a last resort, use the slow shell script.  We don't cache a
1573     # path for INSTALL within a source directory, because that will
1574     # break other packages using the cache if that directory is
1575     # removed, or if the path is relative.
1576     INSTALL=$ac_install_sh
1577   fi
1578 fi
1579 echo "$as_me:$LINENO: result: $INSTALL" >&5
1580 echo "${ECHO_T}$INSTALL" >&6
1581
1582 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1583 # It thinks the first close brace ends the variable substitution.
1584 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1585
1586 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1587
1588 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1589
1590 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1591 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1592 # Just in case
1593 sleep 1
1594 echo timestamp > conftestfile
1595 # Do `set' in a subshell so we don't clobber the current shell's
1596 # arguments.  Must try -L first in case configure is actually a
1597 # symlink; some systems play weird games with the mod time of symlinks
1598 # (eg FreeBSD returns the mod time of the symlink's containing
1599 # directory).
1600 if (
1601    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1602    if test "$*" = "X"; then
1603       # -L didn't work.
1604       set X `ls -t $srcdir/configure conftestfile`
1605    fi
1606    if test "$*" != "X $srcdir/configure conftestfile" \
1607       && test "$*" != "X conftestfile $srcdir/configure"; then
1608
1609       # If neither matched, then we have a broken ls.  This can happen
1610       # if, for instance, CONFIG_SHELL is bash and it inherits a
1611       # broken ls alias from the environment.  This has actually
1612       # happened.  Such a system could not be considered "sane".
1613       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1614 alias in your environment" >&5
1615 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1616 alias in your environment" >&2;}
1617    { (exit 1); exit 1; }; }
1618    fi
1619
1620    test "$2" = conftestfile
1621    )
1622 then
1623    # Ok.
1624    :
1625 else
1626    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1627 Check your system clock" >&5
1628 echo "$as_me: error: newly created file is older than distributed files!
1629 Check your system clock" >&2;}
1630    { (exit 1); exit 1; }; }
1631 fi
1632 rm -f conftest*
1633 echo "$as_me:$LINENO: result: yes" >&5
1634 echo "${ECHO_T}yes" >&6
1635 test "$program_prefix" != NONE &&
1636   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1637 # Use a double $ so make ignores it.
1638 test "$program_suffix" != NONE &&
1639   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1640 # Double any \ or $.  echo might interpret backslashes.
1641 # By default was `s,x,x', remove it if useless.
1642 cat <<\_ACEOF >conftest.sed
1643 s/[\\$]/&&/g;s/;s,x,x,$//
1644 _ACEOF
1645 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1646 rm conftest.sed
1647
1648 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1649 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1650 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1651 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   cat >conftest.make <<\_ACEOF
1655 all:
1656         @echo 'ac_maketemp="$(MAKE)"'
1657 _ACEOF
1658 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1659 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1660 if test -n "$ac_maketemp"; then
1661   eval ac_cv_prog_make_${ac_make}_set=yes
1662 else
1663   eval ac_cv_prog_make_${ac_make}_set=no
1664 fi
1665 rm -f conftest.make
1666 fi
1667 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1668   echo "$as_me:$LINENO: result: yes" >&5
1669 echo "${ECHO_T}yes" >&6
1670   SET_MAKE=
1671 else
1672   echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1674   SET_MAKE="MAKE=${MAKE-make}"
1675 fi
1676
1677
1678 PACKAGE=gnome-vfs
1679
1680 VERSION=$LIBGNOMEVFS_VERSION
1681
1682 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1683   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1684 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1685    { (exit 1); exit 1; }; }
1686 fi
1687
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE "$PACKAGE"
1690 _ACEOF
1691
1692
1693 cat >>confdefs.h <<_ACEOF
1694 #define VERSION "$VERSION"
1695 _ACEOF
1696
1697
1698
1699 missing_dir=`cd $ac_aux_dir && pwd`
1700 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1701 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1702 # Run test in a subshell; some versions of sh will print an error if
1703 # an executable is not found, even if stderr is redirected.
1704 # Redirect stdin to placate older versions of autoconf.  Sigh.
1705 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1706    ACLOCAL=aclocal-${am__api_version}
1707    echo "$as_me:$LINENO: result: found" >&5
1708 echo "${ECHO_T}found" >&6
1709 else
1710    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1711    echo "$as_me:$LINENO: result: missing" >&5
1712 echo "${ECHO_T}missing" >&6
1713 fi
1714
1715 echo "$as_me:$LINENO: checking for working autoconf" >&5
1716 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1717 # Run test in a subshell; some versions of sh will print an error if
1718 # an executable is not found, even if stderr is redirected.
1719 # Redirect stdin to placate older versions of autoconf.  Sigh.
1720 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1721    AUTOCONF=autoconf
1722    echo "$as_me:$LINENO: result: found" >&5
1723 echo "${ECHO_T}found" >&6
1724 else
1725    AUTOCONF="$missing_dir/missing autoconf"
1726    echo "$as_me:$LINENO: result: missing" >&5
1727 echo "${ECHO_T}missing" >&6
1728 fi
1729
1730 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1731 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1732 # Run test in a subshell; some versions of sh will print an error if
1733 # an executable is not found, even if stderr is redirected.
1734 # Redirect stdin to placate older versions of autoconf.  Sigh.
1735 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1736    AUTOMAKE=automake-${am__api_version}
1737    echo "$as_me:$LINENO: result: found" >&5
1738 echo "${ECHO_T}found" >&6
1739 else
1740    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1741    echo "$as_me:$LINENO: result: missing" >&5
1742 echo "${ECHO_T}missing" >&6
1743 fi
1744
1745 echo "$as_me:$LINENO: checking for working autoheader" >&5
1746 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1747 # Run test in a subshell; some versions of sh will print an error if
1748 # an executable is not found, even if stderr is redirected.
1749 # Redirect stdin to placate older versions of autoconf.  Sigh.
1750 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1751    AUTOHEADER=autoheader
1752    echo "$as_me:$LINENO: result: found" >&5
1753 echo "${ECHO_T}found" >&6
1754 else
1755    AUTOHEADER="$missing_dir/missing autoheader"
1756    echo "$as_me:$LINENO: result: missing" >&5
1757 echo "${ECHO_T}missing" >&6
1758 fi
1759
1760 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1761 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1762 # Run test in a subshell; some versions of sh will print an error if
1763 # an executable is not found, even if stderr is redirected.
1764 # Redirect stdin to placate older versions of autoconf.  Sigh.
1765 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1766    MAKEINFO=makeinfo
1767    echo "$as_me:$LINENO: result: found" >&5
1768 echo "${ECHO_T}found" >&6
1769 else
1770    MAKEINFO="$missing_dir/missing makeinfo"
1771    echo "$as_me:$LINENO: result: missing" >&5
1772 echo "${ECHO_T}missing" >&6
1773 fi
1774
1775
1776
1777 ACLOCAL_AMFLAGS="$ACLOCAL_FLAGS"
1778
1779
1780 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1781 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1782     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1783 if test "${enable_maintainer_mode+set}" = set; then
1784   enableval="$enable_maintainer_mode"
1785   USE_MAINTAINER_MODE=$enableval
1786 else
1787   USE_MAINTAINER_MODE=no
1788 fi;
1789   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1790 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1791
1792
1793 if test $USE_MAINTAINER_MODE = yes; then
1794   MAINTAINER_MODE_TRUE=
1795   MAINTAINER_MODE_FALSE='#'
1796 else
1797   MAINTAINER_MODE_TRUE='#'
1798   MAINTAINER_MODE_FALSE=
1799 fi
1800   MAINT=$MAINTAINER_MODE_TRUE
1801
1802
1803
1804
1805         if test "${ac_cv_gnome_aclocal_dir+set}" = set; then
1806   echo $ECHO_N "(cached) $ECHO_C" >&6
1807 else
1808   ac_cv_gnome_aclocal_dir="$GNOME_COMMON_MACROS_DIR"
1809 fi
1810
1811         if test "${ac_cv_gnome_aclocal_flags+set}" = set; then
1812   echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814   ac_cv_gnome_aclocal_flags="$ACLOCAL_FLAGS"
1815 fi
1816
1817         GNOME_ACLOCAL_DIR="$ac_cv_gnome_aclocal_dir"
1818         GNOME_ACLOCAL_FLAGS="$ac_cv_gnome_aclocal_flags"
1819
1820
1821
1822         ACLOCAL="$ACLOCAL $GNOME_ACLOCAL_FLAGS"
1823
1824
1825
1826 if false; then
1827   INSIDE_GNOME_DOCU_TRUE=
1828   INSIDE_GNOME_DOCU_FALSE='#'
1829 else
1830   INSIDE_GNOME_DOCU_TRUE='#'
1831   INSIDE_GNOME_DOCU_FALSE=
1832 fi
1833
1834
1835
1836
1837 ac_ext=c
1838 ac_cpp='$CPP $CPPFLAGS'
1839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1842 if test -n "$ac_tool_prefix"; then
1843   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1844 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1845 echo "$as_me:$LINENO: checking for $ac_word" >&5
1846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847 if test "${ac_cv_prog_CC+set}" = set; then
1848   echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850   if test -n "$CC"; then
1851   ac_cv_prog_CC="$CC" # Let the user override the test.
1852 else
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 for as_dir in $PATH
1855 do
1856   IFS=$as_save_IFS
1857   test -z "$as_dir" && as_dir=.
1858   for ac_exec_ext in '' $ac_executable_extensions; do
1859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862     break 2
1863   fi
1864 done
1865 done
1866
1867 fi
1868 fi
1869 CC=$ac_cv_prog_CC
1870 if test -n "$CC"; then
1871   echo "$as_me:$LINENO: result: $CC" >&5
1872 echo "${ECHO_T}$CC" >&6
1873 else
1874   echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1876 fi
1877
1878 fi
1879 if test -z "$ac_cv_prog_CC"; then
1880   ac_ct_CC=$CC
1881   # Extract the first word of "gcc", so it can be a program name with args.
1882 set dummy gcc; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1886   echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888   if test -n "$ac_ct_CC"; then
1889   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894   IFS=$as_save_IFS
1895   test -z "$as_dir" && as_dir=.
1896   for ac_exec_ext in '' $ac_executable_extensions; do
1897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898     ac_cv_prog_ac_ct_CC="gcc"
1899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900     break 2
1901   fi
1902 done
1903 done
1904
1905 fi
1906 fi
1907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1908 if test -n "$ac_ct_CC"; then
1909   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1910 echo "${ECHO_T}$ac_ct_CC" >&6
1911 else
1912   echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1914 fi
1915
1916   CC=$ac_ct_CC
1917 else
1918   CC="$ac_cv_prog_CC"
1919 fi
1920
1921 if test -z "$CC"; then
1922   if test -n "$ac_tool_prefix"; then
1923   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1924 set dummy ${ac_tool_prefix}cc; ac_word=$2
1925 echo "$as_me:$LINENO: checking for $ac_word" >&5
1926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927 if test "${ac_cv_prog_CC+set}" = set; then
1928   echo $ECHO_N "(cached) $ECHO_C" >&6
1929 else
1930   if test -n "$CC"; then
1931   ac_cv_prog_CC="$CC" # Let the user override the test.
1932 else
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1935 do
1936   IFS=$as_save_IFS
1937   test -z "$as_dir" && as_dir=.
1938   for ac_exec_ext in '' $ac_executable_extensions; do
1939   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940     ac_cv_prog_CC="${ac_tool_prefix}cc"
1941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942     break 2
1943   fi
1944 done
1945 done
1946
1947 fi
1948 fi
1949 CC=$ac_cv_prog_CC
1950 if test -n "$CC"; then
1951   echo "$as_me:$LINENO: result: $CC" >&5
1952 echo "${ECHO_T}$CC" >&6
1953 else
1954   echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6
1956 fi
1957
1958 fi
1959 if test -z "$ac_cv_prog_CC"; then
1960   ac_ct_CC=$CC
1961   # Extract the first word of "cc", so it can be a program name with args.
1962 set dummy cc; ac_word=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1966   echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968   if test -n "$ac_ct_CC"; then
1969   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1970 else
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 for as_dir in $PATH
1973 do
1974   IFS=$as_save_IFS
1975   test -z "$as_dir" && as_dir=.
1976   for ac_exec_ext in '' $ac_executable_extensions; do
1977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978     ac_cv_prog_ac_ct_CC="cc"
1979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980     break 2
1981   fi
1982 done
1983 done
1984
1985 fi
1986 fi
1987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1988 if test -n "$ac_ct_CC"; then
1989   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1990 echo "${ECHO_T}$ac_ct_CC" >&6
1991 else
1992   echo "$as_me:$LINENO: result: no" >&5
1993 echo "${ECHO_T}no" >&6
1994 fi
1995
1996   CC=$ac_ct_CC
1997 else
1998   CC="$ac_cv_prog_CC"
1999 fi
2000
2001 fi
2002 if test -z "$CC"; then
2003   # Extract the first word of "cc", so it can be a program name with args.
2004 set dummy cc; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_CC+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   if test -n "$CC"; then
2011   ac_cv_prog_CC="$CC" # Let the user override the test.
2012 else
2013   ac_prog_rejected=no
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 for as_dir in $PATH
2016 do
2017   IFS=$as_save_IFS
2018   test -z "$as_dir" && as_dir=.
2019   for ac_exec_ext in '' $ac_executable_extensions; do
2020   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2022        ac_prog_rejected=yes
2023        continue
2024      fi
2025     ac_cv_prog_CC="cc"
2026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027     break 2
2028   fi
2029 done
2030 done
2031
2032 if test $ac_prog_rejected = yes; then
2033   # We found a bogon in the path, so make sure we never use it.
2034   set dummy $ac_cv_prog_CC
2035   shift
2036   if test $# != 0; then
2037     # We chose a different compiler from the bogus one.
2038     # However, it has the same basename, so the bogon will be chosen
2039     # first if we set CC to just the basename; use the full file name.
2040     shift
2041     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2042   fi
2043 fi
2044 fi
2045 fi
2046 CC=$ac_cv_prog_CC
2047 if test -n "$CC"; then
2048   echo "$as_me:$LINENO: result: $CC" >&5
2049 echo "${ECHO_T}$CC" >&6
2050 else
2051   echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2053 fi
2054
2055 fi
2056 if test -z "$CC"; then
2057   if test -n "$ac_tool_prefix"; then
2058   for ac_prog in cl
2059   do
2060     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2062 echo "$as_me:$LINENO: checking for $ac_word" >&5
2063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2064 if test "${ac_cv_prog_CC+set}" = set; then
2065   echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067   if test -n "$CC"; then
2068   ac_cv_prog_CC="$CC" # Let the user override the test.
2069 else
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 for as_dir in $PATH
2072 do
2073   IFS=$as_save_IFS
2074   test -z "$as_dir" && as_dir=.
2075   for ac_exec_ext in '' $ac_executable_extensions; do
2076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079     break 2
2080   fi
2081 done
2082 done
2083
2084 fi
2085 fi
2086 CC=$ac_cv_prog_CC
2087 if test -n "$CC"; then
2088   echo "$as_me:$LINENO: result: $CC" >&5
2089 echo "${ECHO_T}$CC" >&6
2090 else
2091   echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6
2093 fi
2094
2095     test -n "$CC" && break
2096   done
2097 fi
2098 if test -z "$CC"; then
2099   ac_ct_CC=$CC
2100   for ac_prog in cl
2101 do
2102   # Extract the first word of "$ac_prog", so it can be a program name with args.
2103 set dummy $ac_prog; ac_word=$2
2104 echo "$as_me:$LINENO: checking for $ac_word" >&5
2105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2107   echo $ECHO_N "(cached) $ECHO_C" >&6
2108 else
2109   if test -n "$ac_ct_CC"; then
2110   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2111 else
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 for as_dir in $PATH
2114 do
2115   IFS=$as_save_IFS
2116   test -z "$as_dir" && as_dir=.
2117   for ac_exec_ext in '' $ac_executable_extensions; do
2118   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2119     ac_cv_prog_ac_ct_CC="$ac_prog"
2120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121     break 2
2122   fi
2123 done
2124 done
2125
2126 fi
2127 fi
2128 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2129 if test -n "$ac_ct_CC"; then
2130   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2131 echo "${ECHO_T}$ac_ct_CC" >&6
2132 else
2133   echo "$as_me:$LINENO: result: no" >&5
2134 echo "${ECHO_T}no" >&6
2135 fi
2136
2137   test -n "$ac_ct_CC" && break
2138 done
2139
2140   CC=$ac_ct_CC
2141 fi
2142
2143 fi
2144
2145
2146 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2147 See \`config.log' for more details." >&5
2148 echo "$as_me: error: no acceptable C compiler found in \$PATH
2149 See \`config.log' for more details." >&2;}
2150    { (exit 1); exit 1; }; }
2151
2152 # Provide some information about the compiler.
2153 echo "$as_me:$LINENO:" \
2154      "checking for C compiler version" >&5
2155 ac_compiler=`set X $ac_compile; echo $2`
2156 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2157   (eval $ac_compiler --version </dev/null >&5) 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }
2161 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2162   (eval $ac_compiler -v </dev/null >&5) 2>&5
2163   ac_status=$?
2164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165   (exit $ac_status); }
2166 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2167   (eval $ac_compiler -V </dev/null >&5) 2>&5
2168   ac_status=$?
2169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170   (exit $ac_status); }
2171
2172 cat >conftest.$ac_ext <<_ACEOF
2173 #line $LINENO "configure"
2174 /* confdefs.h.  */
2175 _ACEOF
2176 cat confdefs.h >>conftest.$ac_ext
2177 cat >>conftest.$ac_ext <<_ACEOF
2178 /* end confdefs.h.  */
2179
2180 int
2181 main ()
2182 {
2183
2184   ;
2185   return 0;
2186 }
2187 _ACEOF
2188 ac_clean_files_save=$ac_clean_files
2189 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2190 # Try to create an executable without -o first, disregard a.out.
2191 # It will help us diagnose broken compilers, and finding out an intuition
2192 # of exeext.
2193 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2194 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2195 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2196 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2197   (eval $ac_link_default) 2>&5
2198   ac_status=$?
2199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200   (exit $ac_status); }; then
2201   # Find the output, starting from the most likely.  This scheme is
2202 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2203 # resort.
2204
2205 # Be careful to initialize this variable, since it used to be cached.
2206 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2207 ac_cv_exeext=
2208 # b.out is created by i960 compilers.
2209 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2210 do
2211   test -f "$ac_file" || continue
2212   case $ac_file in
2213     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2214         ;;
2215     conftest.$ac_ext )
2216         # This is the source file.
2217         ;;
2218     [ab].out )
2219         # We found the default executable, but exeext='' is most
2220         # certainly right.
2221         break;;
2222     *.* )
2223         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2224         # FIXME: I believe we export ac_cv_exeext for Libtool,
2225         # but it would be cool to find out if it's true.  Does anybody
2226         # maintain Libtool? --akim.
2227         export ac_cv_exeext
2228         break;;
2229     * )
2230         break;;
2231   esac
2232 done
2233 else
2234   echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2236
2237 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2238 See \`config.log' for more details." >&5
2239 echo "$as_me: error: C compiler cannot create executables
2240 See \`config.log' for more details." >&2;}
2241    { (exit 77); exit 77; }; }
2242 fi
2243
2244 ac_exeext=$ac_cv_exeext
2245 echo "$as_me:$LINENO: result: $ac_file" >&5
2246 echo "${ECHO_T}$ac_file" >&6
2247
2248 # Check the compiler produces executables we can run.  If not, either
2249 # the compiler is broken, or we cross compile.
2250 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2251 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2252 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2253 # If not cross compiling, check that we can run a simple program.
2254 if test "$cross_compiling" != yes; then
2255   if { ac_try='./$ac_file'
2256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257   (eval $ac_try) 2>&5
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); }; }; then
2261     cross_compiling=no
2262   else
2263     if test "$cross_compiling" = maybe; then
2264         cross_compiling=yes
2265     else
2266         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2267 If you meant to cross compile, use \`--host'.
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&2;}
2272    { (exit 1); exit 1; }; }
2273     fi
2274   fi
2275 fi
2276 echo "$as_me:$LINENO: result: yes" >&5
2277 echo "${ECHO_T}yes" >&6
2278
2279 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2280 ac_clean_files=$ac_clean_files_save
2281 # Check the compiler produces executables we can run.  If not, either
2282 # the compiler is broken, or we cross compile.
2283 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2284 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2285 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2286 echo "${ECHO_T}$cross_compiling" >&6
2287
2288 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2289 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2291   (eval $ac_link) 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); }; then
2295   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2296 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2297 # work properly (i.e., refer to `conftest.exe'), while it won't with
2298 # `rm'.
2299 for ac_file in conftest.exe conftest conftest.*; do
2300   test -f "$ac_file" || continue
2301   case $ac_file in
2302     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2303     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2304           export ac_cv_exeext
2305           break;;
2306     * ) break;;
2307   esac
2308 done
2309 else
2310   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2311 See \`config.log' for more details." >&5
2312 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2313 See \`config.log' for more details." >&2;}
2314    { (exit 1); exit 1; }; }
2315 fi
2316
2317 rm -f conftest$ac_cv_exeext
2318 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2319 echo "${ECHO_T}$ac_cv_exeext" >&6
2320
2321 rm -f conftest.$ac_ext
2322 EXEEXT=$ac_cv_exeext
2323 ac_exeext=$EXEEXT
2324 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2325 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2326 if test "${ac_cv_objext+set}" = set; then
2327   echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329   cat >conftest.$ac_ext <<_ACEOF
2330 #line $LINENO "configure"
2331 /* confdefs.h.  */
2332 _ACEOF
2333 cat confdefs.h >>conftest.$ac_ext
2334 cat >>conftest.$ac_ext <<_ACEOF
2335 /* end confdefs.h.  */
2336
2337 int
2338 main ()
2339 {
2340
2341   ;
2342   return 0;
2343 }
2344 _ACEOF
2345 rm -f conftest.o conftest.obj
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347   (eval $ac_compile) 2>&5
2348   ac_status=$?
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); }; then
2351   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2352   case $ac_file in
2353     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2354     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2355        break;;
2356   esac
2357 done
2358 else
2359   echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2361
2362 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2363 See \`config.log' for more details." >&5
2364 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2365 See \`config.log' for more details." >&2;}
2366    { (exit 1); exit 1; }; }
2367 fi
2368
2369 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2370 fi
2371 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2372 echo "${ECHO_T}$ac_cv_objext" >&6
2373 OBJEXT=$ac_cv_objext
2374 ac_objext=$OBJEXT
2375 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2376 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2377 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2378   echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380   cat >conftest.$ac_ext <<_ACEOF
2381 #line $LINENO "configure"
2382 /* confdefs.h.  */
2383 _ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h.  */
2387
2388 int
2389 main ()
2390 {
2391 #ifndef __GNUC__
2392        choke me
2393 #endif
2394
2395   ;
2396   return 0;
2397 }
2398 _ACEOF
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401   (eval $ac_compile) 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); } &&
2405          { ac_try='test -s conftest.$ac_objext'
2406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407   (eval $ac_try) 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }; }; then
2411   ac_compiler_gnu=yes
2412 else
2413   echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2415
2416 ac_compiler_gnu=no
2417 fi
2418 rm -f conftest.$ac_objext conftest.$ac_ext
2419 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420
2421 fi
2422 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2424 GCC=`test $ac_compiler_gnu = yes && echo yes`
2425 ac_test_CFLAGS=${CFLAGS+set}
2426 ac_save_CFLAGS=$CFLAGS
2427 CFLAGS="-g"
2428 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2429 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2430 if test "${ac_cv_prog_cc_g+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   cat >conftest.$ac_ext <<_ACEOF
2434 #line $LINENO "configure"
2435 /* confdefs.h.  */
2436 _ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h.  */
2440
2441 int
2442 main ()
2443 {
2444
2445   ;
2446   return 0;
2447 }
2448 _ACEOF
2449 rm -f conftest.$ac_objext
2450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451   (eval $ac_compile) 2>&5
2452   ac_status=$?
2453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454   (exit $ac_status); } &&
2455          { ac_try='test -s conftest.$ac_objext'
2456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457   (eval $ac_try) 2>&5
2458   ac_status=$?
2459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); }; }; then
2461   ac_cv_prog_cc_g=yes
2462 else
2463   echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2465
2466 ac_cv_prog_cc_g=no
2467 fi
2468 rm -f conftest.$ac_objext conftest.$ac_ext
2469 fi
2470 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2471 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2472 if test "$ac_test_CFLAGS" = set; then
2473   CFLAGS=$ac_save_CFLAGS
2474 elif test $ac_cv_prog_cc_g = yes; then
2475   if test "$GCC" = yes; then
2476     CFLAGS="-g -O2"
2477   else
2478     CFLAGS="-g"
2479   fi
2480 else
2481   if test "$GCC" = yes; then
2482     CFLAGS="-O2"
2483   else
2484     CFLAGS=
2485   fi
2486 fi
2487 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2488 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2489 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2490   echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492   ac_cv_prog_cc_stdc=no
2493 ac_save_CC=$CC
2494 cat >conftest.$ac_ext <<_ACEOF
2495 #line $LINENO "configure"
2496 /* confdefs.h.  */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h.  */
2501 #include <stdarg.h>
2502 #include <stdio.h>
2503 #include <sys/types.h>
2504 #include <sys/stat.h>
2505 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2506 struct buf { int x; };
2507 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2508 static char *e (p, i)
2509      char **p;
2510      int i;
2511 {
2512   return p[i];
2513 }
2514 static char *f (char * (*g) (char **, int), char **p, ...)
2515 {
2516   char *s;
2517   va_list v;
2518   va_start (v,p);
2519   s = g (p, va_arg (v,int));
2520   va_end (v);
2521   return s;
2522 }
2523 int test (int i, double x);
2524 struct s1 {int (*f) (int a);};
2525 struct s2 {int (*f) (double a);};
2526 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2527 int argc;
2528 char **argv;
2529 int
2530 main ()
2531 {
2532 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2533   ;
2534   return 0;
2535 }
2536 _ACEOF
2537 # Don't try gcc -ansi; that turns off useful extensions and
2538 # breaks some systems' header files.
2539 # AIX                   -qlanglvl=ansi
2540 # Ultrix and OSF/1      -std1
2541 # HP-UX 10.20 and later -Ae
2542 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2543 # SVR4                  -Xc -D__EXTENSIONS__
2544 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2545 do
2546   CC="$ac_save_CC $ac_arg"
2547   rm -f conftest.$ac_objext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549   (eval $ac_compile) 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); } &&
2553          { ac_try='test -s conftest.$ac_objext'
2554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555   (eval $ac_try) 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; }; then
2559   ac_cv_prog_cc_stdc=$ac_arg
2560 break
2561 else
2562   echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2564
2565 fi
2566 rm -f conftest.$ac_objext
2567 done
2568 rm -f conftest.$ac_ext conftest.$ac_objext
2569 CC=$ac_save_CC
2570
2571 fi
2572
2573 case "x$ac_cv_prog_cc_stdc" in
2574   x|xno)
2575     echo "$as_me:$LINENO: result: none needed" >&5
2576 echo "${ECHO_T}none needed" >&6 ;;
2577   *)
2578     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2579 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2580     CC="$CC $ac_cv_prog_cc_stdc" ;;
2581 esac
2582
2583 # Some people use a C++ compiler to compile C.  Since we use `exit',
2584 # in C++ we need to declare it.  In case someone uses the same compiler
2585 # for both compiling C and C++ we need to have the C++ compiler decide
2586 # the declaration of exit, since it's the most demanding environment.
2587 cat >conftest.$ac_ext <<_ACEOF
2588 #ifndef __cplusplus
2589   choke me
2590 #endif
2591 _ACEOF
2592 rm -f conftest.$ac_objext
2593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2594   (eval $ac_compile) 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); } &&
2598          { ac_try='test -s conftest.$ac_objext'
2599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600   (eval $ac_try) 2>&5
2601   ac_status=$?
2602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); }; }; then
2604   for ac_declaration in \
2605    ''\
2606    '#include <stdlib.h>' \
2607    'extern "C" void std::exit (int) throw (); using std::exit;' \
2608    'extern "C" void std::exit (int); using std::exit;' \
2609    'extern "C" void exit (int) throw ();' \
2610    'extern "C" void exit (int);' \
2611    'void exit (int);'
2612 do
2613   cat >conftest.$ac_ext <<_ACEOF
2614 #line $LINENO "configure"
2615 /* confdefs.h.  */
2616 _ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h.  */
2620 #include <stdlib.h>
2621 $ac_declaration
2622 int
2623 main ()
2624 {
2625 exit (42);
2626   ;
2627   return 0;
2628 }
2629 _ACEOF
2630 rm -f conftest.$ac_objext
2631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632   (eval $ac_compile) 2>&5
2633   ac_status=$?
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); } &&
2636          { ac_try='test -s conftest.$ac_objext'
2637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638   (eval $ac_try) 2>&5
2639   ac_status=$?
2640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641   (exit $ac_status); }; }; then
2642   :
2643 else
2644   echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.$ac_ext >&5
2646
2647 continue
2648 fi
2649 rm -f conftest.$ac_objext conftest.$ac_ext
2650   cat >conftest.$ac_ext <<_ACEOF
2651 #line $LINENO "configure"
2652 /* confdefs.h.  */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h.  */
2657 $ac_declaration
2658 int
2659 main ()
2660 {
2661 exit (42);
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668   (eval $ac_compile) 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); } &&
2672          { ac_try='test -s conftest.$ac_objext'
2673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674   (eval $ac_try) 2>&5
2675   ac_status=$?
2676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677   (exit $ac_status); }; }; then
2678   break
2679 else
2680   echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683 fi
2684 rm -f conftest.$ac_objext conftest.$ac_ext
2685 done
2686 rm -f conftest*
2687 if test -n "$ac_declaration"; then
2688   echo '#ifdef __cplusplus' >>confdefs.h
2689   echo $ac_declaration      >>confdefs.h
2690   echo '#endif'             >>confdefs.h
2691 fi
2692
2693 else
2694   echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2696
2697 fi
2698 rm -f conftest.$ac_objext conftest.$ac_ext
2699 ac_ext=c
2700 ac_cpp='$CPP $CPPFLAGS'
2701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704
2705
2706
2707         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2708 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2709 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2710   echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712   ac_check_lib_save_LIBS=$LIBS
2713 LIBS="-lcposix  $LIBS"
2714 cat >conftest.$ac_ext <<_ACEOF
2715 #line $LINENO "configure"
2716 /* confdefs.h.  */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h.  */
2721
2722 /* Override any gcc2 internal prototype to avoid an error.  */
2723 #ifdef __cplusplus
2724 extern "C"
2725 #endif
2726 /* We use char because int might match the return type of a gcc2
2727    builtin and then its argument prototype would still apply.  */
2728 char strerror ();
2729 int
2730 main ()
2731 {
2732 strerror ();
2733   ;
2734   return 0;
2735 }
2736 _ACEOF
2737 rm -f conftest.$ac_objext conftest$ac_exeext
2738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2739   (eval $ac_link) 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); } &&
2743          { ac_try='test -s conftest$ac_exeext'
2744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745   (eval $ac_try) 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }; }; then
2749   ac_cv_lib_cposix_strerror=yes
2750 else
2751   echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2753
2754 ac_cv_lib_cposix_strerror=no
2755 fi
2756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2757 LIBS=$ac_check_lib_save_LIBS
2758 fi
2759 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2760 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2761 if test $ac_cv_lib_cposix_strerror = yes; then
2762   LIBS="$LIBS -lcposix"
2763 fi
2764
2765
2766
2767 ac_ext=c
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772 if test -n "$ac_tool_prefix"; then
2773   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2774 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2775 echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2777 if test "${ac_cv_prog_CC+set}" = set; then
2778   echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780   if test -n "$CC"; then
2781   ac_cv_prog_CC="$CC" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786   IFS=$as_save_IFS
2787   test -z "$as_dir" && as_dir=.
2788   for ac_exec_ext in '' $ac_executable_extensions; do
2789   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792     break 2
2793   fi
2794 done
2795 done
2796
2797 fi
2798 fi
2799 CC=$ac_cv_prog_CC
2800 if test -n "$CC"; then
2801   echo "$as_me:$LINENO: result: $CC" >&5
2802 echo "${ECHO_T}$CC" >&6
2803 else
2804   echo "$as_me:$LINENO: result: no" >&5
2805 echo "${ECHO_T}no" >&6
2806 fi
2807
2808 fi
2809 if test -z "$ac_cv_prog_CC"; then
2810   ac_ct_CC=$CC
2811   # Extract the first word of "gcc", so it can be a program name with args.
2812 set dummy gcc; ac_word=$2
2813 echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2815 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   if test -n "$ac_ct_CC"; then
2819   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826   for ac_exec_ext in '' $ac_executable_extensions; do
2827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828     ac_cv_prog_ac_ct_CC="gcc"
2829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833 done
2834
2835 fi
2836 fi
2837 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2838 if test -n "$ac_ct_CC"; then
2839   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2840 echo "${ECHO_T}$ac_ct_CC" >&6
2841 else
2842   echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6
2844 fi
2845
2846   CC=$ac_ct_CC
2847 else
2848   CC="$ac_cv_prog_CC"
2849 fi
2850
2851 if test -z "$CC"; then
2852   if test -n "$ac_tool_prefix"; then
2853   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2854 set dummy ${ac_tool_prefix}cc; ac_word=$2
2855 echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2857 if test "${ac_cv_prog_CC+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860   if test -n "$CC"; then
2861   ac_cv_prog_CC="$CC" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866   IFS=$as_save_IFS
2867   test -z "$as_dir" && as_dir=.
2868   for ac_exec_ext in '' $ac_executable_extensions; do
2869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870     ac_cv_prog_CC="${ac_tool_prefix}cc"
2871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872     break 2
2873   fi
2874 done
2875 done
2876
2877 fi
2878 fi
2879 CC=$ac_cv_prog_CC
2880 if test -n "$CC"; then
2881   echo "$as_me:$LINENO: result: $CC" >&5
2882 echo "${ECHO_T}$CC" >&6
2883 else
2884   echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6
2886 fi
2887
2888 fi
2889 if test -z "$ac_cv_prog_CC"; then
2890   ac_ct_CC=$CC
2891   # Extract the first word of "cc", so it can be a program name with args.
2892 set dummy cc; ac_word=$2
2893 echo "$as_me:$LINENO: checking for $ac_word" >&5
2894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2895 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2896   echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898   if test -n "$ac_ct_CC"; then
2899   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2903 do
2904   IFS=$as_save_IFS
2905   test -z "$as_dir" && as_dir=.
2906   for ac_exec_ext in '' $ac_executable_extensions; do
2907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2908     ac_cv_prog_ac_ct_CC="cc"
2909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2910     break 2
2911   fi
2912 done
2913 done
2914
2915 fi
2916 fi
2917 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2918 if test -n "$ac_ct_CC"; then
2919   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2920 echo "${ECHO_T}$ac_ct_CC" >&6
2921 else
2922   echo "$as_me:$LINENO: result: no" >&5
2923 echo "${ECHO_T}no" >&6
2924 fi
2925
2926   CC=$ac_ct_CC
2927 else
2928   CC="$ac_cv_prog_CC"
2929 fi
2930
2931 fi
2932 if test -z "$CC"; then
2933   # Extract the first word of "cc", so it can be a program name with args.
2934 set dummy cc; ac_word=$2
2935 echo "$as_me:$LINENO: checking for $ac_word" >&5
2936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2937 if test "${ac_cv_prog_CC+set}" = set; then
2938   echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940   if test -n "$CC"; then
2941   ac_cv_prog_CC="$CC" # Let the user override the test.
2942 else
2943   ac_prog_rejected=no
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2946 do
2947   IFS=$as_save_IFS
2948   test -z "$as_dir" && as_dir=.
2949   for ac_exec_ext in '' $ac_executable_extensions; do
2950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2952        ac_prog_rejected=yes
2953        continue
2954      fi
2955     ac_cv_prog_CC="cc"
2956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957     break 2
2958   fi
2959 done
2960 done
2961
2962 if test $ac_prog_rejected = yes; then
2963   # We found a bogon in the path, so make sure we never use it.
2964   set dummy $ac_cv_prog_CC
2965   shift
2966   if test $# != 0; then
2967     # We chose a different compiler from the bogus one.
2968     # However, it has the same basename, so the bogon will be chosen
2969     # first if we set CC to just the basename; use the full file name.
2970     shift
2971     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2972   fi
2973 fi
2974 fi
2975 fi
2976 CC=$ac_cv_prog_CC
2977 if test -n "$CC"; then
2978   echo "$as_me:$LINENO: result: $CC" >&5
2979 echo "${ECHO_T}$CC" >&6
2980 else
2981   echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6
2983 fi
2984
2985 fi
2986 if test -z "$CC"; then
2987   if test -n "$ac_tool_prefix"; then
2988   for ac_prog in cl
2989   do
2990     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2991 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2992 echo "$as_me:$LINENO: checking for $ac_word" >&5
2993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2994 if test "${ac_cv_prog_CC+set}" = set; then
2995   echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997   if test -n "$CC"; then
2998   ac_cv_prog_CC="$CC" # Let the user override the test.
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3002 do
3003   IFS=$as_save_IFS
3004   test -z "$as_dir" && as_dir=.
3005   for ac_exec_ext in '' $ac_executable_extensions; do
3006   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009     break 2
3010   fi
3011 done
3012 done
3013
3014 fi
3015 fi
3016 CC=$ac_cv_prog_CC
3017 if test -n "$CC"; then
3018   echo "$as_me:$LINENO: result: $CC" >&5
3019 echo "${ECHO_T}$CC" >&6
3020 else
3021   echo "$as_me:$LINENO: result: no" >&5
3022 echo "${ECHO_T}no" >&6
3023 fi
3024
3025     test -n "$CC" && break
3026   done
3027 fi
3028 if test -z "$CC"; then
3029   ac_ct_CC=$CC
3030   for ac_prog in cl
3031 do
3032   # Extract the first word of "$ac_prog", so it can be a program name with args.
3033 set dummy $ac_prog; ac_word=$2
3034 echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3036 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3037   echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039   if test -n "$ac_ct_CC"; then
3040   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045   IFS=$as_save_IFS
3046   test -z "$as_dir" && as_dir=.
3047   for ac_exec_ext in '' $ac_executable_extensions; do
3048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049     ac_cv_prog_ac_ct_CC="$ac_prog"
3050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051     break 2
3052   fi
3053 done
3054 done
3055
3056 fi
3057 fi
3058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3059 if test -n "$ac_ct_CC"; then
3060   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3061 echo "${ECHO_T}$ac_ct_CC" >&6
3062 else
3063   echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6
3065 fi
3066
3067   test -n "$ac_ct_CC" && break
3068 done
3069
3070   CC=$ac_ct_CC
3071 fi
3072
3073 fi
3074
3075
3076 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3077 See \`config.log' for more details." >&5
3078 echo "$as_me: error: no acceptable C compiler found in \$PATH
3079 See \`config.log' for more details." >&2;}
3080    { (exit 1); exit 1; }; }
3081
3082 # Provide some information about the compiler.
3083 echo "$as_me:$LINENO:" \
3084      "checking for C compiler version" >&5
3085 ac_compiler=`set X $ac_compile; echo $2`
3086 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3087   (eval $ac_compiler --version </dev/null >&5) 2>&5
3088   ac_status=$?
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); }
3091 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3092   (eval $ac_compiler -v </dev/null >&5) 2>&5
3093   ac_status=$?
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); }
3096 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3097   (eval $ac_compiler -V </dev/null >&5) 2>&5
3098   ac_status=$?
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); }
3101
3102 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3103 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3104 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3105   echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107   cat >conftest.$ac_ext <<_ACEOF
3108 #line $LINENO "configure"
3109 /* confdefs.h.  */
3110 _ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h.  */
3114
3115 int
3116 main ()
3117 {
3118 #ifndef __GNUC__
3119        choke me
3120 #endif
3121
3122   ;
3123   return 0;
3124 }
3125 _ACEOF
3126 rm -f conftest.$ac_objext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128   (eval $ac_compile) 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); } &&
3132          { ac_try='test -s conftest.$ac_objext'
3133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134   (eval $ac_try) 2>&5
3135   ac_status=$?
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); }; }; then
3138   ac_compiler_gnu=yes
3139 else
3140   echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3142
3143 ac_compiler_gnu=no
3144 fi
3145 rm -f conftest.$ac_objext conftest.$ac_ext
3146 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3147
3148 fi
3149 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3150 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3151 GCC=`test $ac_compiler_gnu = yes && echo yes`
3152 ac_test_CFLAGS=${CFLAGS+set}
3153 ac_save_CFLAGS=$CFLAGS
3154 CFLAGS="-g"
3155 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3156 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3157 if test "${ac_cv_prog_cc_g+set}" = set; then
3158   echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160   cat >conftest.$ac_ext <<_ACEOF
3161 #line $LINENO "configure"
3162 /* confdefs.h.  */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h.  */
3167
3168 int
3169 main ()
3170 {
3171
3172   ;
3173   return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3178   (eval $ac_compile) 2>&5
3179   ac_status=$?
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); } &&
3182          { ac_try='test -s conftest.$ac_objext'
3183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184   (eval $ac_try) 2>&5
3185   ac_status=$?
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); }; }; then
3188   ac_cv_prog_cc_g=yes
3189 else
3190   echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3192
3193 ac_cv_prog_cc_g=no
3194 fi
3195 rm -f conftest.$ac_objext conftest.$ac_ext
3196 fi
3197 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3198 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3199 if test "$ac_test_CFLAGS" = set; then
3200   CFLAGS=$ac_save_CFLAGS
3201 elif test $ac_cv_prog_cc_g = yes; then
3202   if test "$GCC" = yes; then
3203     CFLAGS="-g -O2"
3204   else
3205     CFLAGS="-g"
3206   fi
3207 else
3208   if test "$GCC" = yes; then
3209     CFLAGS="-O2"
3210   else
3211     CFLAGS=
3212   fi
3213 fi
3214 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3215 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3216 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3217   echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219   ac_cv_prog_cc_stdc=no
3220 ac_save_CC=$CC
3221 cat >conftest.$ac_ext <<_ACEOF
3222 #line $LINENO "configure"
3223 /* confdefs.h.  */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h.  */
3228 #include <stdarg.h>
3229 #include <stdio.h>
3230 #include <sys/types.h>
3231 #include <sys/stat.h>
3232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3233 struct buf { int x; };
3234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3235 static char *e (p, i)
3236      char **p;
3237      int i;
3238 {
3239   return p[i];
3240 }
3241 static char *f (char * (*g) (char **, int), char **p, ...)
3242 {
3243   char *s;
3244   va_list v;
3245   va_start (v,p);
3246   s = g (p, va_arg (v,int));
3247   va_end (v);
3248   return s;
3249 }
3250 int test (int i, double x);
3251 struct s1 {int (*f) (int a);};
3252 struct s2 {int (*f) (double a);};
3253 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3254 int argc;
3255 char **argv;
3256 int
3257 main ()
3258 {
3259 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3260   ;
3261   return 0;
3262 }
3263 _ACEOF
3264 # Don't try gcc -ansi; that turns off useful extensions and
3265 # breaks some systems' header files.
3266 # AIX                   -qlanglvl=ansi
3267 # Ultrix and OSF/1      -std1
3268 # HP-UX 10.20 and later -Ae
3269 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3270 # SVR4                  -Xc -D__EXTENSIONS__
3271 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3272 do
3273   CC="$ac_save_CC $ac_arg"
3274   rm -f conftest.$ac_objext
3275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3276   (eval $ac_compile) 2>&5
3277   ac_status=$?
3278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); } &&
3280          { ac_try='test -s conftest.$ac_objext'
3281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282   (eval $ac_try) 2>&5
3283   ac_status=$?
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); }; }; then
3286   ac_cv_prog_cc_stdc=$ac_arg
3287 break
3288 else
3289   echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3291
3292 fi
3293 rm -f conftest.$ac_objext
3294 done
3295 rm -f conftest.$ac_ext conftest.$ac_objext
3296 CC=$ac_save_CC
3297
3298 fi
3299
3300 case "x$ac_cv_prog_cc_stdc" in
3301   x|xno)
3302     echo "$as_me:$LINENO: result: none needed" >&5
3303 echo "${ECHO_T}none needed" >&6 ;;
3304   *)
3305     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3306 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3307     CC="$CC $ac_cv_prog_cc_stdc" ;;
3308 esac
3309
3310 # Some people use a C++ compiler to compile C.  Since we use `exit',
3311 # in C++ we need to declare it.  In case someone uses the same compiler
3312 # for both compiling C and C++ we need to have the C++ compiler decide
3313 # the declaration of exit, since it's the most demanding environment.
3314 cat >conftest.$ac_ext <<_ACEOF
3315 #ifndef __cplusplus
3316   choke me
3317 #endif
3318 _ACEOF
3319 rm -f conftest.$ac_objext
3320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3321   (eval $ac_compile) 2>&5
3322   ac_status=$?
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); } &&
3325          { ac_try='test -s conftest.$ac_objext'
3326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327   (eval $ac_try) 2>&5
3328   ac_status=$?
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); }; }; then
3331   for ac_declaration in \
3332    ''\
3333    '#include <stdlib.h>' \
3334    'extern "C" void std::exit (int) throw (); using std::exit;' \
3335    'extern "C" void std::exit (int); using std::exit;' \
3336    'extern "C" void exit (int) throw ();' \
3337    'extern "C" void exit (int);' \
3338    'void exit (int);'
3339 do
3340   cat >conftest.$ac_ext <<_ACEOF
3341 #line $LINENO "configure"
3342 /* confdefs.h.  */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h.  */
3347 #include <stdlib.h>
3348 $ac_declaration
3349 int
3350 main ()
3351 {
3352 exit (42);
3353   ;
3354   return 0;
3355 }
3356 _ACEOF
3357 rm -f conftest.$ac_objext
3358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3359   (eval $ac_compile) 2>&5
3360   ac_status=$?
3361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362   (exit $ac_status); } &&
3363          { ac_try='test -s conftest.$ac_objext'
3364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365   (eval $ac_try) 2>&5
3366   ac_status=$?
3367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368   (exit $ac_status); }; }; then
3369   :
3370 else
3371   echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374 continue
3375 fi
3376 rm -f conftest.$ac_objext conftest.$ac_ext
3377   cat >conftest.$ac_ext <<_ACEOF
3378 #line $LINENO "configure"
3379 /* confdefs.h.  */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h.  */
3384 $ac_declaration
3385 int
3386 main ()
3387 {
3388 exit (42);
3389   ;
3390   return 0;
3391 }
3392 _ACEOF
3393 rm -f conftest.$ac_objext
3394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3395   (eval $ac_compile) 2>&5
3396   ac_status=$?
3397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398   (exit $ac_status); } &&
3399          { ac_try='test -s conftest.$ac_objext'
3400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401   (eval $ac_try) 2>&5
3402   ac_status=$?
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); }; }; then
3405   break
3406 else
3407   echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3409
3410 fi
3411 rm -f conftest.$ac_objext conftest.$ac_ext
3412 done
3413 rm -f conftest*
3414 if test -n "$ac_declaration"; then
3415   echo '#ifdef __cplusplus' >>confdefs.h
3416   echo $ac_declaration      >>confdefs.h
3417   echo '#endif'             >>confdefs.h
3418 fi
3419
3420 else
3421   echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3423
3424 fi
3425 rm -f conftest.$ac_objext conftest.$ac_ext
3426 ac_ext=c
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431
3432 ac_ext=c
3433 ac_cpp='$CPP $CPPFLAGS'
3434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3438 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3439 # On Suns, sometimes $CPP names a directory.
3440 if test -n "$CPP" && test -d "$CPP"; then
3441   CPP=
3442 fi
3443 if test -z "$CPP"; then
3444   if test "${ac_cv_prog_CPP+set}" = set; then
3445   echo $ECHO_N "(cached) $ECHO_C" >&6
3446 else
3447       # Double quotes because CPP needs to be expanded
3448     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3449     do
3450       ac_preproc_ok=false
3451 for ac_c_preproc_warn_flag in '' yes
3452 do
3453   # Use a header file that comes with gcc, so configuring glibc
3454   # with a fresh cross-compiler works.
3455   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3456   # <limits.h> exists even on freestanding compilers.
3457   # On the NeXT, cc -E runs the code through the compiler's parser,
3458   # not just through cpp. "Syntax error" is here to catch this case.
3459   cat >conftest.$ac_ext <<_ACEOF
3460 #line $LINENO "configure"
3461 /* confdefs.h.  */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h.  */
3466 #ifdef __STDC__
3467 # include <limits.h>
3468 #else
3469 # include <assert.h>
3470 #endif
3471                      Syntax error
3472 _ACEOF
3473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3474   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3475   ac_status=$?
3476   grep -v '^ *+' conftest.er1 >conftest.err
3477   rm -f conftest.er1
3478   cat conftest.err >&5
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); } >/dev/null; then
3481   if test -s conftest.err; then
3482     ac_cpp_err=$ac_c_preproc_warn_flag
3483   else
3484     ac_cpp_err=
3485   fi
3486 else
3487   ac_cpp_err=yes
3488 fi
3489 if test -z "$ac_cpp_err"; then
3490   :
3491 else
3492   echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495   # Broken: fails on valid input.
3496 continue
3497 fi
3498 rm -f conftest.err conftest.$ac_ext
3499
3500   # OK, works on sane cases.  Now check whether non-existent headers
3501   # can be detected and how.
3502   cat >conftest.$ac_ext <<_ACEOF
3503 #line $LINENO "configure"
3504 /* confdefs.h.  */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h.  */
3509 #include <ac_nonexistent.h>
3510 _ACEOF
3511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3512   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3513   ac_status=$?
3514   grep -v '^ *+' conftest.er1 >conftest.err
3515   rm -f conftest.er1
3516   cat conftest.err >&5
3517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518   (exit $ac_status); } >/dev/null; then
3519   if test -s conftest.err; then
3520     ac_cpp_err=$ac_c_preproc_warn_flag
3521   else
3522     ac_cpp_err=
3523   fi
3524 else
3525   ac_cpp_err=yes
3526 fi
3527 if test -z "$ac_cpp_err"; then
3528   # Broken: success on invalid input.
3529 continue
3530 else
3531   echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3533
3534   # Passes both tests.
3535 ac_preproc_ok=:
3536 break
3537 fi
3538 rm -f conftest.err conftest.$ac_ext
3539
3540 done
3541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3542 rm -f conftest.err conftest.$ac_ext
3543 if $ac_preproc_ok; then
3544   break
3545 fi
3546
3547     done
3548     ac_cv_prog_CPP=$CPP
3549
3550 fi
3551   CPP=$ac_cv_prog_CPP
3552 else
3553   ac_cv_prog_CPP=$CPP
3554 fi
3555 echo "$as_me:$LINENO: result: $CPP" >&5
3556 echo "${ECHO_T}$CPP" >&6
3557 ac_preproc_ok=false
3558 for ac_c_preproc_warn_flag in '' yes
3559 do
3560   # Use a header file that comes with gcc, so configuring glibc
3561   # with a fresh cross-compiler works.
3562   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3563   # <limits.h> exists even on freestanding compilers.
3564   # On the NeXT, cc -E runs the code through the compiler's parser,
3565   # not just through cpp. "Syntax error" is here to catch this case.
3566   cat >conftest.$ac_ext <<_ACEOF
3567 #line $LINENO "configure"
3568 /* confdefs.h.  */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h.  */
3573 #ifdef __STDC__
3574 # include <limits.h>
3575 #else
3576 # include <assert.h>
3577 #endif
3578                      Syntax error
3579 _ACEOF
3580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3581   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3582   ac_status=$?
3583   grep -v '^ *+' conftest.er1 >conftest.err
3584   rm -f conftest.er1
3585   cat conftest.err >&5
3586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587   (exit $ac_status); } >/dev/null; then
3588   if test -s conftest.err; then
3589     ac_cpp_err=$ac_c_preproc_warn_flag
3590   else
3591     ac_cpp_err=
3592   fi
3593 else
3594   ac_cpp_err=yes
3595 fi
3596 if test -z "$ac_cpp_err"; then
3597   :
3598 else
3599   echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3601
3602   # Broken: fails on valid input.
3603 continue
3604 fi
3605 rm -f conftest.err conftest.$ac_ext
3606
3607   # OK, works on sane cases.  Now check whether non-existent headers
3608   # can be detected and how.
3609   cat >conftest.$ac_ext <<_ACEOF
3610 #line $LINENO "configure"
3611 /* confdefs.h.  */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h.  */
3616 #include <ac_nonexistent.h>
3617 _ACEOF
3618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3619   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3620   ac_status=$?
3621   grep -v '^ *+' conftest.er1 >conftest.err
3622   rm -f conftest.er1
3623   cat conftest.err >&5
3624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625   (exit $ac_status); } >/dev/null; then
3626   if test -s conftest.err; then
3627     ac_cpp_err=$ac_c_preproc_warn_flag
3628   else
3629     ac_cpp_err=
3630   fi
3631 else
3632   ac_cpp_err=yes
3633 fi
3634 if test -z "$ac_cpp_err"; then
3635   # Broken: success on invalid input.
3636 continue
3637 else
3638   echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3640
3641   # Passes both tests.
3642 ac_preproc_ok=:
3643 break
3644 fi
3645 rm -f conftest.err conftest.$ac_ext
3646
3647 done
3648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3649 rm -f conftest.err conftest.$ac_ext
3650 if $ac_preproc_ok; then
3651   :
3652 else
3653   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3654 See \`config.log' for more details." >&5
3655 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3656 See \`config.log' for more details." >&2;}
3657    { (exit 1); exit 1; }; }
3658 fi
3659
3660 ac_ext=c
3661 ac_cpp='$CPP $CPPFLAGS'
3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665
3666 for ac_prog in gawk mawk nawk awk
3667 do
3668   # Extract the first word of "$ac_prog", so it can be a program name with args.
3669 set dummy $ac_prog; ac_word=$2
3670 echo "$as_me:$LINENO: checking for $ac_word" >&5
3671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3672 if test "${ac_cv_prog_AWK+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   if test -n "$AWK"; then
3676   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681   IFS=$as_save_IFS
3682   test -z "$as_dir" && as_dir=.
3683   for ac_exec_ext in '' $ac_executable_extensions; do
3684   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3685     ac_cv_prog_AWK="$ac_prog"
3686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3687     break 2
3688   fi
3689 done
3690 done
3691
3692 fi
3693 fi
3694 AWK=$ac_cv_prog_AWK
3695 if test -n "$AWK"; then
3696   echo "$as_me:$LINENO: result: $AWK" >&5
3697 echo "${ECHO_T}$AWK" >&6
3698 else
3699   echo "$as_me:$LINENO: result: no" >&5
3700 echo "${ECHO_T}no" >&6
3701 fi
3702
3703   test -n "$AWK" && break
3704 done
3705
3706
3707 # Check whether --enable-shared or --disable-shared was given.
3708 if test "${enable_shared+set}" = set; then
3709   enableval="$enable_shared"
3710   p=${PACKAGE-default}
3711 case $enableval in
3712 yes) enable_shared=yes ;;
3713 no) enable_shared=no ;;
3714 *)
3715   enable_shared=no
3716   # Look at the argument we got.  We use all the common list separators.
3717   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3718   for pkg in $enableval; do
3719     if test "X$pkg" = "X$p"; then
3720       enable_shared=yes
3721     fi
3722   done
3723   IFS="$ac_save_ifs"
3724   ;;
3725 esac
3726 else
3727   enable_shared=yes
3728 fi;
3729 # Check whether --enable-static or --disable-static was given.
3730 if test "${enable_static+set}" = set; then
3731   enableval="$enable_static"
3732   p=${PACKAGE-default}
3733 case $enableval in
3734 yes) enable_static=yes ;;
3735 no) enable_static=no ;;
3736 *)
3737   enable_static=no
3738   # Look at the argument we got.  We use all the common list separators.
3739   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3740   for pkg in $enableval; do
3741     if test "X$pkg" = "X$p"; then
3742       enable_static=yes
3743     fi
3744   done
3745   IFS="$ac_save_ifs"
3746   ;;
3747 esac
3748 else
3749   enable_static=yes
3750 fi;
3751 # Check whether --enable-fast-install or --disable-fast-install was given.
3752 if test "${enable_fast_install+set}" = set; then
3753   enableval="$enable_fast_install"
3754   p=${PACKAGE-default}
3755 case $enableval in
3756 yes) enable_fast_install=yes ;;
3757 no) enable_fast_install=no ;;
3758 *)
3759   enable_fast_install=no
3760   # Look at the argument we got.  We use all the common list separators.
3761   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3762   for pkg in $enableval; do
3763     if test "X$pkg" = "X$p"; then
3764       enable_fast_install=yes
3765     fi
3766   done
3767   IFS="$ac_save_ifs"
3768   ;;
3769 esac
3770 else
3771   enable_fast_install=yes
3772 fi;
3773 # Make sure we can run config.sub.
3774 $ac_config_sub sun4 >/dev/null 2>&1 ||
3775   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3776 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3777    { (exit 1); exit 1; }; }
3778
3779 echo "$as_me:$LINENO: checking build system type" >&5
3780 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3781 if test "${ac_cv_build+set}" = set; then
3782   echo $ECHO_N "(cached) $ECHO_C" >&6
3783 else
3784   ac_cv_build_alias=$build_alias
3785 test -z "$ac_cv_build_alias" &&
3786   ac_cv_build_alias=`$ac_config_guess`
3787 test -z "$ac_cv_build_alias" &&
3788   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3789 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3790    { (exit 1); exit 1; }; }
3791 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3792   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3793 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3794    { (exit 1); exit 1; }; }
3795
3796 fi
3797 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3798 echo "${ECHO_T}$ac_cv_build" >&6
3799 build=$ac_cv_build
3800 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3801 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3802 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3803
3804
3805 echo "$as_me:$LINENO: checking host system type" >&5
3806 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3807 if test "${ac_cv_host+set}" = set; then
3808   echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810   ac_cv_host_alias=$host_alias
3811 test -z "$ac_cv_host_alias" &&
3812   ac_cv_host_alias=$ac_cv_build_alias
3813 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3814   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3815 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3816    { (exit 1); exit 1; }; }
3817
3818 fi
3819 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3820 echo "${ECHO_T}$ac_cv_host" >&6
3821 host=$ac_cv_host
3822 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3823 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3824 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3825
3826
3827 # Find the correct PATH separator.  Usually this is `:', but
3828 # DJGPP uses `;' like DOS.
3829 if test "X${PATH_SEPARATOR+set}" != Xset; then
3830   UNAME=${UNAME-`uname 2>/dev/null`}
3831   case X$UNAME in
3832     *-DOS) lt_cv_sys_path_separator=';' ;;
3833     *)     lt_cv_sys_path_separator=':' ;;
3834   esac
3835   PATH_SEPARATOR=$lt_cv_sys_path_separator
3836 fi
3837
3838
3839 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3840 if test "${with_gnu_ld+set}" = set; then
3841   withval="$with_gnu_ld"
3842   test "$withval" = no || with_gnu_ld=yes
3843 else
3844   with_gnu_ld=no
3845 fi;
3846 ac_prog=ld
3847 if test "$GCC" = yes; then
3848   # Check if gcc -print-prog-name=ld gives a path.
3849   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3850 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3851   case $host in
3852   *-*-mingw*)
3853     # gcc leaves a trailing carriage return which upsets mingw
3854     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3855   *)
3856     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3857   esac
3858   case $ac_prog in
3859     # Accept absolute paths.
3860     [\\/]* | [A-Za-z]:[\\/]*)
3861       re_direlt='/[^/][^/]*/\.\./'
3862       # Canonicalize the path of ld
3863       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3864       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3865         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3866       done
3867       test -z "$LD" && LD="$ac_prog"
3868       ;;
3869   "")
3870     # If it fails, then pretend we aren't using GCC.
3871     ac_prog=ld
3872     ;;
3873   *)
3874     # If it is relative, then search for the first ld in PATH.
3875     with_gnu_ld=unknown
3876     ;;
3877   esac
3878 elif test "$with_gnu_ld" = yes; then
3879   echo "$as_me:$LINENO: checking for GNU ld" >&5
3880 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3881 else
3882   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3883 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3884 fi
3885 if test "${lt_cv_path_LD+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   if test -z "$LD"; then
3889   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3890   for ac_dir in $PATH; do
3891     test -z "$ac_dir" && ac_dir=.
3892     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3893       lt_cv_path_LD="$ac_dir/$ac_prog"
3894       # Check to see if the program is GNU ld.  I'd rather use --version,
3895       # but apparently some GNU ld's only accept -v.
3896       # Break only if it was the GNU/non-GNU ld that we prefer.
3897       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3898         test "$with_gnu_ld" != no && break
3899       else
3900         test "$with_gnu_ld" != yes && break
3901       fi
3902     fi
3903   done
3904   IFS="$ac_save_ifs"
3905 else
3906   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3907 fi
3908 fi
3909
3910 LD="$lt_cv_path_LD"
3911 if test -n "$LD"; then
3912   echo "$as_me:$LINENO: result: $LD" >&5
3913 echo "${ECHO_T}$LD" >&6
3914 else
3915   echo "$as_me:$LINENO: result: no" >&5
3916 echo "${ECHO_T}no" >&6
3917 fi
3918 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3919 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3920    { (exit 1); exit 1; }; }
3921 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3922 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3923 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3924   echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3927 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3928   lt_cv_prog_gnu_ld=yes
3929 else
3930   lt_cv_prog_gnu_ld=no
3931 fi
3932 fi
3933 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3934 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3935 with_gnu_ld=$lt_cv_prog_gnu_ld
3936
3937
3938 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3939 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3940 if test "${lt_cv_ld_reload_flag+set}" = set; then
3941   echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943   lt_cv_ld_reload_flag='-r'
3944 fi
3945 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3946 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3947 reload_flag=$lt_cv_ld_reload_flag
3948 test -n "$reload_flag" && reload_flag=" $reload_flag"
3949
3950 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3951 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3952 if test "${lt_cv_path_NM+set}" = set; then
3953   echo $ECHO_N "(cached) $ECHO_C" >&6
3954 else
3955   if test -n "$NM"; then
3956   # Let the user override the test.
3957   lt_cv_path_NM="$NM"
3958 else
3959   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3960   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3961     test -z "$ac_dir" && ac_dir=.
3962     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3963     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3964       # Check to see if the nm accepts a BSD-compat flag.
3965       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3966       #   nm: unknown option "B" ignored
3967       # Tru64's nm complains that /dev/null is an invalid object file
3968       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3969         lt_cv_path_NM="$tmp_nm -B"
3970         break
3971       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3972         lt_cv_path_NM="$tmp_nm -p"
3973         break
3974       else
3975         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3976         continue # so that we can try to find one that supports BSD flags
3977       fi
3978     fi
3979   done
3980   IFS="$ac_save_ifs"
3981   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3982 fi
3983 fi
3984
3985 NM="$lt_cv_path_NM"
3986 echo "$as_me:$LINENO: result: $NM" >&5
3987 echo "${ECHO_T}$NM" >&6
3988
3989 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3990 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3991 if test "${lt_cv_path_SED+set}" = set; then
3992   echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994   # Loop through the user's path and test for sed and gsed.
3995 # Then use that list of sed's as ones to test for truncation.
3996 as_executable_p="test -f"
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
3999 do
4000   IFS=$as_save_IFS
4001   test -z "$as_dir" && as_dir=.
4002   for ac_prog in sed gsed; do
4003     for ac_exec_ext in '' $ac_executable_extensions; do
4004       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4005         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
4006       fi
4007     done
4008   done
4009 done
4010
4011   # Create a temporary directory, and hook for its removal unless debugging.
4012 $debug ||
4013 {
4014   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4015   trap '{ (exit 1); exit 1; }' 1 2 13 15
4016 }
4017
4018 # Create a (secure) tmp directory for tmp files.
4019 : ${TMPDIR=/tmp}
4020 {
4021   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4022   test -n "$tmp" && test -d "$tmp"
4023 }  ||
4024 {
4025   tmp=$TMPDIR/sed$$-$RANDOM
4026   (umask 077 && mkdir $tmp)
4027 } ||
4028 {
4029    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4030    { (exit 1); exit 1; }
4031 }
4032   _max=0
4033   _count=0
4034   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4035   # along with /bin/sed that truncates output.
4036   for _sed in $_sed_list /usr/xpg4/bin/sed; do
4037     test ! -f ${_sed} && break
4038     cat /dev/null > "$tmp/sed.in"
4039     _count=0
4040     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
4041     # Check for GNU sed and select it if it is found.
4042     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4043       lt_cv_path_SED=${_sed}
4044       break
4045     fi
4046     while true; do
4047       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4048       mv "$tmp/sed.tmp" "$tmp/sed.in"
4049       cp "$tmp/sed.in" "$tmp/sed.nl"
4050       echo >>"$tmp/sed.nl"
4051       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4052       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4053       # 40000 chars as input seems more than enough
4054       test $_count -gt 10 && break
4055       _count=`expr $_count + 1`
4056       if test $_count -gt $_max; then
4057         _max=$_count
4058         lt_cv_path_SED=$_sed
4059       fi
4060     done
4061   done
4062   rm -rf "$tmp"
4063
4064 fi
4065
4066 if test "X$SED" != "X"; then
4067   lt_cv_path_SED=$SED
4068 else
4069   SED=$lt_cv_path_SED
4070 fi
4071 echo "$as_me:$LINENO: result: $SED" >&5
4072 echo "${ECHO_T}$SED" >&6
4073
4074 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4075 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4076 LN_S=$as_ln_s
4077 if test "$LN_S" = "ln -s"; then
4078   echo "$as_me:$LINENO: result: yes" >&5
4079 echo "${ECHO_T}yes" >&6
4080 else
4081   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4082 echo "${ECHO_T}no, using $LN_S" >&6
4083 fi
4084
4085 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4086 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4087 if test "${lt_cv_deplibs_check_method+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   lt_cv_file_magic_cmd='$MAGIC_CMD'
4091 lt_cv_file_magic_test_file=
4092 lt_cv_deplibs_check_method='unknown'
4093 # Need to set the preceding variable on all platforms that support
4094 # interlibrary dependencies.
4095 # 'none' -- dependencies not supported.
4096 # `unknown' -- same as none, but documents that we really don't know.
4097 # 'pass_all' -- all dependencies passed with no checks.
4098 # 'test_compile' -- check by making test program.
4099 # 'file_magic [[regex]]' -- check by looking for files in library path
4100 # which responds to the $file_magic_cmd with a given egrep regex.
4101 # If you have `file' or equivalent on your system and you're not sure
4102 # whether `pass_all' will *always* work, you probably want this one.
4103
4104 case $host_os in
4105 aix4* | aix5*)
4106   lt_cv_deplibs_check_method=pass_all
4107   ;;
4108
4109 beos*)
4110   lt_cv_deplibs_check_method=pass_all
4111   ;;
4112
4113 bsdi4*)
4114   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4115   lt_cv_file_magic_cmd='/usr/bin/file -L'
4116   lt_cv_file_magic_test_file=/shlib/libc.so
4117   ;;
4118
4119 cygwin* | mingw* | pw32*)
4120   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4121   lt_cv_file_magic_cmd='$OBJDUMP -f'
4122   ;;
4123
4124 darwin* | rhapsody*)
4125   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4126   lt_cv_file_magic_cmd='/usr/bin/file -L'
4127   case "$host_os" in
4128   rhapsody* | darwin1.[012])
4129     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4130     ;;
4131   *) # Darwin 1.3 on
4132     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4133     ;;
4134   esac
4135   ;;
4136
4137 freebsd*)
4138   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4139     case $host_cpu in
4140     i*86 )
4141       # Not sure whether the presence of OpenBSD here was a mistake.
4142       # Let's accept both of them until this is cleared up.
4143       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4144       lt_cv_file_magic_cmd=/usr/bin/file
4145       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4146       ;;
4147     esac
4148   else
4149     lt_cv_deplibs_check_method=pass_all
4150   fi
4151   ;;
4152
4153 gnu*)
4154   lt_cv_deplibs_check_method=pass_all
4155   ;;
4156
4157 hpux10.20*|hpux11*)
4158   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4159   lt_cv_file_magic_cmd=/usr/bin/file
4160   lt_cv_file_magic_test_file=/usr/lib/libc.sl
4161   ;;
4162
4163 irix5* | irix6* | nonstopux*)
4164   case $host_os in
4165   irix5* | nonstopux*)
4166     # this will be overridden with pass_all, but let us keep it just in case
4167     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4168     ;;
4169   *)
4170     case $LD in
4171     *-32|*"-32 ") libmagic=32-bit;;
4172     *-n32|*"-n32 ") libmagic=N32;;
4173     *-64|*"-64 ") libmagic=64-bit;;
4174     *) libmagic=never-match;;
4175     esac
4176     # this will be overridden with pass_all, but let us keep it just in case
4177     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4178     ;;
4179   esac
4180   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4181   lt_cv_deplibs_check_method=pass_all
4182   ;;
4183
4184 # This must be Linux ELF.
4185 linux-gnu*)
4186   case $host_cpu in
4187   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
4188     lt_cv_deplibs_check_method=pass_all ;;
4189   *)
4190     # glibc up to 2.1.1 does not perform some relocations on ARM
4191     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4192   esac
4193   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4194   ;;
4195
4196 netbsd*)
4197   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4198     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4199   else
4200     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4201   fi
4202   ;;
4203
4204 newos6*)
4205   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4206   lt_cv_file_magic_cmd=/usr/bin/file
4207   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4208   ;;
4209
4210 openbsd*)
4211   lt_cv_file_magic_cmd=/usr/bin/file
4212   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4213   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4214     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4215   else
4216     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4217   fi
4218   ;;
4219
4220 osf3* | osf4* | osf5*)
4221   # this will be overridden with pass_all, but let us keep it just in case
4222   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4223   lt_cv_file_magic_test_file=/shlib/libc.so
4224   lt_cv_deplibs_check_method=pass_all
4225   ;;
4226
4227 sco3.2v5*)
4228   lt_cv_deplibs_check_method=pass_all
4229   ;;
4230
4231 solaris*)
4232   lt_cv_deplibs_check_method=pass_all
4233   lt_cv_file_magic_test_file=/lib/libc.so
4234   ;;
4235
4236 sysv5uw[78]* | sysv4*uw2*)
4237   lt_cv_deplibs_check_method=pass_all
4238   ;;
4239
4240 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4241   case $host_vendor in
4242   motorola)
4243     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4244     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4245     ;;
4246   ncr)
4247     lt_cv_deplibs_check_method=pass_all
4248     ;;
4249   sequent)
4250     lt_cv_file_magic_cmd='/bin/file'
4251     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4252     ;;
4253   sni)
4254     lt_cv_file_magic_cmd='/bin/file'
4255     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4256     lt_cv_file_magic_test_file=/lib/libc.so
4257     ;;
4258   siemens)
4259     lt_cv_deplibs_check_method=pass_all
4260     ;;
4261   esac
4262   ;;
4263 esac
4264
4265 fi
4266 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4267 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4268 file_magic_cmd=$lt_cv_file_magic_cmd
4269 deplibs_check_method=$lt_cv_deplibs_check_method
4270
4271
4272
4273
4274
4275
4276
4277 # Check for command to grab the raw symbol name followed by C symbol from nm.
4278 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4279 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4280 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4281   echo $ECHO_N "(cached) $ECHO_C" >&6
4282 else
4283
4284 # These are sane defaults that work on at least a few old systems.
4285 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4286
4287 # Character class describing NM global symbol codes.
4288 symcode='[BCDEGRST]'
4289
4290 # Regexp to match symbols that can be accessed directly from C.
4291 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4292
4293 # Transform the above into a raw symbol and a C symbol.
4294 symxfrm='\1 \2\3 \3'
4295
4296 # Transform an extracted symbol line into a proper C declaration
4297 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4298
4299 # Transform an extracted symbol line into symbol name and symbol address
4300 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4301
4302 # Define system-specific variables.
4303 case $host_os in
4304 aix*)
4305   symcode='[BCDT]'
4306   ;;
4307 cygwin* | mingw* | pw32*)
4308   symcode='[ABCDGISTW]'
4309   ;;
4310 hpux*) # Its linker distinguishes data from code symbols
4311   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4312   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4313   ;;
4314 irix* | nonstopux*)
4315   symcode='[BCDEGRST]'
4316   ;;
4317 osf*)
4318   symcode='[BCDEGQRST]'
4319   ;;
4320 solaris* | sysv5*)
4321   symcode='[BDT]'
4322   ;;
4323 sysv4)
4324   symcode='[DFNSTU]'
4325   ;;
4326 esac
4327
4328 # Handle CRLF in mingw tool chain
4329 opt_cr=
4330 case $host_os in
4331 mingw*)
4332   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4333   ;;
4334 esac
4335
4336 # If we're using GNU nm, then use its standard symbol codes.
4337 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4338   symcode='[ABCDGISTW]'
4339 fi
4340
4341 # Try without a prefix undercore, then with it.
4342 for ac_symprfx in "" "_"; do
4343
4344   # Write the raw and C identifiers.
4345 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4346
4347   # Check to see that the pipe works correctly.
4348   pipe_works=no
4349   rm -f conftest*
4350   cat > conftest.$ac_ext <<EOF
4351 #ifdef __cplusplus
4352 extern "C" {
4353 #endif
4354 char nm_test_var;
4355 void nm_test_func(){}
4356 #ifdef __cplusplus
4357 }
4358 #endif
4359 int main(){nm_test_var='a';nm_test_func();return(0);}
4360 EOF
4361
4362   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4363   (eval $ac_compile) 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; then
4367     # Now try to grab the symbols.
4368     nlist=conftest.nm
4369     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4370   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4371   ac_status=$?
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); } && test -s "$nlist"; then
4374       # Try sorting and uniquifying the output.
4375       if sort "$nlist" | uniq > "$nlist"T; then
4376         mv -f "$nlist"T "$nlist"
4377       else
4378         rm -f "$nlist"T
4379       fi
4380
4381       # Make sure that we snagged all the symbols we need.
4382       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4383         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4384           cat <<EOF > conftest.$ac_ext
4385 #ifdef __cplusplus
4386 extern "C" {
4387 #endif
4388
4389 EOF
4390           # Now generate the symbol file.
4391           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4392
4393           cat <<EOF >> conftest.$ac_ext
4394 #if defined (__STDC__) && __STDC__
4395 # define lt_ptr void *
4396 #else
4397 # define lt_ptr char *
4398 # define const
4399 #endif
4400
4401 /* The mapping between symbol names and symbols. */
4402 const struct {
4403   const char *name;
4404   lt_ptr address;
4405 }
4406 lt_preloaded_symbols[] =
4407 {
4408 EOF
4409           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4410           cat <<\EOF >> conftest.$ac_ext
4411   {0, (lt_ptr) 0}
4412 };
4413
4414 #ifdef __cplusplus
4415 }
4416 #endif
4417 EOF
4418           # Now try linking the two files.
4419           mv conftest.$ac_objext conftstm.$ac_objext
4420           save_LIBS="$LIBS"
4421           save_CFLAGS="$CFLAGS"
4422           LIBS="conftstm.$ac_objext"
4423           CFLAGS="$CFLAGS$no_builtin_flag"
4424           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4425   (eval $ac_link) 2>&5
4426   ac_status=$?
4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); } && test -s conftest$ac_exeext; then
4429             pipe_works=yes
4430           fi
4431           LIBS="$save_LIBS"
4432           CFLAGS="$save_CFLAGS"
4433         else
4434           echo "cannot find nm_test_func in $nlist" >&5
4435         fi
4436       else
4437         echo "cannot find nm_test_var in $nlist" >&5
4438       fi
4439     else
4440       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4441     fi
4442   else
4443     echo "$progname: failed program was:" >&5
4444     cat conftest.$ac_ext >&5
4445   fi
4446   rm -f conftest* conftst*
4447
4448   # Do not use the global_symbol_pipe unless it works.
4449   if test "$pipe_works" = yes; then
4450     break
4451   else
4452     lt_cv_sys_global_symbol_pipe=
4453   fi
4454 done
4455
4456 fi
4457
4458 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4459 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4460   global_symbol_to_cdecl=
4461   global_symbol_to_c_name_address=
4462 else
4463   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4464   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4465 fi
4466 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4467 then
4468   echo "$as_me:$LINENO: result: failed" >&5
4469 echo "${ECHO_T}failed" >&6
4470 else
4471   echo "$as_me:$LINENO: result: ok" >&5
4472 echo "${ECHO_T}ok" >&6
4473 fi
4474
4475
4476 echo "$as_me:$LINENO: checking for egrep" >&5
4477 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4478 if test "${ac_cv_prog_egrep+set}" = set; then
4479   echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4482     then ac_cv_prog_egrep='grep -E'
4483     else ac_cv_prog_egrep='egrep'
4484     fi
4485 fi
4486 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4487 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4488  EGREP=$ac_cv_prog_egrep
4489
4490
4491 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4492 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4493 if test "${ac_cv_header_stdc+set}" = set; then
4494   echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496   cat >conftest.$ac_ext <<_ACEOF
4497 #line $LINENO "configure"
4498 /* confdefs.h.  */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h.  */
4503 #include <stdlib.h>
4504 #include <stdarg.h>
4505 #include <string.h>
4506 #include <float.h>
4507
4508 int
4509 main ()
4510 {
4511
4512   ;
4513   return 0;
4514 }
4515 _ACEOF
4516 rm -f conftest.$ac_objext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518   (eval $ac_compile) 2>&5
4519   ac_status=$?
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); } &&
4522          { ac_try='test -s conftest.$ac_objext'
4523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524   (eval $ac_try) 2>&5
4525   ac_status=$?
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); }; }; then
4528   ac_cv_header_stdc=yes
4529 else
4530   echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4532
4533 ac_cv_header_stdc=no
4534 fi
4535 rm -f conftest.$ac_objext conftest.$ac_ext
4536
4537 if test $ac_cv_header_stdc = yes; then
4538   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4539   cat >conftest.$ac_ext <<_ACEOF
4540 #line $LINENO "configure"
4541 /* confdefs.h.  */
4542 _ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h.  */
4546 #include <string.h>
4547
4548 _ACEOF
4549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4550   $EGREP "memchr" >/dev/null 2>&1; then
4551   :
4552 else
4553   ac_cv_header_stdc=no
4554 fi
4555 rm -f conftest*
4556
4557 fi
4558
4559 if test $ac_cv_header_stdc = yes; then
4560   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4561   cat >conftest.$ac_ext <<_ACEOF
4562 #line $LINENO "configure"
4563 /* confdefs.h.  */
4564 _ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h.  */
4568 #include <stdlib.h>
4569
4570 _ACEOF
4571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4572   $EGREP "free" >/dev/null 2>&1; then
4573   :
4574 else
4575   ac_cv_header_stdc=no
4576 fi
4577 rm -f conftest*
4578
4579 fi
4580
4581 if test $ac_cv_header_stdc = yes; then
4582   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4583   if test "$cross_compiling" = yes; then
4584   :
4585 else
4586   cat >conftest.$ac_ext <<_ACEOF
4587 #line $LINENO "configure"
4588 /* confdefs.h.  */
4589 _ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h.  */
4593 #include <ctype.h>
4594 #if ((' ' & 0x0FF) == 0x020)
4595 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4596 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4597 #else
4598 # define ISLOWER(c) \
4599                    (('a' <= (c) && (c) <= 'i') \
4600                      || ('j' <= (c) && (c) <= 'r') \
4601                      || ('s' <= (c) && (c) <= 'z'))
4602 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4603 #endif
4604
4605 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4606 int
4607 main ()
4608 {
4609   int i;
4610   for (i = 0; i < 256; i++)
4611     if (XOR (islower (i), ISLOWER (i))
4612         || toupper (i) != TOUPPER (i))
4613       exit(2);
4614   exit (0);
4615 }
4616 _ACEOF
4617 rm -f conftest$ac_exeext
4618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4619   (eval $ac_link) 2>&5
4620   ac_status=$?
4621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624   (eval $ac_try) 2>&5
4625   ac_status=$?
4626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627   (exit $ac_status); }; }; then
4628   :
4629 else
4630   echo "$as_me: program exited with status $ac_status" >&5
4631 echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4633
4634 ( exit $ac_status )
4635 ac_cv_header_stdc=no
4636 fi
4637 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4638 fi
4639 fi
4640 fi
4641 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4642 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4643 if test $ac_cv_header_stdc = yes; then
4644
4645 cat >>confdefs.h <<\_ACEOF
4646 #define STDC_HEADERS 1
4647 _ACEOF
4648
4649 fi
4650
4651 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4662                   inttypes.h stdint.h unistd.h
4663 do
4664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4665 echo "$as_me:$LINENO: checking for $ac_header" >&5
4666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4668   echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670   cat >conftest.$ac_ext <<_ACEOF
4671 #line $LINENO "configure"
4672 /* confdefs.h.  */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h.  */
4677 $ac_includes_default
4678
4679 #include <$ac_header>
4680 _ACEOF
4681 rm -f conftest.$ac_objext
4682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4683   (eval $ac_compile) 2>&5
4684   ac_status=$?
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); } &&
4687          { ac_try='test -s conftest.$ac_objext'
4688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689   (eval $ac_try) 2>&5
4690   ac_status=$?
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); }; }; then
4693   eval "$as_ac_Header=yes"
4694 else
4695   echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698 eval "$as_ac_Header=no"
4699 fi
4700 rm -f conftest.$ac_objext conftest.$ac_ext
4701 fi
4702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4705   cat >>confdefs.h <<_ACEOF
4706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4707 _ACEOF
4708
4709 fi
4710
4711 done
4712
4713
4714
4715 for ac_header in dlfcn.h
4716 do
4717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4719   echo "$as_me:$LINENO: checking for $ac_header" >&5
4720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4722   echo $ECHO_N "(cached) $ECHO_C" >&6
4723 fi
4724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4726 else
4727   # Is the header compilable?
4728 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4730 cat >conftest.$ac_ext <<_ACEOF
4731 #line $LINENO "configure"
4732 /* confdefs.h.  */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h.  */
4737 $ac_includes_default
4738 #include <$ac_header>
4739 _ACEOF
4740 rm -f conftest.$ac_objext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742   (eval $ac_compile) 2>&5
4743   ac_status=$?
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); } &&
4746          { ac_try='test -s conftest.$ac_objext'
4747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748   (eval $ac_try) 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); }; }; then
4752   ac_header_compiler=yes
4753 else
4754   echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4756
4757 ac_header_compiler=no
4758 fi
4759 rm -f conftest.$ac_objext conftest.$ac_ext
4760 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4761 echo "${ECHO_T}$ac_header_compiler" >&6
4762
4763 # Is the header present?
4764 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4766 cat >conftest.$ac_ext <<_ACEOF
4767 #line $LINENO "configure"
4768 /* confdefs.h.  */
4769 _ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h.  */
4773 #include <$ac_header>
4774 _ACEOF
4775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4776   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4777   ac_status=$?
4778   grep -v '^ *+' conftest.er1 >conftest.err
4779   rm -f conftest.er1
4780   cat conftest.err >&5
4781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782   (exit $ac_status); } >/dev/null; then
4783   if test -s conftest.err; then
4784     ac_cpp_err=$ac_c_preproc_warn_flag
4785   else
4786     ac_cpp_err=
4787   fi
4788 else
4789   ac_cpp_err=yes
4790 fi
4791 if test -z "$ac_cpp_err"; then
4792   ac_header_preproc=yes
4793 else
4794   echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4796
4797   ac_header_preproc=no
4798 fi
4799 rm -f conftest.err conftest.$ac_ext
4800 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4801 echo "${ECHO_T}$ac_header_preproc" >&6
4802
4803 # So?  What about this header?
4804 case $ac_header_compiler:$ac_header_preproc in
4805   yes:no )
4806     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4810     (
4811       cat <<\_ASBOX
4812 ## ------------------------------------ ##
4813 ## Report this to bug-autoconf@gnu.org. ##
4814 ## ------------------------------------ ##
4815 _ASBOX
4816     ) |
4817       sed "s/^/$as_me: WARNING:     /" >&2
4818     ;;
4819   no:yes )
4820     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4822     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4826     (
4827       cat <<\_ASBOX
4828 ## ------------------------------------ ##
4829 ## Report this to bug-autoconf@gnu.org. ##
4830 ## ------------------------------------ ##
4831 _ASBOX
4832     ) |
4833       sed "s/^/$as_me: WARNING:     /" >&2
4834     ;;
4835 esac
4836 echo "$as_me:$LINENO: checking for $ac_header" >&5
4837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4839   echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841   eval "$as_ac_Header=$ac_header_preproc"
4842 fi
4843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4845
4846 fi
4847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4848   cat >>confdefs.h <<_ACEOF
4849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4850 _ACEOF
4851
4852 fi
4853
4854 done
4855
4856
4857
4858
4859
4860
4861 # Only perform the check for file, if the check method requires it
4862 case $deplibs_check_method in
4863 file_magic*)
4864   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4865     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4866 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4867 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4868   echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870   case $MAGIC_CMD in
4871   /*)
4872   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4873   ;;
4874   ?:/*)
4875   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4876   ;;
4877   *)
4878   ac_save_MAGIC_CMD="$MAGIC_CMD"
4879   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4880   ac_dummy="/usr/bin:$PATH"
4881   for ac_dir in $ac_dummy; do
4882     test -z "$ac_dir" && ac_dir=.
4883     if test -f $ac_dir/${ac_tool_prefix}file; then
4884       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4885       if test -n "$file_magic_test_file"; then
4886         case $deplibs_check_method in
4887         "file_magic "*)
4888           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4889           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4890           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4891             egrep "$file_magic_regex" > /dev/null; then
4892             :
4893           else
4894             cat <<EOF 1>&2
4895
4896 *** Warning: the command libtool uses to detect shared libraries,
4897 *** $file_magic_cmd, produces output that libtool cannot recognize.
4898 *** The result is that libtool may fail to recognize shared libraries
4899 *** as such.  This will affect the creation of libtool libraries that
4900 *** depend on shared libraries, but programs linked with such libtool
4901 *** libraries will work regardless of this problem.  Nevertheless, you
4902 *** may want to report the problem to your system manager and/or to
4903 *** bug-libtool@gnu.org
4904
4905 EOF
4906           fi ;;
4907         esac
4908       fi
4909       break
4910     fi
4911   done
4912   IFS="$ac_save_ifs"
4913   MAGIC_CMD="$ac_save_MAGIC_CMD"
4914   ;;
4915 esac
4916 fi
4917
4918 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4919 if test -n "$MAGIC_CMD"; then
4920   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4921 echo "${ECHO_T}$MAGIC_CMD" >&6
4922 else
4923   echo "$as_me:$LINENO: result: no" >&5
4924 echo "${ECHO_T}no" >&6
4925 fi
4926
4927 if test -z "$lt_cv_path_MAGIC_CMD"; then
4928   if test -n "$ac_tool_prefix"; then
4929     echo "$as_me:$LINENO: checking for file" >&5
4930 echo $ECHO_N "checking for file... $ECHO_C" >&6
4931 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4932   echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934   case $MAGIC_CMD in
4935   /*)
4936   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4937   ;;
4938   ?:/*)
4939   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4940   ;;
4941   *)
4942   ac_save_MAGIC_CMD="$MAGIC_CMD"
4943   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4944   ac_dummy="/usr/bin:$PATH"
4945   for ac_dir in $ac_dummy; do
4946     test -z "$ac_dir" && ac_dir=.
4947     if test -f $ac_dir/file; then
4948       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4949       if test -n "$file_magic_test_file"; then
4950         case $deplibs_check_method in
4951         "file_magic "*)
4952           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4953           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4954           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4955             egrep "$file_magic_regex" > /dev/null; then
4956             :
4957           else
4958             cat <<EOF 1>&2
4959
4960 *** Warning: the command libtool uses to detect shared libraries,
4961 *** $file_magic_cmd, produces output that libtool cannot recognize.
4962 *** The result is that libtool may fail to recognize shared libraries
4963 *** as such.  This will affect the creation of libtool libraries that
4964 *** depend on shared libraries, but programs linked with such libtool
4965 *** libraries will work regardless of this problem.  Nevertheless, you
4966 *** may want to report the problem to your system manager and/or to
4967 *** bug-libtool@gnu.org
4968
4969 EOF
4970           fi ;;
4971         esac
4972       fi
4973       break
4974     fi
4975   done
4976   IFS="$ac_save_ifs"
4977   MAGIC_CMD="$ac_save_MAGIC_CMD"
4978   ;;
4979 esac
4980 fi
4981
4982 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4983 if test -n "$MAGIC_CMD"; then
4984   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4985 echo "${ECHO_T}$MAGIC_CMD" >&6
4986 else
4987   echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6
4989 fi
4990
4991   else
4992     MAGIC_CMD=:
4993   fi
4994 fi
4995
4996   fi
4997   ;;
4998 esac
4999
5000 if test -n "$ac_tool_prefix"; then
5001   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5002 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5003 echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5005 if test "${ac_cv_prog_RANLIB+set}" = set; then
5006   echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008   if test -n "$RANLIB"; then
5009   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014   IFS=$as_save_IFS
5015   test -z "$as_dir" && as_dir=.
5016   for ac_exec_ext in '' $ac_executable_extensions; do
5017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5018     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020     break 2
5021   fi
5022 done
5023 done
5024
5025 fi
5026 fi
5027 RANLIB=$ac_cv_prog_RANLIB
5028 if test -n "$RANLIB"; then
5029   echo "$as_me:$LINENO: result: $RANLIB" >&5
5030 echo "${ECHO_T}$RANLIB" >&6
5031 else
5032   echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6
5034 fi
5035
5036 fi
5037 if test -z "$ac_cv_prog_RANLIB"; then
5038   ac_ct_RANLIB=$RANLIB
5039   # Extract the first word of "ranlib", so it can be a program name with args.
5040 set dummy ranlib; ac_word=$2
5041 echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5043 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5044   echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046   if test -n "$ac_ct_RANLIB"; then
5047   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5051 do
5052   IFS=$as_save_IFS
5053   test -z "$as_dir" && as_dir=.
5054   for ac_exec_ext in '' $ac_executable_extensions; do
5055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5056     ac_cv_prog_ac_ct_RANLIB="ranlib"
5057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058     break 2
5059   fi
5060 done
5061 done
5062
5063   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5064 fi
5065 fi
5066 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5067 if test -n "$ac_ct_RANLIB"; then
5068   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5069 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5070 else
5071   echo "$as_me:$LINENO: result: no" >&5
5072 echo "${ECHO_T}no" >&6
5073 fi
5074
5075   RANLIB=$ac_ct_RANLIB
5076 else
5077   RANLIB="$ac_cv_prog_RANLIB"
5078 fi
5079
5080 if test -n "$ac_tool_prefix"; then
5081   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5082 set dummy ${ac_tool_prefix}strip; ac_word=$2
5083 echo "$as_me:$LINENO: checking for $ac_word" >&5
5084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5085 if test "${ac_cv_prog_STRIP+set}" = set; then
5086   echo $ECHO_N "(cached) $ECHO_C" >&6
5087 else
5088   if test -n "$STRIP"; then
5089   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5090 else
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5093 do
5094   IFS=$as_save_IFS
5095   test -z "$as_dir" && as_dir=.
5096   for ac_exec_ext in '' $ac_executable_extensions; do
5097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5098     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5100     break 2
5101   fi
5102 done
5103 done
5104
5105 fi
5106 fi
5107 STRIP=$ac_cv_prog_STRIP
5108 if test -n "$STRIP"; then
5109   echo "$as_me:$LINENO: result: $STRIP" >&5
5110 echo "${ECHO_T}$STRIP" >&6
5111 else
5112   echo "$as_me:$LINENO: result: no" >&5
5113 echo "${ECHO_T}no" >&6
5114 fi
5115
5116 fi
5117 if test -z "$ac_cv_prog_STRIP"; then
5118   ac_ct_STRIP=$STRIP
5119   # Extract the first word of "strip", so it can be a program name with args.
5120 set dummy strip; ac_word=$2
5121 echo "$as_me:$LINENO: checking for $ac_word" >&5
5122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5123 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5124   echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126   if test -n "$ac_ct_STRIP"; then
5127   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132   IFS=$as_save_IFS
5133   test -z "$as_dir" && as_dir=.
5134   for ac_exec_ext in '' $ac_executable_extensions; do
5135   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5136     ac_cv_prog_ac_ct_STRIP="strip"
5137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5138     break 2
5139   fi
5140 done
5141 done
5142
5143   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5144 fi
5145 fi
5146 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5147 if test -n "$ac_ct_STRIP"; then
5148   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5149 echo "${ECHO_T}$ac_ct_STRIP" >&6
5150 else
5151   echo "$as_me:$LINENO: result: no" >&5
5152 echo "${ECHO_T}no" >&6
5153 fi
5154
5155   STRIP=$ac_ct_STRIP
5156 else
5157   STRIP="$ac_cv_prog_STRIP"
5158 fi
5159
5160
5161 enable_dlopen=no
5162 enable_win32_dll=no
5163
5164 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5165 if test "${enable_libtool_lock+set}" = set; then
5166   enableval="$enable_libtool_lock"
5167
5168 fi;
5169 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5170
5171 # Some flags need to be propagated to the compiler or linker for good
5172 # libtool support.
5173 case $host in
5174 *-*-irix6*)
5175   # Find out which ABI we are using.
5176   echo '#line 5176 "configure"' > conftest.$ac_ext
5177   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5178   (eval $ac_compile) 2>&5
5179   ac_status=$?
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); }; then
5182     case `/usr/bin/file conftest.$ac_objext` in
5183     *32-bit*)
5184       LD="${LD-ld} -32"
5185       ;;
5186     *N32*)
5187       LD="${LD-ld} -n32"
5188       ;;
5189     *64-bit*)
5190       LD="${LD-ld} -64"
5191       ;;
5192     esac
5193   fi
5194   rm -rf conftest*
5195   ;;
5196
5197 *-*-sco3.2v5*)
5198   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5199   SAVE_CFLAGS="$CFLAGS"
5200   CFLAGS="$CFLAGS -belf"
5201   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5202 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5203 if test "${lt_cv_cc_needs_belf+set}" = set; then
5204   echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206
5207
5208      ac_ext=c
5209 ac_cpp='$CPP $CPPFLAGS'
5210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213
5214      cat >conftest.$ac_ext <<_ACEOF
5215 #line $LINENO "configure"
5216 /* confdefs.h.  */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h.  */
5221
5222 int
5223 main ()
5224 {
5225
5226   ;
5227   return 0;
5228 }
5229 _ACEOF
5230 rm -f conftest.$ac_objext conftest$ac_exeext
5231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5232   (eval $ac_link) 2>&5
5233   ac_status=$?
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); } &&
5236          { ac_try='test -s conftest$ac_exeext'
5237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238   (eval $ac_try) 2>&5
5239   ac_status=$?
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); }; }; then
5242   lt_cv_cc_needs_belf=yes
5243 else
5244   echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5246
5247 lt_cv_cc_needs_belf=no
5248 fi
5249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5250      ac_ext=c
5251 ac_cpp='$CPP $CPPFLAGS'
5252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5255
5256 fi
5257 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5258 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5259   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5260     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5261     CFLAGS="$SAVE_CFLAGS"
5262   fi
5263   ;;
5264
5265
5266 esac
5267
5268 # Sed substitution that helps us do robust quoting.  It backslashifies
5269 # metacharacters that are still active within double-quoted strings.
5270 Xsed='sed -e s/^X//'
5271 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5272
5273 # Same as above, but do not quote variable references.
5274 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5275
5276 # Sed substitution to delay expansion of an escaped shell variable in a
5277 # double_quote_subst'ed string.
5278 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5279
5280 # Constants:
5281 rm="rm -f"
5282
5283 # Global variables:
5284 default_ofile=libtool
5285 can_build_shared=yes
5286
5287 # All known linkers require a `.a' archive for static linking (except M$VC,
5288 # which needs '.lib').
5289 libext=a
5290 ltmain="$ac_aux_dir/ltmain.sh"
5291 ofile="$default_ofile"
5292 with_gnu_ld="$lt_cv_prog_gnu_ld"
5293 need_locks="$enable_libtool_lock"
5294
5295 old_CC="$CC"
5296 old_CFLAGS="$CFLAGS"
5297
5298 # Set sane defaults for various variables
5299 test -z "$AR" && AR=ar
5300 test -z "$AR_FLAGS" && AR_FLAGS=cru
5301 test -z "$AS" && AS=as
5302 test -z "$CC" && CC=cc
5303 test -z "$DLLTOOL" && DLLTOOL=dlltool
5304 test -z "$LD" && LD=ld
5305 test -z "$LN_S" && LN_S="ln -s"
5306 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5307 test -z "$NM" && NM=nm
5308 test -z "$OBJDUMP" && OBJDUMP=objdump
5309 test -z "$RANLIB" && RANLIB=:
5310 test -z "$STRIP" && STRIP=:
5311 test -z "$ac_objext" && ac_objext=o
5312
5313 if test x"$host" != x"$build"; then
5314   ac_tool_prefix=${host_alias}-
5315 else
5316   ac_tool_prefix=
5317 fi
5318
5319 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5320 case $host_os in
5321 linux-gnu*) ;;
5322 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5323 esac
5324
5325 case $host_os in
5326 aix3*)
5327   # AIX sometimes has problems with the GCC collect2 program.  For some
5328   # reason, if we set the COLLECT_NAMES environment variable, the problems
5329   # vanish in a puff of smoke.
5330   if test "X${COLLECT_NAMES+set}" != Xset; then
5331     COLLECT_NAMES=
5332     export COLLECT_NAMES
5333   fi
5334   ;;
5335 esac
5336
5337 # Determine commands to create old-style static archives.
5338 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5339 old_postinstall_cmds='chmod 644 $oldlib'
5340 old_postuninstall_cmds=
5341
5342 if test -n "$RANLIB"; then
5343   case $host_os in
5344   openbsd*)
5345     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5346     ;;
5347   *)
5348     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5349     ;;
5350   esac
5351   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5352 fi
5353
5354 # Allow CC to be a program name with arguments.
5355 set dummy $CC
5356 compiler="$2"
5357
5358 echo "$as_me:$LINENO: checking for objdir" >&5
5359 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5360 rm -f .libs 2>/dev/null
5361 mkdir .libs 2>/dev/null
5362 if test -d .libs; then
5363   objdir=.libs
5364 else
5365   # MS-DOS does not allow filenames that begin with a dot.
5366   objdir=_libs
5367 fi
5368 rmdir .libs 2>/dev/null
5369 echo "$as_me:$LINENO: result: $objdir" >&5
5370 echo "${ECHO_T}$objdir" >&6
5371
5372
5373
5374 # Check whether --with-pic or --without-pic was given.
5375 if test "${with_pic+set}" = set; then
5376   withval="$with_pic"
5377   pic_mode="$withval"
5378 else
5379   pic_mode=default
5380 fi;
5381 test -z "$pic_mode" && pic_mode=default
5382
5383 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5384 # in isolation, and that seeing it set (from the cache) indicates that
5385 # the associated values are set (in the cache) correctly too.
5386 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5387 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5388 if test "${lt_cv_prog_cc_pic+set}" = set; then
5389   echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391    lt_cv_prog_cc_pic=
5392   lt_cv_prog_cc_shlib=
5393   lt_cv_prog_cc_wl=
5394   lt_cv_prog_cc_static=
5395   lt_cv_prog_cc_no_builtin=
5396   lt_cv_prog_cc_can_build_shared=$can_build_shared
5397
5398   if test "$GCC" = yes; then
5399     lt_cv_prog_cc_wl='-Wl,'
5400     lt_cv_prog_cc_static='-static'
5401
5402     case $host_os in
5403     aix*)
5404       # Below there is a dirty hack to force normal static linking with -ldl
5405       # The problem is because libdl dynamically linked with both libc and
5406       # libC (AIX C++ library), which obviously doesn't included in libraries
5407       # list by gcc. This cause undefined symbols with -static flags.
5408       # This hack allows C programs to be linked with "-static -ldl", but
5409       # not sure about C++ programs.
5410       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5411       ;;
5412     amigaos*)
5413       # FIXME: we need at least 68020 code to build shared libraries, but
5414       # adding the `-m68020' flag to GCC prevents building anything better,
5415       # like `-m68040'.
5416       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5417       ;;
5418     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5419       # PIC is the default for these OSes.
5420       ;;
5421     darwin* | rhapsody*)
5422       # PIC is the default on this platform
5423       # Common symbols not allowed in MH_DYLIB files
5424       lt_cv_prog_cc_pic='-fno-common'
5425       ;;
5426     cygwin* | mingw* | pw32* | os2*)
5427       # This hack is so that the source file can tell whether it is being
5428       # built for inclusion in a dll (and should export symbols for example).
5429       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5430       ;;
5431     sysv4*MP*)
5432       if test -d /usr/nec; then
5433          lt_cv_prog_cc_pic=-Kconform_pic
5434       fi
5435       ;;
5436     *)
5437       lt_cv_prog_cc_pic='-fPIC'
5438       ;;
5439     esac
5440   else
5441     # PORTME Check for PIC flags for the system compiler.
5442     case $host_os in
5443     aix3* | aix4* | aix5*)
5444       lt_cv_prog_cc_wl='-Wl,'
5445       # All AIX code is PIC.
5446       if test "$host_cpu" = ia64; then
5447         # AIX 5 now supports IA64 processor
5448         lt_cv_prog_cc_static='-Bstatic'
5449       else
5450         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5451       fi
5452       ;;
5453
5454     hpux9* | hpux10* | hpux11*)
5455       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5456       lt_cv_prog_cc_wl='-Wl,'
5457       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5458       lt_cv_prog_cc_pic='+Z'
5459       ;;
5460
5461     irix5* | irix6* | nonstopux*)
5462       lt_cv_prog_cc_wl='-Wl,'
5463       lt_cv_prog_cc_static='-non_shared'
5464       # PIC (with -KPIC) is the default.
5465       ;;
5466
5467     cygwin* | mingw* | pw32* | os2*)
5468       # This hack is so that the source file can tell whether it is being
5469       # built for inclusion in a dll (and should export symbols for example).
5470       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5471       ;;
5472
5473     newsos6)
5474       lt_cv_prog_cc_pic='-KPIC'
5475       lt_cv_prog_cc_static='-Bstatic'
5476       ;;
5477
5478     osf3* | osf4* | osf5*)
5479       # All OSF/1 code is PIC.
5480       lt_cv_prog_cc_wl='-Wl,'
5481       lt_cv_prog_cc_static='-non_shared'
5482       ;;
5483
5484     sco3.2v5*)
5485       lt_cv_prog_cc_pic='-Kpic'
5486       lt_cv_prog_cc_static='-dn'
5487       lt_cv_prog_cc_shlib='-belf'
5488       ;;
5489
5490     solaris*)
5491       lt_cv_prog_cc_pic='-KPIC'
5492       lt_cv_prog_cc_static='-Bstatic'
5493       lt_cv_prog_cc_wl='-Wl,'
5494       ;;
5495
5496     sunos4*)
5497       lt_cv_prog_cc_pic='-PIC'
5498       lt_cv_prog_cc_static='-Bstatic'
5499       lt_cv_prog_cc_wl='-Qoption ld '
5500       ;;
5501
5502     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5503       lt_cv_prog_cc_pic='-KPIC'
5504       lt_cv_prog_cc_static='-Bstatic'
5505       lt_cv_prog_cc_wl='-Wl,'
5506       ;;
5507
5508     uts4*)
5509       lt_cv_prog_cc_pic='-pic'
5510       lt_cv_prog_cc_static='-Bstatic'
5511       ;;
5512
5513     sysv4*MP*)
5514       if test -d /usr/nec ;then
5515         lt_cv_prog_cc_pic='-Kconform_pic'
5516         lt_cv_prog_cc_static='-Bstatic'
5517       fi
5518       ;;
5519
5520     *)
5521       lt_cv_prog_cc_can_build_shared=no
5522       ;;
5523     esac
5524   fi
5525
5526 fi
5527
5528 if test -z "$lt_cv_prog_cc_pic"; then
5529   echo "$as_me:$LINENO: result: none" >&5
5530 echo "${ECHO_T}none" >&6
5531 else
5532   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5533 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5534
5535   # Check to make sure the pic_flag actually works.
5536   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5537 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5538   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541       save_CFLAGS="$CFLAGS"
5542     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5543     cat >conftest.$ac_ext <<_ACEOF
5544 #line $LINENO "configure"
5545 /* confdefs.h.  */
5546 _ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h.  */
5550
5551 int
5552 main ()
5553 {
5554
5555   ;
5556   return 0;
5557 }
5558 _ACEOF
5559 rm -f conftest.$ac_objext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561   (eval $ac_compile) 2>&5
5562   ac_status=$?
5563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564   (exit $ac_status); } &&
5565          { ac_try='test -s conftest.$ac_objext'
5566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567   (eval $ac_try) 2>&5
5568   ac_status=$?
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); }; }; then
5571         case $host_os in
5572       hpux9* | hpux10* | hpux11*)
5573         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5574         # they create non-PIC objects.  So, if there were any warnings, we
5575         # assume that PIC is not supported.
5576         if test -s conftest.err; then
5577           lt_cv_prog_cc_pic_works=no
5578         else
5579           lt_cv_prog_cc_pic_works=yes
5580         fi
5581         ;;
5582       *)
5583         lt_cv_prog_cc_pic_works=yes
5584         ;;
5585       esac
5586
5587 else
5588   echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5590
5591       lt_cv_prog_cc_pic_works=no
5592
5593 fi
5594 rm -f conftest.$ac_objext conftest.$ac_ext
5595     CFLAGS="$save_CFLAGS"
5596
5597 fi
5598
5599
5600   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5601     lt_cv_prog_cc_pic=
5602     lt_cv_prog_cc_can_build_shared=no
5603   else
5604     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5605   fi
5606
5607   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5608 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5609 fi
5610
5611 # Check for any special shared library compilation flags.
5612 if test -n "$lt_cv_prog_cc_shlib"; then
5613   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5614 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5615   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5616   else
5617    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5618 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5619     lt_cv_prog_cc_can_build_shared=no
5620   fi
5621 fi
5622
5623 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5624 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5625 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5626   echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628     lt_cv_prog_cc_static_works=no
5629   save_LDFLAGS="$LDFLAGS"
5630   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5631   cat >conftest.$ac_ext <<_ACEOF
5632 #line $LINENO "configure"
5633 /* confdefs.h.  */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h.  */
5638
5639 int
5640 main ()
5641 {
5642
5643   ;
5644   return 0;
5645 }
5646 _ACEOF
5647 rm -f conftest.$ac_objext conftest$ac_exeext
5648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5649   (eval $ac_link) 2>&5
5650   ac_status=$?
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); } &&
5653          { ac_try='test -s conftest$ac_exeext'
5654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655   (eval $ac_try) 2>&5
5656   ac_status=$?
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); }; }; then
5659   lt_cv_prog_cc_static_works=yes
5660 else
5661   echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.$ac_ext >&5
5663
5664 fi
5665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5666   LDFLAGS="$save_LDFLAGS"
5667
5668 fi
5669
5670
5671 # Belt *and* braces to stop my trousers falling down:
5672 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5673 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5674 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5675
5676 pic_flag="$lt_cv_prog_cc_pic"
5677 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5678 wl="$lt_cv_prog_cc_wl"
5679 link_static_flag="$lt_cv_prog_cc_static"
5680 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5681 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5682
5683
5684 # Check to see if options -o and -c are simultaneously supported by compiler
5685 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5686 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5687 if test "${lt_cv_compiler_c_o+set}" = set; then
5688   echo $ECHO_N "(cached) $ECHO_C" >&6
5689 else
5690
5691 $rm -r conftest 2>/dev/null
5692 mkdir conftest
5693 cd conftest
5694 echo "int some_variable = 0;" > conftest.$ac_ext
5695 mkdir out
5696 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5697 # that will create temporary files in the current directory regardless of
5698 # the output directory.  Thus, making CWD read-only will cause this test
5699 # to fail, enabling locking or at least warning the user not to do parallel
5700 # builds.
5701 chmod -w .
5702 save_CFLAGS="$CFLAGS"
5703 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5704 compiler_c_o=no
5705 if { (eval echo configure:5705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5706   # The compiler can only warn and ignore the option if not recognized
5707   # So say no if there are warnings
5708   if test -s out/conftest.err; then
5709     lt_cv_compiler_c_o=no
5710   else
5711     lt_cv_compiler_c_o=yes
5712   fi
5713 else
5714   # Append any errors to the config.log.
5715   cat out/conftest.err 1>&5
5716   lt_cv_compiler_c_o=no
5717 fi
5718 CFLAGS="$save_CFLAGS"
5719 chmod u+w .
5720 $rm conftest* out/*
5721 rmdir out
5722 cd ..
5723 rmdir conftest
5724 $rm -r conftest 2>/dev/null
5725
5726 fi
5727
5728 compiler_c_o=$lt_cv_compiler_c_o
5729 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5730 echo "${ECHO_T}$compiler_c_o" >&6
5731
5732 if test x"$compiler_c_o" = x"yes"; then
5733   # Check to see if we can write to a .lo
5734   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5735 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5736   if test "${lt_cv_compiler_o_lo+set}" = set; then
5737   echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739
5740   lt_cv_compiler_o_lo=no
5741   save_CFLAGS="$CFLAGS"
5742   CFLAGS="$CFLAGS -c -o conftest.lo"
5743   save_objext="$ac_objext"
5744   ac_objext=lo
5745   cat >conftest.$ac_ext <<_ACEOF
5746 #line $LINENO "configure"
5747 /* confdefs.h.  */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h.  */
5752
5753 int
5754 main ()
5755 {
5756 int some_variable = 0;
5757   ;
5758   return 0;
5759 }
5760 _ACEOF
5761 rm -f conftest.$ac_objext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763   (eval $ac_compile) 2>&5
5764   ac_status=$?
5765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766   (exit $ac_status); } &&
5767          { ac_try='test -s conftest.$ac_objext'
5768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769   (eval $ac_try) 2>&5
5770   ac_status=$?
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); }; }; then
5773       # The compiler can only warn and ignore the option if not recognized
5774     # So say no if there are warnings
5775     if test -s conftest.err; then
5776       lt_cv_compiler_o_lo=no
5777     else
5778       lt_cv_compiler_o_lo=yes
5779     fi
5780
5781 else
5782   echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5784
5785 fi
5786 rm -f conftest.$ac_objext conftest.$ac_ext
5787   ac_objext="$save_objext"
5788   CFLAGS="$save_CFLAGS"
5789
5790 fi
5791
5792   compiler_o_lo=$lt_cv_compiler_o_lo
5793   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5794 echo "${ECHO_T}$compiler_o_lo" >&6
5795 else
5796   compiler_o_lo=no
5797 fi
5798
5799 # Check to see if we can do hard links to lock some files if needed
5800 hard_links="nottested"
5801 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5802   # do not overwrite the value of need_locks provided by the user
5803   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5804 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5805   hard_links=yes
5806   $rm conftest*
5807   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5808   touch conftest.a
5809   ln conftest.a conftest.b 2>&5 || hard_links=no
5810   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5811   echo "$as_me:$LINENO: result: $hard_links" >&5
5812 echo "${ECHO_T}$hard_links" >&6
5813   if test "$hard_links" = no; then
5814     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5815 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5816     need_locks=warn
5817   fi
5818 else
5819   need_locks=no
5820 fi
5821
5822 if test "$GCC" = yes; then
5823   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5824   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5825 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5826   echo "int some_variable = 0;" > conftest.$ac_ext
5827   save_CFLAGS="$CFLAGS"
5828   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5829   compiler_rtti_exceptions=no
5830   cat >conftest.$ac_ext <<_ACEOF
5831 #line $LINENO "configure"
5832 /* confdefs.h.  */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h.  */
5837
5838 int
5839 main ()
5840 {
5841 int some_variable = 0;
5842   ;
5843   return 0;
5844 }
5845 _ACEOF
5846 rm -f conftest.$ac_objext
5847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5848   (eval $ac_compile) 2>&5
5849   ac_status=$?
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); } &&
5852          { ac_try='test -s conftest.$ac_objext'
5853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854   (eval $ac_try) 2>&5
5855   ac_status=$?
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); }; }; then
5858       # The compiler can only warn and ignore the option if not recognized
5859     # So say no if there are warnings
5860     if test -s conftest.err; then
5861       compiler_rtti_exceptions=no
5862     else
5863       compiler_rtti_exceptions=yes
5864     fi
5865
5866 else
5867   echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5869
5870 fi
5871 rm -f conftest.$ac_objext conftest.$ac_ext
5872   CFLAGS="$save_CFLAGS"
5873   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5874 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5875
5876   if test "$compiler_rtti_exceptions" = "yes"; then
5877     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5878   else
5879     no_builtin_flag=' -fno-builtin'
5880   fi
5881 fi
5882
5883 # See if the linker supports building shared libraries.
5884 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5885 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5886
5887 allow_undefined_flag=
5888 no_undefined_flag=
5889 need_lib_prefix=unknown
5890 need_version=unknown
5891 # when you set need_version to no, make sure it does not cause -set_version
5892 # flags to be left without arguments
5893 archive_cmds=
5894 archive_expsym_cmds=
5895 old_archive_from_new_cmds=
5896 old_archive_from_expsyms_cmds=
5897 export_dynamic_flag_spec=
5898 whole_archive_flag_spec=
5899 thread_safe_flag_spec=
5900 hardcode_into_libs=no
5901 hardcode_libdir_flag_spec=
5902 hardcode_libdir_separator=
5903 hardcode_direct=no
5904 hardcode_minus_L=no
5905 hardcode_shlibpath_var=unsupported
5906 runpath_var=
5907 link_all_deplibs=unknown
5908 always_export_symbols=no
5909 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5910 # include_expsyms should be a list of space-separated symbols to be *always*
5911 # included in the symbol list
5912 include_expsyms=
5913 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5914 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5915 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5916 # as well as any symbol that contains `d'.
5917 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5918 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5919 # platforms (ab)use it in PIC code, but their linkers get confused if
5920 # the symbol is explicitly referenced.  Since portable code cannot
5921 # rely on this symbol name, it's probably fine to never include it in
5922 # preloaded symbol tables.
5923 extract_expsyms_cmds=
5924
5925 case $host_os in
5926 cygwin* | mingw* | pw32*)
5927   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5928   # When not using gcc, we currently assume that we are using
5929   # Microsoft Visual C++.
5930   if test "$GCC" != yes; then
5931     with_gnu_ld=no
5932   fi
5933   ;;
5934 openbsd*)
5935   with_gnu_ld=no
5936   ;;
5937 esac
5938
5939 ld_shlibs=yes
5940 if test "$with_gnu_ld" = yes; then
5941   # If archive_cmds runs LD, not CC, wlarc should be empty
5942   wlarc='${wl}'
5943
5944   # See if GNU ld supports shared libraries.
5945   case $host_os in
5946   aix3* | aix4* | aix5*)
5947     # On AIX, the GNU linker is very broken
5948     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5949     ld_shlibs=no
5950     cat <<EOF 1>&2
5951
5952 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5953 *** to be unable to reliably create shared libraries on AIX.
5954 *** Therefore, libtool is disabling shared libraries support.  If you
5955 *** really care for shared libraries, you may want to modify your PATH
5956 *** so that a non-GNU linker is found, and then restart.
5957
5958 EOF
5959     ;;
5960
5961   amigaos*)
5962     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5963     hardcode_libdir_flag_spec='-L$libdir'
5964     hardcode_minus_L=yes
5965
5966     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5967     # that the semantics of dynamic libraries on AmigaOS, at least up
5968     # to version 4, is to share data among multiple programs linked
5969     # with the same dynamic library.  Since this doesn't match the
5970     # behavior of shared libraries on other platforms, we can use
5971     # them.
5972     ld_shlibs=no
5973     ;;
5974
5975   beos*)
5976     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5977       allow_undefined_flag=unsupported
5978       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5979       # support --undefined.  This deserves some investigation.  FIXME
5980       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5981     else
5982       ld_shlibs=no
5983     fi
5984     ;;
5985
5986   cygwin* | mingw* | pw32*)
5987     # hardcode_libdir_flag_spec is actually meaningless, as there is
5988     # no search path for DLLs.
5989     hardcode_libdir_flag_spec='-L$libdir'
5990     allow_undefined_flag=unsupported
5991     always_export_symbols=yes
5992
5993     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5994       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5995       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5996       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5997       else $CC -o impgen impgen.c ; fi)~
5998       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5999
6000     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6001
6002     # cygwin and mingw dlls have different entry points and sets of symbols
6003     # to exclude.
6004     # FIXME: what about values for MSVC?
6005     dll_entry=__cygwin_dll_entry@12
6006     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6007     case $host_os in
6008     mingw*)
6009       # mingw values
6010       dll_entry=_DllMainCRTStartup@12
6011       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6012       ;;
6013     esac
6014
6015     # mingw and cygwin differ, and it's simplest to just exclude the union
6016     # of the two symbol sets.
6017     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6018
6019     # recent cygwin and mingw systems supply a stub DllMain which the user
6020     # can override, but on older systems we have to supply one (in ltdll.c)
6021     if test "x$lt_cv_need_dllmain" = "xyes"; then
6022       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6023       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6024         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6025     else
6026       ltdll_obj=
6027       ltdll_cmds=
6028     fi
6029
6030     # Extract the symbol export list from an `--export-all' def file,
6031     # then regenerate the def file from the symbol export list, so that
6032     # the compiled dll only exports the symbol export list.
6033     # Be careful not to strip the DATA tag left be newer dlltools.
6034     export_symbols_cmds="$ltdll_cmds"'
6035       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6036       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6037
6038     # If the export-symbols file already is a .def file (1st line
6039     # is EXPORTS), use it as is.
6040     # If DATA tags from a recent dlltool are present, honour them!
6041     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6042         cp $export_symbols $output_objdir/$soname-def;
6043       else
6044         echo EXPORTS > $output_objdir/$soname-def;
6045         _lt_hint=1;
6046         cat $export_symbols | while read symbol; do
6047          set dummy \$symbol;
6048          case \$# in
6049            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6050            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6051            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6052          esac;
6053          _lt_hint=`expr 1 + \$_lt_hint`;
6054         done;
6055       fi~
6056       '"$ltdll_cmds"'
6057       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6058       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6059       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6060       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6061       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6062     ;;
6063
6064   netbsd*)
6065     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6066       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6067       wlarc=
6068     else
6069       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6070       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6071     fi
6072     ;;
6073
6074   solaris* | sysv5*)
6075     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6076       ld_shlibs=no
6077       cat <<EOF 1>&2
6078
6079 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6080 *** create shared libraries on Solaris systems.  Therefore, libtool
6081 *** is disabling shared libraries support.  We urge you to upgrade GNU
6082 *** binutils to release 2.9.1 or newer.  Another option is to modify
6083 *** your PATH or compiler configuration so that the native linker is
6084 *** used, and then restart.
6085
6086 EOF
6087     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6088       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6089       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6090     else
6091       ld_shlibs=no
6092     fi
6093     ;;
6094
6095   sunos4*)
6096     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6097     wlarc=
6098     hardcode_direct=yes
6099     hardcode_shlibpath_var=no
6100     ;;
6101
6102   *)
6103     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6104       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6105       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6106     else
6107       ld_shlibs=no
6108     fi
6109     ;;
6110   esac
6111
6112   if test "$ld_shlibs" = yes; then
6113     runpath_var=LD_RUN_PATH
6114     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6115     export_dynamic_flag_spec='${wl}--export-dynamic'
6116     case $host_os in
6117     cygwin* | mingw* | pw32*)
6118       # dlltool doesn't understand --whole-archive et. al.
6119       whole_archive_flag_spec=
6120       ;;
6121     *)
6122       # ancient GNU ld didn't support --whole-archive et. al.
6123       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6124         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6125       else
6126         whole_archive_flag_spec=
6127       fi
6128       ;;
6129     esac
6130   fi
6131 else
6132   # PORTME fill in a description of your system's linker (not GNU ld)
6133   case $host_os in
6134   aix3*)
6135     allow_undefined_flag=unsupported
6136     always_export_symbols=yes
6137     archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6138     # Note: this linker hardcodes the directories in LIBPATH if there
6139     # are no directories specified by -L.
6140     hardcode_minus_L=yes
6141     if test "$GCC" = yes && test -z "$link_static_flag"; then
6142       # Neither direct hardcoding nor static linking is supported with a
6143       # broken collect2.
6144       hardcode_direct=unsupported
6145     fi
6146     ;;
6147
6148   aix4* | aix5*)
6149     if test "$host_cpu" = ia64; then
6150       # On IA64, the linker does run time linking by default, so we don't
6151       # have to do anything special.
6152       aix_use_runtimelinking=no
6153       exp_sym_flag='-Bexport'
6154       no_entry_flag=""
6155     else
6156       aix_use_runtimelinking=no
6157
6158       # Test if we are trying to use run time linking or normal
6159       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6160       # need to do runtime linking.
6161       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6162         for ld_flag in $LDFLAGS; do
6163           case $ld_flag in
6164           *-brtl*)
6165             aix_use_runtimelinking=yes
6166             break
6167           ;;
6168           esac
6169         done
6170       esac
6171
6172       exp_sym_flag='-bexport'
6173       no_entry_flag='-bnoentry'
6174     fi
6175
6176     # When large executables or shared objects are built, AIX ld can
6177     # have problems creating the table of contents.  If linking a library
6178     # or program results in "error TOC overflow" add -mminimal-toc to
6179     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6180     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6181
6182     hardcode_direct=yes
6183     archive_cmds=''
6184     hardcode_libdir_separator=':'
6185     if test "$GCC" = yes; then
6186       case $host_os in aix4.[012]|aix4.[012].*)
6187         collect2name=`${CC} -print-prog-name=collect2`
6188         if test -f "$collect2name" && \
6189           strings "$collect2name" | grep resolve_lib_name >/dev/null
6190         then
6191           # We have reworked collect2
6192           hardcode_direct=yes
6193         else
6194           # We have old collect2
6195           hardcode_direct=unsupported
6196           # It fails to find uninstalled libraries when the uninstalled
6197           # path is not listed in the libpath.  Setting hardcode_minus_L
6198           # to unsupported forces relinking
6199           hardcode_minus_L=yes
6200           hardcode_libdir_flag_spec='-L$libdir'
6201           hardcode_libdir_separator=
6202         fi
6203       esac
6204
6205       shared_flag='-shared'
6206     else
6207       # not using gcc
6208       if test "$host_cpu" = ia64; then
6209         shared_flag='${wl}-G'
6210       else
6211         if test "$aix_use_runtimelinking" = yes; then
6212           shared_flag='${wl}-G'
6213         else
6214           shared_flag='${wl}-bM:SRE'
6215         fi
6216       fi
6217     fi
6218
6219     # It seems that -bexpall can do strange things, so it is better to
6220     # generate a list of symbols to export.
6221     always_export_symbols=yes
6222     if test "$aix_use_runtimelinking" = yes; then
6223       # Warning - without using the other runtime loading flags (-brtl),
6224       # -berok will link without error, but may produce a broken library.
6225       allow_undefined_flag='-berok'
6226       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6227       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6228     else
6229       if test "$host_cpu" = ia64; then
6230         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6231         allow_undefined_flag="-z nodefs"
6232         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6233       else
6234         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6235         # Warning - without using the other run time loading flags,
6236         # -berok will link without error, but may produce a broken library.
6237         allow_undefined_flag='${wl}-berok'
6238         # This is a bit strange, but is similar to how AIX traditionally builds
6239         # it's shared libraries.
6240         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6241       fi
6242     fi
6243     ;;
6244
6245   amigaos*)
6246     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6247     hardcode_libdir_flag_spec='-L$libdir'
6248     hardcode_minus_L=yes
6249     # see comment about different semantics on the GNU ld section
6250     ld_shlibs=no
6251     ;;
6252
6253   cygwin* | mingw* | pw32*)
6254     # When not using gcc, we currently assume that we are using
6255     # Microsoft Visual C++.
6256     # hardcode_libdir_flag_spec is actually meaningless, as there is
6257     # no search path for DLLs.
6258     hardcode_libdir_flag_spec=' '
6259     allow_undefined_flag=unsupported
6260     # Tell ltmain to make .lib files, not .a files.
6261     libext=lib
6262     # FIXME: Setting linknames here is a bad hack.
6263     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6264     # The linker will automatically build a .lib file if we build a DLL.
6265     old_archive_from_new_cmds='true'
6266     # FIXME: Should let the user specify the lib program.
6267     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6268     fix_srcfile_path='`cygpath -w "$srcfile"`'
6269     ;;
6270
6271   darwin* | rhapsody*)
6272     case "$host_os" in
6273     rhapsody* | darwin1.[012])
6274       allow_undefined_flag='-undefined suppress'
6275       ;;
6276     *) # Darwin 1.3 on
6277       allow_undefined_flag='-flat_namespace -undefined suppress'
6278       ;;
6279     esac
6280     # FIXME: Relying on posixy $() will cause problems for
6281     #        cross-compilation, but unfortunately the echo tests do not
6282     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6283     #        `"' quotes if we put them in here... so don't!
6284     archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6285     # We need to add '_' to the symbols in $export_symbols first
6286     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6287     hardcode_direct=yes
6288     hardcode_shlibpath_var=no
6289     whole_archive_flag_spec='-all_load $convenience'
6290     ;;
6291
6292   freebsd1*)
6293     ld_shlibs=no
6294     ;;
6295
6296   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6297   # support.  Future versions do this automatically, but an explicit c++rt0.o
6298   # does not break anything, and helps significantly (at the cost of a little
6299   # extra space).
6300   freebsd2.2*)
6301     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6302     hardcode_libdir_flag_spec='-R$libdir'
6303     hardcode_direct=yes
6304     hardcode_shlibpath_var=no
6305     ;;
6306
6307   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6308   freebsd2*)
6309     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6310     hardcode_direct=yes
6311     hardcode_minus_L=yes
6312     hardcode_shlibpath_var=no
6313     ;;
6314
6315   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6316   freebsd*)
6317     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6318     hardcode_libdir_flag_spec='-R$libdir'
6319     hardcode_direct=yes
6320     hardcode_shlibpath_var=no
6321     ;;
6322
6323   hpux9* | hpux10* | hpux11*)
6324     case $host_os in
6325     hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6326     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6327     esac
6328     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6329     hardcode_libdir_separator=:
6330     hardcode_direct=yes
6331     hardcode_minus_L=yes # Not in the search PATH, but as the default
6332                          # location of the library.
6333     export_dynamic_flag_spec='${wl}-E'
6334     ;;
6335
6336   irix5* | irix6* | nonstopux*)
6337     if test "$GCC" = yes; then
6338       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6339       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6340     else
6341       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6342       hardcode_libdir_flag_spec='-rpath $libdir'
6343     fi
6344     hardcode_libdir_separator=:
6345     link_all_deplibs=yes
6346     ;;
6347
6348   netbsd*)
6349     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6350       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6351     else
6352       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6353     fi
6354     hardcode_libdir_flag_spec='-R$libdir'
6355     hardcode_direct=yes
6356     hardcode_shlibpath_var=no
6357     ;;
6358
6359   newsos6)
6360     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6361     hardcode_direct=yes
6362     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6363     hardcode_libdir_separator=:
6364     hardcode_shlibpath_var=no
6365     ;;
6366
6367   openbsd*)
6368     hardcode_direct=yes
6369     hardcode_shlibpath_var=no
6370     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6371       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6372       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6373       export_dynamic_flag_spec='${wl}-E'
6374     else
6375       case "$host_os" in
6376       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6377         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6378         hardcode_libdir_flag_spec='-R$libdir'
6379         ;;
6380       *)
6381         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6382         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6383         ;;
6384       esac
6385     fi
6386     ;;
6387
6388   os2*)
6389     hardcode_libdir_flag_spec='-L$libdir'
6390     hardcode_minus_L=yes
6391     allow_undefined_flag=unsupported
6392     archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6393     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6394     ;;
6395
6396   osf3*)
6397     if test "$GCC" = yes; then
6398       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6399       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6400     else
6401       allow_undefined_flag=' -expect_unresolved \*'
6402       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6403     fi
6404     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6405     hardcode_libdir_separator=:
6406     ;;
6407
6408   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6409     if test "$GCC" = yes; then
6410       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6411       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6412       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6413     else
6414       allow_undefined_flag=' -expect_unresolved \*'
6415       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6416       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6417       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6418
6419       #Both c and cxx compiler support -rpath directly
6420       hardcode_libdir_flag_spec='-rpath $libdir'
6421     fi
6422     hardcode_libdir_separator=:
6423     ;;
6424
6425   sco3.2v5*)
6426     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6427     hardcode_shlibpath_var=no
6428     runpath_var=LD_RUN_PATH
6429     hardcode_runpath_var=yes
6430     export_dynamic_flag_spec='${wl}-Bexport'
6431     ;;
6432
6433   solaris*)
6434     # gcc --version < 3.0 without binutils cannot create self contained
6435     # shared libraries reliably, requiring libgcc.a to resolve some of
6436     # the object symbols generated in some cases.  Libraries that use
6437     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6438     # a copy of libgcc.a into every shared library to guarantee resolving
6439     # such symbols causes other problems:  According to Tim Van Holder
6440     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6441     # (to the application) exception stack for one thing.
6442     no_undefined_flag=' -z defs'
6443     if test "$GCC" = yes; then
6444       case `$CC --version 2>/dev/null` in
6445       [12].*)
6446         cat <<EOF 1>&2
6447
6448 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6449 *** create self contained shared libraries on Solaris systems, without
6450 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6451 *** -no-undefined support, which will at least allow you to build shared
6452 *** libraries.  However, you may find that when you link such libraries
6453 *** into an application without using GCC, you have to manually add
6454 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6455 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6456 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6457
6458 EOF
6459         no_undefined_flag=
6460         ;;
6461       esac
6462     fi
6463     # $CC -shared without GNU ld will not create a library from C++
6464     # object files and a static libstdc++, better avoid it by now
6465     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6466     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6467                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6468     hardcode_libdir_flag_spec='-R$libdir'
6469     hardcode_shlibpath_var=no
6470     case $host_os in
6471     solaris2.[0-5] | solaris2.[0-5].*) ;;
6472     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6473       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6474     esac
6475     link_all_deplibs=yes
6476     ;;
6477
6478   sunos4*)
6479     if test "x$host_vendor" = xsequent; then
6480       # Use $CC to link under sequent, because it throws in some extra .o
6481       # files that make .init and .fini sections work.
6482       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6483     else
6484       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6485     fi
6486     hardcode_libdir_flag_spec='-L$libdir'
6487     hardcode_direct=yes
6488     hardcode_minus_L=yes
6489     hardcode_shlibpath_var=no
6490     ;;
6491
6492   sysv4)
6493     case $host_vendor in
6494       sni)
6495         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6496         hardcode_direct=yes # is this really true???
6497         ;;
6498       siemens)
6499         ## LD is ld it makes a PLAMLIB
6500         ## CC just makes a GrossModule.
6501         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6502         reload_cmds='$CC -r -o $output$reload_objs'
6503         hardcode_direct=no
6504         ;;
6505       motorola)
6506         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6507         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6508         ;;
6509     esac
6510     runpath_var='LD_RUN_PATH'
6511     hardcode_shlibpath_var=no
6512     ;;
6513
6514   sysv4.3*)
6515     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6516     hardcode_shlibpath_var=no
6517     export_dynamic_flag_spec='-Bexport'
6518     ;;
6519
6520   sysv5*)
6521     no_undefined_flag=' -z text'
6522     # $CC -shared without GNU ld will not create a library from C++
6523     # object files and a static libstdc++, better avoid it by now
6524     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6525     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6526                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6527     hardcode_libdir_flag_spec=
6528     hardcode_shlibpath_var=no
6529     runpath_var='LD_RUN_PATH'
6530     ;;
6531
6532   uts4*)
6533     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6534     hardcode_libdir_flag_spec='-L$libdir'
6535     hardcode_shlibpath_var=no
6536     ;;
6537
6538   dgux*)
6539     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6540     hardcode_libdir_flag_spec='-L$libdir'
6541     hardcode_shlibpath_var=no
6542     ;;
6543
6544   sysv4*MP*)
6545     if test -d /usr/nec; then
6546       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6547       hardcode_shlibpath_var=no
6548       runpath_var=LD_RUN_PATH
6549       hardcode_runpath_var=yes
6550       ld_shlibs=yes
6551     fi
6552     ;;
6553
6554   sysv4.2uw2*)
6555     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6556     hardcode_direct=yes
6557     hardcode_minus_L=no
6558     hardcode_shlibpath_var=no
6559     hardcode_runpath_var=yes
6560     runpath_var=LD_RUN_PATH
6561     ;;
6562
6563   sysv5uw7* | unixware7*)
6564     no_undefined_flag='${wl}-z ${wl}text'
6565     if test "$GCC" = yes; then
6566       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6567     else
6568       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6569     fi
6570     runpath_var='LD_RUN_PATH'
6571     hardcode_shlibpath_var=no
6572     ;;
6573
6574   *)
6575     ld_shlibs=no
6576     ;;
6577   esac
6578 fi
6579 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6580 echo "${ECHO_T}$ld_shlibs" >&6
6581 test "$ld_shlibs" = no && can_build_shared=no
6582
6583 # Check hardcoding attributes.
6584 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6585 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6586 hardcode_action=
6587 if test -n "$hardcode_libdir_flag_spec" || \
6588    test -n "$runpath_var"; then
6589
6590   # We can hardcode non-existant directories.
6591   if test "$hardcode_direct" != no &&
6592      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6593      # have to relink, otherwise we might link with an installed library
6594      # when we should be linking with a yet-to-be-installed one
6595      ## test "$hardcode_shlibpath_var" != no &&
6596      test "$hardcode_minus_L" != no; then
6597     # Linking always hardcodes the temporary library directory.
6598     hardcode_action=relink
6599   else
6600     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6601     hardcode_action=immediate
6602   fi
6603 else
6604   # We cannot hardcode anything, or else we can only hardcode existing
6605   # directories.
6606   hardcode_action=unsupported
6607 fi
6608 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6609 echo "${ECHO_T}$hardcode_action" >&6
6610
6611 striplib=
6612 old_striplib=
6613 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6614 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6615 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6616   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6617   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6618   echo "$as_me:$LINENO: result: yes" >&5
6619 echo "${ECHO_T}yes" >&6
6620 else
6621   echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6
6623 fi
6624
6625 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6626 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6627
6628 # PORTME Fill in your ld.so characteristics
6629 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6630 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6631 library_names_spec=
6632 libname_spec='lib$name'
6633 soname_spec=
6634 postinstall_cmds=
6635 postuninstall_cmds=
6636 finish_cmds=
6637 finish_eval=
6638 shlibpath_var=
6639 shlibpath_overrides_runpath=unknown
6640 version_type=none
6641 dynamic_linker="$host_os ld.so"
6642 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6643 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6644
6645 case $host_os in
6646 aix3*)
6647   version_type=linux
6648   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6649   shlibpath_var=LIBPATH
6650
6651   # AIX has no versioning support, so we append a major version to the name.
6652   soname_spec='${libname}${release}.so$major'
6653   ;;
6654
6655 aix4* | aix5*)
6656   version_type=linux
6657   need_lib_prefix=no
6658   need_version=no
6659   hardcode_into_libs=yes
6660   if test "$host_cpu" = ia64; then
6661     # AIX 5 supports IA64
6662     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6663     shlibpath_var=LD_LIBRARY_PATH
6664   else
6665     # With GCC up to 2.95.x, collect2 would create an import file
6666     # for dependence libraries.  The import file would start with
6667     # the line `#! .'.  This would cause the generated library to
6668     # depend on `.', always an invalid library.  This was fixed in
6669     # development snapshots of GCC prior to 3.0.
6670     case $host_os in
6671       aix4 | aix4.[01] | aix4.[01].*)
6672         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6673              echo ' yes '
6674              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6675           :
6676         else
6677           can_build_shared=no
6678         fi
6679         ;;
6680     esac
6681     # AIX (on Power*) has no versioning support, so currently we can
6682     # not hardcode correct soname into executable. Probably we can
6683     # add versioning support to collect2, so additional links can
6684     # be useful in future.
6685     if test "$aix_use_runtimelinking" = yes; then
6686       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6687       # instead of lib<name>.a to let people know that these are not
6688       # typical AIX shared libraries.
6689       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6690     else
6691       # We preserve .a as extension for shared libraries through AIX4.2
6692       # and later when we are not doing run time linking.
6693       library_names_spec='${libname}${release}.a $libname.a'
6694       soname_spec='${libname}${release}.so$major'
6695     fi
6696     shlibpath_var=LIBPATH
6697   fi
6698   hardcode_into_libs=yes
6699   ;;
6700
6701 amigaos*)
6702   library_names_spec='$libname.ixlibrary $libname.a'
6703   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6704   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6705   ;;
6706
6707 beos*)
6708   library_names_spec='${libname}.so'
6709   dynamic_linker="$host_os ld.so"
6710   shlibpath_var=LIBRARY_PATH
6711   ;;
6712
6713 bsdi4*)
6714   version_type=linux
6715   need_version=no
6716   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6717   soname_spec='${libname}${release}.so$major'
6718   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6719   shlibpath_var=LD_LIBRARY_PATH
6720   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6721   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6722   export_dynamic_flag_spec=-rdynamic
6723   # the default ld.so.conf also contains /usr/contrib/lib and
6724   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6725   # libtool to hard-code these into programs
6726   ;;
6727
6728 cygwin* | mingw* | pw32*)
6729   version_type=windows
6730   need_version=no
6731   need_lib_prefix=no
6732   case $GCC,$host_os in
6733   yes,cygwin*)
6734     library_names_spec='$libname.dll.a'
6735     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6736     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6737       dldir=$destdir/`dirname \$dlpath`~
6738       test -d \$dldir || mkdir -p \$dldir~
6739       $install_prog .libs/$dlname \$dldir/$dlname'
6740     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6741       dlpath=$dir/\$dldll~
6742        $rm \$dlpath'
6743     ;;
6744   yes,mingw*)
6745     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6746     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6747     ;;
6748   yes,pw32*)
6749     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6750     ;;
6751   *)
6752     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6753     ;;
6754   esac
6755   dynamic_linker='Win32 ld.exe'
6756   # FIXME: first we should search . and the directory the executable is in
6757   shlibpath_var=PATH
6758   ;;
6759
6760 darwin* | rhapsody*)
6761   dynamic_linker="$host_os dyld"
6762   version_type=darwin
6763   need_lib_prefix=no
6764   need_version=no
6765   # FIXME: Relying on posixy $() will cause problems for
6766   #        cross-compilation, but unfortunately the echo tests do not
6767   #        yet detect zsh echo's removal of \ escapes.
6768   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6769   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6770   shlibpath_overrides_runpath=yes
6771   shlibpath_var=DYLD_LIBRARY_PATH
6772   ;;
6773
6774 freebsd1*)
6775   dynamic_linker=no
6776   ;;
6777
6778 freebsd*)
6779   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6780   version_type=freebsd-$objformat
6781   case $version_type in
6782     freebsd-elf*)
6783       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6784       need_version=no
6785       need_lib_prefix=no
6786       ;;
6787     freebsd-*)
6788       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6789       need_version=yes
6790       ;;
6791   esac
6792   shlibpath_var=LD_LIBRARY_PATH
6793   case $host_os in
6794   freebsd2*)
6795     shlibpath_overrides_runpath=yes
6796     ;;
6797   *)
6798     shlibpath_overrides_runpath=no
6799     hardcode_into_libs=yes
6800     ;;
6801   esac
6802   ;;
6803
6804 gnu*)
6805   version_type=linux
6806   need_lib_prefix=no
6807   need_version=no
6808   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6809   soname_spec='${libname}${release}.so$major'
6810   shlibpath_var=LD_LIBRARY_PATH
6811   hardcode_into_libs=yes
6812   ;;
6813
6814 hpux9* | hpux10* | hpux11*)
6815   # Give a soname corresponding to the major version so that dld.sl refuses to
6816   # link against other versions.
6817   dynamic_linker="$host_os dld.sl"
6818   version_type=sunos
6819   need_lib_prefix=no
6820   need_version=no
6821   shlibpath_var=SHLIB_PATH
6822   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6823   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6824   soname_spec='${libname}${release}.sl$major'
6825   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6826   postinstall_cmds='chmod 555 $lib'
6827   ;;
6828
6829 irix5* | irix6* | nonstopux*)
6830   case $host_os in
6831     nonstopux*) version_type=nonstopux ;;
6832     *)          version_type=irix ;;
6833   esac
6834   need_lib_prefix=no
6835   need_version=no
6836   soname_spec='${libname}${release}.so$major'
6837   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6838   case $host_os in
6839   irix5* | nonstopux*)
6840     libsuff= shlibsuff=
6841     ;;
6842   *)
6843     case $LD in # libtool.m4 will add one of these switches to LD
6844     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6845     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6846     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6847     *) libsuff= shlibsuff= libmagic=never-match;;
6848     esac
6849     ;;
6850   esac
6851   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6852   shlibpath_overrides_runpath=no
6853   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6854   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6855   ;;
6856
6857 # No shared lib support for Linux oldld, aout, or coff.
6858 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6859   dynamic_linker=no
6860   ;;
6861
6862 # This must be Linux ELF.
6863 linux-gnu*)
6864   version_type=linux
6865   need_lib_prefix=no
6866   need_version=no
6867   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6868   soname_spec='${libname}${release}.so$major'
6869   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6870   shlibpath_var=LD_LIBRARY_PATH
6871   shlibpath_overrides_runpath=no
6872   # This implies no fast_install, which is unacceptable.
6873   # Some rework will be needed to allow for fast_install
6874   # before this can be enabled.
6875   hardcode_into_libs=yes
6876
6877   # We used to test for /lib/ld.so.1 and disable shared libraries on
6878   # powerpc, because MkLinux only supported shared libraries with the
6879   # GNU dynamic linker.  Since this was broken with cross compilers,
6880   # most powerpc-linux boxes support dynamic linking these days and
6881   # people can always --disable-shared, the test was removed, and we
6882   # assume the GNU/Linux dynamic linker is in use.
6883   dynamic_linker='GNU/Linux ld.so'
6884
6885   # Find out which ABI we are using (multilib Linux x86_64 hack).
6886   libsuff=
6887   case "$host_cpu" in
6888   x86_64*|s390x*)
6889     echo '#line 6889 "configure"' > conftest.$ac_ext
6890     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6891   (eval $ac_compile) 2>&5
6892   ac_status=$?
6893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894   (exit $ac_status); }; then
6895       case `/usr/bin/file conftest.$ac_objext` in
6896       *64-bit*)
6897         libsuff=64
6898         ;;
6899       esac
6900     fi
6901     rm -rf conftest*
6902     ;;
6903   *)
6904     ;;
6905   esac
6906   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6907   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6908   ;;
6909
6910 netbsd*)
6911   version_type=sunos
6912   need_lib_prefix=no
6913   need_version=no
6914   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6915     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6916     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6917     dynamic_linker='NetBSD (a.out) ld.so'
6918   else
6919     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6920     soname_spec='${libname}${release}.so$major'
6921     dynamic_linker='NetBSD ld.elf_so'
6922   fi
6923   shlibpath_var=LD_LIBRARY_PATH
6924   shlibpath_overrides_runpath=yes
6925   hardcode_into_libs=yes
6926   ;;
6927
6928 newsos6)
6929   version_type=linux
6930   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6931   shlibpath_var=LD_LIBRARY_PATH
6932   shlibpath_overrides_runpath=yes
6933   ;;
6934
6935 openbsd*)
6936   version_type=sunos
6937   need_lib_prefix=no
6938   need_version=no
6939   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6940     case "$host_os" in
6941     openbsd2.[89] | openbsd2.[89].*)
6942       shlibpath_overrides_runpath=no
6943       ;;
6944     *)
6945       shlibpath_overrides_runpath=yes
6946       ;;
6947     esac
6948   else
6949     shlibpath_overrides_runpath=yes
6950   fi
6951   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6952   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6953   shlibpath_var=LD_LIBRARY_PATH
6954   ;;
6955
6956 os2*)
6957   libname_spec='$name'
6958   need_lib_prefix=no
6959   library_names_spec='$libname.dll $libname.a'
6960   dynamic_linker='OS/2 ld.exe'
6961   shlibpath_var=LIBPATH
6962   ;;
6963
6964 osf3* | osf4* | osf5*)
6965   version_type=osf
6966   need_version=no
6967   soname_spec='${libname}${release}.so$major'
6968   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6969   shlibpath_var=LD_LIBRARY_PATH
6970   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6971   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6972   hardcode_into_libs=yes
6973   ;;
6974
6975 sco3.2v5*)
6976   version_type=osf
6977   soname_spec='${libname}${release}.so$major'
6978   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6979   shlibpath_var=LD_LIBRARY_PATH
6980   ;;
6981
6982 solaris*)
6983   version_type=linux
6984   need_lib_prefix=no
6985   need_version=no
6986   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6987   soname_spec='${libname}${release}.so$major'
6988   shlibpath_var=LD_LIBRARY_PATH
6989   shlibpath_overrides_runpath=yes
6990   hardcode_into_libs=yes
6991   # ldd complains unless libraries are executable
6992   postinstall_cmds='chmod +x $lib'
6993   ;;
6994
6995 sunos4*)
6996   version_type=sunos
6997   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6998   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6999   shlibpath_var=LD_LIBRARY_PATH
7000   shlibpath_overrides_runpath=yes
7001   if test "$with_gnu_ld" = yes; then
7002     need_lib_prefix=no
7003   fi
7004   need_version=yes
7005   ;;
7006
7007 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7008   version_type=linux
7009   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7010   soname_spec='${libname}${release}.so$major'
7011   shlibpath_var=LD_LIBRARY_PATH
7012   case $host_vendor in
7013     sni)
7014       shlibpath_overrides_runpath=no
7015       need_lib_prefix=no
7016       export_dynamic_flag_spec='${wl}-Blargedynsym'
7017       runpath_var=LD_RUN_PATH
7018       ;;
7019     siemens)
7020       need_lib_prefix=no
7021       ;;
7022     motorola)
7023       need_lib_prefix=no
7024       need_version=no
7025       shlibpath_overrides_runpath=no
7026       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7027       ;;
7028   esac
7029   ;;
7030
7031 uts4*)
7032   version_type=linux
7033   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7034   soname_spec='${libname}${release}.so$major'
7035   shlibpath_var=LD_LIBRARY_PATH
7036   ;;
7037
7038 dgux*)
7039   version_type=linux
7040   need_lib_prefix=no
7041   need_version=no
7042   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7043   soname_spec='${libname}${release}.so$major'
7044   shlibpath_var=LD_LIBRARY_PATH
7045   ;;
7046
7047 sysv4*MP*)
7048   if test -d /usr/nec ;then
7049     version_type=linux
7050     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7051     soname_spec='$libname.so.$major'
7052     shlibpath_var=LD_LIBRARY_PATH
7053   fi
7054   ;;
7055
7056 *)
7057   dynamic_linker=no
7058   ;;
7059 esac
7060 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7061 echo "${ECHO_T}$dynamic_linker" >&6
7062 test "$dynamic_linker" = no && can_build_shared=no
7063
7064 # Report the final consequences.
7065 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7066 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7067 echo "$as_me:$LINENO: result: $can_build_shared" >&5
7068 echo "${ECHO_T}$can_build_shared" >&6
7069
7070 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7071 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7072 test "$can_build_shared" = "no" && enable_shared=no
7073
7074 # On AIX, shared libraries and static libraries use the same namespace, and
7075 # are all built from PIC.
7076 case "$host_os" in
7077 aix3*)
7078   test "$enable_shared" = yes && enable_static=no
7079   if test -n "$RANLIB"; then
7080     archive_cmds="$archive_cmds~\$RANLIB \$lib"
7081     postinstall_cmds='$RANLIB $lib'
7082   fi
7083   ;;
7084
7085 aix4*)
7086   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7087     test "$enable_shared" = yes && enable_static=no
7088   fi
7089   ;;
7090 esac
7091 echo "$as_me:$LINENO: result: $enable_shared" >&5
7092 echo "${ECHO_T}$enable_shared" >&6
7093
7094 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7095 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7096 # Make sure either enable_shared or enable_static is yes.
7097 test "$enable_shared" = yes || enable_static=yes
7098 echo "$as_me:$LINENO: result: $enable_static" >&5
7099 echo "${ECHO_T}$enable_static" >&6
7100
7101 if test "$hardcode_action" = relink; then
7102   # Fast installation is not supported
7103   enable_fast_install=no
7104 elif test "$shlibpath_overrides_runpath" = yes ||
7105      test "$enable_shared" = no; then
7106   # Fast installation is not necessary
7107   enable_fast_install=needless
7108 fi
7109
7110 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7111 if test "$GCC" = yes; then
7112   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7113 fi
7114
7115 if test "x$enable_dlopen" != xyes; then
7116   enable_dlopen=unknown
7117   enable_dlopen_self=unknown
7118   enable_dlopen_self_static=unknown
7119 else
7120   lt_cv_dlopen=no
7121   lt_cv_dlopen_libs=
7122
7123   case $host_os in
7124   beos*)
7125     lt_cv_dlopen="load_add_on"
7126     lt_cv_dlopen_libs=
7127     lt_cv_dlopen_self=yes
7128     ;;
7129
7130   cygwin* | mingw* | pw32*)
7131     lt_cv_dlopen="LoadLibrary"
7132     lt_cv_dlopen_libs=
7133    ;;
7134
7135   *)
7136     echo "$as_me:$LINENO: checking for shl_load" >&5
7137 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7138 if test "${ac_cv_func_shl_load+set}" = set; then
7139   echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141   cat >conftest.$ac_ext <<_ACEOF
7142 #line $LINENO "configure"
7143 /* confdefs.h.  */
7144 _ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h.  */
7148 /* System header to define __stub macros and hopefully few prototypes,
7149     which can conflict with char shl_load (); below.
7150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7151     <limits.h> exists even on freestanding compilers.  */
7152 #ifdef __STDC__
7153 # include <limits.h>
7154 #else
7155 # include <assert.h>
7156 #endif
7157 /* Override any gcc2 internal prototype to avoid an error.  */
7158 #ifdef __cplusplus
7159 extern "C"
7160 {
7161 #endif
7162 /* We use char because int might match the return type of a gcc2
7163    builtin and then its argument prototype would still apply.  */
7164 char shl_load ();
7165 /* The GNU C library defines this for functions which it implements
7166     to always fail with ENOSYS.  Some functions are actually named
7167     something starting with __ and the normal name is an alias.  */
7168 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7169 choke me
7170 #else
7171 char (*f) () = shl_load;
7172 #endif
7173 #ifdef __cplusplus
7174 }
7175 #endif
7176
7177 int
7178 main ()
7179 {
7180 return f != shl_load;
7181   ;
7182   return 0;
7183 }
7184 _ACEOF
7185 rm -f conftest.$ac_objext conftest$ac_exeext
7186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7187   (eval $ac_link) 2>&5
7188   ac_status=$?
7189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190   (exit $ac_status); } &&
7191          { ac_try='test -s conftest$ac_exeext'
7192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193   (eval $ac_try) 2>&5
7194   ac_status=$?
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); }; }; then
7197   ac_cv_func_shl_load=yes
7198 else
7199   echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7201
7202 ac_cv_func_shl_load=no
7203 fi
7204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7205 fi
7206 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7207 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7208 if test $ac_cv_func_shl_load = yes; then
7209   lt_cv_dlopen="shl_load"
7210 else
7211   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7212 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7213 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7214   echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216   ac_check_lib_save_LIBS=$LIBS
7217 LIBS="-ldld  $LIBS"
7218 cat >conftest.$ac_ext <<_ACEOF
7219 #line $LINENO "configure"
7220 /* confdefs.h.  */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h.  */
7225
7226 /* Override any gcc2 internal prototype to avoid an error.  */
7227 #ifdef __cplusplus
7228 extern "C"
7229 #endif
7230 /* We use char because int might match the return type of a gcc2
7231    builtin and then its argument prototype would still apply.  */
7232 char shl_load ();
7233 int
7234 main ()
7235 {
7236 shl_load ();
7237   ;
7238   return 0;
7239 }
7240 _ACEOF
7241 rm -f conftest.$ac_objext conftest$ac_exeext
7242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7243   (eval $ac_link) 2>&5
7244   ac_status=$?
7245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246   (exit $ac_status); } &&
7247          { ac_try='test -s conftest$ac_exeext'
7248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249   (eval $ac_try) 2>&5
7250   ac_status=$?
7251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); }; }; then
7253   ac_cv_lib_dld_shl_load=yes
7254 else
7255   echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7257
7258 ac_cv_lib_dld_shl_load=no
7259 fi
7260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7261 LIBS=$ac_check_lib_save_LIBS
7262 fi
7263 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7264 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7265 if test $ac_cv_lib_dld_shl_load = yes; then
7266   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7267 else
7268   echo "$as_me:$LINENO: checking for dlopen" >&5
7269 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7270 if test "${ac_cv_func_dlopen+set}" = set; then
7271   echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273   cat >conftest.$ac_ext <<_ACEOF
7274 #line $LINENO "configure"
7275 /* confdefs.h.  */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h.  */
7280 /* System header to define __stub macros and hopefully few prototypes,
7281     which can conflict with char dlopen (); below.
7282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7283     <limits.h> exists even on freestanding compilers.  */
7284 #ifdef __STDC__
7285 # include <limits.h>
7286 #else
7287 # include <assert.h>
7288 #endif
7289 /* Override any gcc2 internal prototype to avoid an error.  */
7290 #ifdef __cplusplus
7291 extern "C"
7292 {
7293 #endif
7294 /* We use char because int might match the return type of a gcc2
7295    builtin and then its argument prototype would still apply.  */
7296 char dlopen ();
7297 /* The GNU C library defines this for functions which it implements
7298     to always fail with ENOSYS.  Some functions are actually named
7299     something starting with __ and the normal name is an alias.  */
7300 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7301 choke me
7302 #else
7303 char (*f) () = dlopen;
7304 #endif
7305 #ifdef __cplusplus
7306 }
7307 #endif
7308
7309 int
7310 main ()
7311 {
7312 return f != dlopen;
7313   ;
7314   return 0;
7315 }
7316 _ACEOF
7317 rm -f conftest.$ac_objext conftest$ac_exeext
7318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7319   (eval $ac_link) 2>&5
7320   ac_status=$?
7321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322   (exit $ac_status); } &&
7323          { ac_try='test -s conftest$ac_exeext'
7324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325   (eval $ac_try) 2>&5
7326   ac_status=$?
7327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328   (exit $ac_status); }; }; then
7329   ac_cv_func_dlopen=yes
7330 else
7331   echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7333
7334 ac_cv_func_dlopen=no
7335 fi
7336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7337 fi
7338 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7339 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7340 if test $ac_cv_func_dlopen = yes; then
7341   lt_cv_dlopen="dlopen"
7342 else
7343   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7344 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7345 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7346   echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348   ac_check_lib_save_LIBS=$LIBS
7349 LIBS="-ldl  $LIBS"
7350 cat >conftest.$ac_ext <<_ACEOF
7351 #line $LINENO "configure"
7352 /* confdefs.h.  */
7353 _ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h.  */
7357
7358 /* Override any gcc2 internal prototype to avoid an error.  */
7359 #ifdef __cplusplus
7360 extern "C"
7361 #endif
7362 /* We use char because int might match the return type of a gcc2
7363    builtin and then its argument prototype would still apply.  */
7364 char dlopen ();
7365 int
7366 main ()
7367 {
7368 dlopen ();
7369   ;
7370   return 0;
7371 }
7372 _ACEOF
7373 rm -f conftest.$ac_objext conftest$ac_exeext
7374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7375   (eval $ac_link) 2>&5
7376   ac_status=$?
7377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378   (exit $ac_status); } &&
7379          { ac_try='test -s conftest$ac_exeext'
7380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381   (eval $ac_try) 2>&5
7382   ac_status=$?
7383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); }; }; then
7385   ac_cv_lib_dl_dlopen=yes
7386 else
7387   echo "$as_me: failed program was:" >&5
7388 sed 's/^/| /' conftest.$ac_ext >&5
7389
7390 ac_cv_lib_dl_dlopen=no
7391 fi
7392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7393 LIBS=$ac_check_lib_save_LIBS
7394 fi
7395 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7396 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7397 if test $ac_cv_lib_dl_dlopen = yes; then
7398   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7399 else
7400   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7401 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7402 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7403   echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405   ac_check_lib_save_LIBS=$LIBS
7406 LIBS="-lsvld  $LIBS"
7407 cat >conftest.$ac_ext <<_ACEOF
7408 #line $LINENO "configure"
7409 /* confdefs.h.  */
7410 _ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h.  */
7414
7415 /* Override any gcc2 internal prototype to avoid an error.  */
7416 #ifdef __cplusplus
7417 extern "C"
7418 #endif
7419 /* We use char because int might match the return type of a gcc2
7420    builtin and then its argument prototype would still apply.  */
7421 char dlopen ();
7422 int
7423 main ()
7424 {
7425 dlopen ();
7426   ;
7427   return 0;
7428 }
7429 _ACEOF
7430 rm -f conftest.$ac_objext conftest$ac_exeext
7431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7432   (eval $ac_link) 2>&5
7433   ac_status=$?
7434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435   (exit $ac_status); } &&
7436          { ac_try='test -s conftest$ac_exeext'
7437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438   (eval $ac_try) 2>&5
7439   ac_status=$?
7440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441   (exit $ac_status); }; }; then
7442   ac_cv_lib_svld_dlopen=yes
7443 else
7444   echo "$as_me: failed program was:" >&5
7445 sed 's/^/| /' conftest.$ac_ext >&5
7446
7447 ac_cv_lib_svld_dlopen=no
7448 fi
7449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7450 LIBS=$ac_check_lib_save_LIBS
7451 fi
7452 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7453 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7454 if test $ac_cv_lib_svld_dlopen = yes; then
7455   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7456 else
7457   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7458 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7459 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7460   echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462   ac_check_lib_save_LIBS=$LIBS
7463 LIBS="-ldld  $LIBS"
7464 cat >conftest.$ac_ext <<_ACEOF
7465 #line $LINENO "configure"
7466 /* confdefs.h.  */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h.  */
7471
7472 /* Override any gcc2 internal prototype to avoid an error.  */
7473 #ifdef __cplusplus
7474 extern "C"
7475 #endif
7476 /* We use char because int might match the return type of a gcc2
7477    builtin and then its argument prototype would still apply.  */
7478 char dld_link ();
7479 int
7480 main ()
7481 {
7482 dld_link ();
7483   ;
7484   return 0;
7485 }
7486 _ACEOF
7487 rm -f conftest.$ac_objext conftest$ac_exeext
7488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7489   (eval $ac_link) 2>&5
7490   ac_status=$?
7491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492   (exit $ac_status); } &&
7493          { ac_try='test -s conftest$ac_exeext'
7494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495   (eval $ac_try) 2>&5
7496   ac_status=$?
7497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498   (exit $ac_status); }; }; then
7499   ac_cv_lib_dld_dld_link=yes
7500 else
7501   echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7503
7504 ac_cv_lib_dld_dld_link=no
7505 fi
7506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7507 LIBS=$ac_check_lib_save_LIBS
7508 fi
7509 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7510 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7511 if test $ac_cv_lib_dld_dld_link = yes; then
7512   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7513 fi
7514
7515
7516 fi
7517
7518
7519 fi
7520
7521
7522 fi
7523
7524
7525 fi
7526
7527
7528 fi
7529
7530     ;;
7531   esac
7532
7533   if test "x$lt_cv_dlopen" != xno; then
7534     enable_dlopen=yes
7535   else
7536     enable_dlopen=no
7537   fi
7538
7539   case $lt_cv_dlopen in
7540   dlopen)
7541     save_CPPFLAGS="$CPPFLAGS"
7542         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7543
7544     save_LDFLAGS="$LDFLAGS"
7545     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7546
7547     save_LIBS="$LIBS"
7548     LIBS="$lt_cv_dlopen_libs $LIBS"
7549
7550     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7551 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7552 if test "${lt_cv_dlopen_self+set}" = set; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555           if test "$cross_compiling" = yes; then :
7556   lt_cv_dlopen_self=cross
7557 else
7558     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7559   lt_status=$lt_dlunknown
7560   cat > conftest.$ac_ext <<EOF
7561 #line 7561 "configure"
7562 #include "confdefs.h"
7563
7564 #if HAVE_DLFCN_H
7565 #include <dlfcn.h>
7566 #endif
7567
7568 #include <stdio.h>
7569
7570 #ifdef RTLD_GLOBAL
7571 #  define LT_DLGLOBAL           RTLD_GLOBAL
7572 #else
7573 #  ifdef DL_GLOBAL
7574 #    define LT_DLGLOBAL         DL_GLOBAL
7575 #  else
7576 #    define LT_DLGLOBAL         0
7577 #  endif
7578 #endif
7579
7580 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7581    find out it does not work in some platform. */
7582 #ifndef LT_DLLAZY_OR_NOW
7583 #  ifdef RTLD_LAZY
7584 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7585 #  else
7586 #    ifdef DL_LAZY
7587 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7588 #    else
7589 #      ifdef RTLD_NOW
7590 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7591 #      else
7592 #        ifdef DL_NOW
7593 #          define LT_DLLAZY_OR_NOW      DL_NOW
7594 #        else
7595 #          define LT_DLLAZY_OR_NOW      0
7596 #        endif
7597 #      endif
7598 #    endif
7599 #  endif
7600 #endif
7601
7602 #ifdef __cplusplus
7603 extern "C" void exit (int);
7604 #endif
7605
7606 void fnord() { int i=42;}
7607 int main ()
7608 {
7609   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7610   int status = $lt_dlunknown;
7611
7612   if (self)
7613     {
7614       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7615       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7616       /* dlclose (self); */
7617     }
7618
7619     exit (status);
7620 }
7621 EOF
7622   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7623   (eval $ac_link) 2>&5
7624   ac_status=$?
7625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7627     (./conftest; exit; ) 2>/dev/null
7628     lt_status=$?
7629     case x$lt_status in
7630       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7631       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7632       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7633     esac
7634   else :
7635     # compilation failed
7636     lt_cv_dlopen_self=no
7637   fi
7638 fi
7639 rm -fr conftest*
7640
7641
7642 fi
7643 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7644 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7645
7646     if test "x$lt_cv_dlopen_self" = xyes; then
7647       LDFLAGS="$LDFLAGS $link_static_flag"
7648       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7649 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7650 if test "${lt_cv_dlopen_self_static+set}" = set; then
7651   echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653           if test "$cross_compiling" = yes; then :
7654   lt_cv_dlopen_self_static=cross
7655 else
7656     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7657   lt_status=$lt_dlunknown
7658   cat > conftest.$ac_ext <<EOF
7659 #line 7659 "configure"
7660 #include "confdefs.h"
7661
7662 #if HAVE_DLFCN_H
7663 #include <dlfcn.h>
7664 #endif
7665
7666 #include <stdio.h>
7667
7668 #ifdef RTLD_GLOBAL
7669 #  define LT_DLGLOBAL           RTLD_GLOBAL
7670 #else
7671 #  ifdef DL_GLOBAL
7672 #    define LT_DLGLOBAL         DL_GLOBAL
7673 #  else
7674 #    define LT_DLGLOBAL         0
7675 #  endif
7676 #endif
7677
7678 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7679    find out it does not work in some platform. */
7680 #ifndef LT_DLLAZY_OR_NOW
7681 #  ifdef RTLD_LAZY
7682 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7683 #  else
7684 #    ifdef DL_LAZY
7685 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7686 #    else
7687 #      ifdef RTLD_NOW
7688 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7689 #      else
7690 #        ifdef DL_NOW
7691 #          define LT_DLLAZY_OR_NOW      DL_NOW
7692 #        else
7693 #          define LT_DLLAZY_OR_NOW      0
7694 #        endif
7695 #      endif
7696 #    endif
7697 #  endif
7698 #endif
7699
7700 #ifdef __cplusplus
7701 extern "C" void exit (int);
7702 #endif
7703
7704 void fnord() { int i=42;}
7705 int main ()
7706 {
7707   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7708   int status = $lt_dlunknown;
7709
7710   if (self)
7711     {
7712       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7713       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7714       /* dlclose (self); */
7715     }
7716
7717     exit (status);
7718 }
7719 EOF
7720   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7721   (eval $ac_link) 2>&5
7722   ac_status=$?
7723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7725     (./conftest; exit; ) 2>/dev/null
7726     lt_status=$?
7727     case x$lt_status in
7728       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7729       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7730       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7731     esac
7732   else :
7733     # compilation failed
7734     lt_cv_dlopen_self_static=no
7735   fi
7736 fi
7737 rm -fr conftest*
7738
7739
7740 fi
7741 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7742 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7743     fi
7744
7745     CPPFLAGS="$save_CPPFLAGS"
7746     LDFLAGS="$save_LDFLAGS"
7747     LIBS="$save_LIBS"
7748     ;;
7749   esac
7750
7751   case $lt_cv_dlopen_self in
7752   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7753   *) enable_dlopen_self=unknown ;;
7754   esac
7755
7756   case $lt_cv_dlopen_self_static in
7757   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7758   *) enable_dlopen_self_static=unknown ;;
7759   esac
7760 fi
7761
7762
7763 if test "$enable_shared" = yes && test "$GCC" = yes; then
7764   case $archive_cmds in
7765   *'~'*)
7766     # FIXME: we may have to deal with multi-command sequences.
7767     ;;
7768   '$CC '*)
7769     # Test whether the compiler implicitly links with -lc since on some
7770     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7771     # to ld, don't add -lc before -lgcc.
7772     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7773 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7774     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777   $rm conftest*
7778     echo 'static int dummy;' > conftest.$ac_ext
7779
7780     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7781   (eval $ac_compile) 2>&5
7782   ac_status=$?
7783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784   (exit $ac_status); }; then
7785       soname=conftest
7786       lib=conftest
7787       libobjs=conftest.$ac_objext
7788       deplibs=
7789       wl=$lt_cv_prog_cc_wl
7790       compiler_flags=-v
7791       linker_flags=-v
7792       verstring=
7793       output_objdir=.
7794       libname=conftest
7795       save_allow_undefined_flag=$allow_undefined_flag
7796       allow_undefined_flag=
7797       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7798   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7799   ac_status=$?
7800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801   (exit $ac_status); }
7802       then
7803         lt_cv_archive_cmds_need_lc=no
7804       else
7805         lt_cv_archive_cmds_need_lc=yes
7806       fi
7807       allow_undefined_flag=$save_allow_undefined_flag
7808     else
7809       cat conftest.err 1>&5
7810     fi
7811 fi
7812
7813     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7814 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7815     ;;
7816   esac
7817 fi
7818 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7819
7820 # The second clause should only fire when bootstrapping the
7821 # libtool distribution, otherwise you forgot to ship ltmain.sh
7822 # with your package, and you will get complaints that there are
7823 # no rules to generate ltmain.sh.
7824 if test -f "$ltmain"; then
7825   :
7826 else
7827   # If there is no Makefile yet, we rely on a make rule to execute
7828   # `config.status --recheck' to rerun these tests and create the
7829   # libtool script then.
7830   test -f Makefile && make "$ltmain"
7831 fi
7832
7833 if test -f "$ltmain"; then
7834   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7835   $rm -f "${ofile}T"
7836
7837   echo creating $ofile
7838
7839   # Now quote all the things that may contain metacharacters while being
7840   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7841   # variables and quote the copies for generation of the libtool script.
7842   for var in echo old_CC old_CFLAGS SED \
7843     AR AR_FLAGS CC LD LN_S NM SHELL \
7844     reload_flag reload_cmds wl \
7845     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7846     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7847     library_names_spec soname_spec \
7848     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7849     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7850     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7851     old_striplib striplib file_magic_cmd export_symbols_cmds \
7852     deplibs_check_method allow_undefined_flag no_undefined_flag \
7853     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7854     global_symbol_to_c_name_address \
7855     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7856     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7857     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7858
7859     case $var in
7860     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7861     old_postinstall_cmds | old_postuninstall_cmds | \
7862     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7863     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7864     postinstall_cmds | postuninstall_cmds | \
7865     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7866       # Double-quote double-evaled strings.
7867       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7868       ;;
7869     *)
7870       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7871       ;;
7872     esac
7873   done
7874
7875   cat <<__EOF__ > "${ofile}T"
7876 #! $SHELL
7877
7878 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7879 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7880 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7881 #
7882 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7883 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7884 #
7885 # This program is free software; you can redistribute it and/or modify
7886 # it under the terms of the GNU General Public License as published by
7887 # the Free Software Foundation; either version 2 of the License, or
7888 # (at your option) any later version.
7889 #
7890 # This program is distributed in the hope that it will be useful, but
7891 # WITHOUT ANY WARRANTY; without even the implied warranty of
7892 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7893 # General Public License for more details.
7894 #
7895 # You should have received a copy of the GNU General Public License
7896 # along with this program; if not, write to the Free Software
7897 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7898 #
7899 # As a special exception to the GNU General Public License, if you
7900 # distribute this file as part of a program that contains a
7901 # configuration script generated by Autoconf, you may include it under
7902 # the same distribution terms that you use for the rest of that program.
7903
7904 # A sed that does not truncate output.
7905 SED=$lt_SED
7906
7907 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7908 Xsed="${SED} -e s/^X//"
7909
7910 # The HP-UX ksh and POSIX shell print the target directory to stdout
7911 # if CDPATH is set.
7912 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7913
7914 # ### BEGIN LIBTOOL CONFIG
7915
7916 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7917
7918 # Shell to use when invoking shell scripts.
7919 SHELL=$lt_SHELL
7920
7921 # Whether or not to build shared libraries.
7922 build_libtool_libs=$enable_shared
7923
7924 # Whether or not to build static libraries.
7925 build_old_libs=$enable_static
7926
7927 # Whether or not to add -lc for building shared libraries.
7928 build_libtool_need_lc=$need_lc
7929
7930 # Whether or not to optimize for fast installation.
7931 fast_install=$enable_fast_install
7932
7933 # The host system.
7934 host_alias=$host_alias
7935 host=$host
7936
7937 # An echo program that does not interpret backslashes.
7938 echo=$lt_echo
7939
7940 # The archiver.
7941 AR=$lt_AR
7942 AR_FLAGS=$lt_AR_FLAGS
7943
7944 # The default C compiler.
7945 CC=$lt_CC
7946
7947 # Is the compiler the GNU C compiler?
7948 with_gcc=$GCC
7949
7950 # The linker used to build libraries.
7951 LD=$lt_LD
7952
7953 # Whether we need hard or soft links.
7954 LN_S=$lt_LN_S
7955
7956 # A BSD-compatible nm program.
7957 NM=$lt_NM
7958
7959 # A symbol stripping program
7960 STRIP=$STRIP
7961
7962 # Used to examine libraries when file_magic_cmd begins "file"
7963 MAGIC_CMD=$MAGIC_CMD
7964
7965 # Used on cygwin: DLL creation program.
7966 DLLTOOL="$DLLTOOL"
7967
7968 # Used on cygwin: object dumper.
7969 OBJDUMP="$OBJDUMP"
7970
7971 # Used on cygwin: assembler.
7972 AS="$AS"
7973
7974 # The name of the directory that contains temporary libtool files.
7975 objdir=$objdir
7976
7977 # How to create reloadable object files.
7978 reload_flag=$lt_reload_flag
7979 reload_cmds=$lt_reload_cmds
7980
7981 # How to pass a linker flag through the compiler.
7982 wl=$lt_wl
7983
7984 # Object file suffix (normally "o").
7985 objext="$ac_objext"
7986
7987 # Old archive suffix (normally "a").
7988 libext="$libext"
7989
7990 # Executable file suffix (normally "").
7991 exeext="$exeext"
7992
7993 # Additional compiler flags for building library objects.
7994 pic_flag=$lt_pic_flag
7995 pic_mode=$pic_mode
7996
7997 # Does compiler simultaneously support -c and -o options?
7998 compiler_c_o=$lt_compiler_c_o
7999
8000 # Can we write directly to a .lo ?
8001 compiler_o_lo=$lt_compiler_o_lo
8002
8003 # Must we lock files when doing compilation ?
8004 need_locks=$lt_need_locks
8005
8006 # Do we need the lib prefix for modules?
8007 need_lib_prefix=$need_lib_prefix
8008
8009 # Do we need a version for libraries?
8010 need_version=$need_version
8011
8012 # Whether dlopen is supported.
8013 dlopen_support=$enable_dlopen
8014
8015 # Whether dlopen of programs is supported.
8016 dlopen_self=$enable_dlopen_self
8017
8018 # Whether dlopen of statically linked programs is supported.
8019 dlopen_self_static=$enable_dlopen_self_static
8020
8021 # Compiler flag to prevent dynamic linking.
8022 link_static_flag=$lt_link_static_flag
8023
8024 # Compiler flag to turn off builtin functions.
8025 no_builtin_flag=$lt_no_builtin_flag
8026
8027 # Compiler flag to allow reflexive dlopens.
8028 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8029
8030 # Compiler flag to generate shared objects directly from archives.
8031 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8032
8033 # Compiler flag to generate thread-safe objects.
8034 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8035
8036 # Library versioning type.
8037 version_type=$version_type
8038
8039 # Format of library name prefix.
8040 libname_spec=$lt_libname_spec
8041
8042 # List of archive names.  First name is the real one, the rest are links.
8043 # The last name is the one that the linker finds with -lNAME.
8044 library_names_spec=$lt_library_names_spec
8045
8046 # The coded name of the library, if different from the real name.
8047 soname_spec=$lt_soname_spec
8048
8049 # Commands used to build and install an old-style archive.
8050 RANLIB=$lt_RANLIB
8051 old_archive_cmds=$lt_old_archive_cmds
8052 old_postinstall_cmds=$lt_old_postinstall_cmds
8053 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8054
8055 # Create an old-style archive from a shared archive.
8056 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8057
8058 # Create a temporary old-style archive to link instead of a shared archive.
8059 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8060
8061 # Commands used to build and install a shared archive.
8062 archive_cmds=$lt_archive_cmds
8063 archive_expsym_cmds=$lt_archive_expsym_cmds
8064 postinstall_cmds=$lt_postinstall_cmds
8065 postuninstall_cmds=$lt_postuninstall_cmds
8066
8067 # Commands to strip libraries.
8068 old_striplib=$lt_old_striplib
8069 striplib=$lt_striplib
8070
8071 # Method to check whether dependent libraries are shared objects.
8072 deplibs_check_method=$lt_deplibs_check_method
8073
8074 # Command to use when deplibs_check_method == file_magic.
8075 file_magic_cmd=$lt_file_magic_cmd
8076
8077 # Flag that allows shared libraries with undefined symbols to be built.
8078 allow_undefined_flag=$lt_allow_undefined_flag
8079
8080 # Flag that forces no undefined symbols.
8081 no_undefined_flag=$lt_no_undefined_flag
8082
8083 # Commands used to finish a libtool library installation in a directory.
8084 finish_cmds=$lt_finish_cmds
8085
8086 # Same as above, but a single script fragment to be evaled but not shown.
8087 finish_eval=$lt_finish_eval
8088
8089 # Take the output of nm and produce a listing of raw symbols and C names.
8090 global_symbol_pipe=$lt_global_symbol_pipe
8091
8092 # Transform the output of nm in a proper C declaration
8093 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8094
8095 # Transform the output of nm in a C name address pair
8096 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8097
8098 # This is the shared library runtime path variable.
8099 runpath_var=$runpath_var
8100
8101 # This is the shared library path variable.
8102 shlibpath_var=$shlibpath_var
8103
8104 # Is shlibpath searched before the hard-coded library search path?
8105 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8106
8107 # How to hardcode a shared library path into an executable.
8108 hardcode_action=$hardcode_action
8109
8110 # Whether we should hardcode library paths into libraries.
8111 hardcode_into_libs=$hardcode_into_libs
8112
8113 # Flag to hardcode \$libdir into a binary during linking.
8114 # This must work even if \$libdir does not exist.
8115 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8116
8117 # Whether we need a single -rpath flag with a separated argument.
8118 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8119
8120 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8121 # resulting binary.
8122 hardcode_direct=$hardcode_direct
8123
8124 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8125 # resulting binary.
8126 hardcode_minus_L=$hardcode_minus_L
8127
8128 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8129 # the resulting binary.
8130 hardcode_shlibpath_var=$hardcode_shlibpath_var
8131
8132 # Variables whose values should be saved in libtool wrapper scripts and
8133 # restored at relink time.
8134 variables_saved_for_relink="$variables_saved_for_relink"
8135
8136 # Whether libtool must link a program against all its dependency libraries.
8137 link_all_deplibs=$link_all_deplibs
8138
8139 # Compile-time system search path for libraries
8140 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8141
8142 # Run-time system search path for libraries
8143 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8144
8145 # Fix the shell variable \$srcfile for the compiler.
8146 fix_srcfile_path="$fix_srcfile_path"
8147
8148 # Set to yes if exported symbols are required.
8149 always_export_symbols=$always_export_symbols
8150
8151 # The commands to list exported symbols.
8152 export_symbols_cmds=$lt_export_symbols_cmds
8153
8154 # The commands to extract the exported symbol list from a shared archive.
8155 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8156
8157 # Symbols that should not be listed in the preloaded symbols.
8158 exclude_expsyms=$lt_exclude_expsyms
8159
8160 # Symbols that must always be exported.
8161 include_expsyms=$lt_include_expsyms
8162
8163 # ### END LIBTOOL CONFIG
8164
8165 __EOF__
8166
8167   case $host_os in
8168   aix3*)
8169     cat <<\EOF >> "${ofile}T"
8170
8171 # AIX sometimes has problems with the GCC collect2 program.  For some
8172 # reason, if we set the COLLECT_NAMES environment variable, the problems
8173 # vanish in a puff of smoke.
8174 if test "X${COLLECT_NAMES+set}" != Xset; then
8175   COLLECT_NAMES=
8176   export COLLECT_NAMES
8177 fi
8178 EOF
8179     ;;
8180   esac
8181
8182   case $host_os in
8183   cygwin* | mingw* | pw32* | os2*)
8184     cat <<'EOF' >> "${ofile}T"
8185       # This is a source program that is used to create dlls on Windows
8186       # Don't remove nor modify the starting and closing comments
8187 # /* ltdll.c starts here */
8188 # #define WIN32_LEAN_AND_MEAN
8189 # #include <windows.h>
8190 # #undef WIN32_LEAN_AND_MEAN
8191 # #include <stdio.h>
8192 #
8193 # #ifndef __CYGWIN__
8194 # #  ifdef __CYGWIN32__
8195 # #    define __CYGWIN__ __CYGWIN32__
8196 # #  endif
8197 # #endif
8198 #
8199 # #ifdef __cplusplus
8200 # extern "C" {
8201 # #endif
8202 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8203 # #ifdef __cplusplus
8204 # }
8205 # #endif
8206 #
8207 # #ifdef __CYGWIN__
8208 # #include <cygwin/cygwin_dll.h>
8209 # DECLARE_CYGWIN_DLL( DllMain );
8210 # #endif
8211 # HINSTANCE __hDllInstance_base;
8212 #
8213 # BOOL APIENTRY
8214 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8215 # {
8216 #   __hDllInstance_base = hInst;
8217 #   return TRUE;
8218 # }
8219 # /* ltdll.c ends here */
8220         # This is a source program that is used to create import libraries
8221         # on Windows for dlls which lack them. Don't remove nor modify the
8222         # starting and closing comments
8223 # /* impgen.c starts here */
8224 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8225 #
8226 #  This file is part of GNU libtool.
8227 #
8228 #  This program is free software; you can redistribute it and/or modify
8229 #  it under the terms of the GNU General Public License as published by
8230 #  the Free Software Foundation; either version 2 of the License, or
8231 #  (at your option) any later version.
8232 #
8233 #  This program is distributed in the hope that it will be useful,
8234 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8235 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8236 #  GNU General Public License for more details.
8237 #
8238 #  You should have received a copy of the GNU General Public License
8239 #  along with this program; if not, write to the Free Software
8240 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8241 #  */
8242 #
8243 # #include <stdio.h>            /* for printf() */
8244 # #include <unistd.h>           /* for open(), lseek(), read() */
8245 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8246 # #include <string.h>           /* for strdup() */
8247 #
8248 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8249 # #ifndef O_BINARY
8250 # #define O_BINARY 0
8251 # #endif
8252 #
8253 # static unsigned int
8254 # pe_get16 (fd, offset)
8255 #      int fd;
8256 #      int offset;
8257 # {
8258 #   unsigned char b[2];
8259 #   lseek (fd, offset, SEEK_SET);
8260 #   read (fd, b, 2);
8261 #   return b[0] + (b[1]<<8);
8262 # }
8263 #
8264 # static unsigned int
8265 # pe_get32 (fd, offset)
8266 #     int fd;
8267 #     int offset;
8268 # {
8269 #   unsigned char b[4];
8270 #   lseek (fd, offset, SEEK_SET);
8271 #   read (fd, b, 4);
8272 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8273 # }
8274 #
8275 # static unsigned int
8276 # pe_as32 (ptr)
8277 #      void *ptr;
8278 # {
8279 #   unsigned char *b = ptr;
8280 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8281 # }
8282 #
8283 # int
8284 # main (argc, argv)
8285 #     int argc;
8286 #     char *argv[];
8287 # {
8288 #     int dll;
8289 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8290 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8291 #     unsigned long name_rvas, nexp;
8292 #     unsigned char *expdata, *erva;
8293 #     char *filename, *dll_name;
8294 #
8295 #     filename = argv[1];
8296 #
8297 #     dll = open(filename, O_RDONLY|O_BINARY);
8298 #     if (dll < 1)
8299 #       return 1;
8300 #
8301 #     dll_name = filename;
8302 #
8303 #     for (i=0; filename[i]; i++)
8304 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8305 #           dll_name = filename + i +1;
8306 #
8307 #     pe_header_offset = pe_get32 (dll, 0x3c);
8308 #     opthdr_ofs = pe_header_offset + 4 + 20;
8309 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8310 #
8311 #     if (num_entries < 1) /* no exports */
8312 #       return 1;
8313 #
8314 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8315 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8316 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8317 #     secptr = (pe_header_offset + 4 + 20 +
8318 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8319 #
8320 #     expptr = 0;
8321 #     for (i = 0; i < nsections; i++)
8322 #     {
8323 #       char sname[8];
8324 #       unsigned long secptr1 = secptr + 40 * i;
8325 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8326 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8327 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8328 #       lseek(dll, secptr1, SEEK_SET);
8329 #       read(dll, sname, 8);
8330 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8331 #       {
8332 #           expptr = fptr + (export_rva - vaddr);
8333 #           if (export_rva + export_size > vaddr + vsize)
8334 #               export_size = vsize - (export_rva - vaddr);
8335 #           break;
8336 #       }
8337 #     }
8338 #
8339 #     expdata = (unsigned char*)malloc(export_size);
8340 #     lseek (dll, expptr, SEEK_SET);
8341 #     read (dll, expdata, export_size);
8342 #     erva = expdata - export_rva;
8343 #
8344 #     nexp = pe_as32 (expdata+24);
8345 #     name_rvas = pe_as32 (expdata+32);
8346 #
8347 #     printf ("EXPORTS\n");
8348 #     for (i = 0; i<nexp; i++)
8349 #     {
8350 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8351 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8352 #     }
8353 #
8354 #     return 0;
8355 # }
8356 # /* impgen.c ends here */
8357
8358 EOF
8359     ;;
8360   esac
8361
8362   # We use sed instead of cat because bash on DJGPP gets confused if
8363   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8364   # text mode, it properly converts lines to CR/LF.  This bash problem
8365   # is reportedly fixed, but why not run on old versions too?
8366   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8367
8368   mv -f "${ofile}T" "$ofile" || \
8369     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8370   chmod +x "$ofile"
8371 fi
8372
8373
8374
8375
8376
8377 # This can be used to rebuild libtool when needed
8378 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8379
8380 # Always use our own libtool.
8381 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8382
8383 # Prevent multiple expansion
8384
8385
8386
8387
8388 if test -n ""; then
8389     echo "$as_me:$LINENO: checking for intltool >= " >&5
8390 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
8391
8392     INTLTOOL_REQUIRED_VERSION_AS_INT=`echo  | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
8393     INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }'  < ${srcdir}/intltool-update.in`
8394
8395     INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${srcdir}/intltool-update.in`
8396
8397
8398     if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
8399         echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
8400 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
8401     else
8402         echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool  or later." >&5
8403 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool  or later." >&6
8404         exit 1
8405     fi
8406 fi
8407
8408   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
8409 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
8410      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -k -u -c $(top_builddir)/po/.intltool-merge-cache'
8411      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
8412       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
8413      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
8414    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -u -c $(top_builddir)/po/.intltool-merge-cache'
8415     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
8416 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
8417        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
8418       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
8419     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
8420   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -s -u -c $(top_builddir)/po/.intltool-merge-cache'
8421     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438 # Use the tools built into the package, not the ones that are installed.
8439
8440 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
8441 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
8442 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
8443
8444
8445
8446
8447
8448 # Extract the first word of "perl", so it can be a program name with args.
8449 set dummy perl; ac_word=$2
8450 echo "$as_me:$LINENO: checking for $ac_word" >&5
8451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8452 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
8453   echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455   case $INTLTOOL_PERL in
8456   [\\/]* | ?:[\\/]*)
8457   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
8458   ;;
8459   *)
8460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461 for as_dir in $PATH
8462 do
8463   IFS=$as_save_IFS
8464   test -z "$as_dir" && as_dir=.
8465   for ac_exec_ext in '' $ac_executable_extensions; do
8466   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8467     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
8468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8469     break 2
8470   fi
8471 done
8472 done
8473
8474   ;;
8475 esac
8476 fi
8477 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
8478
8479 if test -n "$INTLTOOL_PERL"; then
8480   echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
8481 echo "${ECHO_T}$INTLTOOL_PERL" >&6
8482 else
8483   echo "$as_me:$LINENO: result: no" >&5
8484 echo "${ECHO_T}no" >&6
8485 fi
8486
8487 if test -z "$INTLTOOL_PERL"; then
8488    { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
8489 echo "$as_me: error: perl not found; required for intltool" >&2;}
8490    { (exit 1); exit 1; }; }
8491 fi
8492 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
8493    { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
8494 echo "$as_me: error: perl 5.x required for intltool" >&2;}
8495    { (exit 1); exit 1; }; }
8496 fi
8497
8498 # Remove file type tags (using []) from po/POTFILES.
8499
8500
8501
8502
8503
8504
8505
8506 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
8507
8508           ac_config_commands="$ac_config_commands default-2"
8509
8510
8511
8512
8513 BONOBO_ACTIVATION_REQUIRED=1.0.0
8514 BONOBO_REQUIRED=2.0.0
8515 GCONF_REQUIRED=1.1.1
8516 GLIB_REQUIRED=2.0.0
8517 ORBIT_REQUIRED=2.4.0
8518 XML_REQUIRED=2.2.8
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529   succeeded=no
8530
8531   if test -z "$PKG_CONFIG"; then
8532     # Extract the first word of "pkg-config", so it can be a program name with args.
8533 set dummy pkg-config; ac_word=$2
8534 echo "$as_me:$LINENO: checking for $ac_word" >&5
8535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8536 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8537   echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539   case $PKG_CONFIG in
8540   [\\/]* | ?:[\\/]*)
8541   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8542   ;;
8543   *)
8544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 for as_dir in $PATH
8546 do
8547   IFS=$as_save_IFS
8548   test -z "$as_dir" && as_dir=.
8549   for ac_exec_ext in '' $ac_executable_extensions; do
8550   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8551     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8553     break 2
8554   fi
8555 done
8556 done
8557
8558   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8559   ;;
8560 esac
8561 fi
8562 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8563
8564 if test -n "$PKG_CONFIG"; then
8565   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8566 echo "${ECHO_T}$PKG_CONFIG" >&6
8567 else
8568   echo "$as_me:$LINENO: result: no" >&5
8569 echo "${ECHO_T}no" >&6
8570 fi
8571
8572   fi
8573
8574   if test "$PKG_CONFIG" = "no" ; then
8575      echo "*** The pkg-config script could not be found. Make sure it is"
8576      echo "*** in your path, or set the PKG_CONFIG environment variable"
8577      echo "*** to the full path to pkg-config."
8578      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8579   else
8580      PKG_CONFIG_MIN_VERSION=0.9.0
8581      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8582         echo "$as_me:$LINENO: checking for glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED libxml-2.0 >= $XML_REQUIRED" >&5
8583 echo $ECHO_N "checking for glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED libxml-2.0 >= $XML_REQUIRED... $ECHO_C" >&6
8584
8585         if $PKG_CONFIG --exists "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED libxml-2.0 >= $XML_REQUIRED" ; then
8586             echo "$as_me:$LINENO: result: yes" >&5
8587 echo "${ECHO_T}yes" >&6
8588             succeeded=yes
8589
8590             echo "$as_me:$LINENO: checking MODULES_XML_CFLAGS" >&5
8591 echo $ECHO_N "checking MODULES_XML_CFLAGS... $ECHO_C" >&6
8592             MODULES_XML_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED libxml-2.0 >= $XML_REQUIRED"`
8593             echo "$as_me:$LINENO: result: $MODULES_XML_CFLAGS" >&5
8594 echo "${ECHO_T}$MODULES_XML_CFLAGS" >&6
8595
8596             echo "$as_me:$LINENO: checking MODULES_XML_LIBS" >&5
8597 echo $ECHO_N "checking MODULES_XML_LIBS... $ECHO_C" >&6
8598             MODULES_XML_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED libxml-2.0 >= $XML_REQUIRED"`
8599             echo "$as_me:$LINENO: result: $MODULES_XML_LIBS" >&5
8600 echo "${ECHO_T}$MODULES_XML_LIBS" >&6
8601         else
8602             MODULES_XML_CFLAGS=""
8603             MODULES_XML_LIBS=""
8604             ## If we have a custom action on failure, don't print errors, but
8605             ## do set a variable so people can do so.
8606             MODULES_XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED libxml-2.0 >= $XML_REQUIRED"`
8607             echo $MODULES_XML_PKG_ERRORS
8608         fi
8609
8610
8611
8612      else
8613         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8614         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8615      fi
8616   fi
8617
8618   if test $succeeded = yes; then
8619      :
8620   else
8621      { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED libxml-2.0 >= $XML_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8622 echo "$as_me: error: Library requirements (glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED libxml-2.0 >= $XML_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8623    { (exit 1); exit 1; }; }
8624   fi
8625
8626
8627
8628
8629
8630   succeeded=no
8631
8632   if test -z "$PKG_CONFIG"; then
8633     # Extract the first word of "pkg-config", so it can be a program name with args.
8634 set dummy pkg-config; ac_word=$2
8635 echo "$as_me:$LINENO: checking for $ac_word" >&5
8636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8637 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8638   echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640   case $PKG_CONFIG in
8641   [\\/]* | ?:[\\/]*)
8642   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8643   ;;
8644   *)
8645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646 for as_dir in $PATH
8647 do
8648   IFS=$as_save_IFS
8649   test -z "$as_dir" && as_dir=.
8650   for ac_exec_ext in '' $ac_executable_extensions; do
8651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8652     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8654     break 2
8655   fi
8656 done
8657 done
8658
8659   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8660   ;;
8661 esac
8662 fi
8663 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8664
8665 if test -n "$PKG_CONFIG"; then
8666   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8667 echo "${ECHO_T}$PKG_CONFIG" >&6
8668 else
8669   echo "$as_me:$LINENO: result: no" >&5
8670 echo "${ECHO_T}no" >&6
8671 fi
8672
8673   fi
8674
8675   if test "$PKG_CONFIG" = "no" ; then
8676      echo "*** The pkg-config script could not be found. Make sure it is"
8677      echo "*** in your path, or set the PKG_CONFIG environment variable"
8678      echo "*** to the full path to pkg-config."
8679      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8680   else
8681      PKG_CONFIG_MIN_VERSION=0.9.0
8682      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8683         echo "$as_me:$LINENO: checking for glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED" >&5
8684 echo $ECHO_N "checking for glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED... $ECHO_C" >&6
8685
8686         if $PKG_CONFIG --exists "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED" ; then
8687             echo "$as_me:$LINENO: result: yes" >&5
8688 echo "${ECHO_T}yes" >&6
8689             succeeded=yes
8690
8691             echo "$as_me:$LINENO: checking MODULES_CFLAGS" >&5
8692 echo $ECHO_N "checking MODULES_CFLAGS... $ECHO_C" >&6
8693             MODULES_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED"`
8694             echo "$as_me:$LINENO: result: $MODULES_CFLAGS" >&5
8695 echo "${ECHO_T}$MODULES_CFLAGS" >&6
8696
8697             echo "$as_me:$LINENO: checking MODULES_LIBS" >&5
8698 echo $ECHO_N "checking MODULES_LIBS... $ECHO_C" >&6
8699             MODULES_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED"`
8700             echo "$as_me:$LINENO: result: $MODULES_LIBS" >&5
8701 echo "${ECHO_T}$MODULES_LIBS" >&6
8702         else
8703             MODULES_CFLAGS=""
8704             MODULES_LIBS=""
8705             ## If we have a custom action on failure, don't print errors, but
8706             ## do set a variable so people can do so.
8707             MODULES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED"`
8708             echo $MODULES_PKG_ERRORS
8709         fi
8710
8711
8712
8713      else
8714         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8715         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8716      fi
8717   fi
8718
8719   if test $succeeded = yes; then
8720      :
8721   else
8722      { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8723 echo "$as_me: error: Library requirements (glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8724    { (exit 1); exit 1; }; }
8725   fi
8726
8727
8728
8729
8730
8731   succeeded=no
8732
8733   if test -z "$PKG_CONFIG"; then
8734     # Extract the first word of "pkg-config", so it can be a program name with args.
8735 set dummy pkg-config; ac_word=$2
8736 echo "$as_me:$LINENO: checking for $ac_word" >&5
8737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8738 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8739   echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741   case $PKG_CONFIG in
8742   [\\/]* | ?:[\\/]*)
8743   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8744   ;;
8745   *)
8746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747 for as_dir in $PATH
8748 do
8749   IFS=$as_save_IFS
8750   test -z "$as_dir" && as_dir=.
8751   for ac_exec_ext in '' $ac_executable_extensions; do
8752   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8753     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8755     break 2
8756   fi
8757 done
8758 done
8759
8760   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8761   ;;
8762 esac
8763 fi
8764 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8765
8766 if test -n "$PKG_CONFIG"; then
8767   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8768 echo "${ECHO_T}$PKG_CONFIG" >&6
8769 else
8770   echo "$as_me:$LINENO: result: no" >&5
8771 echo "${ECHO_T}no" >&6
8772 fi
8773
8774   fi
8775
8776   if test "$PKG_CONFIG" = "no" ; then
8777      echo "*** The pkg-config script could not be found. Make sure it is"
8778      echo "*** in your path, or set the PKG_CONFIG environment variable"
8779      echo "*** to the full path to pkg-config."
8780      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8781   else
8782      PKG_CONFIG_MIN_VERSION=0.9.0
8783      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8784         echo "$as_me:$LINENO: checking for glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED" >&5
8785 echo $ECHO_N "checking for glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED... $ECHO_C" >&6
8786
8787         if $PKG_CONFIG --exists "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED" ; then
8788             echo "$as_me:$LINENO: result: yes" >&5
8789 echo "${ECHO_T}yes" >&6
8790             succeeded=yes
8791
8792             echo "$as_me:$LINENO: checking MODULES_FILE_CFLAGS" >&5
8793 echo $ECHO_N "checking MODULES_FILE_CFLAGS... $ECHO_C" >&6
8794             MODULES_FILE_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED"`
8795             echo "$as_me:$LINENO: result: $MODULES_FILE_CFLAGS" >&5
8796 echo "${ECHO_T}$MODULES_FILE_CFLAGS" >&6
8797
8798             echo "$as_me:$LINENO: checking MODULES_FILE_LIBS" >&5
8799 echo $ECHO_N "checking MODULES_FILE_LIBS... $ECHO_C" >&6
8800             MODULES_FILE_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED"`
8801             echo "$as_me:$LINENO: result: $MODULES_FILE_LIBS" >&5
8802 echo "${ECHO_T}$MODULES_FILE_LIBS" >&6
8803         else
8804             MODULES_FILE_CFLAGS=""
8805             MODULES_FILE_LIBS=""
8806             ## If we have a custom action on failure, don't print errors, but
8807             ## do set a variable so people can do so.
8808             MODULES_FILE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED"`
8809             echo $MODULES_FILE_PKG_ERRORS
8810         fi
8811
8812
8813
8814      else
8815         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8816         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8817      fi
8818   fi
8819
8820   if test $succeeded = yes; then
8821      :
8822   else
8823      { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8824 echo "$as_me: error: Library requirements (glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8825    { (exit 1); exit 1; }; }
8826   fi
8827
8828
8829
8830
8831
8832   succeeded=no
8833
8834   if test -z "$PKG_CONFIG"; then
8835     # Extract the first word of "pkg-config", so it can be a program name with args.
8836 set dummy pkg-config; ac_word=$2
8837 echo "$as_me:$LINENO: checking for $ac_word" >&5
8838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8839 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8840   echo $ECHO_N "(cached) $ECHO_C" >&6
8841 else
8842   case $PKG_CONFIG in
8843   [\\/]* | ?:[\\/]*)
8844   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8845   ;;
8846   *)
8847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848 for as_dir in $PATH
8849 do
8850   IFS=$as_save_IFS
8851   test -z "$as_dir" && as_dir=.
8852   for ac_exec_ext in '' $ac_executable_extensions; do
8853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8854     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8856     break 2
8857   fi
8858 done
8859 done
8860
8861   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8862   ;;
8863 esac
8864 fi
8865 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8866
8867 if test -n "$PKG_CONFIG"; then
8868   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8869 echo "${ECHO_T}$PKG_CONFIG" >&6
8870 else
8871   echo "$as_me:$LINENO: result: no" >&5
8872 echo "${ECHO_T}no" >&6
8873 fi
8874
8875   fi
8876
8877   if test "$PKG_CONFIG" = "no" ; then
8878      echo "*** The pkg-config script could not be found. Make sure it is"
8879      echo "*** in your path, or set the PKG_CONFIG environment variable"
8880      echo "*** to the full path to pkg-config."
8881      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8882   else
8883      PKG_CONFIG_MIN_VERSION=0.9.0
8884      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8885         echo "$as_me:$LINENO: checking for glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gconf-2.0 >= $GCONF_REQUIRED" >&5
8886 echo $ECHO_N "checking for glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gconf-2.0 >= $GCONF_REQUIRED... $ECHO_C" >&6
8887
8888         if $PKG_CONFIG --exists "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gconf-2.0 >= $GCONF_REQUIRED" ; then
8889             echo "$as_me:$LINENO: result: yes" >&5
8890 echo "${ECHO_T}yes" >&6
8891             succeeded=yes
8892
8893             echo "$as_me:$LINENO: checking MODULES_GCONF_CFLAGS" >&5
8894 echo $ECHO_N "checking MODULES_GCONF_CFLAGS... $ECHO_C" >&6
8895             MODULES_GCONF_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gconf-2.0 >= $GCONF_REQUIRED"`
8896             echo "$as_me:$LINENO: result: $MODULES_GCONF_CFLAGS" >&5
8897 echo "${ECHO_T}$MODULES_GCONF_CFLAGS" >&6
8898
8899             echo "$as_me:$LINENO: checking MODULES_GCONF_LIBS" >&5
8900 echo $ECHO_N "checking MODULES_GCONF_LIBS... $ECHO_C" >&6
8901             MODULES_GCONF_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gconf-2.0 >= $GCONF_REQUIRED"`
8902             echo "$as_me:$LINENO: result: $MODULES_GCONF_LIBS" >&5
8903 echo "${ECHO_T}$MODULES_GCONF_LIBS" >&6
8904         else
8905             MODULES_GCONF_CFLAGS=""
8906             MODULES_GCONF_LIBS=""
8907             ## If we have a custom action on failure, don't print errors, but
8908             ## do set a variable so people can do so.
8909             MODULES_GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gconf-2.0 >= $GCONF_REQUIRED"`
8910             echo $MODULES_GCONF_PKG_ERRORS
8911         fi
8912
8913
8914
8915      else
8916         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8917         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8918      fi
8919   fi
8920
8921   if test $succeeded = yes; then
8922      :
8923   else
8924      { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gconf-2.0 >= $GCONF_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8925 echo "$as_me: error: Library requirements (glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gconf-2.0 >= $GCONF_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8926    { (exit 1); exit 1; }; }
8927   fi
8928
8929
8930
8931
8932
8933   succeeded=no
8934
8935   if test -z "$PKG_CONFIG"; then
8936     # Extract the first word of "pkg-config", so it can be a program name with args.
8937 set dummy pkg-config; ac_word=$2
8938 echo "$as_me:$LINENO: checking for $ac_word" >&5
8939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8940 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8941   echo $ECHO_N "(cached) $ECHO_C" >&6
8942 else
8943   case $PKG_CONFIG in
8944   [\\/]* | ?:[\\/]*)
8945   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8946   ;;
8947   *)
8948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949 for as_dir in $PATH
8950 do
8951   IFS=$as_save_IFS
8952   test -z "$as_dir" && as_dir=.
8953   for ac_exec_ext in '' $ac_executable_extensions; do
8954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8955     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8957     break 2
8958   fi
8959 done
8960 done
8961
8962   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8963   ;;
8964 esac
8965 fi
8966 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8967
8968 if test -n "$PKG_CONFIG"; then
8969   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8970 echo "${ECHO_T}$PKG_CONFIG" >&6
8971 else
8972   echo "$as_me:$LINENO: result: no" >&5
8973 echo "${ECHO_T}no" >&6
8974 fi
8975
8976   fi
8977
8978   if test "$PKG_CONFIG" = "no" ; then
8979      echo "*** The pkg-config script could not be found. Make sure it is"
8980      echo "*** in your path, or set the PKG_CONFIG environment variable"
8981      echo "*** to the full path to pkg-config."
8982      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8983   else
8984      PKG_CONFIG_MIN_VERSION=0.9.0
8985      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8986         echo "$as_me:$LINENO: checking for glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED libxml-2.0 >= $XML_REQUIRED gconf-2.0 >= $GCONF_REQUIRED" >&5
8987 echo $ECHO_N "checking for glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED libxml-2.0 >= $XML_REQUIRED gconf-2.0 >= $GCONF_REQUIRED... $ECHO_C" >&6
8988
8989         if $PKG_CONFIG --exists "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED libxml-2.0 >= $XML_REQUIRED gconf-2.0 >= $GCONF_REQUIRED" ; then
8990             echo "$as_me:$LINENO: result: yes" >&5
8991 echo "${ECHO_T}yes" >&6
8992             succeeded=yes
8993
8994             echo "$as_me:$LINENO: checking MODULES_XML_GCONF_CFLAGS" >&5
8995 echo $ECHO_N "checking MODULES_XML_GCONF_CFLAGS... $ECHO_C" >&6
8996             MODULES_XML_GCONF_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED libxml-2.0 >= $XML_REQUIRED gconf-2.0 >= $GCONF_REQUIRED"`
8997             echo "$as_me:$LINENO: result: $MODULES_XML_GCONF_CFLAGS" >&5
8998 echo "${ECHO_T}$MODULES_XML_GCONF_CFLAGS" >&6
8999
9000             echo "$as_me:$LINENO: checking MODULES_XML_GCONF_LIBS" >&5
9001 echo $ECHO_N "checking MODULES_XML_GCONF_LIBS... $ECHO_C" >&6
9002             MODULES_XML_GCONF_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED libxml-2.0 >= $XML_REQUIRED gconf-2.0 >= $GCONF_REQUIRED"`
9003             echo "$as_me:$LINENO: result: $MODULES_XML_GCONF_LIBS" >&5
9004 echo "${ECHO_T}$MODULES_XML_GCONF_LIBS" >&6
9005         else
9006             MODULES_XML_GCONF_CFLAGS=""
9007             MODULES_XML_GCONF_LIBS=""
9008             ## If we have a custom action on failure, don't print errors, but
9009             ## do set a variable so people can do so.
9010             MODULES_XML_GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED libxml-2.0 >= $XML_REQUIRED gconf-2.0 >= $GCONF_REQUIRED"`
9011             echo $MODULES_XML_GCONF_PKG_ERRORS
9012         fi
9013
9014
9015
9016      else
9017         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9018         echo "*** See http://www.freedesktop.org/software/pkgconfig"
9019      fi
9020   fi
9021
9022   if test $succeeded = yes; then
9023      :
9024   else
9025      { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED libxml-2.0 >= $XML_REQUIRED gconf-2.0 >= $GCONF_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
9026 echo "$as_me: error: Library requirements (glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED libxml-2.0 >= $XML_REQUIRED gconf-2.0 >= $GCONF_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
9027    { (exit 1); exit 1; }; }
9028   fi
9029
9030
9031
9032
9033
9034   succeeded=no
9035
9036   if test -z "$PKG_CONFIG"; then
9037     # Extract the first word of "pkg-config", so it can be a program name with args.
9038 set dummy pkg-config; ac_word=$2
9039 echo "$as_me:$LINENO: checking for $ac_word" >&5
9040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9041 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9042   echo $ECHO_N "(cached) $ECHO_C" >&6
9043 else
9044   case $PKG_CONFIG in
9045   [\\/]* | ?:[\\/]*)
9046   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9047   ;;
9048   *)
9049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050 for as_dir in $PATH
9051 do
9052   IFS=$as_save_IFS
9053   test -z "$as_dir" && as_dir=.
9054   for ac_exec_ext in '' $ac_executable_extensions; do
9055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9056     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9058     break 2
9059   fi
9060 done
9061 done
9062
9063   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9064   ;;
9065 esac
9066 fi
9067 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9068
9069 if test -n "$PKG_CONFIG"; then
9070   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9071 echo "${ECHO_T}$PKG_CONFIG" >&6
9072 else
9073   echo "$as_me:$LINENO: result: no" >&5
9074 echo "${ECHO_T}no" >&6
9075 fi
9076
9077   fi
9078
9079   if test "$PKG_CONFIG" = "no" ; then
9080      echo "*** The pkg-config script could not be found. Make sure it is"
9081      echo "*** in your path, or set the PKG_CONFIG environment variable"
9082      echo "*** to the full path to pkg-config."
9083      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9084   else
9085      PKG_CONFIG_MIN_VERSION=0.9.0
9086      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9087         echo "$as_me:$LINENO: checking for libbonobo-2.0 >= $BONOBO_REQUIRED" >&5
9088 echo $ECHO_N "checking for libbonobo-2.0 >= $BONOBO_REQUIRED... $ECHO_C" >&6
9089
9090         if $PKG_CONFIG --exists "libbonobo-2.0 >= $BONOBO_REQUIRED" ; then
9091             echo "$as_me:$LINENO: result: yes" >&5
9092 echo "${ECHO_T}yes" >&6
9093             succeeded=yes
9094
9095             echo "$as_me:$LINENO: checking MONIKERS_CFLAGS" >&5
9096 echo $ECHO_N "checking MONIKERS_CFLAGS... $ECHO_C" >&6
9097             MONIKERS_CFLAGS=`$PKG_CONFIG --cflags "libbonobo-2.0 >= $BONOBO_REQUIRED"`
9098             echo "$as_me:$LINENO: result: $MONIKERS_CFLAGS" >&5
9099 echo "${ECHO_T}$MONIKERS_CFLAGS" >&6
9100
9101             echo "$as_me:$LINENO: checking MONIKERS_LIBS" >&5
9102 echo $ECHO_N "checking MONIKERS_LIBS... $ECHO_C" >&6
9103             MONIKERS_LIBS=`$PKG_CONFIG --libs "libbonobo-2.0 >= $BONOBO_REQUIRED"`
9104             echo "$as_me:$LINENO: result: $MONIKERS_LIBS" >&5
9105 echo "${ECHO_T}$MONIKERS_LIBS" >&6
9106         else
9107             MONIKERS_CFLAGS=""
9108             MONIKERS_LIBS=""
9109             ## If we have a custom action on failure, don't print errors, but
9110             ## do set a variable so people can do so.
9111             MONIKERS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libbonobo-2.0 >= $BONOBO_REQUIRED"`
9112             echo $MONIKERS_PKG_ERRORS
9113         fi
9114
9115
9116
9117      else
9118         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9119         echo "*** See http://www.freedesktop.org/software/pkgconfig"
9120      fi
9121   fi
9122
9123   if test $succeeded = yes; then
9124      :
9125   else
9126      { { echo "$as_me:$LINENO: error: Library requirements (libbonobo-2.0 >= $BONOBO_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
9127 echo "$as_me: error: Library requirements (libbonobo-2.0 >= $BONOBO_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
9128    { (exit 1); exit 1; }; }
9129   fi
9130
9131
9132
9133
9134
9135   succeeded=no
9136
9137   if test -z "$PKG_CONFIG"; then
9138     # Extract the first word of "pkg-config", so it can be a program name with args.
9139 set dummy pkg-config; ac_word=$2
9140 echo "$as_me:$LINENO: checking for $ac_word" >&5
9141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9142 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9143   echo $ECHO_N "(cached) $ECHO_C" >&6
9144 else
9145   case $PKG_CONFIG in
9146   [\\/]* | ?:[\\/]*)
9147   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9148   ;;
9149   *)
9150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151 for as_dir in $PATH
9152 do
9153   IFS=$as_save_IFS
9154   test -z "$as_dir" && as_dir=.
9155   for ac_exec_ext in '' $ac_executable_extensions; do
9156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9157     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9159     break 2
9160   fi
9161 done
9162 done
9163
9164   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9165   ;;
9166 esac
9167 fi
9168 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9169
9170 if test -n "$PKG_CONFIG"; then
9171   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9172 echo "${ECHO_T}$PKG_CONFIG" >&6
9173 else
9174   echo "$as_me:$LINENO: result: no" >&5
9175 echo "${ECHO_T}no" >&6
9176 fi
9177
9178   fi
9179
9180   if test "$PKG_CONFIG" = "no" ; then
9181      echo "*** The pkg-config script could not be found. Make sure it is"
9182      echo "*** in your path, or set the PKG_CONFIG environment variable"
9183      echo "*** to the full path to pkg-config."
9184      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9185   else
9186      PKG_CONFIG_MIN_VERSION=0.9.0
9187      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9188         echo "$as_me:$LINENO: checking for bonobo-activation-2.0 >= $BONOBO_ACTIVATION_REQUIRED gconf-2.0 >= $GCONF_REQUIRED gthread-2.0 >= $GLIB_REQUIRED" >&5
9189 echo $ECHO_N "checking for bonobo-activation-2.0 >= $BONOBO_ACTIVATION_REQUIRED gconf-2.0 >= $GCONF_REQUIRED gthread-2.0 >= $GLIB_REQUIRED... $ECHO_C" >&6
9190
9191         if $PKG_CONFIG --exists "bonobo-activation-2.0 >= $BONOBO_ACTIVATION_REQUIRED gconf-2.0 >= $GCONF_REQUIRED gthread-2.0 >= $GLIB_REQUIRED" ; then
9192             echo "$as_me:$LINENO: result: yes" >&5
9193 echo "${ECHO_T}yes" >&6
9194             succeeded=yes
9195
9196             echo "$as_me:$LINENO: checking TEST_CFLAGS" >&5
9197 echo $ECHO_N "checking TEST_CFLAGS... $ECHO_C" >&6
9198             TEST_CFLAGS=`$PKG_CONFIG --cflags "bonobo-activation-2.0 >= $BONOBO_ACTIVATION_REQUIRED gconf-2.0 >= $GCONF_REQUIRED gthread-2.0 >= $GLIB_REQUIRED"`
9199             echo "$as_me:$LINENO: result: $TEST_CFLAGS" >&5
9200 echo "${ECHO_T}$TEST_CFLAGS" >&6
9201
9202             echo "$as_me:$LINENO: checking TEST_LIBS" >&5
9203 echo $ECHO_N "checking TEST_LIBS... $ECHO_C" >&6
9204             TEST_LIBS=`$PKG_CONFIG --libs "bonobo-activation-2.0 >= $BONOBO_ACTIVATION_REQUIRED gconf-2.0 >= $GCONF_REQUIRED gthread-2.0 >= $GLIB_REQUIRED"`
9205             echo "$as_me:$LINENO: result: $TEST_LIBS" >&5
9206 echo "${ECHO_T}$TEST_LIBS" >&6
9207         else
9208             TEST_CFLAGS=""
9209             TEST_LIBS=""
9210             ## If we have a custom action on failure, don't print errors, but
9211             ## do set a variable so people can do so.
9212             TEST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "bonobo-activation-2.0 >= $BONOBO_ACTIVATION_REQUIRED gconf-2.0 >= $GCONF_REQUIRED gthread-2.0 >= $GLIB_REQUIRED"`
9213             echo $TEST_PKG_ERRORS
9214         fi
9215
9216
9217
9218      else
9219         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9220         echo "*** See http://www.freedesktop.org/software/pkgconfig"
9221      fi
9222   fi
9223
9224   if test $succeeded = yes; then
9225      :
9226   else
9227      { { echo "$as_me:$LINENO: error: Library requirements (bonobo-activation-2.0 >= $BONOBO_ACTIVATION_REQUIRED gconf-2.0 >= $GCONF_REQUIRED gthread-2.0 >= $GLIB_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
9228 echo "$as_me: error: Library requirements (bonobo-activation-2.0 >= $BONOBO_ACTIVATION_REQUIRED gconf-2.0 >= $GCONF_REQUIRED gthread-2.0 >= $GLIB_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
9229    { (exit 1); exit 1; }; }
9230   fi
9231
9232
9233
9234
9235 ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
9236
9237
9238 BONOBO_IDLDIR="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
9239
9240
9241 cflags_set=yes
9242
9243
9244     if test -z "" ; then
9245         default_compile_warnings=yes
9246     else
9247         default_compile_warnings=""
9248     fi
9249
9250     # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
9251 if test "${enable_compile_warnings+set}" = set; then
9252   enableval="$enable_compile_warnings"
9253
9254 else
9255   enable_compile_warnings="$default_compile_warnings"
9256 fi;
9257
9258     warnCFLAGS=
9259     if test "x$GCC" != xyes; then
9260         enable_compile_warnings=no
9261     fi
9262
9263     warning_flags=
9264     realsave_CFLAGS="$CFLAGS"
9265
9266     case "$enable_compile_warnings" in
9267     no)
9268         warning_flags=
9269         ;;
9270     minimum)
9271         warning_flags="-Wall"
9272         ;;
9273     yes)
9274         warning_flags="-Wall -Wmissing-prototypes"
9275         ;;
9276     maximum|error)
9277         warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
9278         CFLAGS="$warning_flags $CFLAGS"
9279         for option in -Wno-sign-compare; do
9280                 SAVE_CFLAGS="$CFLAGS"
9281                 CFLAGS="$CFLAGS $option"
9282                 echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
9283 echo $ECHO_N "checking whether gcc understands $option... $ECHO_C" >&6
9284                 cat >conftest.$ac_ext <<_ACEOF
9285 #line $LINENO "configure"
9286 /* confdefs.h.  */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h.  */
9291
9292 int
9293 main ()
9294 {
9295
9296   ;
9297   return 0;
9298 }
9299 _ACEOF
9300 rm -f conftest.$ac_objext
9301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9302   (eval $ac_compile) 2>&5
9303   ac_status=$?
9304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305   (exit $ac_status); } &&
9306          { ac_try='test -s conftest.$ac_objext'
9307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308   (eval $ac_try) 2>&5
9309   ac_status=$?
9310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311   (exit $ac_status); }; }; then
9312   has_option=yes
9313 else
9314   echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9316
9317 has_option=no
9318 fi
9319 rm -f conftest.$ac_objext conftest.$ac_ext
9320                 CFLAGS="$SAVE_CFLAGS"
9321                 echo "$as_me:$LINENO: result: $has_option" >&5
9322 echo "${ECHO_T}$has_option" >&6
9323                 if test $has_option = yes; then
9324                   warning_flags="$warning_flags $option"
9325                 fi
9326                 unset has_option
9327                 unset SAVE_CFLAGS
9328         done
9329         unset option
9330         if test "$enable_compile_warnings" = "error" ; then
9331             warning_flags="$warning_flags -Werror"
9332         fi
9333         ;;
9334     *)
9335         { { echo "$as_me:$LINENO: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&5
9336 echo "$as_me: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&2;}
9337    { (exit 1); exit 1; }; }
9338         ;;
9339     esac
9340     CFLAGS="$realsave_CFLAGS"
9341     echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
9342 echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
9343     echo "$as_me:$LINENO: result: $warning_flags" >&5
9344 echo "${ECHO_T}$warning_flags" >&6
9345
9346     # Check whether --enable-iso-c or --disable-iso-c was given.
9347 if test "${enable_iso_c+set}" = set; then
9348   enableval="$enable_iso_c"
9349
9350 else
9351   enable_iso_c=no
9352 fi;
9353
9354     echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
9355 echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
9356     complCFLAGS=
9357     if test "x$enable_iso_c" != "xno"; then
9358         if test "x$GCC" = "xyes"; then
9359         case " $CFLAGS " in
9360             *\ \        -ansi\ \        *) ;;
9361             *) complCFLAGS="$complCFLAGS -ansi" ;;
9362         esac
9363         case " $CFLAGS " in
9364             *\ \        -pedantic\ \    *) ;;
9365             *) complCFLAGS="$complCFLAGS -pedantic" ;;
9366         esac
9367         fi
9368     fi
9369     echo "$as_me:$LINENO: result: $complCFLAGS" >&5
9370 echo "${ECHO_T}$complCFLAGS" >&6
9371
9372     WARN_CFLAGS="$warning_flags $complCFLAGS"
9373
9374
9375 VFS_CFLAGS="$warnCFLAGS $complCFLAGS"
9376
9377
9378
9379 echo "$as_me:$LINENO: checking for sem_wait in -lrt" >&5
9380 echo $ECHO_N "checking for sem_wait in -lrt... $ECHO_C" >&6
9381 if test "${ac_cv_lib_rt_sem_wait+set}" = set; then
9382   echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384   ac_check_lib_save_LIBS=$LIBS
9385 LIBS="-lrt  $LIBS"
9386 cat >conftest.$ac_ext <<_ACEOF
9387 #line $LINENO "configure"
9388 /* confdefs.h.  */
9389 _ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h.  */
9393
9394 /* Override any gcc2 internal prototype to avoid an error.  */
9395 #ifdef __cplusplus
9396 extern "C"
9397 #endif
9398 /* We use char because int might match the return type of a gcc2
9399    builtin and then its argument prototype would still apply.  */
9400 char sem_wait ();
9401 int
9402 main ()
9403 {
9404 sem_wait ();
9405   ;
9406   return 0;
9407 }
9408 _ACEOF
9409 rm -f conftest.$ac_objext conftest$ac_exeext
9410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9411   (eval $ac_link) 2>&5
9412   ac_status=$?
9413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); } &&
9415          { ac_try='test -s conftest$ac_exeext'
9416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417   (eval $ac_try) 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); }; }; then
9421   ac_cv_lib_rt_sem_wait=yes
9422 else
9423   echo "$as_me: failed program was:" >&5
9424 sed 's/^/| /' conftest.$ac_ext >&5
9425
9426 ac_cv_lib_rt_sem_wait=no
9427 fi
9428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9429 LIBS=$ac_check_lib_save_LIBS
9430 fi
9431 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_wait" >&5
9432 echo "${ECHO_T}$ac_cv_lib_rt_sem_wait" >&6
9433 if test $ac_cv_lib_rt_sem_wait = yes; then
9434   cat >>confdefs.h <<_ACEOF
9435 #define HAVE_LIBRT 1
9436 _ACEOF
9437
9438   LIBS="-lrt $LIBS"
9439
9440 fi
9441
9442
9443 echo "$as_me:$LINENO: checking size_t in <sys/types.h>" >&5
9444 echo $ECHO_N "checking size_t in <sys/types.h>... $ECHO_C" >&6
9445 if test "${ac_cv_type_size_t+set}" = set; then
9446   echo $ECHO_N "(cached) $ECHO_C" >&6
9447 else
9448   cat >conftest.$ac_ext <<_ACEOF
9449 #line $LINENO "configure"
9450 /* confdefs.h.  */
9451 _ACEOF
9452 cat confdefs.h >>conftest.$ac_ext
9453 cat >>conftest.$ac_ext <<_ACEOF
9454 /* end confdefs.h.  */
9455
9456 #include <sys/types.h>
9457 #if STDC_HEADERS
9458 #include <stdlib.h>
9459 #include <stddef.h>
9460 #endif
9461
9462 int
9463 main ()
9464 {
9465 size_t foo;
9466   ;
9467   return 0;
9468 }
9469 _ACEOF
9470 rm -f conftest.$ac_objext
9471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9472   (eval $ac_compile) 2>&5
9473   ac_status=$?
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); } &&
9476          { ac_try='test -s conftest.$ac_objext'
9477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478   (eval $ac_try) 2>&5
9479   ac_status=$?
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); }; }; then
9482   ac_cv_type_size_t=yes
9483 else
9484   echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9486
9487 ac_cv_type_size_t=no
9488 fi
9489 rm -f conftest.$ac_objext conftest.$ac_ext
9490 fi
9491 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9492 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9493    if test $ac_cv_type_size_t = no; then
9494
9495 cat >>confdefs.h <<\_ACEOF
9496 #define size_t unsigned
9497 _ACEOF
9498
9499    fi
9500
9501
9502
9503 echo "$as_me:$LINENO: checking off_t in <sys/types.h>" >&5
9504 echo $ECHO_N "checking off_t in <sys/types.h>... $ECHO_C" >&6
9505 if test "${ac_cv_type_off_t+set}" = set; then
9506   echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508   cat >conftest.$ac_ext <<_ACEOF
9509 #line $LINENO "configure"
9510 /* confdefs.h.  */
9511 _ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h.  */
9515
9516 #include <sys/types.h>
9517 #if STDC_HEADERS
9518 #include <stdlib.h>
9519 #include <stddef.h>
9520 #endif
9521
9522 int
9523 main ()
9524 {
9525 off_t foo;
9526   ;
9527   return 0;
9528 }
9529 _ACEOF
9530 rm -f conftest.$ac_objext
9531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9532   (eval $ac_compile) 2>&5
9533   ac_status=$?
9534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535   (exit $ac_status); } &&
9536          { ac_try='test -s conftest.$ac_objext'
9537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538   (eval $ac_try) 2>&5
9539   ac_status=$?
9540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541   (exit $ac_status); }; }; then
9542   ac_cv_type_off_t=yes
9543 else
9544   echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9546
9547 ac_cv_type_off_t=no
9548 fi
9549 rm -f conftest.$ac_objext conftest.$ac_ext
9550 fi
9551 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9552 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9553    if test $ac_cv_type_off_t = no; then
9554
9555 cat >>confdefs.h <<\_ACEOF
9556 #define off_t long
9557 _ACEOF
9558
9559    fi
9560
9561
9562
9563
9564 echo "$as_me:$LINENO: checking for off64_t" >&5
9565 echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
9566 if test "${ac_cv_have_off64_t+set}" = set; then
9567   echo $ECHO_N "(cached) $ECHO_C" >&6
9568 else
9569   cat >conftest.$ac_ext <<_ACEOF
9570 #line $LINENO "configure"
9571 /* confdefs.h.  */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h.  */
9576
9577 #               define _LARGEFILE64_SOURCE
9578 #               include <sys/types.h>
9579 int
9580 main ()
9581 {
9582 off64_t testoffset
9583   ;
9584   return 0;
9585 }
9586 _ACEOF
9587 rm -f conftest.$ac_objext
9588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9589   (eval $ac_compile) 2>&5
9590   ac_status=$?
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); } &&
9593          { ac_try='test -s conftest.$ac_objext'
9594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595   (eval $ac_try) 2>&5
9596   ac_status=$?
9597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598   (exit $ac_status); }; }; then
9599   ac_cv_have_off64_t=yes
9600 else
9601   echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9603
9604 ac_cv_have_off64_t=no
9605 fi
9606 rm -f conftest.$ac_objext conftest.$ac_ext
9607 fi
9608 echo "$as_me:$LINENO: result: $ac_cv_have_off64_t" >&5
9609 echo "${ECHO_T}$ac_cv_have_off64_t" >&6
9610 if test x"$ac_cv_have_off64_t" = "xyes" ; then
9611         cat >>confdefs.h <<\_ACEOF
9612 #define HAVE_OFF64_T 1
9613 _ACEOF
9614
9615 fi
9616
9617 GETTEXT_PACKAGE=gnome-vfs-2.0
9618
9619 cat >>confdefs.h <<_ACEOF
9620 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
9621 _ACEOF
9622
9623
9624 ALL_LINGUAS="am ar az be bg bn bs ca cs cy da de el eo es et eu fa fi fr ga gl he hi hu id is it ja ko li lt lv mk ml mn ms nl nn no pl pt pt_BR ro ru sk sl sq sr sr@Latn sv tr uk vi wa yi zh_CN zh_TW"
9625
9626
9627 for ac_header in locale.h
9628 do
9629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9631   echo "$as_me:$LINENO: checking for $ac_header" >&5
9632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9634   echo $ECHO_N "(cached) $ECHO_C" >&6
9635 fi
9636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9638 else
9639   # Is the header compilable?
9640 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9642 cat >conftest.$ac_ext <<_ACEOF
9643 #line $LINENO "configure"
9644 /* confdefs.h.  */
9645 _ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h.  */
9649 $ac_includes_default
9650 #include <$ac_header>
9651 _ACEOF
9652 rm -f conftest.$ac_objext
9653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9654   (eval $ac_compile) 2>&5
9655   ac_status=$?
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); } &&
9658          { ac_try='test -s conftest.$ac_objext'
9659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660   (eval $ac_try) 2>&5
9661   ac_status=$?
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); }; }; then
9664   ac_header_compiler=yes
9665 else
9666   echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9668
9669 ac_header_compiler=no
9670 fi
9671 rm -f conftest.$ac_objext conftest.$ac_ext
9672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9673 echo "${ECHO_T}$ac_header_compiler" >&6
9674
9675 # Is the header present?
9676 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9678 cat >conftest.$ac_ext <<_ACEOF
9679 #line $LINENO "configure"
9680 /* confdefs.h.  */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h.  */
9685 #include <$ac_header>
9686 _ACEOF
9687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9688   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9689   ac_status=$?
9690   grep -v '^ *+' conftest.er1 >conftest.err
9691   rm -f conftest.er1
9692   cat conftest.err >&5
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); } >/dev/null; then
9695   if test -s conftest.err; then
9696     ac_cpp_err=$ac_c_preproc_warn_flag
9697   else
9698     ac_cpp_err=
9699   fi
9700 else
9701   ac_cpp_err=yes
9702 fi
9703 if test -z "$ac_cpp_err"; then
9704   ac_header_preproc=yes
9705 else
9706   echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9708
9709   ac_header_preproc=no
9710 fi
9711 rm -f conftest.err conftest.$ac_ext
9712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9713 echo "${ECHO_T}$ac_header_preproc" >&6
9714
9715 # So?  What about this header?
9716 case $ac_header_compiler:$ac_header_preproc in
9717   yes:no )
9718     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9720     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9722     (
9723       cat <<\_ASBOX
9724 ## ------------------------------------ ##
9725 ## Report this to bug-autoconf@gnu.org. ##
9726 ## ------------------------------------ ##
9727 _ASBOX
9728     ) |
9729       sed "s/^/$as_me: WARNING:     /" >&2
9730     ;;
9731   no:yes )
9732     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9734     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9735 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9736     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9738     (
9739       cat <<\_ASBOX
9740 ## ------------------------------------ ##
9741 ## Report this to bug-autoconf@gnu.org. ##
9742 ## ------------------------------------ ##
9743 _ASBOX
9744     ) |
9745       sed "s/^/$as_me: WARNING:     /" >&2
9746     ;;
9747 esac
9748 echo "$as_me:$LINENO: checking for $ac_header" >&5
9749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9751   echo $ECHO_N "(cached) $ECHO_C" >&6
9752 else
9753   eval "$as_ac_Header=$ac_header_preproc"
9754 fi
9755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9757
9758 fi
9759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9760   cat >>confdefs.h <<_ACEOF
9761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9762 _ACEOF
9763
9764 fi
9765
9766 done
9767
9768     if test $ac_cv_header_locale_h = yes; then
9769     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9770 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9771 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9772   echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774   cat >conftest.$ac_ext <<_ACEOF
9775 #line $LINENO "configure"
9776 /* confdefs.h.  */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h.  */
9781 #include <locale.h>
9782 int
9783 main ()
9784 {
9785 return LC_MESSAGES
9786   ;
9787   return 0;
9788 }
9789 _ACEOF
9790 rm -f conftest.$ac_objext conftest$ac_exeext
9791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9792   (eval $ac_link) 2>&5
9793   ac_status=$?
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); } &&
9796          { ac_try='test -s conftest$ac_exeext'
9797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798   (eval $ac_try) 2>&5
9799   ac_status=$?
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); }; }; then
9802   am_cv_val_LC_MESSAGES=yes
9803 else
9804   echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.$ac_ext >&5
9806
9807 am_cv_val_LC_MESSAGES=no
9808 fi
9809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9810 fi
9811 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9812 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9813     if test $am_cv_val_LC_MESSAGES = yes; then
9814
9815 cat >>confdefs.h <<\_ACEOF
9816 #define HAVE_LC_MESSAGES 1
9817 _ACEOF
9818
9819     fi
9820   fi
9821      USE_NLS=yes
9822
9823
9824     gt_cv_have_gettext=no
9825
9826     CATOBJEXT=NONE
9827     XGETTEXT=:
9828     INTLLIBS=
9829
9830     if test "${ac_cv_header_libintl_h+set}" = set; then
9831   echo "$as_me:$LINENO: checking for libintl.h" >&5
9832 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
9833 if test "${ac_cv_header_libintl_h+set}" = set; then
9834   echo $ECHO_N "(cached) $ECHO_C" >&6
9835 fi
9836 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9837 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
9838 else
9839   # Is the header compilable?
9840 echo "$as_me:$LINENO: checking libintl.h usability" >&5
9841 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
9842 cat >conftest.$ac_ext <<_ACEOF
9843 #line $LINENO "configure"
9844 /* confdefs.h.  */
9845 _ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h.  */
9849 $ac_includes_default
9850 #include <libintl.h>
9851 _ACEOF
9852 rm -f conftest.$ac_objext
9853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9854   (eval $ac_compile) 2>&5
9855   ac_status=$?
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); } &&
9858          { ac_try='test -s conftest.$ac_objext'
9859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860   (eval $ac_try) 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; }; then
9864   ac_header_compiler=yes
9865 else
9866   echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9868
9869 ac_header_compiler=no
9870 fi
9871 rm -f conftest.$ac_objext conftest.$ac_ext
9872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9873 echo "${ECHO_T}$ac_header_compiler" >&6
9874
9875 # Is the header present?
9876 echo "$as_me:$LINENO: checking libintl.h presence" >&5
9877 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
9878 cat >conftest.$ac_ext <<_ACEOF
9879 #line $LINENO "configure"
9880 /* confdefs.h.  */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h.  */
9885 #include <libintl.h>
9886 _ACEOF
9887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9888   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9889   ac_status=$?
9890   grep -v '^ *+' conftest.er1 >conftest.err
9891   rm -f conftest.er1
9892   cat conftest.err >&5
9893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894   (exit $ac_status); } >/dev/null; then
9895   if test -s conftest.err; then
9896     ac_cpp_err=$ac_c_preproc_warn_flag
9897   else
9898     ac_cpp_err=
9899   fi
9900 else
9901   ac_cpp_err=yes
9902 fi
9903 if test -z "$ac_cpp_err"; then
9904   ac_header_preproc=yes
9905 else
9906   echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9908
9909   ac_header_preproc=no
9910 fi
9911 rm -f conftest.err conftest.$ac_ext
9912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9913 echo "${ECHO_T}$ac_header_preproc" >&6
9914
9915 # So?  What about this header?
9916 case $ac_header_compiler:$ac_header_preproc in
9917   yes:no )
9918     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9919 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9920     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
9921 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
9922     (
9923       cat <<\_ASBOX
9924 ## ------------------------------------ ##
9925 ## Report this to bug-autoconf@gnu.org. ##
9926 ## ------------------------------------ ##
9927 _ASBOX
9928     ) |
9929       sed "s/^/$as_me: WARNING:     /" >&2
9930     ;;
9931   no:yes )
9932     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
9933 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
9934     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
9935 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
9936     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
9937 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
9938     (
9939       cat <<\_ASBOX
9940 ## ------------------------------------ ##
9941 ## Report this to bug-autoconf@gnu.org. ##
9942 ## ------------------------------------ ##
9943 _ASBOX
9944     ) |
9945       sed "s/^/$as_me: WARNING:     /" >&2
9946     ;;
9947 esac
9948 echo "$as_me:$LINENO: checking for libintl.h" >&5
9949 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
9950 if test "${ac_cv_header_libintl_h+set}" = set; then
9951   echo $ECHO_N "(cached) $ECHO_C" >&6
9952 else
9953   ac_cv_header_libintl_h=$ac_header_preproc
9954 fi
9955 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9956 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
9957
9958 fi
9959 if test $ac_cv_header_libintl_h = yes; then
9960   gt_cv_func_dgettext_libintl="no"
9961       libintl_extra_libs=""
9962
9963       #
9964       # First check in libc
9965       #
9966       echo "$as_me:$LINENO: checking for dgettext in libc" >&5
9967 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
9968 if test "${gt_cv_func_dgettext_libc+set}" = set; then
9969   echo $ECHO_N "(cached) $ECHO_C" >&6
9970 else
9971   cat >conftest.$ac_ext <<_ACEOF
9972 #line $LINENO "configure"
9973 /* confdefs.h.  */
9974 _ACEOF
9975 cat confdefs.h >>conftest.$ac_ext
9976 cat >>conftest.$ac_ext <<_ACEOF
9977 /* end confdefs.h.  */
9978
9979 #include <libintl.h>
9980
9981 int
9982 main ()
9983 {
9984 return (int) dgettext ("","")
9985   ;
9986   return 0;
9987 }
9988 _ACEOF
9989 rm -f conftest.$ac_objext conftest$ac_exeext
9990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9991   (eval $ac_link) 2>&5
9992   ac_status=$?
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); } &&
9995          { ac_try='test -s conftest$ac_exeext'
9996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997   (eval $ac_try) 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); }; }; then
10001   gt_cv_func_dgettext_libc=yes
10002 else
10003   echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10005
10006 gt_cv_func_dgettext_libc=no
10007 fi
10008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10009
10010 fi
10011 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
10012 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
10013
10014       if test "$gt_cv_func_dgettext_libc" = "yes" ; then
10015
10016 for ac_func in bind_textdomain_codeset
10017 do
10018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10019 echo "$as_me:$LINENO: checking for $ac_func" >&5
10020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10021 if eval "test \"\${$as_ac_var+set}\" = set"; then
10022   echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024   cat >conftest.$ac_ext <<_ACEOF
10025 #line $LINENO "configure"
10026 /* confdefs.h.  */
10027 _ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h.  */
10031 /* System header to define __stub macros and hopefully few prototypes,
10032     which can conflict with char $ac_func (); below.
10033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10034     <limits.h> exists even on freestanding compilers.  */
10035 #ifdef __STDC__
10036 # include <limits.h>
10037 #else
10038 # include <assert.h>
10039 #endif
10040 /* Override any gcc2 internal prototype to avoid an error.  */
10041 #ifdef __cplusplus
10042 extern "C"
10043 {
10044 #endif
10045 /* We use char because int might match the return type of a gcc2
10046    builtin and then its argument prototype would still apply.  */
10047 char $ac_func ();
10048 /* The GNU C library defines this for functions which it implements
10049     to always fail with ENOSYS.  Some functions are actually named
10050     something starting with __ and the normal name is an alias.  */
10051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10052 choke me
10053 #else
10054 char (*f) () = $ac_func;
10055 #endif
10056 #ifdef __cplusplus
10057 }
10058 #endif
10059
10060 int
10061 main ()
10062 {
10063 return f != $ac_func;
10064   ;
10065   return 0;
10066 }
10067 _ACEOF
10068 rm -f conftest.$ac_objext conftest$ac_exeext
10069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10070   (eval $ac_link) 2>&5
10071   ac_status=$?
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); } &&
10074          { ac_try='test -s conftest$ac_exeext'
10075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076   (eval $ac_try) 2>&5
10077   ac_status=$?
10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   (exit $ac_status); }; }; then
10080   eval "$as_ac_var=yes"
10081 else
10082   echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10084
10085 eval "$as_ac_var=no"
10086 fi
10087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10088 fi
10089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10091 if test `eval echo '${'$as_ac_var'}'` = yes; then
10092   cat >>confdefs.h <<_ACEOF
10093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10094 _ACEOF
10095
10096 fi
10097 done
10098
10099       fi
10100
10101       #
10102       # If we don't have everything we want, check in libintl
10103       #
10104       if test "$gt_cv_func_dgettext_libc" != "yes" \
10105          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
10106
10107         echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
10108 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
10109 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
10110   echo $ECHO_N "(cached) $ECHO_C" >&6
10111 else
10112   ac_check_lib_save_LIBS=$LIBS
10113 LIBS="-lintl  $LIBS"
10114 cat >conftest.$ac_ext <<_ACEOF
10115 #line $LINENO "configure"
10116 /* confdefs.h.  */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h.  */
10121
10122 /* Override any gcc2 internal prototype to avoid an error.  */
10123 #ifdef __cplusplus
10124 extern "C"
10125 #endif
10126 /* We use char because int might match the return type of a gcc2
10127    builtin and then its argument prototype would still apply.  */
10128 char bindtextdomain ();
10129 int
10130 main ()
10131 {
10132 bindtextdomain ();
10133   ;
10134   return 0;
10135 }
10136 _ACEOF
10137 rm -f conftest.$ac_objext conftest$ac_exeext
10138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10139   (eval $ac_link) 2>&5
10140   ac_status=$?
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); } &&
10143          { ac_try='test -s conftest$ac_exeext'
10144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145   (eval $ac_try) 2>&5
10146   ac_status=$?
10147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148   (exit $ac_status); }; }; then
10149   ac_cv_lib_intl_bindtextdomain=yes
10150 else
10151   echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.$ac_ext >&5
10153
10154 ac_cv_lib_intl_bindtextdomain=no
10155 fi
10156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10157 LIBS=$ac_check_lib_save_LIBS
10158 fi
10159 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
10160 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
10161 if test $ac_cv_lib_intl_bindtextdomain = yes; then
10162   echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
10163 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
10164 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
10165   echo $ECHO_N "(cached) $ECHO_C" >&6
10166 else
10167   ac_check_lib_save_LIBS=$LIBS
10168 LIBS="-lintl  $LIBS"
10169 cat >conftest.$ac_ext <<_ACEOF
10170 #line $LINENO "configure"
10171 /* confdefs.h.  */
10172 _ACEOF
10173 cat confdefs.h >>conftest.$ac_ext
10174 cat >>conftest.$ac_ext <<_ACEOF
10175 /* end confdefs.h.  */
10176
10177 /* Override any gcc2 internal prototype to avoid an error.  */
10178 #ifdef __cplusplus
10179 extern "C"
10180 #endif
10181 /* We use char because int might match the return type of a gcc2
10182    builtin and then its argument prototype would still apply.  */
10183 char dgettext ();
10184 int
10185 main ()
10186 {
10187 dgettext ();
10188   ;
10189   return 0;
10190 }
10191 _ACEOF
10192 rm -f conftest.$ac_objext conftest$ac_exeext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10194   (eval $ac_link) 2>&5
10195   ac_status=$?
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); } &&
10198          { ac_try='test -s conftest$ac_exeext'
10199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10200   (eval $ac_try) 2>&5
10201   ac_status=$?
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); }; }; then
10204   ac_cv_lib_intl_dgettext=yes
10205 else
10206   echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10208
10209 ac_cv_lib_intl_dgettext=no
10210 fi
10211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10212 LIBS=$ac_check_lib_save_LIBS
10213 fi
10214 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
10215 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
10216 if test $ac_cv_lib_intl_dgettext = yes; then
10217   gt_cv_func_dgettext_libintl=yes
10218 fi
10219
10220 fi
10221
10222
10223         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
10224           echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
10225 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
10226           echo "$as_me:$LINENO: result: " >&5
10227 echo "${ECHO_T}" >&6
10228           echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
10229 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
10230 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
10231   echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233   ac_check_lib_save_LIBS=$LIBS
10234 LIBS="-lintl -liconv $LIBS"
10235 cat >conftest.$ac_ext <<_ACEOF
10236 #line $LINENO "configure"
10237 /* confdefs.h.  */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h.  */
10242
10243 /* Override any gcc2 internal prototype to avoid an error.  */
10244 #ifdef __cplusplus
10245 extern "C"
10246 #endif
10247 /* We use char because int might match the return type of a gcc2
10248    builtin and then its argument prototype would still apply.  */
10249 char dcgettext ();
10250 int
10251 main ()
10252 {
10253 dcgettext ();
10254   ;
10255   return 0;
10256 }
10257 _ACEOF
10258 rm -f conftest.$ac_objext conftest$ac_exeext
10259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10260   (eval $ac_link) 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); } &&
10264          { ac_try='test -s conftest$ac_exeext'
10265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266   (eval $ac_try) 2>&5
10267   ac_status=$?
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); }; }; then
10270   ac_cv_lib_intl_dcgettext=yes
10271 else
10272   echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10274
10275 ac_cv_lib_intl_dcgettext=no
10276 fi
10277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10278 LIBS=$ac_check_lib_save_LIBS
10279 fi
10280 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
10281 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
10282 if test $ac_cv_lib_intl_dcgettext = yes; then
10283   gt_cv_func_dgettext_libintl=yes
10284                         libintl_extra_libs=-liconv
10285 else
10286   :
10287 fi
10288
10289         fi
10290
10291         #
10292         # If we found libintl, then check in it for bind_textdomain_codeset();
10293         # we'll prefer libc if neither have bind_textdomain_codeset(),
10294         # and both have dgettext
10295         #
10296         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
10297           glib_save_LIBS="$LIBS"
10298           LIBS="$LIBS -lintl $libintl_extra_libs"
10299           unset ac_cv_func_bind_textdomain_codeset
10300
10301 for ac_func in bind_textdomain_codeset
10302 do
10303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10304 echo "$as_me:$LINENO: checking for $ac_func" >&5
10305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10306 if eval "test \"\${$as_ac_var+set}\" = set"; then
10307   echo $ECHO_N "(cached) $ECHO_C" >&6
10308 else
10309   cat >conftest.$ac_ext <<_ACEOF
10310 #line $LINENO "configure"
10311 /* confdefs.h.  */
10312 _ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h.  */
10316 /* System header to define __stub macros and hopefully few prototypes,
10317     which can conflict with char $ac_func (); below.
10318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10319     <limits.h> exists even on freestanding compilers.  */
10320 #ifdef __STDC__
10321 # include <limits.h>
10322 #else
10323 # include <assert.h>
10324 #endif
10325 /* Override any gcc2 internal prototype to avoid an error.  */
10326 #ifdef __cplusplus
10327 extern "C"
10328 {
10329 #endif
10330 /* We use char because int might match the return type of a gcc2
10331    builtin and then its argument prototype would still apply.  */
10332 char $ac_func ();
10333 /* The GNU C library defines this for functions which it implements
10334     to always fail with ENOSYS.  Some functions are actually named
10335     something starting with __ and the normal name is an alias.  */
10336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10337 choke me
10338 #else
10339 char (*f) () = $ac_func;
10340 #endif
10341 #ifdef __cplusplus
10342 }
10343 #endif
10344
10345 int
10346 main ()
10347 {
10348 return f != $ac_func;
10349   ;
10350   return 0;
10351 }
10352 _ACEOF
10353 rm -f conftest.$ac_objext conftest$ac_exeext
10354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10355   (eval $ac_link) 2>&5
10356   ac_status=$?
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); } &&
10359          { ac_try='test -s conftest$ac_exeext'
10360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361   (eval $ac_try) 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); }; }; then
10365   eval "$as_ac_var=yes"
10366 else
10367   echo "$as_me: failed program was:" >&5
10368 sed 's/^/| /' conftest.$ac_ext >&5
10369
10370 eval "$as_ac_var=no"
10371 fi
10372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10373 fi
10374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10376 if test `eval echo '${'$as_ac_var'}'` = yes; then
10377   cat >>confdefs.h <<_ACEOF
10378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10379 _ACEOF
10380
10381 fi
10382 done
10383
10384           LIBS="$glib_save_LIBS"
10385
10386           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
10387             gt_cv_func_dgettext_libc=no
10388           else
10389             if test "$gt_cv_func_dgettext_libc" = "yes"; then
10390               gt_cv_func_dgettext_libintl=no
10391             fi
10392           fi
10393         fi
10394       fi
10395
10396       if test "$gt_cv_func_dgettext_libc" = "yes" \
10397         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
10398         gt_cv_have_gettext=yes
10399       fi
10400
10401       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
10402         INTLLIBS="-lintl $libintl_extra_libs"
10403       fi
10404
10405       if test "$gt_cv_have_gettext" = "yes"; then
10406
10407 cat >>confdefs.h <<\_ACEOF
10408 #define HAVE_GETTEXT 1
10409 _ACEOF
10410
10411         # Extract the first word of "msgfmt", so it can be a program name with args.
10412 set dummy msgfmt; ac_word=$2
10413 echo "$as_me:$LINENO: checking for $ac_word" >&5
10414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10415 if test "${ac_cv_path_MSGFMT+set}" = set; then
10416   echo $ECHO_N "(cached) $ECHO_C" >&6
10417 else
10418   case "$MSGFMT" in
10419   /*)
10420   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10421   ;;
10422   *)
10423   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10424   for ac_dir in $PATH; do
10425     test -z "$ac_dir" && ac_dir=.
10426     if test -f $ac_dir/$ac_word; then
10427       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
10428         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
10429         break
10430       fi
10431     fi
10432   done
10433   IFS="$ac_save_ifs"
10434   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
10435   ;;
10436 esac
10437 fi
10438 MSGFMT="$ac_cv_path_MSGFMT"
10439 if test "$MSGFMT" != "no"; then
10440   echo "$as_me:$LINENO: result: $MSGFMT" >&5
10441 echo "${ECHO_T}$MSGFMT" >&6
10442 else
10443   echo "$as_me:$LINENO: result: no" >&5
10444 echo "${ECHO_T}no" >&6
10445 fi
10446         if test "$MSGFMT" != "no"; then
10447
10448 for ac_func in dcgettext
10449 do
10450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10451 echo "$as_me:$LINENO: checking for $ac_func" >&5
10452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10453 if eval "test \"\${$as_ac_var+set}\" = set"; then
10454   echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456   cat >conftest.$ac_ext <<_ACEOF
10457 #line $LINENO "configure"
10458 /* confdefs.h.  */
10459 _ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h.  */
10463 /* System header to define __stub macros and hopefully few prototypes,
10464     which can conflict with char $ac_func (); below.
10465     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10466     <limits.h> exists even on freestanding compilers.  */
10467 #ifdef __STDC__
10468 # include <limits.h>
10469 #else
10470 # include <assert.h>
10471 #endif
10472 /* Override any gcc2 internal prototype to avoid an error.  */
10473 #ifdef __cplusplus
10474 extern "C"
10475 {
10476 #endif
10477 /* We use char because int might match the return type of a gcc2
10478    builtin and then its argument prototype would still apply.  */
10479 char $ac_func ();
10480 /* The GNU C library defines this for functions which it implements
10481     to always fail with ENOSYS.  Some functions are actually named
10482     something starting with __ and the normal name is an alias.  */
10483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10484 choke me
10485 #else
10486 char (*f) () = $ac_func;
10487 #endif
10488 #ifdef __cplusplus
10489 }
10490 #endif
10491
10492 int
10493 main ()
10494 {
10495 return f != $ac_func;
10496   ;
10497   return 0;
10498 }
10499 _ACEOF
10500 rm -f conftest.$ac_objext conftest$ac_exeext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10502   (eval $ac_link) 2>&5
10503   ac_status=$?
10504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505   (exit $ac_status); } &&
10506          { ac_try='test -s conftest$ac_exeext'
10507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508   (eval $ac_try) 2>&5
10509   ac_status=$?
10510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511   (exit $ac_status); }; }; then
10512   eval "$as_ac_var=yes"
10513 else
10514   echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.$ac_ext >&5
10516
10517 eval "$as_ac_var=no"
10518 fi
10519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10520 fi
10521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10523 if test `eval echo '${'$as_ac_var'}'` = yes; then
10524   cat >>confdefs.h <<_ACEOF
10525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10526 _ACEOF
10527
10528 fi
10529 done
10530
10531           # Extract the first word of "gmsgfmt", so it can be a program name with args.
10532 set dummy gmsgfmt; ac_word=$2
10533 echo "$as_me:$LINENO: checking for $ac_word" >&5
10534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10535 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10536   echo $ECHO_N "(cached) $ECHO_C" >&6
10537 else
10538   case $GMSGFMT in
10539   [\\/]* | ?:[\\/]*)
10540   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10541   ;;
10542   *)
10543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544 for as_dir in $PATH
10545 do
10546   IFS=$as_save_IFS
10547   test -z "$as_dir" && as_dir=.
10548   for ac_exec_ext in '' $ac_executable_extensions; do
10549   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10550     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10552     break 2
10553   fi
10554 done
10555 done
10556
10557   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10558   ;;
10559 esac
10560 fi
10561 GMSGFMT=$ac_cv_path_GMSGFMT
10562
10563 if test -n "$GMSGFMT"; then
10564   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10565 echo "${ECHO_T}$GMSGFMT" >&6
10566 else
10567   echo "$as_me:$LINENO: result: no" >&5
10568 echo "${ECHO_T}no" >&6
10569 fi
10570
10571           # Extract the first word of "xgettext", so it can be a program name with args.
10572 set dummy xgettext; ac_word=$2
10573 echo "$as_me:$LINENO: checking for $ac_word" >&5
10574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10575 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10576   echo $ECHO_N "(cached) $ECHO_C" >&6
10577 else
10578   case "$XGETTEXT" in
10579   /*)
10580   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10581   ;;
10582   *)
10583   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10584   for ac_dir in $PATH; do
10585     test -z "$ac_dir" && ac_dir=.
10586     if test -f $ac_dir/$ac_word; then
10587       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
10588         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
10589         break
10590       fi
10591     fi
10592   done
10593   IFS="$ac_save_ifs"
10594   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10595   ;;
10596 esac
10597 fi
10598 XGETTEXT="$ac_cv_path_XGETTEXT"
10599 if test "$XGETTEXT" != ":"; then
10600   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10601 echo "${ECHO_T}$XGETTEXT" >&6
10602 else
10603   echo "$as_me:$LINENO: result: no" >&5
10604 echo "${ECHO_T}no" >&6
10605 fi
10606
10607           cat >conftest.$ac_ext <<_ACEOF
10608 #line $LINENO "configure"
10609 /* confdefs.h.  */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h.  */
10614
10615 int
10616 main ()
10617 {
10618 extern int _nl_msg_cat_cntr;
10619                          return _nl_msg_cat_cntr
10620   ;
10621   return 0;
10622 }
10623 _ACEOF
10624 rm -f conftest.$ac_objext conftest$ac_exeext
10625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10626   (eval $ac_link) 2>&5
10627   ac_status=$?
10628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629   (exit $ac_status); } &&
10630          { ac_try='test -s conftest$ac_exeext'
10631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632   (eval $ac_try) 2>&5
10633   ac_status=$?
10634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635   (exit $ac_status); }; }; then
10636   CATOBJEXT=.gmo
10637              DATADIRNAME=share
10638 else
10639   echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10641
10642 case $host in
10643             *-*-solaris*)
10644                                                                 echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
10645 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
10646 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
10647   echo $ECHO_N "(cached) $ECHO_C" >&6
10648 else
10649   cat >conftest.$ac_ext <<_ACEOF
10650 #line $LINENO "configure"
10651 /* confdefs.h.  */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h.  */
10656 /* System header to define __stub macros and hopefully few prototypes,
10657     which can conflict with char bind_textdomain_codeset (); below.
10658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10659     <limits.h> exists even on freestanding compilers.  */
10660 #ifdef __STDC__
10661 # include <limits.h>
10662 #else
10663 # include <assert.h>
10664 #endif
10665 /* Override any gcc2 internal prototype to avoid an error.  */
10666 #ifdef __cplusplus
10667 extern "C"
10668 {
10669 #endif
10670 /* We use char because int might match the return type of a gcc2
10671    builtin and then its argument prototype would still apply.  */
10672 char bind_textdomain_codeset ();
10673 /* The GNU C library defines this for functions which it implements
10674     to always fail with ENOSYS.  Some functions are actually named
10675     something starting with __ and the normal name is an alias.  */
10676 #if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
10677 choke me
10678 #else
10679 char (*f) () = bind_textdomain_codeset;
10680 #endif
10681 #ifdef __cplusplus
10682 }
10683 #endif
10684
10685 int
10686 main ()
10687 {
10688 return f != bind_textdomain_codeset;
10689   ;
10690   return 0;
10691 }
10692 _ACEOF
10693 rm -f conftest.$ac_objext conftest$ac_exeext
10694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10695   (eval $ac_link) 2>&5
10696   ac_status=$?
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); } &&
10699          { ac_try='test -s conftest$ac_exeext'
10700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701   (eval $ac_try) 2>&5
10702   ac_status=$?
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); }; }; then
10705   ac_cv_func_bind_textdomain_codeset=yes
10706 else
10707   echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10709
10710 ac_cv_func_bind_textdomain_codeset=no
10711 fi
10712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10713 fi
10714 echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
10715 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
10716 if test $ac_cv_func_bind_textdomain_codeset = yes; then
10717   CATOBJEXT=.gmo
10718                DATADIRNAME=share
10719 else
10720   CATOBJEXT=.mo
10721                DATADIRNAME=lib
10722 fi
10723
10724             ;;
10725             *)
10726             CATOBJEXT=.mo
10727             DATADIRNAME=lib
10728             ;;
10729             esac
10730 fi
10731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10732           INSTOBJEXT=.mo
10733         else
10734           gt_cv_have_gettext=no
10735         fi
10736       fi
10737
10738 fi
10739
10740
10741
10742     if test "$gt_cv_have_gettext" = "yes" ; then
10743
10744 cat >>confdefs.h <<\_ACEOF
10745 #define ENABLE_NLS 1
10746 _ACEOF
10747
10748     fi
10749
10750         if test "$XGETTEXT" != ":"; then
10751                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
10752         : ;
10753       else
10754         echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10755 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10756         XGETTEXT=":"
10757       fi
10758     fi
10759
10760     # We need to process the po/ directory.
10761     POSUB=po
10762
10763               ac_config_commands="$ac_config_commands default-3"
10764
10765
10766                 for lang in $ALL_LINGUAS; do
10767       GMOFILES="$GMOFILES $lang.gmo"
10768       POFILES="$POFILES $lang.po"
10769     done
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783    if test "$gt_cv_have_gettext" = "yes"; then
10784      if test "x$ALL_LINGUAS" = "x"; then
10785        LINGUAS=
10786      else
10787        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10788 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10789        NEW_LINGUAS=
10790        for presentlang in $ALL_LINGUAS; do
10791          useit=no
10792          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
10793            desiredlanguages="$LINGUAS"
10794          else
10795            desiredlanguages="$ALL_LINGUAS"
10796          fi
10797          for desiredlang in $desiredlanguages; do
10798            # Use the presentlang catalog if desiredlang is
10799            #   a. equal to presentlang, or
10800            #   b. a variant of presentlang (because in this case,
10801            #      presentlang can be used as a fallback for messages
10802            #      which are not translated in the desiredlang catalog).
10803            case "$desiredlang" in
10804              "$presentlang"*) useit=yes;;
10805            esac
10806          done
10807          if test $useit = yes; then
10808            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
10809          fi
10810        done
10811        LINGUAS=$NEW_LINGUAS
10812        echo "$as_me:$LINENO: result: $LINGUAS" >&5
10813 echo "${ECHO_T}$LINGUAS" >&6
10814      fi
10815
10816           if test -n "$LINGUAS"; then
10817        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
10818      fi
10819    fi
10820
10821             MKINSTALLDIRS=
10822    if test -n "$ac_aux_dir"; then
10823      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10824    fi
10825    if test -z "$MKINSTALLDIRS"; then
10826      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10827    fi
10828
10829
10830          test -d po || mkdir po
10831    if test "x$srcdir" != "x."; then
10832      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
10833        posrcprefix="$srcdir/"
10834      else
10835        posrcprefix="../$srcdir/"
10836      fi
10837    else
10838      posrcprefix="../"
10839    fi
10840    rm -f po/POTFILES
10841    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
10842         < $srcdir/po/POTFILES.in > po/POTFILES
10843
10844
10845
10846 echo "$as_me:$LINENO: checking for t_accept in -lnsl" >&5
10847 echo $ECHO_N "checking for t_accept in -lnsl... $ECHO_C" >&6
10848 if test "${ac_cv_lib_nsl_t_accept+set}" = set; then
10849   echo $ECHO_N "(cached) $ECHO_C" >&6
10850 else
10851   ac_check_lib_save_LIBS=$LIBS
10852 LIBS="-lnsl  $LIBS"
10853 cat >conftest.$ac_ext <<_ACEOF
10854 #line $LINENO "configure"
10855 /* confdefs.h.  */
10856 _ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h.  */
10860
10861 /* Override any gcc2 internal prototype to avoid an error.  */
10862 #ifdef __cplusplus
10863 extern "C"
10864 #endif
10865 /* We use char because int might match the return type of a gcc2
10866    builtin and then its argument prototype would still apply.  */
10867 char t_accept ();
10868 int
10869 main ()
10870 {
10871 t_accept ();
10872   ;
10873   return 0;
10874 }
10875 _ACEOF
10876 rm -f conftest.$ac_objext conftest$ac_exeext
10877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10878   (eval $ac_link) 2>&5
10879   ac_status=$?
10880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881   (exit $ac_status); } &&
10882          { ac_try='test -s conftest$ac_exeext'
10883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884   (eval $ac_try) 2>&5
10885   ac_status=$?
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); }; }; then
10888   ac_cv_lib_nsl_t_accept=yes
10889 else
10890   echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10892
10893 ac_cv_lib_nsl_t_accept=no
10894 fi
10895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10896 LIBS=$ac_check_lib_save_LIBS
10897 fi
10898 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_accept" >&5
10899 echo "${ECHO_T}$ac_cv_lib_nsl_t_accept" >&6
10900 if test $ac_cv_lib_nsl_t_accept = yes; then
10901   cat >>confdefs.h <<_ACEOF
10902 #define HAVE_LIBNSL 1
10903 _ACEOF
10904
10905   LIBS="-lnsl $LIBS"
10906
10907 fi
10908
10909
10910 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
10911 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
10912 if test "${ac_cv_lib_socket_socket+set}" = set; then
10913   echo $ECHO_N "(cached) $ECHO_C" >&6
10914 else
10915   ac_check_lib_save_LIBS=$LIBS
10916 LIBS="-lsocket  $LIBS"
10917 cat >conftest.$ac_ext <<_ACEOF
10918 #line $LINENO "configure"
10919 /* confdefs.h.  */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h.  */
10924
10925 /* Override any gcc2 internal prototype to avoid an error.  */
10926 #ifdef __cplusplus
10927 extern "C"
10928 #endif
10929 /* We use char because int might match the return type of a gcc2
10930    builtin and then its argument prototype would still apply.  */
10931 char socket ();
10932 int
10933 main ()
10934 {
10935 socket ();
10936   ;
10937   return 0;
10938 }
10939 _ACEOF
10940 rm -f conftest.$ac_objext conftest$ac_exeext
10941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10942   (eval $ac_link) 2>&5
10943   ac_status=$?
10944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945   (exit $ac_status); } &&
10946          { ac_try='test -s conftest$ac_exeext'
10947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948   (eval $ac_try) 2>&5
10949   ac_status=$?
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); }; }; then
10952   ac_cv_lib_socket_socket=yes
10953 else
10954   echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10956
10957 ac_cv_lib_socket_socket=no
10958 fi
10959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10960 LIBS=$ac_check_lib_save_LIBS
10961 fi
10962 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
10963 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
10964 if test $ac_cv_lib_socket_socket = yes; then
10965   cat >>confdefs.h <<_ACEOF
10966 #define HAVE_LIBSOCKET 1
10967 _ACEOF
10968
10969   LIBS="-lsocket $LIBS"
10970
10971 fi
10972
10973
10974 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10975 # for constant arguments.  Useless!
10976 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10977 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10978 if test "${ac_cv_working_alloca_h+set}" = set; then
10979   echo $ECHO_N "(cached) $ECHO_C" >&6
10980 else
10981   cat >conftest.$ac_ext <<_ACEOF
10982 #line $LINENO "configure"
10983 /* confdefs.h.  */
10984 _ACEOF
10985 cat confdefs.h >>conftest.$ac_ext
10986 cat >>conftest.$ac_ext <<_ACEOF
10987 /* end confdefs.h.  */
10988 #include <alloca.h>
10989 int
10990 main ()
10991 {
10992 char *p = (char *) alloca (2 * sizeof (int));
10993   ;
10994   return 0;
10995 }
10996 _ACEOF
10997 rm -f conftest.$ac_objext conftest$ac_exeext
10998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10999   (eval $ac_link) 2>&5
11000   ac_status=$?
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); } &&
11003          { ac_try='test -s conftest$ac_exeext'
11004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005   (eval $ac_try) 2>&5
11006   ac_status=$?
11007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008   (exit $ac_status); }; }; then
11009   ac_cv_working_alloca_h=yes
11010 else
11011   echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11013
11014 ac_cv_working_alloca_h=no
11015 fi
11016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11017 fi
11018 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11019 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11020 if test $ac_cv_working_alloca_h = yes; then
11021
11022 cat >>confdefs.h <<\_ACEOF
11023 #define HAVE_ALLOCA_H 1
11024 _ACEOF
11025
11026 fi
11027
11028 echo "$as_me:$LINENO: checking for alloca" >&5
11029 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11030 if test "${ac_cv_func_alloca_works+set}" = set; then
11031   echo $ECHO_N "(cached) $ECHO_C" >&6
11032 else
11033   cat >conftest.$ac_ext <<_ACEOF
11034 #line $LINENO "configure"
11035 /* confdefs.h.  */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h.  */
11040 #ifdef __GNUC__
11041 # define alloca __builtin_alloca
11042 #else
11043 # ifdef _MSC_VER
11044 #  include <malloc.h>
11045 #  define alloca _alloca
11046 # else
11047 #  if HAVE_ALLOCA_H
11048 #   include <alloca.h>
11049 #  else
11050 #   ifdef _AIX
11051  #pragma alloca
11052 #   else
11053 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11054 char *alloca ();
11055 #    endif
11056 #   endif
11057 #  endif
11058 # endif
11059 #endif
11060
11061 int
11062 main ()
11063 {
11064 char *p = (char *) alloca (1);
11065   ;
11066   return 0;
11067 }
11068 _ACEOF
11069 rm -f conftest.$ac_objext conftest$ac_exeext
11070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11071   (eval $ac_link) 2>&5
11072   ac_status=$?
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); } &&
11075          { ac_try='test -s conftest$ac_exeext'
11076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077   (eval $ac_try) 2>&5
11078   ac_status=$?
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); }; }; then
11081   ac_cv_func_alloca_works=yes
11082 else
11083   echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086 ac_cv_func_alloca_works=no
11087 fi
11088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11089 fi
11090 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11091 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11092
11093 if test $ac_cv_func_alloca_works = yes; then
11094
11095 cat >>confdefs.h <<\_ACEOF
11096 #define HAVE_ALLOCA 1
11097 _ACEOF
11098
11099 else
11100   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11101 # that cause trouble.  Some versions do not even contain alloca or
11102 # contain a buggy version.  If you still want to use their alloca,
11103 # use ar to extract alloca.o from them instead of compiling alloca.c.
11104
11105 ALLOCA=alloca.$ac_objext
11106
11107 cat >>confdefs.h <<\_ACEOF
11108 #define C_ALLOCA 1
11109 _ACEOF
11110
11111
11112 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11113 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11114 if test "${ac_cv_os_cray+set}" = set; then
11115   echo $ECHO_N "(cached) $ECHO_C" >&6
11116 else
11117   cat >conftest.$ac_ext <<_ACEOF
11118 #line $LINENO "configure"
11119 /* confdefs.h.  */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h.  */
11124 #if defined(CRAY) && ! defined(CRAY2)
11125 webecray
11126 #else
11127 wenotbecray
11128 #endif
11129
11130 _ACEOF
11131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11132   $EGREP "webecray" >/dev/null 2>&1; then
11133   ac_cv_os_cray=yes
11134 else
11135   ac_cv_os_cray=no
11136 fi
11137 rm -f conftest*
11138
11139 fi
11140 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11141 echo "${ECHO_T}$ac_cv_os_cray" >&6
11142 if test $ac_cv_os_cray = yes; then
11143   for ac_func in _getb67 GETB67 getb67; do
11144     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11145 echo "$as_me:$LINENO: checking for $ac_func" >&5
11146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11147 if eval "test \"\${$as_ac_var+set}\" = set"; then
11148   echo $ECHO_N "(cached) $ECHO_C" >&6
11149 else
11150   cat >conftest.$ac_ext <<_ACEOF
11151 #line $LINENO "configure"
11152 /* confdefs.h.  */
11153 _ACEOF
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h.  */
11157 /* System header to define __stub macros and hopefully few prototypes,
11158     which can conflict with char $ac_func (); below.
11159     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11160     <limits.h> exists even on freestanding compilers.  */
11161 #ifdef __STDC__
11162 # include <limits.h>
11163 #else
11164 # include <assert.h>
11165 #endif
11166 /* Override any gcc2 internal prototype to avoid an error.  */
11167 #ifdef __cplusplus
11168 extern "C"
11169 {
11170 #endif
11171 /* We use char because int might match the return type of a gcc2
11172    builtin and then its argument prototype would still apply.  */
11173 char $ac_func ();
11174 /* The GNU C library defines this for functions which it implements
11175     to always fail with ENOSYS.  Some functions are actually named
11176     something starting with __ and the normal name is an alias.  */
11177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11178 choke me
11179 #else
11180 char (*f) () = $ac_func;
11181 #endif
11182 #ifdef __cplusplus
11183 }
11184 #endif
11185
11186 int
11187 main ()
11188 {
11189 return f != $ac_func;
11190   ;
11191   return 0;
11192 }
11193 _ACEOF
11194 rm -f conftest.$ac_objext conftest$ac_exeext
11195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11196   (eval $ac_link) 2>&5
11197   ac_status=$?
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); } &&
11200          { ac_try='test -s conftest$ac_exeext'
11201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202   (eval $ac_try) 2>&5
11203   ac_status=$?
11204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205   (exit $ac_status); }; }; then
11206   eval "$as_ac_var=yes"
11207 else
11208   echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11210
11211 eval "$as_ac_var=no"
11212 fi
11213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11214 fi
11215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11217 if test `eval echo '${'$as_ac_var'}'` = yes; then
11218
11219 cat >>confdefs.h <<_ACEOF
11220 #define CRAY_STACKSEG_END $ac_func
11221 _ACEOF
11222
11223     break
11224 fi
11225
11226   done
11227 fi
11228
11229 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11230 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11231 if test "${ac_cv_c_stack_direction+set}" = set; then
11232   echo $ECHO_N "(cached) $ECHO_C" >&6
11233 else
11234   if test "$cross_compiling" = yes; then
11235   ac_cv_c_stack_direction=0
11236 else
11237   cat >conftest.$ac_ext <<_ACEOF
11238 #line $LINENO "configure"
11239 /* confdefs.h.  */
11240 _ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h.  */
11244 int
11245 find_stack_direction ()
11246 {
11247   static char *addr = 0;
11248   auto char dummy;
11249   if (addr == 0)
11250     {
11251       addr = &dummy;
11252       return find_stack_direction ();
11253     }
11254   else
11255     return (&dummy > addr) ? 1 : -1;
11256 }
11257
11258 int
11259 main ()
11260 {
11261   exit (find_stack_direction () < 0);
11262 }
11263 _ACEOF
11264 rm -f conftest$ac_exeext
11265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11266   (eval $ac_link) 2>&5
11267   ac_status=$?
11268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271   (eval $ac_try) 2>&5
11272   ac_status=$?
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); }; }; then
11275   ac_cv_c_stack_direction=1
11276 else
11277   echo "$as_me: program exited with status $ac_status" >&5
11278 echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11280
11281 ( exit $ac_status )
11282 ac_cv_c_stack_direction=-1
11283 fi
11284 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11285 fi
11286 fi
11287 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11288 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11289
11290 cat >>confdefs.h <<_ACEOF
11291 #define STACK_DIRECTION $ac_cv_c_stack_direction
11292 _ACEOF
11293
11294
11295 fi
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309 for ac_func in getdtablesize open64 lseek64 statvfs seteuid setegid setresuid setresgid readdir_r mbrtowc inet_pton getdelim
11310 do
11311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11312 echo "$as_me:$LINENO: checking for $ac_func" >&5
11313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11314 if eval "test \"\${$as_ac_var+set}\" = set"; then
11315   echo $ECHO_N "(cached) $ECHO_C" >&6
11316 else
11317   cat >conftest.$ac_ext <<_ACEOF
11318 #line $LINENO "configure"
11319 /* confdefs.h.  */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h.  */
11324 /* System header to define __stub macros and hopefully few prototypes,
11325     which can conflict with char $ac_func (); below.
11326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11327     <limits.h> exists even on freestanding compilers.  */
11328 #ifdef __STDC__
11329 # include <limits.h>
11330 #else
11331 # include <assert.h>
11332 #endif
11333 /* Override any gcc2 internal prototype to avoid an error.  */
11334 #ifdef __cplusplus
11335 extern "C"
11336 {
11337 #endif
11338 /* We use char because int might match the return type of a gcc2
11339    builtin and then its argument prototype would still apply.  */
11340 char $ac_func ();
11341 /* The GNU C library defines this for functions which it implements
11342     to always fail with ENOSYS.  Some functions are actually named
11343     something starting with __ and the normal name is an alias.  */
11344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11345 choke me
11346 #else
11347 char (*f) () = $ac_func;
11348 #endif
11349 #ifdef __cplusplus
11350 }
11351 #endif
11352
11353 int
11354 main ()
11355 {
11356 return f != $ac_func;
11357   ;
11358   return 0;
11359 }
11360 _ACEOF
11361 rm -f conftest.$ac_objext conftest$ac_exeext
11362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11363   (eval $ac_link) 2>&5
11364   ac_status=$?
11365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366   (exit $ac_status); } &&
11367          { ac_try='test -s conftest$ac_exeext'
11368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11369   (eval $ac_try) 2>&5
11370   ac_status=$?
11371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372   (exit $ac_status); }; }; then
11373   eval "$as_ac_var=yes"
11374 else
11375   echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11377
11378 eval "$as_ac_var=no"
11379 fi
11380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11381 fi
11382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11384 if test `eval echo '${'$as_ac_var'}'` = yes; then
11385   cat >>confdefs.h <<_ACEOF
11386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11387 _ACEOF
11388
11389 fi
11390 done
11391
11392
11393
11394 # Extract the first word of "gconftool-2", so it can be a program name with args.
11395 set dummy gconftool-2; ac_word=$2
11396 echo "$as_me:$LINENO: checking for $ac_word" >&5
11397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11398 if test "${ac_cv_path_GCONFTOOL+set}" = set; then
11399   echo $ECHO_N "(cached) $ECHO_C" >&6
11400 else
11401   case $GCONFTOOL in
11402   [\\/]* | ?:[\\/]*)
11403   ac_cv_path_GCONFTOOL="$GCONFTOOL" # Let the user override the test with a path.
11404   ;;
11405   *)
11406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11407 for as_dir in $PATH
11408 do
11409   IFS=$as_save_IFS
11410   test -z "$as_dir" && as_dir=.
11411   for ac_exec_ext in '' $ac_executable_extensions; do
11412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11413     ac_cv_path_GCONFTOOL="$as_dir/$ac_word$ac_exec_ext"
11414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11415     break 2
11416   fi
11417 done
11418 done
11419
11420   test -z "$ac_cv_path_GCONFTOOL" && ac_cv_path_GCONFTOOL="no"
11421   ;;
11422 esac
11423 fi
11424 GCONFTOOL=$ac_cv_path_GCONFTOOL
11425
11426 if test -n "$GCONFTOOL"; then
11427   echo "$as_me:$LINENO: result: $GCONFTOOL" >&5
11428 echo "${ECHO_T}$GCONFTOOL" >&6
11429 else
11430   echo "$as_me:$LINENO: result: no" >&5
11431 echo "${ECHO_T}no" >&6
11432 fi
11433
11434
11435 if test x"$GCONFTOOL" = xno; then
11436   { { echo "$as_me:$LINENO: error: gconftool-2 executable not found in your path - should be installed with GConf" >&5
11437 echo "$as_me: error: gconftool-2 executable not found in your path - should be installed with GConf" >&2;}
11438    { (exit 1); exit 1; }; }
11439 fi
11440
11441
11442   if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
11443     GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
11444   else
11445     GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
11446   fi
11447
11448
11449 # Check whether --with-gconf-source or --without-gconf-source was given.
11450 if test "${with_gconf_source+set}" = set; then
11451   withval="$with_gconf_source"
11452   GCONF_SCHEMA_CONFIG_SOURCE="$withval"
11453 fi;
11454
11455
11456   echo "$as_me:$LINENO: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5
11457 echo "${ECHO_T}Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6
11458
11459   if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
11460     GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas/'
11461   else
11462     GCONF_SCHEMA_FILE_DIR=$GCONF_SCHEMA_FILE_DIR
11463   fi
11464
11465
11466 # Check whether --with-gconf-schema-file-dir or --without-gconf-schema-file-dir was given.
11467 if test "${with_gconf_schema_file_dir+set}" = set; then
11468   withval="$with_gconf_schema_file_dir"
11469   GCONF_SCHEMA_FILE_DIR="$withval"
11470 fi;
11471
11472
11473   echo "$as_me:$LINENO: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5
11474 echo "${ECHO_T}Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6
11475
11476   # Check whether --enable-schemas-install or --disable-schemas-install was given.
11477 if test "${enable_schemas_install+set}" = set; then
11478   enableval="$enable_schemas_install"
11479   case "${enableval}" in
11480        yes) schemas_install=true ;;
11481        no)  schemas_install=false ;;
11482        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-schemas-install" >&5
11483 echo "$as_me: error: bad value ${enableval} for --disable-schemas-install" >&2;}
11484    { (exit 1); exit 1; }; } ;;
11485      esac
11486 else
11487   schemas_install=true
11488 fi;
11489
11490
11491 if test x$schemas_install = xtrue; then
11492   GCONF_SCHEMAS_INSTALL_TRUE=
11493   GCONF_SCHEMAS_INSTALL_FALSE='#'
11494 else
11495   GCONF_SCHEMAS_INSTALL_TRUE='#'
11496   GCONF_SCHEMAS_INSTALL_FALSE=
11497 fi
11498
11499
11500 echo "$as_me:$LINENO: checking for int" >&5
11501 echo $ECHO_N "checking for int... $ECHO_C" >&6
11502 if test "${ac_cv_type_int+set}" = set; then
11503   echo $ECHO_N "(cached) $ECHO_C" >&6
11504 else
11505   cat >conftest.$ac_ext <<_ACEOF
11506 #line $LINENO "configure"
11507 /* confdefs.h.  */
11508 _ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h.  */
11512 $ac_includes_default
11513 int
11514 main ()
11515 {
11516 if ((int *) 0)
11517   return 0;
11518 if (sizeof (int))
11519   return 0;
11520   ;
11521   return 0;
11522 }
11523 _ACEOF
11524 rm -f conftest.$ac_objext
11525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11526   (eval $ac_compile) 2>&5
11527   ac_status=$?
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); } &&
11530          { ac_try='test -s conftest.$ac_objext'
11531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532   (eval $ac_try) 2>&5
11533   ac_status=$?
11534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535   (exit $ac_status); }; }; then
11536   ac_cv_type_int=yes
11537 else
11538   echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11540
11541 ac_cv_type_int=no
11542 fi
11543 rm -f conftest.$ac_objext conftest.$ac_ext
11544 fi
11545 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11546 echo "${ECHO_T}$ac_cv_type_int" >&6
11547
11548 echo "$as_me:$LINENO: checking size of int" >&5
11549 echo $ECHO_N "checking size of int... $ECHO_C" >&6
11550 if test "${ac_cv_sizeof_int+set}" = set; then
11551   echo $ECHO_N "(cached) $ECHO_C" >&6
11552 else
11553   if test "$ac_cv_type_int" = yes; then
11554   # The cast to unsigned long works around a bug in the HP C Compiler
11555   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11556   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11557   # This bug is HP SR number 8606223364.
11558   if test "$cross_compiling" = yes; then
11559   # Depending upon the size, compute the lo and hi bounds.
11560 cat >conftest.$ac_ext <<_ACEOF
11561 #line $LINENO "configure"
11562 /* confdefs.h.  */
11563 _ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h.  */
11567 $ac_includes_default
11568 int
11569 main ()
11570 {
11571 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
11572 test_array [0] = 0
11573
11574   ;
11575   return 0;
11576 }
11577 _ACEOF
11578 rm -f conftest.$ac_objext
11579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11580   (eval $ac_compile) 2>&5
11581   ac_status=$?
11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583   (exit $ac_status); } &&
11584          { ac_try='test -s conftest.$ac_objext'
11585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586   (eval $ac_try) 2>&5
11587   ac_status=$?
11588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589   (exit $ac_status); }; }; then
11590   ac_lo=0 ac_mid=0
11591   while :; do
11592     cat >conftest.$ac_ext <<_ACEOF
11593 #line $LINENO "configure"
11594 /* confdefs.h.  */
11595 _ACEOF
11596 cat confdefs.h >>conftest.$ac_ext
11597 cat >>conftest.$ac_ext <<_ACEOF
11598 /* end confdefs.h.  */
11599 $ac_includes_default
11600 int
11601 main ()
11602 {
11603 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11604 test_array [0] = 0
11605
11606   ;
11607   return 0;
11608 }
11609 _ACEOF
11610 rm -f conftest.$ac_objext
11611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11612   (eval $ac_compile) 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); } &&
11616          { ac_try='test -s conftest.$ac_objext'
11617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618   (eval $ac_try) 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); }; }; then
11622   ac_hi=$ac_mid; break
11623 else
11624   echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11626
11627 ac_lo=`expr $ac_mid + 1`
11628                     if test $ac_lo -le $ac_mid; then
11629                       ac_lo= ac_hi=
11630                       break
11631                     fi
11632                     ac_mid=`expr 2 '*' $ac_mid + 1`
11633 fi
11634 rm -f conftest.$ac_objext conftest.$ac_ext
11635   done
11636 else
11637   echo "$as_me: failed program was:" >&5
11638 sed 's/^/| /' conftest.$ac_ext >&5
11639
11640 cat >conftest.$ac_ext <<_ACEOF
11641 #line $LINENO "configure"
11642 /* confdefs.h.  */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h.  */
11647 $ac_includes_default
11648 int
11649 main ()
11650 {
11651 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
11652 test_array [0] = 0
11653
11654   ;
11655   return 0;
11656 }
11657 _ACEOF
11658 rm -f conftest.$ac_objext
11659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11660   (eval $ac_compile) 2>&5
11661   ac_status=$?
11662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663   (exit $ac_status); } &&
11664          { ac_try='test -s conftest.$ac_objext'
11665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666   (eval $ac_try) 2>&5
11667   ac_status=$?
11668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669   (exit $ac_status); }; }; then
11670   ac_hi=-1 ac_mid=-1
11671   while :; do
11672     cat >conftest.$ac_ext <<_ACEOF
11673 #line $LINENO "configure"
11674 /* confdefs.h.  */
11675 _ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h.  */
11679 $ac_includes_default
11680 int
11681 main ()
11682 {
11683 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
11684 test_array [0] = 0
11685
11686   ;
11687   return 0;
11688 }
11689 _ACEOF
11690 rm -f conftest.$ac_objext
11691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11692   (eval $ac_compile) 2>&5
11693   ac_status=$?
11694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695   (exit $ac_status); } &&
11696          { ac_try='test -s conftest.$ac_objext'
11697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698   (eval $ac_try) 2>&5
11699   ac_status=$?
11700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701   (exit $ac_status); }; }; then
11702   ac_lo=$ac_mid; break
11703 else
11704   echo "$as_me: failed program was:" >&5
11705 sed 's/^/| /' conftest.$ac_ext >&5
11706
11707 ac_hi=`expr '(' $ac_mid ')' - 1`
11708                        if test $ac_mid -le $ac_hi; then
11709                          ac_lo= ac_hi=
11710                          break
11711                        fi
11712                        ac_mid=`expr 2 '*' $ac_mid`
11713 fi
11714 rm -f conftest.$ac_objext conftest.$ac_ext
11715   done
11716 else
11717   echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11719
11720 ac_lo= ac_hi=
11721 fi
11722 rm -f conftest.$ac_objext conftest.$ac_ext
11723 fi
11724 rm -f conftest.$ac_objext conftest.$ac_ext
11725 # Binary search between lo and hi bounds.
11726 while test "x$ac_lo" != "x$ac_hi"; do
11727   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11728   cat >conftest.$ac_ext <<_ACEOF
11729 #line $LINENO "configure"
11730 /* confdefs.h.  */
11731 _ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h.  */
11735 $ac_includes_default
11736 int
11737 main ()
11738 {
11739 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11740 test_array [0] = 0
11741
11742   ;
11743   return 0;
11744 }
11745 _ACEOF
11746 rm -f conftest.$ac_objext
11747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11748   (eval $ac_compile) 2>&5
11749   ac_status=$?
11750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751   (exit $ac_status); } &&
11752          { ac_try='test -s conftest.$ac_objext'
11753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754   (eval $ac_try) 2>&5
11755   ac_status=$?
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); }; }; then
11758   ac_hi=$ac_mid
11759 else
11760   echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11762
11763 ac_lo=`expr '(' $ac_mid ')' + 1`
11764 fi
11765 rm -f conftest.$ac_objext conftest.$ac_ext
11766 done
11767 case $ac_lo in
11768 ?*) ac_cv_sizeof_int=$ac_lo;;
11769 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11770 See \`config.log' for more details." >&5
11771 echo "$as_me: error: cannot compute sizeof (int), 77
11772 See \`config.log' for more details." >&2;}
11773    { (exit 1); exit 1; }; } ;;
11774 esac
11775 else
11776   if test "$cross_compiling" = yes; then
11777   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11778 See \`config.log' for more details." >&5
11779 echo "$as_me: error: cannot run test program while cross compiling
11780 See \`config.log' for more details." >&2;}
11781    { (exit 1); exit 1; }; }
11782 else
11783   cat >conftest.$ac_ext <<_ACEOF
11784 #line $LINENO "configure"
11785 /* confdefs.h.  */
11786 _ACEOF
11787 cat confdefs.h >>conftest.$ac_ext
11788 cat >>conftest.$ac_ext <<_ACEOF
11789 /* end confdefs.h.  */
11790 $ac_includes_default
11791 long longval () { return (long) (sizeof (int)); }
11792 unsigned long ulongval () { return (long) (sizeof (int)); }
11793 #include <stdio.h>
11794 #include <stdlib.h>
11795 int
11796 main ()
11797 {
11798
11799   FILE *f = fopen ("conftest.val", "w");
11800   if (! f)
11801     exit (1);
11802   if (((long) (sizeof (int))) < 0)
11803     {
11804       long i = longval ();
11805       if (i != ((long) (sizeof (int))))
11806         exit (1);
11807       fprintf (f, "%ld\n", i);
11808     }
11809   else
11810     {
11811       unsigned long i = ulongval ();
11812       if (i != ((long) (sizeof (int))))
11813         exit (1);
11814       fprintf (f, "%lu\n", i);
11815     }
11816   exit (ferror (f) || fclose (f) != 0);
11817
11818   ;
11819   return 0;
11820 }
11821 _ACEOF
11822 rm -f conftest$ac_exeext
11823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11824   (eval $ac_link) 2>&5
11825   ac_status=$?
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829   (eval $ac_try) 2>&5
11830   ac_status=$?
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); }; }; then
11833   ac_cv_sizeof_int=`cat conftest.val`
11834 else
11835   echo "$as_me: program exited with status $ac_status" >&5
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11838
11839 ( exit $ac_status )
11840 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11841 See \`config.log' for more details." >&5
11842 echo "$as_me: error: cannot compute sizeof (int), 77
11843 See \`config.log' for more details." >&2;}
11844    { (exit 1); exit 1; }; }
11845 fi
11846 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11847 fi
11848 fi
11849 rm -f conftest.val
11850 else
11851   ac_cv_sizeof_int=0
11852 fi
11853 fi
11854 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
11855 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
11856 cat >>confdefs.h <<_ACEOF
11857 #define SIZEOF_INT $ac_cv_sizeof_int
11858 _ACEOF
11859
11860
11861 echo "$as_me:$LINENO: checking for long" >&5
11862 echo $ECHO_N "checking for long... $ECHO_C" >&6
11863 if test "${ac_cv_type_long+set}" = set; then
11864   echo $ECHO_N "(cached) $ECHO_C" >&6
11865 else
11866   cat >conftest.$ac_ext <<_ACEOF
11867 #line $LINENO "configure"
11868 /* confdefs.h.  */
11869 _ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h.  */
11873 $ac_includes_default
11874 int
11875 main ()
11876 {
11877 if ((long *) 0)
11878   return 0;
11879 if (sizeof (long))
11880   return 0;
11881   ;
11882   return 0;
11883 }
11884 _ACEOF
11885 rm -f conftest.$ac_objext
11886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11887   (eval $ac_compile) 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); } &&
11891          { ac_try='test -s conftest.$ac_objext'
11892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893   (eval $ac_try) 2>&5
11894   ac_status=$?
11895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896   (exit $ac_status); }; }; then
11897   ac_cv_type_long=yes
11898 else
11899   echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11901
11902 ac_cv_type_long=no
11903 fi
11904 rm -f conftest.$ac_objext conftest.$ac_ext
11905 fi
11906 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
11907 echo "${ECHO_T}$ac_cv_type_long" >&6
11908
11909 echo "$as_me:$LINENO: checking size of long" >&5
11910 echo $ECHO_N "checking size of long... $ECHO_C" >&6
11911 if test "${ac_cv_sizeof_long+set}" = set; then
11912   echo $ECHO_N "(cached) $ECHO_C" >&6
11913 else
11914   if test "$ac_cv_type_long" = yes; then
11915   # The cast to unsigned long works around a bug in the HP C Compiler
11916   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11917   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11918   # This bug is HP SR number 8606223364.
11919   if test "$cross_compiling" = yes; then
11920   # Depending upon the size, compute the lo and hi bounds.
11921 cat >conftest.$ac_ext <<_ACEOF
11922 #line $LINENO "configure"
11923 /* confdefs.h.  */
11924 _ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h.  */
11928 $ac_includes_default
11929 int
11930 main ()
11931 {
11932 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
11933 test_array [0] = 0
11934
11935   ;
11936   return 0;
11937 }
11938 _ACEOF
11939 rm -f conftest.$ac_objext
11940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11941   (eval $ac_compile) 2>&5
11942   ac_status=$?
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); } &&
11945          { ac_try='test -s conftest.$ac_objext'
11946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947   (eval $ac_try) 2>&5
11948   ac_status=$?
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); }; }; then
11951   ac_lo=0 ac_mid=0
11952   while :; do
11953     cat >conftest.$ac_ext <<_ACEOF
11954 #line $LINENO "configure"
11955 /* confdefs.h.  */
11956 _ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h.  */
11960 $ac_includes_default
11961 int
11962 main ()
11963 {
11964 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11965 test_array [0] = 0
11966
11967   ;
11968   return 0;
11969 }
11970 _ACEOF
11971 rm -f conftest.$ac_objext
11972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11973   (eval $ac_compile) 2>&5
11974   ac_status=$?
11975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); } &&
11977          { ac_try='test -s conftest.$ac_objext'
11978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979   (eval $ac_try) 2>&5
11980   ac_status=$?
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); }; }; then
11983   ac_hi=$ac_mid; break
11984 else
11985   echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11987
11988 ac_lo=`expr $ac_mid + 1`
11989                     if test $ac_lo -le $ac_mid; then
11990                       ac_lo= ac_hi=
11991                       break
11992                     fi
11993                     ac_mid=`expr 2 '*' $ac_mid + 1`
11994 fi
11995 rm -f conftest.$ac_objext conftest.$ac_ext
11996   done
11997 else
11998   echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12000
12001 cat >conftest.$ac_ext <<_ACEOF
12002 #line $LINENO "configure"
12003 /* confdefs.h.  */
12004 _ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h.  */
12008 $ac_includes_default
12009 int
12010 main ()
12011 {
12012 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12013 test_array [0] = 0
12014
12015   ;
12016   return 0;
12017 }
12018 _ACEOF
12019 rm -f conftest.$ac_objext
12020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12021   (eval $ac_compile) 2>&5
12022   ac_status=$?
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); } &&
12025          { ac_try='test -s conftest.$ac_objext'
12026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027   (eval $ac_try) 2>&5
12028   ac_status=$?
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); }; }; then
12031   ac_hi=-1 ac_mid=-1
12032   while :; do
12033     cat >conftest.$ac_ext <<_ACEOF
12034 #line $LINENO "configure"
12035 /* confdefs.h.  */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h.  */
12040 $ac_includes_default
12041 int
12042 main ()
12043 {
12044 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12045 test_array [0] = 0
12046
12047   ;
12048   return 0;
12049 }
12050 _ACEOF
12051 rm -f conftest.$ac_objext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12053   (eval $ac_compile) 2>&5
12054   ac_status=$?
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); } &&
12057          { ac_try='test -s conftest.$ac_objext'
12058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059   (eval $ac_try) 2>&5
12060   ac_status=$?
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); }; }; then
12063   ac_lo=$ac_mid; break
12064 else
12065   echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12067
12068 ac_hi=`expr '(' $ac_mid ')' - 1`
12069                        if test $ac_mid -le $ac_hi; then
12070                          ac_lo= ac_hi=
12071                          break
12072                        fi
12073                        ac_mid=`expr 2 '*' $ac_mid`
12074 fi
12075 rm -f conftest.$ac_objext conftest.$ac_ext
12076   done
12077 else
12078   echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12080
12081 ac_lo= ac_hi=
12082 fi
12083 rm -f conftest.$ac_objext conftest.$ac_ext
12084 fi
12085 rm -f conftest.$ac_objext conftest.$ac_ext
12086 # Binary search between lo and hi bounds.
12087 while test "x$ac_lo" != "x$ac_hi"; do
12088   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12089   cat >conftest.$ac_ext <<_ACEOF
12090 #line $LINENO "configure"
12091 /* confdefs.h.  */
12092 _ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h.  */
12096 $ac_includes_default
12097 int
12098 main ()
12099 {
12100 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12101 test_array [0] = 0
12102
12103   ;
12104   return 0;
12105 }
12106 _ACEOF
12107 rm -f conftest.$ac_objext
12108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12109   (eval $ac_compile) 2>&5
12110   ac_status=$?
12111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112   (exit $ac_status); } &&
12113          { ac_try='test -s conftest.$ac_objext'
12114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115   (eval $ac_try) 2>&5
12116   ac_status=$?
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); }; }; then
12119   ac_hi=$ac_mid
12120 else
12121   echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12123
12124 ac_lo=`expr '(' $ac_mid ')' + 1`
12125 fi
12126 rm -f conftest.$ac_objext conftest.$ac_ext
12127 done
12128 case $ac_lo in
12129 ?*) ac_cv_sizeof_long=$ac_lo;;
12130 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12131 See \`config.log' for more details." >&5
12132 echo "$as_me: error: cannot compute sizeof (long), 77
12133 See \`config.log' for more details." >&2;}
12134    { (exit 1); exit 1; }; } ;;
12135 esac
12136 else
12137   if test "$cross_compiling" = yes; then
12138   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12139 See \`config.log' for more details." >&5
12140 echo "$as_me: error: cannot run test program while cross compiling
12141 See \`config.log' for more details." >&2;}
12142    { (exit 1); exit 1; }; }
12143 else
12144   cat >conftest.$ac_ext <<_ACEOF
12145 #line $LINENO "configure"
12146 /* confdefs.h.  */
12147 _ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h.  */
12151 $ac_includes_default
12152 long longval () { return (long) (sizeof (long)); }
12153 unsigned long ulongval () { return (long) (sizeof (long)); }
12154 #include <stdio.h>
12155 #include <stdlib.h>
12156 int
12157 main ()
12158 {
12159
12160   FILE *f = fopen ("conftest.val", "w");
12161   if (! f)
12162     exit (1);
12163   if (((long) (sizeof (long))) < 0)
12164     {
12165       long i = longval ();
12166       if (i != ((long) (sizeof (long))))
12167         exit (1);
12168       fprintf (f, "%ld\n", i);
12169     }
12170   else
12171     {
12172       unsigned long i = ulongval ();
12173       if (i != ((long) (sizeof (long))))
12174         exit (1);
12175       fprintf (f, "%lu\n", i);
12176     }
12177   exit (ferror (f) || fclose (f) != 0);
12178
12179   ;
12180   return 0;
12181 }
12182 _ACEOF
12183 rm -f conftest$ac_exeext
12184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12185   (eval $ac_link) 2>&5
12186   ac_status=$?
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190   (eval $ac_try) 2>&5
12191   ac_status=$?
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); }; }; then
12194   ac_cv_sizeof_long=`cat conftest.val`
12195 else
12196   echo "$as_me: program exited with status $ac_status" >&5
12197 echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12199
12200 ( exit $ac_status )
12201 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12202 See \`config.log' for more details." >&5
12203 echo "$as_me: error: cannot compute sizeof (long), 77
12204 See \`config.log' for more details." >&2;}
12205    { (exit 1); exit 1; }; }
12206 fi
12207 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12208 fi
12209 fi
12210 rm -f conftest.val
12211 else
12212   ac_cv_sizeof_long=0
12213 fi
12214 fi
12215 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12216 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12217 cat >>confdefs.h <<_ACEOF
12218 #define SIZEOF_LONG $ac_cv_sizeof_long
12219 _ACEOF
12220
12221
12222 echo "$as_me:$LINENO: checking for long long" >&5
12223 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12224 if test "${ac_cv_type_long_long+set}" = set; then
12225   echo $ECHO_N "(cached) $ECHO_C" >&6
12226 else
12227   cat >conftest.$ac_ext <<_ACEOF
12228 #line $LINENO "configure"
12229 /* confdefs.h.  */
12230 _ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h.  */
12234 $ac_includes_default
12235 int
12236 main ()
12237 {
12238 if ((long long *) 0)
12239   return 0;
12240 if (sizeof (long long))
12241   return 0;
12242   ;
12243   return 0;
12244 }
12245 _ACEOF
12246 rm -f conftest.$ac_objext
12247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12248   (eval $ac_compile) 2>&5
12249   ac_status=$?
12250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251   (exit $ac_status); } &&
12252          { ac_try='test -s conftest.$ac_objext'
12253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254   (eval $ac_try) 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); }; }; then
12258   ac_cv_type_long_long=yes
12259 else
12260   echo "$as_me: failed program was:" >&5
12261 sed 's/^/| /' conftest.$ac_ext >&5
12262
12263 ac_cv_type_long_long=no
12264 fi
12265 rm -f conftest.$ac_objext conftest.$ac_ext
12266 fi
12267 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12268 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12269
12270 echo "$as_me:$LINENO: checking size of long long" >&5
12271 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12272 if test "${ac_cv_sizeof_long_long+set}" = set; then
12273   echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275   if test "$ac_cv_type_long_long" = yes; then
12276   # The cast to unsigned long works around a bug in the HP C Compiler
12277   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12278   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12279   # This bug is HP SR number 8606223364.
12280   if test "$cross_compiling" = yes; then
12281   # Depending upon the size, compute the lo and hi bounds.
12282 cat >conftest.$ac_ext <<_ACEOF
12283 #line $LINENO "configure"
12284 /* confdefs.h.  */
12285 _ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h.  */
12289 $ac_includes_default
12290 int
12291 main ()
12292 {
12293 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12294 test_array [0] = 0
12295
12296   ;
12297   return 0;
12298 }
12299 _ACEOF
12300 rm -f conftest.$ac_objext
12301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12302   (eval $ac_compile) 2>&5
12303   ac_status=$?
12304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); } &&
12306          { ac_try='test -s conftest.$ac_objext'
12307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308   (eval $ac_try) 2>&5
12309   ac_status=$?
12310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); }; }; then
12312   ac_lo=0 ac_mid=0
12313   while :; do
12314     cat >conftest.$ac_ext <<_ACEOF
12315 #line $LINENO "configure"
12316 /* confdefs.h.  */
12317 _ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h.  */
12321 $ac_includes_default
12322 int
12323 main ()
12324 {
12325 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12326 test_array [0] = 0
12327
12328   ;
12329   return 0;
12330 }
12331 _ACEOF
12332 rm -f conftest.$ac_objext
12333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12334   (eval $ac_compile) 2>&5
12335   ac_status=$?
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); } &&
12338          { ac_try='test -s conftest.$ac_objext'
12339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340   (eval $ac_try) 2>&5
12341   ac_status=$?
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); }; }; then
12344   ac_hi=$ac_mid; break
12345 else
12346   echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12348
12349 ac_lo=`expr $ac_mid + 1`
12350                     if test $ac_lo -le $ac_mid; then
12351                       ac_lo= ac_hi=
12352                       break
12353                     fi
12354                     ac_mid=`expr 2 '*' $ac_mid + 1`
12355 fi
12356 rm -f conftest.$ac_objext conftest.$ac_ext
12357   done
12358 else
12359   echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12361
12362 cat >conftest.$ac_ext <<_ACEOF
12363 #line $LINENO "configure"
12364 /* confdefs.h.  */
12365 _ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h.  */
12369 $ac_includes_default
12370 int
12371 main ()
12372 {
12373 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12374 test_array [0] = 0
12375
12376   ;
12377   return 0;
12378 }
12379 _ACEOF
12380 rm -f conftest.$ac_objext
12381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12382   (eval $ac_compile) 2>&5
12383   ac_status=$?
12384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385   (exit $ac_status); } &&
12386          { ac_try='test -s conftest.$ac_objext'
12387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388   (eval $ac_try) 2>&5
12389   ac_status=$?
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); }; }; then
12392   ac_hi=-1 ac_mid=-1
12393   while :; do
12394     cat >conftest.$ac_ext <<_ACEOF
12395 #line $LINENO "configure"
12396 /* confdefs.h.  */
12397 _ACEOF
12398 cat confdefs.h >>conftest.$ac_ext
12399 cat >>conftest.$ac_ext <<_ACEOF
12400 /* end confdefs.h.  */
12401 $ac_includes_default
12402 int
12403 main ()
12404 {
12405 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12406 test_array [0] = 0
12407
12408   ;
12409   return 0;
12410 }
12411 _ACEOF
12412 rm -f conftest.$ac_objext
12413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12414   (eval $ac_compile) 2>&5
12415   ac_status=$?
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); } &&
12418          { ac_try='test -s conftest.$ac_objext'
12419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420   (eval $ac_try) 2>&5
12421   ac_status=$?
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); }; }; then
12424   ac_lo=$ac_mid; break
12425 else
12426   echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12428
12429 ac_hi=`expr '(' $ac_mid ')' - 1`
12430                        if test $ac_mid -le $ac_hi; then
12431                          ac_lo= ac_hi=
12432                          break
12433                        fi
12434                        ac_mid=`expr 2 '*' $ac_mid`
12435 fi
12436 rm -f conftest.$ac_objext conftest.$ac_ext
12437   done
12438 else
12439   echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441
12442 ac_lo= ac_hi=
12443 fi
12444 rm -f conftest.$ac_objext conftest.$ac_ext
12445 fi
12446 rm -f conftest.$ac_objext conftest.$ac_ext
12447 # Binary search between lo and hi bounds.
12448 while test "x$ac_lo" != "x$ac_hi"; do
12449   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12450   cat >conftest.$ac_ext <<_ACEOF
12451 #line $LINENO "configure"
12452 /* confdefs.h.  */
12453 _ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h.  */
12457 $ac_includes_default
12458 int
12459 main ()
12460 {
12461 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12462 test_array [0] = 0
12463
12464   ;
12465   return 0;
12466 }
12467 _ACEOF
12468 rm -f conftest.$ac_objext
12469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12470   (eval $ac_compile) 2>&5
12471   ac_status=$?
12472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473   (exit $ac_status); } &&
12474          { ac_try='test -s conftest.$ac_objext'
12475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476   (eval $ac_try) 2>&5
12477   ac_status=$?
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); }; }; then
12480   ac_hi=$ac_mid
12481 else
12482   echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12484
12485 ac_lo=`expr '(' $ac_mid ')' + 1`
12486 fi
12487 rm -f conftest.$ac_objext conftest.$ac_ext
12488 done
12489 case $ac_lo in
12490 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12491 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12492 See \`config.log' for more details." >&5
12493 echo "$as_me: error: cannot compute sizeof (long long), 77
12494 See \`config.log' for more details." >&2;}
12495    { (exit 1); exit 1; }; } ;;
12496 esac
12497 else
12498   if test "$cross_compiling" = yes; then
12499   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12500 See \`config.log' for more details." >&5
12501 echo "$as_me: error: cannot run test program while cross compiling
12502 See \`config.log' for more details." >&2;}
12503    { (exit 1); exit 1; }; }
12504 else
12505   cat >conftest.$ac_ext <<_ACEOF
12506 #line $LINENO "configure"
12507 /* confdefs.h.  */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h.  */
12512 $ac_includes_default
12513 long longval () { return (long) (sizeof (long long)); }
12514 unsigned long ulongval () { return (long) (sizeof (long long)); }
12515 #include <stdio.h>
12516 #include <stdlib.h>
12517 int
12518 main ()
12519 {
12520
12521   FILE *f = fopen ("conftest.val", "w");
12522   if (! f)
12523     exit (1);
12524   if (((long) (sizeof (long long))) < 0)
12525     {
12526       long i = longval ();
12527       if (i != ((long) (sizeof (long long))))
12528         exit (1);
12529       fprintf (f, "%ld\n", i);
12530     }
12531   else
12532     {
12533       unsigned long i = ulongval ();
12534       if (i != ((long) (sizeof (long long))))
12535         exit (1);
12536       fprintf (f, "%lu\n", i);
12537     }
12538   exit (ferror (f) || fclose (f) != 0);
12539
12540   ;
12541   return 0;
12542 }
12543 _ACEOF
12544 rm -f conftest$ac_exeext
12545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12546   (eval $ac_link) 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551   (eval $ac_try) 2>&5
12552   ac_status=$?
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); }; }; then
12555   ac_cv_sizeof_long_long=`cat conftest.val`
12556 else
12557   echo "$as_me: program exited with status $ac_status" >&5
12558 echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12560
12561 ( exit $ac_status )
12562 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12563 See \`config.log' for more details." >&5
12564 echo "$as_me: error: cannot compute sizeof (long long), 77
12565 See \`config.log' for more details." >&2;}
12566    { (exit 1); exit 1; }; }
12567 fi
12568 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12569 fi
12570 fi
12571 rm -f conftest.val
12572 else
12573   ac_cv_sizeof_long_long=0
12574 fi
12575 fi
12576 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12577 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12578 cat >>confdefs.h <<_ACEOF
12579 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12580 _ACEOF
12581
12582
12583
12584 VFS_SIZE="unsigned long"
12585 VFS_OFFSET="long"
12586 VFS_SIZE_IS="UNSIGNED_LONG"
12587 VFS_OFFSET_IS="LONG"
12588 VFS_SIZE_PRINTF="lu"
12589 VFS_OFFSET_PRINTF="ld"
12590
12591 case 8 in
12592 $ac_cv_sizeof_int)
12593   VFS_SIZE="unsigned int"
12594   VFS_OFFSET="int"
12595   VFS_SIZE_IS="UNSIGNED_INT"
12596   VFS_OFFSET_IS="INT"
12597   VFS_SIZE_PRINTF="u"
12598   VFS_OFFSET_PRINTF="d"
12599   ;;
12600 $ac_cv_sizeof_long)
12601   # Nothing happens here, we are already using a long
12602   ;;
12603 $ac_cv_sizeof_long_long)
12604   VFS_SIZE="unsigned long long"
12605   VFS_OFFSET="long long"
12606   VFS_SIZE_IS="UNSIGNED_LONG_LONG"
12607   VFS_OFFSET_IS="LONG_LONG"
12608   VFS_SIZE_PRINTF="Lu"
12609   VFS_OFFSET_PRINTF="Ld"
12610   ;;
12611 esac
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626 for ac_header in sys/param.h sys/resource.h sys/vfs.h sys/mount.h sys/statvfs.h wctype.h
12627 do
12628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12630   echo "$as_me:$LINENO: checking for $ac_header" >&5
12631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12633   echo $ECHO_N "(cached) $ECHO_C" >&6
12634 fi
12635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12637 else
12638   # Is the header compilable?
12639 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12641 cat >conftest.$ac_ext <<_ACEOF
12642 #line $LINENO "configure"
12643 /* confdefs.h.  */
12644 _ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h.  */
12648 $ac_includes_default
12649 #include <$ac_header>
12650 _ACEOF
12651 rm -f conftest.$ac_objext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12653   (eval $ac_compile) 2>&5
12654   ac_status=$?
12655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656   (exit $ac_status); } &&
12657          { ac_try='test -s conftest.$ac_objext'
12658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659   (eval $ac_try) 2>&5
12660   ac_status=$?
12661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662   (exit $ac_status); }; }; then
12663   ac_header_compiler=yes
12664 else
12665   echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12667
12668 ac_header_compiler=no
12669 fi
12670 rm -f conftest.$ac_objext conftest.$ac_ext
12671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12672 echo "${ECHO_T}$ac_header_compiler" >&6
12673
12674 # Is the header present?
12675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12677 cat >conftest.$ac_ext <<_ACEOF
12678 #line $LINENO "configure"
12679 /* confdefs.h.  */
12680 _ACEOF
12681 cat confdefs.h >>conftest.$ac_ext
12682 cat >>conftest.$ac_ext <<_ACEOF
12683 /* end confdefs.h.  */
12684 #include <$ac_header>
12685 _ACEOF
12686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12687   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12688   ac_status=$?
12689   grep -v '^ *+' conftest.er1 >conftest.err
12690   rm -f conftest.er1
12691   cat conftest.err >&5
12692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693   (exit $ac_status); } >/dev/null; then
12694   if test -s conftest.err; then
12695     ac_cpp_err=$ac_c_preproc_warn_flag
12696   else
12697     ac_cpp_err=
12698   fi
12699 else
12700   ac_cpp_err=yes
12701 fi
12702 if test -z "$ac_cpp_err"; then
12703   ac_header_preproc=yes
12704 else
12705   echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12707
12708   ac_header_preproc=no
12709 fi
12710 rm -f conftest.err conftest.$ac_ext
12711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12712 echo "${ECHO_T}$ac_header_preproc" >&6
12713
12714 # So?  What about this header?
12715 case $ac_header_compiler:$ac_header_preproc in
12716   yes:no )
12717     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12721     (
12722       cat <<\_ASBOX
12723 ## ------------------------------------ ##
12724 ## Report this to bug-autoconf@gnu.org. ##
12725 ## ------------------------------------ ##
12726 _ASBOX
12727     ) |
12728       sed "s/^/$as_me: WARNING:     /" >&2
12729     ;;
12730   no:yes )
12731     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12733     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12737     (
12738       cat <<\_ASBOX
12739 ## ------------------------------------ ##
12740 ## Report this to bug-autoconf@gnu.org. ##
12741 ## ------------------------------------ ##
12742 _ASBOX
12743     ) |
12744       sed "s/^/$as_me: WARNING:     /" >&2
12745     ;;
12746 esac
12747 echo "$as_me:$LINENO: checking for $ac_header" >&5
12748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12750   echo $ECHO_N "(cached) $ECHO_C" >&6
12751 else
12752   eval "$as_ac_Header=$ac_header_preproc"
12753 fi
12754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12756
12757 fi
12758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12759   cat >>confdefs.h <<_ACEOF
12760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12761 _ACEOF
12762
12763 fi
12764
12765 done
12766
12767
12768 ENABLE_PROFILER=
12769 # Check whether --enable-profiler or --disable-profiler was given.
12770 if test "${enable_profiler+set}" = set; then
12771   enableval="$enable_profiler"
12772   ENABLE_PROFILER=1
12773 cat >>confdefs.h <<\_ACEOF
12774 #define ENABLE_PROFILER 1
12775 _ACEOF
12776
12777 fi;
12778
12779 if test "x$ENABLE_PROFILER" = "x1"
12780 then
12781         CFLAGS="-g -O -gdwarf-2 -finstrument-functions -D__NO_STRING_INLINES"
12782         LDFLAGS="/gnome/PROFILE/lib/libprofiler.so -lpthread"
12783 fi
12784
12785
12786
12787
12788 if test "x$ENABLE_PROFILER" = "x1"; then
12789   ENABLE_PROFILER_TRUE=
12790   ENABLE_PROFILER_FALSE='#'
12791 else
12792   ENABLE_PROFILER_TRUE='#'
12793   ENABLE_PROFILER_FALSE=
12794 fi
12795
12796
12797 # Check whether --enable-more-warnings or --disable-more-warnings was given.
12798 if test "${enable_more_warnings+set}" = set; then
12799   enableval="$enable_more_warnings"
12800   set_more_warnings="$enableval"
12801 else
12802
12803 if test -f $srcdir/CVSVERSION; then
12804         set_more_warnings=yes
12805 else
12806         set_more_warnings=no
12807 fi
12808
12809 fi;
12810
12811 if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
12812         echo "enable compile warnings = $set_more_warnings"
12813         VFS_CFLAGS="-Wall -Werror \
12814         -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
12815         -Wnested-externs -Wpointer-arith"
12816
12817         for option in -Wno-strict-aliasing -Wno-sign-compare; do
12818                 SAVE_CFLAGS="$CFLAGS"
12819                 CFLAGS="$VFS_CFLAGS $option $CFLAGS"
12820                 echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
12821 echo $ECHO_N "checking whether gcc understands $option... $ECHO_C" >&6
12822                 cat >conftest.$ac_ext <<_ACEOF
12823 #line $LINENO "configure"
12824 /* confdefs.h.  */
12825 _ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h.  */
12829
12830 int
12831 main ()
12832 {
12833
12834   ;
12835   return 0;
12836 }
12837 _ACEOF
12838 rm -f conftest.$ac_objext
12839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12840   (eval $ac_compile) 2>&5
12841   ac_status=$?
12842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843   (exit $ac_status); } &&
12844          { ac_try='test -s conftest.$ac_objext'
12845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846   (eval $ac_try) 2>&5
12847   ac_status=$?
12848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849   (exit $ac_status); }; }; then
12850   has_option=yes
12851 else
12852   echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12854
12855 has_option=no
12856 fi
12857 rm -f conftest.$ac_objext conftest.$ac_ext
12858                 CFLAGS="$SAVE_CFLAGS"
12859                 if test $has_option = yes; then
12860                   VFS_CFLAGS="$VFS_CFLAGS $option"
12861                 fi
12862                 echo "$as_me:$LINENO: result: $has_option" >&5
12863 echo "${ECHO_T}$has_option" >&6
12864                 unset has_option
12865                 unset SAVE_CFLAGS
12866         done
12867         unset option
12868 fi
12869
12870
12871 GNOME_VFS_DIR=`(cd $srcdir; pwd)`
12872
12873
12874 VFS_LIBS="-lgnomevfs $VFS_GLIB_LIBS"
12875 VFS_LIBDIR='-L${libdir}'
12876 VFS_INCLUDEDIR='-I${includedir} -I${libdir}/vfs/include'" $VFS_GLIB_CFLAGS"
12877
12878
12879
12880
12881
12882
12883
12884
12885 if false; then
12886   HAVE_LIBEFS_TRUE=
12887   HAVE_LIBEFS_FALSE='#'
12888 else
12889   HAVE_LIBEFS_TRUE='#'
12890   HAVE_LIBEFS_FALSE=
12891 fi
12892 LIBEFS_LIBS=""
12893 LIBEFS_CFLAGS=""
12894
12895
12896
12897
12898
12899 have_socket=no
12900
12901 for ac_func in socket
12902 do
12903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12904 echo "$as_me:$LINENO: checking for $ac_func" >&5
12905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12906 if eval "test \"\${$as_ac_var+set}\" = set"; then
12907   echo $ECHO_N "(cached) $ECHO_C" >&6
12908 else
12909   cat >conftest.$ac_ext <<_ACEOF
12910 #line $LINENO "configure"
12911 /* confdefs.h.  */
12912 _ACEOF
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h.  */
12916 /* System header to define __stub macros and hopefully few prototypes,
12917     which can conflict with char $ac_func (); below.
12918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12919     <limits.h> exists even on freestanding compilers.  */
12920 #ifdef __STDC__
12921 # include <limits.h>
12922 #else
12923 # include <assert.h>
12924 #endif
12925 /* Override any gcc2 internal prototype to avoid an error.  */
12926 #ifdef __cplusplus
12927 extern "C"
12928 {
12929 #endif
12930 /* We use char because int might match the return type of a gcc2
12931    builtin and then its argument prototype would still apply.  */
12932 char $ac_func ();
12933 /* The GNU C library defines this for functions which it implements
12934     to always fail with ENOSYS.  Some functions are actually named
12935     something starting with __ and the normal name is an alias.  */
12936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12937 choke me
12938 #else
12939 char (*f) () = $ac_func;
12940 #endif
12941 #ifdef __cplusplus
12942 }
12943 #endif
12944
12945 int
12946 main ()
12947 {
12948 return f != $ac_func;
12949   ;
12950   return 0;
12951 }
12952 _ACEOF
12953 rm -f conftest.$ac_objext conftest$ac_exeext
12954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12955   (eval $ac_link) 2>&5
12956   ac_status=$?
12957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958   (exit $ac_status); } &&
12959          { ac_try='test -s conftest$ac_exeext'
12960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961   (eval $ac_try) 2>&5
12962   ac_status=$?
12963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); }; }; then
12965   eval "$as_ac_var=yes"
12966 else
12967   echo "$as_me: failed program was:" >&5
12968 sed 's/^/| /' conftest.$ac_ext >&5
12969
12970 eval "$as_ac_var=no"
12971 fi
12972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12973 fi
12974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12976 if test `eval echo '${'$as_ac_var'}'` = yes; then
12977   cat >>confdefs.h <<_ACEOF
12978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12979 _ACEOF
12980  have_socket=yes
12981 fi
12982 done
12983
12984 if test $have_socket = no; then
12985   # socket is not in the default libraries.  See if it's in some other.
12986   for lib in bsd socket inet; do
12987     as_ac_Lib=`echo "ac_cv_lib_$lib''_socket" | $as_tr_sh`
12988 echo "$as_me:$LINENO: checking for socket in -l$lib" >&5
12989 echo $ECHO_N "checking for socket in -l$lib... $ECHO_C" >&6
12990 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12991   echo $ECHO_N "(cached) $ECHO_C" >&6
12992 else
12993   ac_check_lib_save_LIBS=$LIBS
12994 LIBS="-l$lib  $LIBS"
12995 cat >conftest.$ac_ext <<_ACEOF
12996 #line $LINENO "configure"
12997 /* confdefs.h.  */
12998 _ACEOF
12999 cat confdefs.h >>conftest.$ac_ext
13000 cat >>conftest.$ac_ext <<_ACEOF
13001 /* end confdefs.h.  */
13002
13003 /* Override any gcc2 internal prototype to avoid an error.  */
13004 #ifdef __cplusplus
13005 extern "C"
13006 #endif
13007 /* We use char because int might match the return type of a gcc2
13008    builtin and then its argument prototype would still apply.  */
13009 char socket ();
13010 int
13011 main ()
13012 {
13013 socket ();
13014   ;
13015   return 0;
13016 }
13017 _ACEOF
13018 rm -f conftest.$ac_objext conftest$ac_exeext
13019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13020   (eval $ac_link) 2>&5
13021   ac_status=$?
13022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023   (exit $ac_status); } &&
13024          { ac_try='test -s conftest$ac_exeext'
13025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026   (eval $ac_try) 2>&5
13027   ac_status=$?
13028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029   (exit $ac_status); }; }; then
13030   eval "$as_ac_Lib=yes"
13031 else
13032   echo "$as_me: failed program was:" >&5
13033 sed 's/^/| /' conftest.$ac_ext >&5
13034
13035 eval "$as_ac_Lib=no"
13036 fi
13037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13038 LIBS=$ac_check_lib_save_LIBS
13039 fi
13040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13041 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13042 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13043
13044           LIBS="$LIBS -l$lib"
13045           have_socket=yes
13046           cat >>confdefs.h <<\_ACEOF
13047 #define HAVE_SOCKET 1
13048 _ACEOF
13049
13050           break
13051 fi
13052
13053   done
13054 fi
13055
13056 have_gethostbyname=no
13057 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13058 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13059 if test "${ac_cv_func_gethostbyname+set}" = set; then
13060   echo $ECHO_N "(cached) $ECHO_C" >&6
13061 else
13062   cat >conftest.$ac_ext <<_ACEOF
13063 #line $LINENO "configure"
13064 /* confdefs.h.  */
13065 _ACEOF
13066 cat confdefs.h >>conftest.$ac_ext
13067 cat >>conftest.$ac_ext <<_ACEOF
13068 /* end confdefs.h.  */
13069 /* System header to define __stub macros and hopefully few prototypes,
13070     which can conflict with char gethostbyname (); below.
13071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13072     <limits.h> exists even on freestanding compilers.  */
13073 #ifdef __STDC__
13074 # include <limits.h>
13075 #else
13076 # include <assert.h>
13077 #endif
13078 /* Override any gcc2 internal prototype to avoid an error.  */
13079 #ifdef __cplusplus
13080 extern "C"
13081 {
13082 #endif
13083 /* We use char because int might match the return type of a gcc2
13084    builtin and then its argument prototype would still apply.  */
13085 char gethostbyname ();
13086 /* The GNU C library defines this for functions which it implements
13087     to always fail with ENOSYS.  Some functions are actually named
13088     something starting with __ and the normal name is an alias.  */
13089 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13090 choke me
13091 #else
13092 char (*f) () = gethostbyname;
13093 #endif
13094 #ifdef __cplusplus
13095 }
13096 #endif
13097
13098 int
13099 main ()
13100 {
13101 return f != gethostbyname;
13102   ;
13103   return 0;
13104 }
13105 _ACEOF
13106 rm -f conftest.$ac_objext conftest$ac_exeext
13107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13108   (eval $ac_link) 2>&5
13109   ac_status=$?
13110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111   (exit $ac_status); } &&
13112          { ac_try='test -s conftest$ac_exeext'
13113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114   (eval $ac_try) 2>&5
13115   ac_status=$?
13116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); }; }; then
13118   ac_cv_func_gethostbyname=yes
13119 else
13120   echo "$as_me: failed program was:" >&5
13121 sed 's/^/| /' conftest.$ac_ext >&5
13122
13123 ac_cv_func_gethostbyname=no
13124 fi
13125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13126 fi
13127 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13128 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13129 if test $ac_cv_func_gethostbyname = yes; then
13130   have_gethostbyname=yes
13131 fi
13132
13133 if test $have_gethostbyname = no; then
13134   # gethostbyname is not in the default libraries.  See if it's in some other.
13135   for lib in bsd socket inet; do
13136     as_ac_Lib=`echo "ac_cv_lib_$lib''_gethostbyname" | $as_tr_sh`
13137 echo "$as_me:$LINENO: checking for gethostbyname in -l$lib" >&5
13138 echo $ECHO_N "checking for gethostbyname in -l$lib... $ECHO_C" >&6
13139 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13140   echo $ECHO_N "(cached) $ECHO_C" >&6
13141 else
13142   ac_check_lib_save_LIBS=$LIBS
13143 LIBS="-l$lib  $LIBS"
13144 cat >conftest.$ac_ext <<_ACEOF
13145 #line $LINENO "configure"
13146 /* confdefs.h.  */
13147 _ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h.  */
13151
13152 /* Override any gcc2 internal prototype to avoid an error.  */
13153 #ifdef __cplusplus
13154 extern "C"
13155 #endif
13156 /* We use char because int might match the return type of a gcc2
13157    builtin and then its argument prototype would still apply.  */
13158 char gethostbyname ();
13159 int
13160 main ()
13161 {
13162 gethostbyname ();
13163   ;
13164   return 0;
13165 }
13166 _ACEOF
13167 rm -f conftest.$ac_objext conftest$ac_exeext
13168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13169   (eval $ac_link) 2>&5
13170   ac_status=$?
13171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172   (exit $ac_status); } &&
13173          { ac_try='test -s conftest$ac_exeext'
13174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175   (eval $ac_try) 2>&5
13176   ac_status=$?
13177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178   (exit $ac_status); }; }; then
13179   eval "$as_ac_Lib=yes"
13180 else
13181   echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.$ac_ext >&5
13183
13184 eval "$as_ac_Lib=no"
13185 fi
13186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13187 LIBS=$ac_check_lib_save_LIBS
13188 fi
13189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13190 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13191 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13192   LIBS="$LIBS -l$lib"; have_gethostbyname=yes; break
13193 fi
13194
13195   done
13196 fi
13197
13198 echo "$as_me:$LINENO: checking for bzCompressInit in -lbz2" >&5
13199 echo $ECHO_N "checking for bzCompressInit in -lbz2... $ECHO_C" >&6
13200 if test "${ac_cv_lib_bz2_bzCompressInit+set}" = set; then
13201   echo $ECHO_N "(cached) $ECHO_C" >&6
13202 else
13203   ac_check_lib_save_LIBS=$LIBS
13204 LIBS="-lbz2  $LIBS"
13205 cat >conftest.$ac_ext <<_ACEOF
13206 #line $LINENO "configure"
13207 /* confdefs.h.  */
13208 _ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h.  */
13212
13213 /* Override any gcc2 internal prototype to avoid an error.  */
13214 #ifdef __cplusplus
13215 extern "C"
13216 #endif
13217 /* We use char because int might match the return type of a gcc2
13218    builtin and then its argument prototype would still apply.  */
13219 char bzCompressInit ();
13220 int
13221 main ()
13222 {
13223 bzCompressInit ();
13224   ;
13225   return 0;
13226 }
13227 _ACEOF
13228 rm -f conftest.$ac_objext conftest$ac_exeext
13229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13230   (eval $ac_link) 2>&5
13231   ac_status=$?
13232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233   (exit $ac_status); } &&
13234          { ac_try='test -s conftest$ac_exeext'
13235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236   (eval $ac_try) 2>&5
13237   ac_status=$?
13238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239   (exit $ac_status); }; }; then
13240   ac_cv_lib_bz2_bzCompressInit=yes
13241 else
13242   echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13244
13245 ac_cv_lib_bz2_bzCompressInit=no
13246 fi
13247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13248 LIBS=$ac_check_lib_save_LIBS
13249 fi
13250 echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_bzCompressInit" >&5
13251 echo "${ECHO_T}$ac_cv_lib_bz2_bzCompressInit" >&6
13252 if test $ac_cv_lib_bz2_bzCompressInit = yes; then
13253   cat >>confdefs.h <<\_ACEOF
13254 #define HAVE_OLDER_BZIP2 1
13255 _ACEOF
13256
13257 fi
13258
13259
13260 for ac_header in bzlib.h
13261 do
13262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13264   echo "$as_me:$LINENO: checking for $ac_header" >&5
13265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13267   echo $ECHO_N "(cached) $ECHO_C" >&6
13268 fi
13269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13271 else
13272   # Is the header compilable?
13273 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13275 cat >conftest.$ac_ext <<_ACEOF
13276 #line $LINENO "configure"
13277 /* confdefs.h.  */
13278 _ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h.  */
13282 $ac_includes_default
13283 #include <$ac_header>
13284 _ACEOF
13285 rm -f conftest.$ac_objext
13286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13287   (eval $ac_compile) 2>&5
13288   ac_status=$?
13289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290   (exit $ac_status); } &&
13291          { ac_try='test -s conftest.$ac_objext'
13292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13293   (eval $ac_try) 2>&5
13294   ac_status=$?
13295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296   (exit $ac_status); }; }; then
13297   ac_header_compiler=yes
13298 else
13299   echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.$ac_ext >&5
13301
13302 ac_header_compiler=no
13303 fi
13304 rm -f conftest.$ac_objext conftest.$ac_ext
13305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13306 echo "${ECHO_T}$ac_header_compiler" >&6
13307
13308 # Is the header present?
13309 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13311 cat >conftest.$ac_ext <<_ACEOF
13312 #line $LINENO "configure"
13313 /* confdefs.h.  */
13314 _ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h.  */
13318 #include <$ac_header>
13319 _ACEOF
13320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13321   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13322   ac_status=$?
13323   grep -v '^ *+' conftest.er1 >conftest.err
13324   rm -f conftest.er1
13325   cat conftest.err >&5
13326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327   (exit $ac_status); } >/dev/null; then
13328   if test -s conftest.err; then
13329     ac_cpp_err=$ac_c_preproc_warn_flag
13330   else
13331     ac_cpp_err=
13332   fi
13333 else
13334   ac_cpp_err=yes
13335 fi
13336 if test -z "$ac_cpp_err"; then
13337   ac_header_preproc=yes
13338 else
13339   echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13341
13342   ac_header_preproc=no
13343 fi
13344 rm -f conftest.err conftest.$ac_ext
13345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13346 echo "${ECHO_T}$ac_header_preproc" >&6
13347
13348 # So?  What about this header?
13349 case $ac_header_compiler:$ac_header_preproc in
13350   yes:no )
13351     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13353     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13355     (
13356       cat <<\_ASBOX
13357 ## ------------------------------------ ##
13358 ## Report this to bug-autoconf@gnu.org. ##
13359 ## ------------------------------------ ##
13360 _ASBOX
13361     ) |
13362       sed "s/^/$as_me: WARNING:     /" >&2
13363     ;;
13364   no:yes )
13365     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13367     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13371     (
13372       cat <<\_ASBOX
13373 ## ------------------------------------ ##
13374 ## Report this to bug-autoconf@gnu.org. ##
13375 ## ------------------------------------ ##
13376 _ASBOX
13377     ) |
13378       sed "s/^/$as_me: WARNING:     /" >&2
13379     ;;
13380 esac
13381 echo "$as_me:$LINENO: checking for $ac_header" >&5
13382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13384   echo $ECHO_N "(cached) $ECHO_C" >&6
13385 else
13386   eval "$as_ac_Header=$ac_header_preproc"
13387 fi
13388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13390
13391 fi
13392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13393   cat >>confdefs.h <<_ACEOF
13394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13395 _ACEOF
13396  BZ2_LIBS="$BZ2_LIBS -lbz2"
13397 else
13398   { { echo "$as_me:$LINENO: error: Gnome-vfs requires libbz2 to compile." >&5
13399 echo "$as_me: error: Gnome-vfs requires libbz2 to compile." >&2;}
13400    { (exit 1); exit 1; }; }
13401
13402 fi
13403
13404 done
13405
13406
13407
13408 if test $have_socket = yes; then
13409
13410 av_struct_linger=no
13411 echo "$as_me:$LINENO: checking struct linger is available" >&5
13412 echo $ECHO_N "checking struct linger is available... $ECHO_C" >&6
13413 if test "$cross_compiling" = yes; then
13414
13415 av_struct_linger=no
13416
13417 else
13418   cat >conftest.$ac_ext <<_ACEOF
13419 #line $LINENO "configure"
13420 /* confdefs.h.  */
13421 _ACEOF
13422 cat confdefs.h >>conftest.$ac_ext
13423 cat >>conftest.$ac_ext <<_ACEOF
13424 /* end confdefs.h.  */
13425
13426 #include <sys/types.h>
13427 #include <sys/socket.h>
13428
13429 struct linger li;
13430
13431 main ()
13432 {
13433     li.l_onoff = 1;
13434     li.l_linger = 120;
13435     exit (0);
13436 }
13437
13438 _ACEOF
13439 rm -f conftest$ac_exeext
13440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13441   (eval $ac_link) 2>&5
13442   ac_status=$?
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446   (eval $ac_try) 2>&5
13447   ac_status=$?
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); }; }; then
13450
13451 cat >>confdefs.h <<\_ACEOF
13452 #define HAVE_STRUCT_LINGER 1
13453 _ACEOF
13454
13455 av_struct_linger=yes
13456
13457 else
13458   echo "$as_me: program exited with status $ac_status" >&5
13459 echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13461
13462 ( exit $ac_status )
13463
13464 av_struct_linger=no
13465
13466 fi
13467 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13468 fi
13469 echo "$as_me:$LINENO: result: $av_struct_linger" >&5
13470 echo "${ECHO_T}$av_struct_linger" >&6
13471
13472 fi
13473
13474
13475
13476
13477 if false; then
13478   HAVE_CDDA_TRUE=
13479   HAVE_CDDA_FALSE='#'
13480 else
13481   HAVE_CDDA_TRUE='#'
13482   HAVE_CDDA_FALSE=
13483 fi
13484
13485
13486 for ac_header in cdda_interface.h cdda_paranoia.h
13487 do
13488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13490   echo "$as_me:$LINENO: checking for $ac_header" >&5
13491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13493   echo $ECHO_N "(cached) $ECHO_C" >&6
13494 fi
13495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13497 else
13498   # Is the header compilable?
13499 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13501 cat >conftest.$ac_ext <<_ACEOF
13502 #line $LINENO "configure"
13503 /* confdefs.h.  */
13504 _ACEOF
13505 cat confdefs.h >>conftest.$ac_ext
13506 cat >>conftest.$ac_ext <<_ACEOF
13507 /* end confdefs.h.  */
13508 $ac_includes_default
13509 #include <$ac_header>
13510 _ACEOF
13511 rm -f conftest.$ac_objext
13512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13513   (eval $ac_compile) 2>&5
13514   ac_status=$?
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); } &&
13517          { ac_try='test -s conftest.$ac_objext'
13518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519   (eval $ac_try) 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); }; }; then
13523   ac_header_compiler=yes
13524 else
13525   echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13527
13528 ac_header_compiler=no
13529 fi
13530 rm -f conftest.$ac_objext conftest.$ac_ext
13531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13532 echo "${ECHO_T}$ac_header_compiler" >&6
13533
13534 # Is the header present?
13535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13537 cat >conftest.$ac_ext <<_ACEOF
13538 #line $LINENO "configure"
13539 /* confdefs.h.  */
13540 _ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h.  */
13544 #include <$ac_header>
13545 _ACEOF
13546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13547   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13548   ac_status=$?
13549   grep -v '^ *+' conftest.er1 >conftest.err
13550   rm -f conftest.er1
13551   cat conftest.err >&5
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); } >/dev/null; then
13554   if test -s conftest.err; then
13555     ac_cpp_err=$ac_c_preproc_warn_flag
13556   else
13557     ac_cpp_err=
13558   fi
13559 else
13560   ac_cpp_err=yes
13561 fi
13562 if test -z "$ac_cpp_err"; then
13563   ac_header_preproc=yes
13564 else
13565   echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13567
13568   ac_header_preproc=no
13569 fi
13570 rm -f conftest.err conftest.$ac_ext
13571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13572 echo "${ECHO_T}$ac_header_preproc" >&6
13573
13574 # So?  What about this header?
13575 case $ac_header_compiler:$ac_header_preproc in
13576   yes:no )
13577     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13581     (
13582       cat <<\_ASBOX
13583 ## ------------------------------------ ##
13584 ## Report this to bug-autoconf@gnu.org. ##
13585 ## ------------------------------------ ##
13586 _ASBOX
13587     ) |
13588       sed "s/^/$as_me: WARNING:     /" >&2
13589     ;;
13590   no:yes )
13591     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13593     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13595     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13597     (
13598       cat <<\_ASBOX
13599 ## ------------------------------------ ##
13600 ## Report this to bug-autoconf@gnu.org. ##
13601 ## ------------------------------------ ##
13602 _ASBOX
13603     ) |
13604       sed "s/^/$as_me: WARNING:     /" >&2
13605     ;;
13606 esac
13607 echo "$as_me:$LINENO: checking for $ac_header" >&5
13608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13610   echo $ECHO_N "(cached) $ECHO_C" >&6
13611 else
13612   eval "$as_ac_Header=$ac_header_preproc"
13613 fi
13614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13616
13617 fi
13618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13619   cat >>confdefs.h <<_ACEOF
13620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13621 _ACEOF
13622
13623         CDDA_LIBS="$CDDA_LIBS -lcdda_paranoia, -lcdda_interface"
13624
13625
13626 if true; then
13627   HAVE_CDDA_TRUE=
13628   HAVE_CDDA_FALSE='#'
13629 else
13630   HAVE_CDDA_TRUE='#'
13631   HAVE_CDDA_FALSE=
13632 fi
13633
13634 fi
13635
13636 done
13637
13638
13639
13640 echo "$as_me:$LINENO: checking for Solaris platform" >&5
13641 echo $ECHO_N "checking for Solaris platform... $ECHO_C" >&6
13642 case "$host" in
13643         *solaris*) build_cdemenu_module=yes ;;
13644         *) build_cdemenu_module=no ;;
13645 esac
13646 echo "$as_me:$LINENO: result: $build_cdemenu_module" >&5
13647 echo "${ECHO_T}$build_cdemenu_module" >&6
13648
13649
13650 if test "$build_cdemenu_module" = "yes"; then
13651   BUILD_CDEMENU_MODULE_TRUE=
13652   BUILD_CDEMENU_MODULE_FALSE='#'
13653 else
13654   BUILD_CDEMENU_MODULE_TRUE='#'
13655   BUILD_CDEMENU_MODULE_FALSE=
13656 fi
13657
13658
13659 # Check whether --enable-openssl or --disable-openssl was given.
13660 if test "${enable_openssl+set}" = set; then
13661   enableval="$enable_openssl"
13662
13663 fi;
13664 if test "x$enable_openssl" != "xno"; then
13665
13666   succeeded=no
13667
13668   if test -z "$PKG_CONFIG"; then
13669     # Extract the first word of "pkg-config", so it can be a program name with args.
13670 set dummy pkg-config; ac_word=$2
13671 echo "$as_me:$LINENO: checking for $ac_word" >&5
13672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13673 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13674   echo $ECHO_N "(cached) $ECHO_C" >&6
13675 else
13676   case $PKG_CONFIG in
13677   [\\/]* | ?:[\\/]*)
13678   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13679   ;;
13680   *)
13681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13682 for as_dir in $PATH
13683 do
13684   IFS=$as_save_IFS
13685   test -z "$as_dir" && as_dir=.
13686   for ac_exec_ext in '' $ac_executable_extensions; do
13687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13688     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13690     break 2
13691   fi
13692 done
13693 done
13694
13695   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13696   ;;
13697 esac
13698 fi
13699 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13700
13701 if test -n "$PKG_CONFIG"; then
13702   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13703 echo "${ECHO_T}$PKG_CONFIG" >&6
13704 else
13705   echo "$as_me:$LINENO: result: no" >&5
13706 echo "${ECHO_T}no" >&6
13707 fi
13708
13709   fi
13710
13711   if test "$PKG_CONFIG" = "no" ; then
13712      echo "*** The pkg-config script could not be found. Make sure it is"
13713      echo "*** in your path, or set the PKG_CONFIG environment variable"
13714      echo "*** to the full path to pkg-config."
13715      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13716   else
13717      PKG_CONFIG_MIN_VERSION=0.9.0
13718      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13719         echo "$as_me:$LINENO: checking for openssl" >&5
13720 echo $ECHO_N "checking for openssl... $ECHO_C" >&6
13721
13722         if $PKG_CONFIG --exists "openssl" ; then
13723             echo "$as_me:$LINENO: result: yes" >&5
13724 echo "${ECHO_T}yes" >&6
13725             succeeded=yes
13726
13727             echo "$as_me:$LINENO: checking OPENSSL_CFLAGS" >&5
13728 echo $ECHO_N "checking OPENSSL_CFLAGS... $ECHO_C" >&6
13729             OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl"`
13730             echo "$as_me:$LINENO: result: $OPENSSL_CFLAGS" >&5
13731 echo "${ECHO_T}$OPENSSL_CFLAGS" >&6
13732
13733             echo "$as_me:$LINENO: checking OPENSSL_LIBS" >&5
13734 echo $ECHO_N "checking OPENSSL_LIBS... $ECHO_C" >&6
13735             OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl"`
13736             echo "$as_me:$LINENO: result: $OPENSSL_LIBS" >&5
13737 echo "${ECHO_T}$OPENSSL_LIBS" >&6
13738         else
13739             OPENSSL_CFLAGS=""
13740             OPENSSL_LIBS=""
13741             ## If we have a custom action on failure, don't print errors, but
13742             ## do set a variable so people can do so.
13743             OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl"`
13744
13745         fi
13746
13747
13748
13749      else
13750         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13751         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13752      fi
13753   fi
13754
13755   if test $succeeded = yes; then
13756
13757
13758 if true; then
13759   HAVE_SSL_TRUE=
13760   HAVE_SSL_FALSE='#'
13761 else
13762   HAVE_SSL_TRUE='#'
13763   HAVE_SSL_FALSE=
13764 fi
13765   else
13766
13767
13768 # Check whether --with-openssl-includes or --without-openssl-includes was given.
13769 if test "${with_openssl_includes+set}" = set; then
13770   withval="$with_openssl_includes"
13771   with_openssl_includes="$withval"
13772 else
13773   with_openssl_includes="/usr/include"
13774 fi;
13775   have_openssl_includes="no"
13776   if test "x${with_openssl_includes}" != "xno"; then
13777         CPPFLAGS_save="$CPPFLAGS"
13778
13779         echo "$as_me:$LINENO: checking for OpenSSL includes" >&5
13780 echo $ECHO_N "checking for OpenSSL includes... $ECHO_C" >&6
13781         echo "$as_me:$LINENO: result: \"\"" >&5
13782 echo "${ECHO_T}\"\"" >&6
13783
13784         CPPFLAGS="$CPPFLAGS -I$with_openssl_includes"
13785
13786
13787 for ac_header in openssl/ssl.h openssl/x509.h
13788 do
13789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13791   echo "$as_me:$LINENO: checking for $ac_header" >&5
13792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13794   echo $ECHO_N "(cached) $ECHO_C" >&6
13795 fi
13796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13798 else
13799   # Is the header compilable?
13800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13802 cat >conftest.$ac_ext <<_ACEOF
13803 #line $LINENO "configure"
13804 /* confdefs.h.  */
13805 _ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h.  */
13809 $ac_includes_default
13810 #include <$ac_header>
13811 _ACEOF
13812 rm -f conftest.$ac_objext
13813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13814   (eval $ac_compile) 2>&5
13815   ac_status=$?
13816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817   (exit $ac_status); } &&
13818          { ac_try='test -s conftest.$ac_objext'
13819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820   (eval $ac_try) 2>&5
13821   ac_status=$?
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   (exit $ac_status); }; }; then
13824   ac_header_compiler=yes
13825 else
13826   echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13828
13829 ac_header_compiler=no
13830 fi
13831 rm -f conftest.$ac_objext conftest.$ac_ext
13832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13833 echo "${ECHO_T}$ac_header_compiler" >&6
13834
13835 # Is the header present?
13836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13838 cat >conftest.$ac_ext <<_ACEOF
13839 #line $LINENO "configure"
13840 /* confdefs.h.  */
13841 _ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h.  */
13845 #include <$ac_header>
13846 _ACEOF
13847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13849   ac_status=$?
13850   grep -v '^ *+' conftest.er1 >conftest.err
13851   rm -f conftest.er1
13852   cat conftest.err >&5
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); } >/dev/null; then
13855   if test -s conftest.err; then
13856     ac_cpp_err=$ac_c_preproc_warn_flag
13857   else
13858     ac_cpp_err=
13859   fi
13860 else
13861   ac_cpp_err=yes
13862 fi
13863 if test -z "$ac_cpp_err"; then
13864   ac_header_preproc=yes
13865 else
13866   echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13868
13869   ac_header_preproc=no
13870 fi
13871 rm -f conftest.err conftest.$ac_ext
13872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13873 echo "${ECHO_T}$ac_header_preproc" >&6
13874
13875 # So?  What about this header?
13876 case $ac_header_compiler:$ac_header_preproc in
13877   yes:no )
13878     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13882     (
13883       cat <<\_ASBOX
13884 ## ------------------------------------ ##
13885 ## Report this to bug-autoconf@gnu.org. ##
13886 ## ------------------------------------ ##
13887 _ASBOX
13888     ) |
13889       sed "s/^/$as_me: WARNING:     /" >&2
13890     ;;
13891   no:yes )
13892     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13894     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13898     (
13899       cat <<\_ASBOX
13900 ## ------------------------------------ ##
13901 ## Report this to bug-autoconf@gnu.org. ##
13902 ## ------------------------------------ ##
13903 _ASBOX
13904     ) |
13905       sed "s/^/$as_me: WARNING:     /" >&2
13906     ;;
13907 esac
13908 echo "$as_me:$LINENO: checking for $ac_header" >&5
13909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13911   echo $ECHO_N "(cached) $ECHO_C" >&6
13912 else
13913   eval "$as_ac_Header=$ac_header_preproc"
13914 fi
13915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13917
13918 fi
13919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13920   cat >>confdefs.h <<_ACEOF
13921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13922 _ACEOF
13923   openssl_includes="yes"
13924 fi
13925
13926 done
13927
13928         CPPFLAGS="$CPPFLAGS_save"
13929
13930         if test "x{$openssl_includes}" != "xno" -a "x{$openssl_includes}" != "x"; then
13931                 have_openssl_includes="yes"
13932                 if test "${with_openssl_includes}" != "/usr/include" ; then
13933                         OPENSSL_CFLAGS="-I$with_openssl_includes"
13934                 else
13935                         OPENSSL_CFLAGS=""
13936                 fi
13937         else
13938                 OPENSSL_CFLAGS=""
13939         fi
13940   else
13941         echo "$as_me:$LINENO: checking for OpenSSL includes" >&5
13942 echo $ECHO_N "checking for OpenSSL includes... $ECHO_C" >&6
13943         echo "$as_me:$LINENO: result: no" >&5
13944 echo "${ECHO_T}no" >&6
13945   fi
13946
13947
13948 # Check whether --with-openssl-libs or --without-openssl-libs was given.
13949 if test "${with_openssl_libs+set}" = set; then
13950   withval="$with_openssl_libs"
13951   with_openssl_libs="$withval"
13952 else
13953   with_openssl_libs="/usr/lib"
13954 fi;
13955   msg_openssl="no"
13956   if test "x${with_openssl_libs}" != "xno" -a "x${have_openssl_includes}" != "xno"; then
13957         LDFLAGS_save="$LDFLAGS"
13958
13959         echo "$as_me:$LINENO: checking for OpenSSL libraries" >&5
13960 echo $ECHO_N "checking for OpenSSL libraries... $ECHO_C" >&6
13961 if test "${openssl_libs+set}" = set; then
13962   echo $ECHO_N "(cached) $ECHO_C" >&6
13963 else
13964
13965                 LDFLAGS="$LDFLAGS -L$with_openssl_libs -lssl -lcrypto -ldl"
13966                 cat >conftest.$ac_ext <<_ACEOF
13967 #line $LINENO "configure"
13968 /* confdefs.h.  */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h.  */
13973
13974 /* Override any gcc2 internal prototype to avoid an error.  */
13975 #ifdef __cplusplus
13976 extern "C"
13977 #endif
13978 /* We use char because int might match the return type of a gcc2
13979    builtin and then its argument prototype would still apply.  */
13980 char SSL_read ();
13981 int
13982 main ()
13983 {
13984 SSL_read ();
13985   ;
13986   return 0;
13987 }
13988 _ACEOF
13989 rm -f conftest.$ac_objext conftest$ac_exeext
13990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13991   (eval $ac_link) 2>&5
13992   ac_status=$?
13993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994   (exit $ac_status); } &&
13995          { ac_try='test -s conftest$ac_exeext'
13996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997   (eval $ac_try) 2>&5
13998   ac_status=$?
13999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000   (exit $ac_status); }; }; then
14001   openssl_libs="yes"
14002 else
14003   echo "$as_me: failed program was:" >&5
14004 sed 's/^/| /' conftest.$ac_ext >&5
14005
14006 openssl_libs="no"
14007 fi
14008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14009                 LDFLAGS="$LDFLAGS_save"
14010
14011 fi
14012 echo "$as_me:$LINENO: result: $openssl_libs" >&5
14013 echo "${ECHO_T}$openssl_libs" >&6
14014         if test "x${openssl_libs}" != "xno"; then
14015                 cat >>confdefs.h <<\_ACEOF
14016 #define HAVE_OPENSSL 1
14017 _ACEOF
14018
14019                 msg_openssl="yes"
14020                 if test x$with_openssl_libs != x/usr/lib; then
14021                         OPENSSL_LIBS="-L$with_openssl_libs -lssl -lcrypto"
14022                 else
14023                         OPENSSL_LIBS="-lssl -lcrypto"
14024                 fi
14025
14026
14027 if true; then
14028   HAVE_SSL_TRUE=
14029   HAVE_SSL_FALSE='#'
14030 else
14031   HAVE_SSL_TRUE='#'
14032   HAVE_SSL_FALSE=
14033 fi
14034         else
14035                 OPENSSL_CFLAGS=""
14036                 OPENSSL_LIBS=""
14037
14038
14039 if false; then
14040   HAVE_SSL_TRUE=
14041   HAVE_SSL_FALSE='#'
14042 else
14043   HAVE_SSL_TRUE='#'
14044   HAVE_SSL_FALSE=
14045 fi
14046         fi
14047   else
14048         echo "$as_me:$LINENO: checking for OpenSSL libraries" >&5
14049 echo $ECHO_N "checking for OpenSSL libraries... $ECHO_C" >&6
14050         echo "$as_me:$LINENO: result: no" >&5
14051 echo "${ECHO_T}no" >&6
14052   fi
14053
14054   fi
14055
14056   fi
14057
14058
14059
14060 # Check whether --enable-gnutls or --disable-gnutls was given.
14061 if test "${enable_gnutls+set}" = set; then
14062   enableval="$enable_gnutls"
14063
14064 fi;
14065 if test "x$enable_gnutls" = "xyes"; then
14066   if test "x${OPENSSL_LIBS}" != "x"; then
14067     { { echo "$as_me:$LINENO: error: *** Can't use both openssl and gnutls at the same time. Please pick one only. ***" >&5
14068 echo "$as_me: error: *** Can't use both openssl and gnutls at the same time. Please pick one only. ***" >&2;}
14069    { (exit 1); exit 1; }; }
14070   else
14071
14072 # Check whether --with-libgnutls-prefix or --without-libgnutls-prefix was given.
14073 if test "${with_libgnutls_prefix+set}" = set; then
14074   withval="$with_libgnutls_prefix"
14075   libgnutls_config_prefix="$withval"
14076 else
14077   libgnutls_config_prefix=""
14078 fi;
14079
14080   if test x$libgnutls_config_prefix != x ; then
14081      libgnutls_config_args="$libgnutls_config_args --prefix=$libgnutls_config_prefix"
14082      if test x${LIBGNUTLS_CONFIG+set} != xset ; then
14083         LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
14084      fi
14085   fi
14086
14087   # Extract the first word of "libgnutls-config", so it can be a program name with args.
14088 set dummy libgnutls-config; ac_word=$2
14089 echo "$as_me:$LINENO: checking for $ac_word" >&5
14090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14091 if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
14092   echo $ECHO_N "(cached) $ECHO_C" >&6
14093 else
14094   case $LIBGNUTLS_CONFIG in
14095   [\\/]* | ?:[\\/]*)
14096   ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
14097   ;;
14098   *)
14099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14100 for as_dir in $PATH
14101 do
14102   IFS=$as_save_IFS
14103   test -z "$as_dir" && as_dir=.
14104   for ac_exec_ext in '' $ac_executable_extensions; do
14105   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14106     ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14108     break 2
14109   fi
14110 done
14111 done
14112
14113   test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
14114   ;;
14115 esac
14116 fi
14117 LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
14118
14119 if test -n "$LIBGNUTLS_CONFIG"; then
14120   echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
14121 echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
14122 else
14123   echo "$as_me:$LINENO: result: no" >&5
14124 echo "${ECHO_T}no" >&6
14125 fi
14126
14127   min_libgnutls_version=0.5.1
14128   echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
14129 echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
14130   no_libgnutls=""
14131   if test "$LIBGNUTLS_CONFIG" = "no" ; then
14132     no_libgnutls=yes
14133   else
14134     LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
14135     LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
14136     libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
14137
14138
14139       ac_save_CFLAGS="$CFLAGS"
14140       ac_save_LIBS="$LIBS"
14141       CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
14142       LIBS="$LIBS $LIBGNUTLS_LIBS"
14143       rm -f conf.libgnutlstest
14144       if test "$cross_compiling" = yes; then
14145   echo $ac_n "cross compiling; assumed OK... $ac_c"
14146 else
14147   cat >conftest.$ac_ext <<_ACEOF
14148 #line $LINENO "configure"
14149 /* confdefs.h.  */
14150 _ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h.  */
14154
14155 #include <stdio.h>
14156 #include <stdlib.h>
14157 #include <string.h>
14158 #include <gnutls/gnutls.h>
14159
14160 int
14161 main ()
14162 {
14163     system ("touch conf.libgnutlstest");
14164
14165     if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
14166     {
14167       printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
14168              "$libgnutls_config_version", gnutls_check_version(NULL) );
14169       printf("*** was found! If libgnutls-config was correct, then it is best\n");
14170       printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
14171       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
14172       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
14173       printf("*** required on your system.\n");
14174       printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
14175       printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
14176       printf("*** before re-running configure\n");
14177     }
14178     else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
14179     {
14180       printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
14181       printf("*** library (version %s)\n", gnutls_check_version(NULL) );
14182     }
14183     else
14184     {
14185       if ( gnutls_check_version( "$min_libgnutls_version" ) )
14186       {
14187         return 0;
14188       }
14189      else
14190       {
14191         printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
14192                 gnutls_check_version(NULL) );
14193         printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
14194                "$min_libgnutls_version" );
14195         printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
14196         printf("*** \n");
14197         printf("*** If you have already installed a sufficiently new version, this error\n");
14198         printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
14199         printf("*** being found. The easiest way to fix this is to remove the old version\n");
14200         printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
14201         printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
14202         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
14203         printf("*** so that the correct libraries are found at run-time))\n");
14204       }
14205     }
14206   return 1;
14207 }
14208
14209 _ACEOF
14210 rm -f conftest$ac_exeext
14211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14212   (eval $ac_link) 2>&5
14213   ac_status=$?
14214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217   (eval $ac_try) 2>&5
14218   ac_status=$?
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); }; }; then
14221   :
14222 else
14223   echo "$as_me: program exited with status $ac_status" >&5
14224 echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.$ac_ext >&5
14226
14227 ( exit $ac_status )
14228 no_libgnutls=yes
14229 fi
14230 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14231 fi
14232        CFLAGS="$ac_save_CFLAGS"
14233        LIBS="$ac_save_LIBS"
14234   fi
14235
14236   if test "x$no_libgnutls" = x ; then
14237      echo "$as_me:$LINENO: result: yes" >&5
14238 echo "${ECHO_T}yes" >&6
14239      cat >>confdefs.h <<\_ACEOF
14240 #define HAVE_GNUTLS 1
14241 _ACEOF
14242
14243   else
14244      if test -f conf.libgnutlstest ; then
14245         :
14246      else
14247         echo "$as_me:$LINENO: result: no" >&5
14248 echo "${ECHO_T}no" >&6
14249      fi
14250      if test "$LIBGNUTLS_CONFIG" = "no" ; then
14251        echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
14252        echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
14253        echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
14254        echo "*** full path to libgnutls-config."
14255      else
14256        if test -f conf.libgnutlstest ; then
14257         :
14258        else
14259           echo "*** Could not run libgnutls test program, checking why..."
14260           CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
14261           LIBS="$LIBS $LIBGNUTLS_LIBS"
14262           cat >conftest.$ac_ext <<_ACEOF
14263 #line $LINENO "configure"
14264 /* confdefs.h.  */
14265 _ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h.  */
14269
14270 #include <stdio.h>
14271 #include <stdlib.h>
14272 #include <string.h>
14273 #include <gnutls/gnutls.h>
14274
14275 int
14276 main ()
14277 {
14278  return !!gnutls_check_version(NULL);
14279   ;
14280   return 0;
14281 }
14282 _ACEOF
14283 rm -f conftest.$ac_objext conftest$ac_exeext
14284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14285   (eval $ac_link) 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); } &&
14289          { ac_try='test -s conftest$ac_exeext'
14290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291   (eval $ac_try) 2>&5
14292   ac_status=$?
14293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); }; }; then
14295    echo "*** The test program compiled, but did not run. This usually means"
14296           echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
14297           echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
14298           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14299           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14300           echo "*** is required on your system"
14301           echo "***"
14302           echo "*** If you have an old version installed, it is best to remove it, although"
14303           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14304           echo "***"
14305 else
14306   echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14308
14309  echo "*** The test program failed to compile or link. See the file config.log for the"
14310           echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
14311           echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
14312           echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
14313 fi
14314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14315           CFLAGS="$ac_save_CFLAGS"
14316           LIBS="$ac_save_LIBS"
14317        fi
14318      fi
14319      LIBGNUTLS_CFLAGS=""
14320      LIBGNUTLS_LIBS=""
14321      { { echo "$as_me:$LINENO: error: Unable to find GNUTLS" >&5
14322 echo "$as_me: error: Unable to find GNUTLS" >&2;}
14323    { (exit 1); exit 1; }; }
14324   fi
14325   rm -f conf.libgnutlstest
14326
14327
14328
14329   fi
14330 fi
14331
14332
14333   succeeded=no
14334
14335   if test -z "$PKG_CONFIG"; then
14336     # Extract the first word of "pkg-config", so it can be a program name with args.
14337 set dummy pkg-config; ac_word=$2
14338 echo "$as_me:$LINENO: checking for $ac_word" >&5
14339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14340 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14341   echo $ECHO_N "(cached) $ECHO_C" >&6
14342 else
14343   case $PKG_CONFIG in
14344   [\\/]* | ?:[\\/]*)
14345   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14346   ;;
14347   *)
14348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349 for as_dir in $PATH
14350 do
14351   IFS=$as_save_IFS
14352   test -z "$as_dir" && as_dir=.
14353   for ac_exec_ext in '' $ac_executable_extensions; do
14354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14355     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14357     break 2
14358   fi
14359 done
14360 done
14361
14362   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14363   ;;
14364 esac
14365 fi
14366 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14367
14368 if test -n "$PKG_CONFIG"; then
14369   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14370 echo "${ECHO_T}$PKG_CONFIG" >&6
14371 else
14372   echo "$as_me:$LINENO: result: no" >&5
14373 echo "${ECHO_T}no" >&6
14374 fi
14375
14376   fi
14377
14378   if test "$PKG_CONFIG" = "no" ; then
14379      echo "*** The pkg-config script could not be found. Make sure it is"
14380      echo "*** in your path, or set the PKG_CONFIG environment variable"
14381      echo "*** to the full path to pkg-config."
14382      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14383   else
14384      PKG_CONFIG_MIN_VERSION=0.9.0
14385      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14386         echo "$as_me:$LINENO: checking for glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gconf-2.0 >= $GCONF_REQUIRED bonobo-activation-2.0 >= $BONOBO_ACTIVATION_REQUIRED ORBit-2.0 >= $ORBIT_REQUIRED libxml-2.0 >= $XML_REQUIRED gnome-mime-data-2.0" >&5
14387 echo $ECHO_N "checking for glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gconf-2.0 >= $GCONF_REQUIRED bonobo-activation-2.0 >= $BONOBO_ACTIVATION_REQUIRED ORBit-2.0 >= $ORBIT_REQUIRED libxml-2.0 >= $XML_REQUIRED gnome-mime-data-2.0... $ECHO_C" >&6
14388
14389         if $PKG_CONFIG --exists "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gconf-2.0 >= $GCONF_REQUIRED bonobo-activation-2.0 >= $BONOBO_ACTIVATION_REQUIRED ORBit-2.0 >= $ORBIT_REQUIRED libxml-2.0 >= $XML_REQUIRED gnome-mime-data-2.0" ; then
14390             echo "$as_me:$LINENO: result: yes" >&5
14391 echo "${ECHO_T}yes" >&6
14392             succeeded=yes
14393
14394             echo "$as_me:$LINENO: checking LIBGNOMEVFS_CFLAGS" >&5
14395 echo $ECHO_N "checking LIBGNOMEVFS_CFLAGS... $ECHO_C" >&6
14396             LIBGNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gconf-2.0 >= $GCONF_REQUIRED bonobo-activation-2.0 >= $BONOBO_ACTIVATION_REQUIRED ORBit-2.0 >= $ORBIT_REQUIRED libxml-2.0 >= $XML_REQUIRED gnome-mime-data-2.0"`
14397             echo "$as_me:$LINENO: result: $LIBGNOMEVFS_CFLAGS" >&5
14398 echo "${ECHO_T}$LIBGNOMEVFS_CFLAGS" >&6
14399
14400             echo "$as_me:$LINENO: checking LIBGNOMEVFS_LIBS" >&5
14401 echo $ECHO_N "checking LIBGNOMEVFS_LIBS... $ECHO_C" >&6
14402             LIBGNOMEVFS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gconf-2.0 >= $GCONF_REQUIRED bonobo-activation-2.0 >= $BONOBO_ACTIVATION_REQUIRED ORBit-2.0 >= $ORBIT_REQUIRED libxml-2.0 >= $XML_REQUIRED gnome-mime-data-2.0"`
14403             echo "$as_me:$LINENO: result: $LIBGNOMEVFS_LIBS" >&5
14404 echo "${ECHO_T}$LIBGNOMEVFS_LIBS" >&6
14405         else
14406             LIBGNOMEVFS_CFLAGS=""
14407             LIBGNOMEVFS_LIBS=""
14408             ## If we have a custom action on failure, don't print errors, but
14409             ## do set a variable so people can do so.
14410             LIBGNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gconf-2.0 >= $GCONF_REQUIRED bonobo-activation-2.0 >= $BONOBO_ACTIVATION_REQUIRED ORBit-2.0 >= $ORBIT_REQUIRED libxml-2.0 >= $XML_REQUIRED gnome-mime-data-2.0"`
14411             echo $LIBGNOMEVFS_PKG_ERRORS
14412         fi
14413
14414
14415
14416      else
14417         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14418         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14419      fi
14420   fi
14421
14422   if test $succeeded = yes; then
14423      :
14424   else
14425      { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gconf-2.0 >= $GCONF_REQUIRED bonobo-activation-2.0 >= $BONOBO_ACTIVATION_REQUIRED ORBit-2.0 >= $ORBIT_REQUIRED libxml-2.0 >= $XML_REQUIRED gnome-mime-data-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
14426 echo "$as_me: error: Library requirements (glib-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gconf-2.0 >= $GCONF_REQUIRED bonobo-activation-2.0 >= $BONOBO_ACTIVATION_REQUIRED ORBit-2.0 >= $ORBIT_REQUIRED libxml-2.0 >= $XML_REQUIRED gnome-mime-data-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
14427    { (exit 1); exit 1; }; }
14428   fi
14429
14430 LIBGNOMEVFS_CFLAGS="$LIBGNOMEVFS_CFLAGS $OPENSSL_CFLAGS $LIBGNUTLS_CFLAGS"
14431 LIBGNOMEVFS_LIBS="$LIBGNOMEVFS_LIBS $OPENSSL_LIBS $LIBGNUTLS_LIBS"
14432
14433
14434
14435
14436
14437 FAM_MISSING_WARNING="Gnome-vfs depends on FAM to provide notification when files are altered (either through filesystem polling, or a kernel notification mechanism). If Gnome-vfs is built without FAM support, directories viewed with Nautilus or other applications will not remain in synch with the actual filesystem when they are altered by external processes. Particularly if you are a distributor please compile Nautilus with FAM support. FAM is available from http://oss.sgi.com/projects/fam/. A patch to add Linux Kernel 2.4 directory notify support to FAM (highly desirable) is available from http://people.redhat.com/alexl/files/"
14438 FAM_LIBS=
14439 echo "$as_me:$LINENO: checking for FAMOpen in -lfam" >&5
14440 echo $ECHO_N "checking for FAMOpen in -lfam... $ECHO_C" >&6
14441 if test "${ac_cv_lib_fam_FAMOpen+set}" = set; then
14442   echo $ECHO_N "(cached) $ECHO_C" >&6
14443 else
14444   ac_check_lib_save_LIBS=$LIBS
14445 LIBS="-lfam  $LIBS"
14446 cat >conftest.$ac_ext <<_ACEOF
14447 #line $LINENO "configure"
14448 /* confdefs.h.  */
14449 _ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h.  */
14453
14454 /* Override any gcc2 internal prototype to avoid an error.  */
14455 #ifdef __cplusplus
14456 extern "C"
14457 #endif
14458 /* We use char because int might match the return type of a gcc2
14459    builtin and then its argument prototype would still apply.  */
14460 char FAMOpen ();
14461 int
14462 main ()
14463 {
14464 FAMOpen ();
14465   ;
14466   return 0;
14467 }
14468 _ACEOF
14469 rm -f conftest.$ac_objext conftest$ac_exeext
14470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14471   (eval $ac_link) 2>&5
14472   ac_status=$?
14473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); } &&
14475          { ac_try='test -s conftest$ac_exeext'
14476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477   (eval $ac_try) 2>&5
14478   ac_status=$?
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); }; }; then
14481   ac_cv_lib_fam_FAMOpen=yes
14482 else
14483   echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14485
14486 ac_cv_lib_fam_FAMOpen=no
14487 fi
14488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14489 LIBS=$ac_check_lib_save_LIBS
14490 fi
14491 echo "$as_me:$LINENO: result: $ac_cv_lib_fam_FAMOpen" >&5
14492 echo "${ECHO_T}$ac_cv_lib_fam_FAMOpen" >&6
14493 if test $ac_cv_lib_fam_FAMOpen = yes; then
14494
14495 for ac_header in fam.h
14496 do
14497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14499   echo "$as_me:$LINENO: checking for $ac_header" >&5
14500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14502   echo $ECHO_N "(cached) $ECHO_C" >&6
14503 fi
14504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14506 else
14507   # Is the header compilable?
14508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14510 cat >conftest.$ac_ext <<_ACEOF
14511 #line $LINENO "configure"
14512 /* confdefs.h.  */
14513 _ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h.  */
14517 $ac_includes_default
14518 #include <$ac_header>
14519 _ACEOF
14520 rm -f conftest.$ac_objext
14521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14522   (eval $ac_compile) 2>&5
14523   ac_status=$?
14524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525   (exit $ac_status); } &&
14526          { ac_try='test -s conftest.$ac_objext'
14527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528   (eval $ac_try) 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); }; }; then
14532   ac_header_compiler=yes
14533 else
14534   echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14536
14537 ac_header_compiler=no
14538 fi
14539 rm -f conftest.$ac_objext conftest.$ac_ext
14540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14541 echo "${ECHO_T}$ac_header_compiler" >&6
14542
14543 # Is the header present?
14544 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14546 cat >conftest.$ac_ext <<_ACEOF
14547 #line $LINENO "configure"
14548 /* confdefs.h.  */
14549 _ACEOF
14550 cat confdefs.h >>conftest.$ac_ext
14551 cat >>conftest.$ac_ext <<_ACEOF
14552 /* end confdefs.h.  */
14553 #include <$ac_header>
14554 _ACEOF
14555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14556   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14557   ac_status=$?
14558   grep -v '^ *+' conftest.er1 >conftest.err
14559   rm -f conftest.er1
14560   cat conftest.err >&5
14561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562   (exit $ac_status); } >/dev/null; then
14563   if test -s conftest.err; then
14564     ac_cpp_err=$ac_c_preproc_warn_flag
14565   else
14566     ac_cpp_err=
14567   fi
14568 else
14569   ac_cpp_err=yes
14570 fi
14571 if test -z "$ac_cpp_err"; then
14572   ac_header_preproc=yes
14573 else
14574   echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14576
14577   ac_header_preproc=no
14578 fi
14579 rm -f conftest.err conftest.$ac_ext
14580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14581 echo "${ECHO_T}$ac_header_preproc" >&6
14582
14583 # So?  What about this header?
14584 case $ac_header_compiler:$ac_header_preproc in
14585   yes:no )
14586     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14588     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14590     (
14591       cat <<\_ASBOX
14592 ## ------------------------------------ ##
14593 ## Report this to bug-autoconf@gnu.org. ##
14594 ## ------------------------------------ ##
14595 _ASBOX
14596     ) |
14597       sed "s/^/$as_me: WARNING:     /" >&2
14598     ;;
14599   no:yes )
14600     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14602     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14606     (
14607       cat <<\_ASBOX
14608 ## ------------------------------------ ##
14609 ## Report this to bug-autoconf@gnu.org. ##
14610 ## ------------------------------------ ##
14611 _ASBOX
14612     ) |
14613       sed "s/^/$as_me: WARNING:     /" >&2
14614     ;;
14615 esac
14616 echo "$as_me:$LINENO: checking for $ac_header" >&5
14617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14619   echo $ECHO_N "(cached) $ECHO_C" >&6
14620 else
14621   eval "$as_ac_Header=$ac_header_preproc"
14622 fi
14623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14625
14626 fi
14627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14628   cat >>confdefs.h <<_ACEOF
14629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14630 _ACEOF
14631  cat >>confdefs.h <<\_ACEOF
14632 #define HAVE_FAM 1
14633 _ACEOF
14634
14635      FAM_LIBS="-lfam"
14636 else
14637   { echo "$as_me:$LINENO: WARNING: *** FAM support will not be built (header files not found) $FAM_MISSING_WARNING ***" >&5
14638 echo "$as_me: WARNING: *** FAM support will not be built (header files not found) $FAM_MISSING_WARNING ***" >&2;}
14639 fi
14640
14641 done
14642
14643 else
14644   { echo "$as_me:$LINENO: WARNING: *** FAM support will not be built (FAM library not found) $FAM_MISSING_WARNING ***" >&5
14645 echo "$as_me: WARNING: *** FAM support will not be built (FAM library not found) $FAM_MISSING_WARNING ***" >&2;}
14646 fi
14647
14648
14649
14650
14651
14652
14653
14654
14655 # Check whether --with-html-dir or --without-html-dir was given.
14656 if test "${with_html_dir+set}" = set; then
14657   withval="$with_html_dir"
14658
14659 fi;
14660
14661 if test "x$with_html_dir" = "x" ; then
14662   HTML_DIR='${datadir}/gtk-doc/html'
14663 else
14664   HTML_DIR=$with_html_dir
14665 fi
14666
14667
14668
14669 # Extract the first word of "gtkdoc-mkdb", so it can be a program name with args.
14670 set dummy gtkdoc-mkdb; ac_word=$2
14671 echo "$as_me:$LINENO: checking for $ac_word" >&5
14672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14673 if test "${ac_cv_prog_GTKDOC+set}" = set; then
14674   echo $ECHO_N "(cached) $ECHO_C" >&6
14675 else
14676   if test -n "$GTKDOC"; then
14677   ac_cv_prog_GTKDOC="$GTKDOC" # Let the user override the test.
14678 else
14679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14680 for as_dir in $PATH
14681 do
14682   IFS=$as_save_IFS
14683   test -z "$as_dir" && as_dir=.
14684   for ac_exec_ext in '' $ac_executable_extensions; do
14685   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14686     ac_cv_prog_GTKDOC="true"
14687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14688     break 2
14689   fi
14690 done
14691 done
14692
14693   test -z "$ac_cv_prog_GTKDOC" && ac_cv_prog_GTKDOC="false"
14694 fi
14695 fi
14696 GTKDOC=$ac_cv_prog_GTKDOC
14697 if test -n "$GTKDOC"; then
14698   echo "$as_me:$LINENO: result: $GTKDOC" >&5
14699 echo "${ECHO_T}$GTKDOC" >&6
14700 else
14701   echo "$as_me:$LINENO: result: no" >&5
14702 echo "${ECHO_T}no" >&6
14703 fi
14704
14705
14706 gtk_doc_min_version=0.10
14707 if $GTKDOC ; then
14708     gtk_doc_version=`gtkdoc-mkdb --version`
14709     echo "$as_me:$LINENO: checking gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version" >&5
14710 echo $ECHO_N "checking gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version... $ECHO_C" >&6
14711
14712     IFS="${IFS=         }"; gnome_vfs_save_IFS="$IFS"; IFS="."
14713     set $gtk_doc_version
14714     for min in $gtk_doc_min_version ; do
14715         cur=$1; shift
14716         if test -z $min ; then break; fi
14717         if test -z $cur ; then GTKDOC=false; break; fi
14718         if test $cur -gt $min ; then break ; fi
14719         if test $cur -lt $min ; then GTKDOC=false; break ; fi
14720     done
14721     IFS="$gnome_vfs_save_IFS"
14722
14723     if $GTKDOC ; then
14724       echo "$as_me:$LINENO: result: yes" >&5
14725 echo "${ECHO_T}yes" >&6
14726     else
14727       echo "$as_me:$LINENO: result: no" >&5
14728 echo "${ECHO_T}no" >&6
14729     fi
14730 fi
14731
14732 # Extract the first word of "db2html", so it can be a program name with args.
14733 set dummy db2html; ac_word=$2
14734 echo "$as_me:$LINENO: checking for $ac_word" >&5
14735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14736 if test "${ac_cv_prog_DB2HTML+set}" = set; then
14737   echo $ECHO_N "(cached) $ECHO_C" >&6
14738 else
14739   if test -n "$DB2HTML"; then
14740   ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
14741 else
14742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14743 for as_dir in $PATH
14744 do
14745   IFS=$as_save_IFS
14746   test -z "$as_dir" && as_dir=.
14747   for ac_exec_ext in '' $ac_executable_extensions; do
14748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14749     ac_cv_prog_DB2HTML="true"
14750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14751     break 2
14752   fi
14753 done
14754 done
14755
14756   test -z "$ac_cv_prog_DB2HTML" && ac_cv_prog_DB2HTML="false"
14757 fi
14758 fi
14759 DB2HTML=$ac_cv_prog_DB2HTML
14760 if test -n "$DB2HTML"; then
14761   echo "$as_me:$LINENO: result: $DB2HTML" >&5
14762 echo "${ECHO_T}$DB2HTML" >&6
14763 else
14764   echo "$as_me:$LINENO: result: no" >&5
14765 echo "${ECHO_T}no" >&6
14766 fi
14767
14768
14769
14770 if $DB2HTML; then
14771   HAVE_DOCBOOK_TRUE=
14772   HAVE_DOCBOOK_FALSE='#'
14773 else
14774   HAVE_DOCBOOK_TRUE='#'
14775   HAVE_DOCBOOK_FALSE=
14776 fi
14777
14778
14779
14780 if $GTKDOC; then
14781   HAVE_GTK_DOC_TRUE=
14782   HAVE_GTK_DOC_FALSE='#'
14783 else
14784   HAVE_GTK_DOC_TRUE='#'
14785   HAVE_GTK_DOC_FALSE=
14786 fi
14787
14788
14789 # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
14790 if test "${enable_gtk_doc+set}" = set; then
14791   enableval="$enable_gtk_doc"
14792   enable_gtk_doc="$enableval"
14793 else
14794   enable_gtk_doc=auto
14795 fi;
14796
14797 if test "x$enable_gtk_doc" = xauto ; then
14798   if test "x$GTKDOC" = xtrue ; then
14799     enable_gtk_doc=yes
14800   else
14801     enable_gtk_doc=no
14802   fi
14803 fi
14804
14805
14806
14807 if test x$enable_gtk_doc = xyes; then
14808   ENABLE_GTK_DOC_TRUE=
14809   ENABLE_GTK_DOC_FALSE='#'
14810 else
14811   ENABLE_GTK_DOC_TRUE='#'
14812   ENABLE_GTK_DOC_FALSE=
14813 fi
14814
14815
14816
14817
14818
14819 # Check whether --with-afs or --without-afs was given.
14820 if test "${with_afs+set}" = set; then
14821   withval="$with_afs"
14822     cat >>confdefs.h <<\_ACEOF
14823 #define AFS 1
14824 _ACEOF
14825
14826   CPPFLAGS="$CPPFLAGS -I/usr/afsws/include"
14827   LIBS="$LIBS -L/usr/afsws/lib -L/usr/afsws/lib/afs -lsys -lrx -llwp"
14828 fi;
14829
14830 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
14831 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
14832 fstype=no
14833 # The order of these tests is important.
14834 cat >conftest.$ac_ext <<_ACEOF
14835 #line $LINENO "configure"
14836 /* confdefs.h.  */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h.  */
14841 #include <sys/statvfs.h>
14842 #include <sys/fstyp.h>
14843 _ACEOF
14844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14845   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14846   ac_status=$?
14847   grep -v '^ *+' conftest.er1 >conftest.err
14848   rm -f conftest.er1
14849   cat conftest.err >&5
14850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851   (exit $ac_status); } >/dev/null; then
14852   if test -s conftest.err; then
14853     ac_cpp_err=$ac_c_preproc_warn_flag
14854   else
14855     ac_cpp_err=
14856   fi
14857 else
14858   ac_cpp_err=yes
14859 fi
14860 if test -z "$ac_cpp_err"; then
14861   cat >>confdefs.h <<\_ACEOF
14862 #define FSTYPE_STATVFS 1
14863 _ACEOF
14864  fstype=SVR4
14865 else
14866   echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14868
14869
14870 fi
14871 rm -f conftest.err conftest.$ac_ext
14872 if test $fstype = no; then
14873 cat >conftest.$ac_ext <<_ACEOF
14874 #line $LINENO "configure"
14875 /* confdefs.h.  */
14876 _ACEOF
14877 cat confdefs.h >>conftest.$ac_ext
14878 cat >>conftest.$ac_ext <<_ACEOF
14879 /* end confdefs.h.  */
14880 #include <sys/statfs.h>
14881 #include <sys/fstyp.h>
14882 _ACEOF
14883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14884   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14885   ac_status=$?
14886   grep -v '^ *+' conftest.er1 >conftest.err
14887   rm -f conftest.er1
14888   cat conftest.err >&5
14889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890   (exit $ac_status); } >/dev/null; then
14891   if test -s conftest.err; then
14892     ac_cpp_err=$ac_c_preproc_warn_flag
14893   else
14894     ac_cpp_err=
14895   fi
14896 else
14897   ac_cpp_err=yes
14898 fi
14899 if test -z "$ac_cpp_err"; then
14900   cat >>confdefs.h <<\_ACEOF
14901 #define FSTYPE_USG_STATFS 1
14902 _ACEOF
14903  fstype=SVR3
14904 else
14905   echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14907
14908
14909 fi
14910 rm -f conftest.err conftest.$ac_ext
14911 fi
14912 if test $fstype = no; then
14913 cat >conftest.$ac_ext <<_ACEOF
14914 #line $LINENO "configure"
14915 /* confdefs.h.  */
14916 _ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h.  */
14920 #include <sys/statfs.h>
14921 #include <sys/vmount.h>
14922 _ACEOF
14923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14924   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14925   ac_status=$?
14926   grep -v '^ *+' conftest.er1 >conftest.err
14927   rm -f conftest.er1
14928   cat conftest.err >&5
14929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930   (exit $ac_status); } >/dev/null; then
14931   if test -s conftest.err; then
14932     ac_cpp_err=$ac_c_preproc_warn_flag
14933   else
14934     ac_cpp_err=
14935   fi
14936 else
14937   ac_cpp_err=yes
14938 fi
14939 if test -z "$ac_cpp_err"; then
14940   cat >>confdefs.h <<\_ACEOF
14941 #define FSTYPE_AIX_STATFS 1
14942 _ACEOF
14943  fstype=AIX
14944 else
14945   echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14947
14948
14949 fi
14950 rm -f conftest.err conftest.$ac_ext
14951 fi
14952 if test $fstype = no; then
14953 cat >conftest.$ac_ext <<_ACEOF
14954 #line $LINENO "configure"
14955 /* confdefs.h.  */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h.  */
14960 #include <mntent.h>
14961 _ACEOF
14962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14964   ac_status=$?
14965   grep -v '^ *+' conftest.er1 >conftest.err
14966   rm -f conftest.er1
14967   cat conftest.err >&5
14968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969   (exit $ac_status); } >/dev/null; then
14970   if test -s conftest.err; then
14971     ac_cpp_err=$ac_c_preproc_warn_flag
14972   else
14973     ac_cpp_err=
14974   fi
14975 else
14976   ac_cpp_err=yes
14977 fi
14978 if test -z "$ac_cpp_err"; then
14979   cat >>confdefs.h <<\_ACEOF
14980 #define FSTYPE_MNTENT 1
14981 _ACEOF
14982  fstype=4.3BSD
14983 else
14984   echo "$as_me: failed program was:" >&5
14985 sed 's/^/| /' conftest.$ac_ext >&5
14986
14987
14988 fi
14989 rm -f conftest.err conftest.$ac_ext
14990 fi
14991 if test $fstype = no; then
14992 cat >conftest.$ac_ext <<_ACEOF
14993 #line $LINENO "configure"
14994 /* confdefs.h.  */
14995 _ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h.  */
14999 #include <sys/mount.h>
15000
15001 _ACEOF
15002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15003   $EGREP "f_type;" >/dev/null 2>&1; then
15004   cat >>confdefs.h <<\_ACEOF
15005 #define FSTYPE_STATFS 1
15006 _ACEOF
15007  fstype=4.4BSD/OSF1
15008 fi
15009 rm -f conftest*
15010
15011 fi
15012 if test $fstype = no; then
15013 cat >conftest.$ac_ext <<_ACEOF
15014 #line $LINENO "configure"
15015 /* confdefs.h.  */
15016 _ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h.  */
15020 #include <sys/mount.h>
15021 #include <sys/fs_types.h>
15022 _ACEOF
15023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15024   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15025   ac_status=$?
15026   grep -v '^ *+' conftest.er1 >conftest.err
15027   rm -f conftest.er1
15028   cat conftest.err >&5
15029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030   (exit $ac_status); } >/dev/null; then
15031   if test -s conftest.err; then
15032     ac_cpp_err=$ac_c_preproc_warn_flag
15033   else
15034     ac_cpp_err=
15035   fi
15036 else
15037   ac_cpp_err=yes
15038 fi
15039 if test -z "$ac_cpp_err"; then
15040   cat >>confdefs.h <<\_ACEOF
15041 #define FSTYPE_GETMNT 1
15042 _ACEOF
15043  fstype=Ultrix
15044 else
15045   echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15047
15048
15049 fi
15050 rm -f conftest.err conftest.$ac_ext
15051 fi
15052 echo "$as_me:$LINENO: result: $fstype" >&5
15053 echo "${ECHO_T}$fstype" >&6
15054
15055
15056 echo "$as_me:$LINENO: checking for poptGetArg in -lpopt" >&5
15057 echo $ECHO_N "checking for poptGetArg in -lpopt... $ECHO_C" >&6
15058 if test "${ac_cv_lib_popt_poptGetArg+set}" = set; then
15059   echo $ECHO_N "(cached) $ECHO_C" >&6
15060 else
15061   ac_check_lib_save_LIBS=$LIBS
15062 LIBS="-lpopt  $LIBS"
15063 cat >conftest.$ac_ext <<_ACEOF
15064 #line $LINENO "configure"
15065 /* confdefs.h.  */
15066 _ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h.  */
15070
15071 /* Override any gcc2 internal prototype to avoid an error.  */
15072 #ifdef __cplusplus
15073 extern "C"
15074 #endif
15075 /* We use char because int might match the return type of a gcc2
15076    builtin and then its argument prototype would still apply.  */
15077 char poptGetArg ();
15078 int
15079 main ()
15080 {
15081 poptGetArg ();
15082   ;
15083   return 0;
15084 }
15085 _ACEOF
15086 rm -f conftest.$ac_objext conftest$ac_exeext
15087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15088   (eval $ac_link) 2>&5
15089   ac_status=$?
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); } &&
15092          { ac_try='test -s conftest$ac_exeext'
15093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094   (eval $ac_try) 2>&5
15095   ac_status=$?
15096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097   (exit $ac_status); }; }; then
15098   ac_cv_lib_popt_poptGetArg=yes
15099 else
15100   echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15102
15103 ac_cv_lib_popt_poptGetArg=no
15104 fi
15105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15106 LIBS=$ac_check_lib_save_LIBS
15107 fi
15108 echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetArg" >&5
15109 echo "${ECHO_T}$ac_cv_lib_popt_poptGetArg" >&6
15110 if test $ac_cv_lib_popt_poptGetArg = yes; then
15111   POPT_LIBS=-lpopt
15112 else
15113   if test "${ac_cv_header_popt_h+set}" = set; then
15114   echo "$as_me:$LINENO: checking for popt.h" >&5
15115 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6
15116 if test "${ac_cv_header_popt_h+set}" = set; then
15117   echo $ECHO_N "(cached) $ECHO_C" >&6
15118 fi
15119 echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
15120 echo "${ECHO_T}$ac_cv_header_popt_h" >&6
15121 else
15122   # Is the header compilable?
15123 echo "$as_me:$LINENO: checking popt.h usability" >&5
15124 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6
15125 cat >conftest.$ac_ext <<_ACEOF
15126 #line $LINENO "configure"
15127 /* confdefs.h.  */
15128 _ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h.  */
15132 $ac_includes_default
15133 #include <popt.h>
15134 _ACEOF
15135 rm -f conftest.$ac_objext
15136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15137   (eval $ac_compile) 2>&5
15138   ac_status=$?
15139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); } &&
15141          { ac_try='test -s conftest.$ac_objext'
15142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143   (eval $ac_try) 2>&5
15144   ac_status=$?
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); }; }; then
15147   ac_header_compiler=yes
15148 else
15149   echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15151
15152 ac_header_compiler=no
15153 fi
15154 rm -f conftest.$ac_objext conftest.$ac_ext
15155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15156 echo "${ECHO_T}$ac_header_compiler" >&6
15157
15158 # Is the header present?
15159 echo "$as_me:$LINENO: checking popt.h presence" >&5
15160 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6
15161 cat >conftest.$ac_ext <<_ACEOF
15162 #line $LINENO "configure"
15163 /* confdefs.h.  */
15164 _ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h.  */
15168 #include <popt.h>
15169 _ACEOF
15170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15171   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15172   ac_status=$?
15173   grep -v '^ *+' conftest.er1 >conftest.err
15174   rm -f conftest.er1
15175   cat conftest.err >&5
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); } >/dev/null; then
15178   if test -s conftest.err; then
15179     ac_cpp_err=$ac_c_preproc_warn_flag
15180   else
15181     ac_cpp_err=
15182   fi
15183 else
15184   ac_cpp_err=yes
15185 fi
15186 if test -z "$ac_cpp_err"; then
15187   ac_header_preproc=yes
15188 else
15189   echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15191
15192   ac_header_preproc=no
15193 fi
15194 rm -f conftest.err conftest.$ac_ext
15195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15196 echo "${ECHO_T}$ac_header_preproc" >&6
15197
15198 # So?  What about this header?
15199 case $ac_header_compiler:$ac_header_preproc in
15200   yes:no )
15201     { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
15202 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15203     { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
15204 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
15205     (
15206       cat <<\_ASBOX
15207 ## ------------------------------------ ##
15208 ## Report this to bug-autoconf@gnu.org. ##
15209 ## ------------------------------------ ##
15210 _ASBOX
15211     ) |
15212       sed "s/^/$as_me: WARNING:     /" >&2
15213     ;;
15214   no:yes )
15215     { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
15216 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
15217     { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
15218 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
15219     { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
15220 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
15221     (
15222       cat <<\_ASBOX
15223 ## ------------------------------------ ##
15224 ## Report this to bug-autoconf@gnu.org. ##
15225 ## ------------------------------------ ##
15226 _ASBOX
15227     ) |
15228       sed "s/^/$as_me: WARNING:     /" >&2
15229     ;;
15230 esac
15231 echo "$as_me:$LINENO: checking for popt.h" >&5
15232 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6
15233 if test "${ac_cv_header_popt_h+set}" = set; then
15234   echo $ECHO_N "(cached) $ECHO_C" >&6
15235 else
15236   ac_cv_header_popt_h=$ac_header_preproc
15237 fi
15238 echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
15239 echo "${ECHO_T}$ac_cv_header_popt_h" >&6
15240
15241 fi
15242 if test $ac_cv_header_popt_h = yes; then
15243   :
15244 else
15245   { { echo "$as_me:$LINENO: error:
15246 *** Couldn't find popt. Please download and install from
15247 *** ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/ and try again." >&5
15248 echo "$as_me: error:
15249 *** Couldn't find popt. Please download and install from
15250 *** ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/ and try again." >&2;}
15251    { (exit 1); exit 1; }; }
15252 fi
15253
15254
15255 fi
15256
15257
15258
15259
15260
15261
15262
15263
15264 TOP_BUILDDIR="`pwd`"
15265
15266
15267 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
15268 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
15269 # Check whether --enable-ipv6 or --disable-ipv6 was given.
15270 if test "${enable_ipv6+set}" = set; then
15271   enableval="$enable_ipv6"
15272
15273 else
15274   enable_ipv6=yes
15275 fi;
15276 if test $enable_ipv6 = yes; then
15277   save_libs=$LIBS
15278
15279         cat >conftest.$ac_ext <<_ACEOF
15280 #line $LINENO "configure"
15281 /* confdefs.h.  */
15282 _ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h.  */
15286
15287     #include <sys/types.h>
15288     #include <sys/socket.h>
15289 int
15290 main ()
15291 {
15292
15293     socket(AF_INET6, SOCK_STREAM, 0)
15294
15295   ;
15296   return 0;
15297 }
15298 _ACEOF
15299 rm -f conftest.$ac_objext
15300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15301   (eval $ac_compile) 2>&5
15302   ac_status=$?
15303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304   (exit $ac_status); } &&
15305          { ac_try='test -s conftest.$ac_objext'
15306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307   (eval $ac_try) 2>&5
15308   ac_status=$?
15309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310   (exit $ac_status); }; }; then
15311   have_ipv6=yes
15312 else
15313   echo "$as_me: failed program was:" >&5
15314 sed 's/^/| /' conftest.$ac_ext >&5
15315
15316 have_ipv6=no
15317
15318 fi
15319 rm -f conftest.$ac_objext conftest.$ac_ext
15320   echo "$as_me:$LINENO: result: $have_ipv6" >&5
15321 echo "${ECHO_T}$have_ipv6" >&6
15322
15323         have_getaddrinfo=no
15324   if test $have_ipv6 = yes; then
15325     echo "$as_me:$LINENO: checking for getaddrinfo" >&5
15326 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
15327 if test "${ac_cv_func_getaddrinfo+set}" = set; then
15328   echo $ECHO_N "(cached) $ECHO_C" >&6
15329 else
15330   cat >conftest.$ac_ext <<_ACEOF
15331 #line $LINENO "configure"
15332 /* confdefs.h.  */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h.  */
15337 /* System header to define __stub macros and hopefully few prototypes,
15338     which can conflict with char getaddrinfo (); below.
15339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15340     <limits.h> exists even on freestanding compilers.  */
15341 #ifdef __STDC__
15342 # include <limits.h>
15343 #else
15344 # include <assert.h>
15345 #endif
15346 /* Override any gcc2 internal prototype to avoid an error.  */
15347 #ifdef __cplusplus
15348 extern "C"
15349 {
15350 #endif
15351 /* We use char because int might match the return type of a gcc2
15352    builtin and then its argument prototype would still apply.  */
15353 char getaddrinfo ();
15354 /* The GNU C library defines this for functions which it implements
15355     to always fail with ENOSYS.  Some functions are actually named
15356     something starting with __ and the normal name is an alias.  */
15357 #if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
15358 choke me
15359 #else
15360 char (*f) () = getaddrinfo;
15361 #endif
15362 #ifdef __cplusplus
15363 }
15364 #endif
15365
15366 int
15367 main ()
15368 {
15369 return f != getaddrinfo;
15370   ;
15371   return 0;
15372 }
15373 _ACEOF
15374 rm -f conftest.$ac_objext conftest$ac_exeext
15375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15376   (eval $ac_link) 2>&5
15377   ac_status=$?
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); } &&
15380          { ac_try='test -s conftest$ac_exeext'
15381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382   (eval $ac_try) 2>&5
15383   ac_status=$?
15384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385   (exit $ac_status); }; }; then
15386   ac_cv_func_getaddrinfo=yes
15387 else
15388   echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15390
15391 ac_cv_func_getaddrinfo=no
15392 fi
15393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15394 fi
15395 echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
15396 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
15397 if test $ac_cv_func_getaddrinfo = yes; then
15398   have_getaddrinfo=yes
15399 fi
15400
15401     if test $have_getaddrinfo != yes; then
15402       # getaddrinfo is not in the default libraries.  See if it's in some other.
15403       for lib in bsd socket inet; do
15404         as_ac_Lib=`echo "ac_cv_lib_$lib''_getaddrinfo" | $as_tr_sh`
15405 echo "$as_me:$LINENO: checking for getaddrinfo in -l$lib" >&5
15406 echo $ECHO_N "checking for getaddrinfo in -l$lib... $ECHO_C" >&6
15407 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15408   echo $ECHO_N "(cached) $ECHO_C" >&6
15409 else
15410   ac_check_lib_save_LIBS=$LIBS
15411 LIBS="-l$lib  $LIBS"
15412 cat >conftest.$ac_ext <<_ACEOF
15413 #line $LINENO "configure"
15414 /* confdefs.h.  */
15415 _ACEOF
15416 cat confdefs.h >>conftest.$ac_ext
15417 cat >>conftest.$ac_ext <<_ACEOF
15418 /* end confdefs.h.  */
15419
15420 /* Override any gcc2 internal prototype to avoid an error.  */
15421 #ifdef __cplusplus
15422 extern "C"
15423 #endif
15424 /* We use char because int might match the return type of a gcc2
15425    builtin and then its argument prototype would still apply.  */
15426 char getaddrinfo ();
15427 int
15428 main ()
15429 {
15430 getaddrinfo ();
15431   ;
15432   return 0;
15433 }
15434 _ACEOF
15435 rm -f conftest.$ac_objext conftest$ac_exeext
15436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15437   (eval $ac_link) 2>&5
15438   ac_status=$?
15439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440   (exit $ac_status); } &&
15441          { ac_try='test -s conftest$ac_exeext'
15442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443   (eval $ac_try) 2>&5
15444   ac_status=$?
15445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446   (exit $ac_status); }; }; then
15447   eval "$as_ac_Lib=yes"
15448 else
15449   echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15451
15452 eval "$as_ac_Lib=no"
15453 fi
15454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15455 LIBS=$ac_check_lib_save_LIBS
15456 fi
15457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15458 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15459 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15460   LIBS="$LIBS -l$lib";have_getaddrinfo=yes; break
15461 fi
15462
15463       done
15464     fi
15465     if test $have_getaddrinfo = yes; then
15466       cat >>confdefs.h <<\_ACEOF
15467 #define ENABLE_IPV6 1
15468 _ACEOF
15469
15470     fi
15471   fi
15472 fi
15473
15474                                                                                                                                                                                                                                                           ac_config_files="$ac_config_files Makefile gnome-vfs.spec libgnomevfs/gnome-vfs-file-size.h libgnomevfs/Makefile modules/Makefile modules/extfs/Makefile modules/extfs/ar modules/extfs/cpio modules/extfs/deb modules/extfs/lha modules/extfs/rar modules/extfs/zip modules/extfs/zoo modules/vfolder/Makefile monikers/Makefile schemas/Makefile devel-docs/Makefile devel-docs/gnome-vfs-tutorial/Makefile po/Makefile.in programs/Makefile test/Makefile test/vfs-run doc/Makefile gnome-vfs-2.0.pc gnome-vfs-module-2.0.pc"
15475 cat >confcache <<\_ACEOF
15476 # This file is a shell script that caches the results of configure
15477 # tests run on this system so they can be shared between configure
15478 # scripts and configure runs, see configure's option --config-cache.
15479 # It is not useful on other systems.  If it contains results you don't
15480 # want to keep, you may remove or edit it.
15481 #
15482 # config.status only pays attention to the cache file if you give it
15483 # the --recheck option to rerun configure.
15484 #
15485 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15486 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15487 # following values.
15488
15489 _ACEOF
15490
15491 # The following way of writing the cache mishandles newlines in values,
15492 # but we know of no workaround that is simple, portable, and efficient.
15493 # So, don't put newlines in cache variables' values.
15494 # Ultrix sh set writes to stderr and can't be redirected directly,
15495 # and sets the high bit in the cache file unless we assign to the vars.
15496 {
15497   (set) 2>&1 |
15498     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15499     *ac_space=\ *)
15500       # `set' does not quote correctly, so add quotes (double-quote
15501       # substitution turns \\\\ into \\, and sed turns \\ into \).
15502       sed -n \
15503         "s/'/'\\\\''/g;
15504           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15505       ;;
15506     *)
15507       # `set' quotes correctly as required by POSIX, so do not add quotes.
15508       sed -n \
15509         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15510       ;;
15511     esac;
15512 } |
15513   sed '
15514      t clear
15515      : clear
15516      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15517      t end
15518      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15519      : end' >>confcache
15520 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15521   if test -w $cache_file; then
15522     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15523     cat confcache >$cache_file
15524   else
15525     echo "not updating unwritable cache $cache_file"
15526   fi
15527 fi
15528 rm -f confcache
15529
15530 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15531 # Let make expand exec_prefix.
15532 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15533
15534 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15535 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15536 # trailing colons and then remove the whole line if VPATH becomes empty
15537 # (actually we leave an empty line to preserve line numbers).
15538 if test "x$srcdir" = x.; then
15539   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15540 s/:*\$(srcdir):*/:/;
15541 s/:*\${srcdir}:*/:/;
15542 s/:*@srcdir@:*/:/;
15543 s/^\([^=]*=[    ]*\):*/\1/;
15544 s/:*$//;
15545 s/^[^=]*=[      ]*$//;
15546 }'
15547 fi
15548
15549 DEFS=-DHAVE_CONFIG_H
15550
15551 ac_libobjs=
15552 ac_ltlibobjs=
15553 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15554   # 1. Remove the extension, and $U if already installed.
15555   ac_i=`echo "$ac_i" |
15556          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15557   # 2. Add them.
15558   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15559   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15560 done
15561 LIBOBJS=$ac_libobjs
15562
15563 LTLIBOBJS=$ac_ltlibobjs
15564
15565
15566
15567
15568         mv -f po/POTFILES po/POTFILES.tmp
15569         sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
15570         rm -f po/POTFILES.tmp
15571
15572
15573
15574 : ${CONFIG_STATUS=./config.status}
15575 ac_clean_files_save=$ac_clean_files
15576 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15577 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15578 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15579 cat >$CONFIG_STATUS <<_ACEOF
15580 #! $SHELL
15581 # Generated by $as_me.
15582 # Run this file to recreate the current configuration.
15583 # Compiler output produced by configure, useful for debugging
15584 # configure, is in config.log if it exists.
15585
15586 debug=false
15587 ac_cs_recheck=false
15588 ac_cs_silent=false
15589 SHELL=\${CONFIG_SHELL-$SHELL}
15590 _ACEOF
15591
15592 cat >>$CONFIG_STATUS <<\_ACEOF
15593 ## --------------------- ##
15594 ## M4sh Initialization.  ##
15595 ## --------------------- ##
15596
15597 # Be Bourne compatible
15598 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15599   emulate sh
15600   NULLCMD=:
15601   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15602   # is contrary to our usage.  Disable this feature.
15603   alias -g '${1+"$@"}'='"$@"'
15604 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15605   set -o posix
15606 fi
15607
15608 # Support unset when possible.
15609 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15610   as_unset=unset
15611 else
15612   as_unset=false
15613 fi
15614
15615
15616 # Work around bugs in pre-3.0 UWIN ksh.
15617 $as_unset ENV MAIL MAILPATH
15618 PS1='$ '
15619 PS2='> '
15620 PS4='+ '
15621
15622 # NLS nuisances.
15623 for as_var in \
15624   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15625   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15626   LC_TELEPHONE LC_TIME
15627 do
15628   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15629     eval $as_var=C; export $as_var
15630   else
15631     $as_unset $as_var
15632   fi
15633 done
15634
15635 # Required to use basename.
15636 if expr a : '\(a\)' >/dev/null 2>&1; then
15637   as_expr=expr
15638 else
15639   as_expr=false
15640 fi
15641
15642 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15643   as_basename=basename
15644 else
15645   as_basename=false
15646 fi
15647
15648
15649 # Name of the executable.
15650 as_me=`$as_basename "$0" ||
15651 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15652          X"$0" : 'X\(//\)$' \| \
15653          X"$0" : 'X\(/\)$' \| \
15654          .     : '\(.\)' 2>/dev/null ||
15655 echo X/"$0" |
15656     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15657           /^X\/\(\/\/\)$/{ s//\1/; q; }
15658           /^X\/\(\/\).*/{ s//\1/; q; }
15659           s/.*/./; q'`
15660
15661
15662 # PATH needs CR, and LINENO needs CR and PATH.
15663 # Avoid depending upon Character Ranges.
15664 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15665 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15666 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15667 as_cr_digits='0123456789'
15668 as_cr_alnum=$as_cr_Letters$as_cr_digits
15669
15670 # The user is always right.
15671 if test "${PATH_SEPARATOR+set}" != set; then
15672   echo "#! /bin/sh" >conf$$.sh
15673   echo  "exit 0"   >>conf$$.sh
15674   chmod +x conf$$.sh
15675   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15676     PATH_SEPARATOR=';'
15677   else
15678     PATH_SEPARATOR=:
15679   fi
15680   rm -f conf$$.sh
15681 fi
15682
15683
15684   as_lineno_1=$LINENO
15685   as_lineno_2=$LINENO
15686   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15687   test "x$as_lineno_1" != "x$as_lineno_2" &&
15688   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15689   # Find who we are.  Look in the path if we contain no path at all
15690   # relative or not.
15691   case $0 in
15692     *[\\/]* ) as_myself=$0 ;;
15693     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15694 for as_dir in $PATH
15695 do
15696   IFS=$as_save_IFS
15697   test -z "$as_dir" && as_dir=.
15698   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15699 done
15700
15701        ;;
15702   esac
15703   # We did not find ourselves, most probably we were run as `sh COMMAND'
15704   # in which case we are not to be found in the path.
15705   if test "x$as_myself" = x; then
15706     as_myself=$0
15707   fi
15708   if test ! -f "$as_myself"; then
15709     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15710 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15711    { (exit 1); exit 1; }; }
15712   fi
15713   case $CONFIG_SHELL in
15714   '')
15715     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15716 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15717 do
15718   IFS=$as_save_IFS
15719   test -z "$as_dir" && as_dir=.
15720   for as_base in sh bash ksh sh5; do
15721          case $as_dir in
15722          /*)
15723            if ("$as_dir/$as_base" -c '
15724   as_lineno_1=$LINENO
15725   as_lineno_2=$LINENO
15726   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15727   test "x$as_lineno_1" != "x$as_lineno_2" &&
15728   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15729              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15730              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15731              CONFIG_SHELL=$as_dir/$as_base
15732              export CONFIG_SHELL
15733              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15734            fi;;
15735          esac
15736        done
15737 done
15738 ;;
15739   esac
15740
15741   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15742   # uniformly replaced by the line number.  The first 'sed' inserts a
15743   # line-number line before each line; the second 'sed' does the real
15744   # work.  The second script uses 'N' to pair each line-number line
15745   # with the numbered line, and appends trailing '-' during
15746   # substitution so that $LINENO is not a special case at line end.
15747   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15748   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15749   sed '=' <$as_myself |
15750     sed '
15751       N
15752       s,$,-,
15753       : loop
15754       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15755       t loop
15756       s,-$,,
15757       s,^['$as_cr_digits']*\n,,
15758     ' >$as_me.lineno &&
15759   chmod +x $as_me.lineno ||
15760     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15761 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15762    { (exit 1); exit 1; }; }
15763
15764   # Don't try to exec as it changes $[0], causing all sort of problems
15765   # (the dirname of $[0] is not the place where we might find the
15766   # original and so on.  Autoconf is especially sensible to this).
15767   . ./$as_me.lineno
15768   # Exit status is that of the last command.
15769   exit
15770 }
15771
15772
15773 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15774   *c*,-n*) ECHO_N= ECHO_C='
15775 ' ECHO_T='      ' ;;
15776   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15777   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15778 esac
15779
15780 if expr a : '\(a\)' >/dev/null 2>&1; then
15781   as_expr=expr
15782 else
15783   as_expr=false
15784 fi
15785
15786 rm -f conf$$ conf$$.exe conf$$.file
15787 echo >conf$$.file
15788 if ln -s conf$$.file conf$$ 2>/dev/null; then
15789   # We could just check for DJGPP; but this test a) works b) is more generic
15790   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15791   if test -f conf$$.exe; then
15792     # Don't use ln at all; we don't have any links
15793     as_ln_s='cp -p'
15794   else
15795     as_ln_s='ln -s'
15796   fi
15797 elif ln conf$$.file conf$$ 2>/dev/null; then
15798   as_ln_s=ln
15799 else
15800   as_ln_s='cp -p'
15801 fi
15802 rm -f conf$$ conf$$.exe conf$$.file
15803
15804 if mkdir -p . 2>/dev/null; then
15805   as_mkdir_p=:
15806 else
15807   as_mkdir_p=false
15808 fi
15809
15810 as_executable_p="test -f"
15811
15812 # Sed expression to map a string onto a valid CPP name.
15813 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15814
15815 # Sed expression to map a string onto a valid variable name.
15816 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15817
15818
15819 # IFS
15820 # We need space, tab and new line, in precisely that order.
15821 as_nl='
15822 '
15823 IFS="   $as_nl"
15824
15825 # CDPATH.
15826 $as_unset CDPATH
15827
15828 exec 6>&1
15829
15830 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15831 # report actual input values of CONFIG_FILES etc. instead of their
15832 # values after options handling.  Logging --version etc. is OK.
15833 exec 5>>config.log
15834 {
15835   echo
15836   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15837 ## Running $as_me. ##
15838 _ASBOX
15839 } >&5
15840 cat >&5 <<_CSEOF
15841
15842 This file was extended by $as_me, which was
15843 generated by GNU Autoconf 2.57.  Invocation command line was
15844
15845   CONFIG_FILES    = $CONFIG_FILES
15846   CONFIG_HEADERS  = $CONFIG_HEADERS
15847   CONFIG_LINKS    = $CONFIG_LINKS
15848   CONFIG_COMMANDS = $CONFIG_COMMANDS
15849   $ $0 $@
15850
15851 _CSEOF
15852 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15853 echo >&5
15854 _ACEOF
15855
15856 # Files that config.status was made for.
15857 if test -n "$ac_config_files"; then
15858   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15859 fi
15860
15861 if test -n "$ac_config_headers"; then
15862   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15863 fi
15864
15865 if test -n "$ac_config_links"; then
15866   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15867 fi
15868
15869 if test -n "$ac_config_commands"; then
15870   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15871 fi
15872
15873 cat >>$CONFIG_STATUS <<\_ACEOF
15874
15875 ac_cs_usage="\
15876 \`$as_me' instantiates files from templates according to the
15877 current configuration.
15878
15879 Usage: $0 [OPTIONS] [FILE]...
15880
15881   -h, --help       print this help, then exit
15882   -V, --version    print version number, then exit
15883   -q, --quiet      do not print progress messages
15884   -d, --debug      don't remove temporary files
15885       --recheck    update $as_me by reconfiguring in the same conditions
15886   --file=FILE[:TEMPLATE]
15887                    instantiate the configuration file FILE
15888   --header=FILE[:TEMPLATE]
15889                    instantiate the configuration header FILE
15890
15891 Configuration files:
15892 $config_files
15893
15894 Configuration headers:
15895 $config_headers
15896
15897 Configuration commands:
15898 $config_commands
15899
15900 Report bugs to <bug-autoconf@gnu.org>."
15901 _ACEOF
15902
15903 cat >>$CONFIG_STATUS <<_ACEOF
15904 ac_cs_version="\\
15905 config.status
15906 configured by $0, generated by GNU Autoconf 2.57,
15907   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15908
15909 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15910 Free Software Foundation, Inc.
15911 This config.status script is free software; the Free Software Foundation
15912 gives unlimited permission to copy, distribute and modify it."
15913 srcdir=$srcdir
15914 INSTALL="$INSTALL"
15915 _ACEOF
15916
15917 cat >>$CONFIG_STATUS <<\_ACEOF
15918 # If no file are specified by the user, then we need to provide default
15919 # value.  By we need to know if files were specified by the user.
15920 ac_need_defaults=:
15921 while test $# != 0
15922 do
15923   case $1 in
15924   --*=*)
15925     ac_option=`expr "x$1" : 'x\([^=]*\)='`
15926     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15927     ac_shift=:
15928     ;;
15929   -*)
15930     ac_option=$1
15931     ac_optarg=$2
15932     ac_shift=shift
15933     ;;
15934   *) # This is not an option, so the user has probably given explicit
15935      # arguments.
15936      ac_option=$1
15937      ac_need_defaults=false;;
15938   esac
15939
15940   case $ac_option in
15941   # Handling of the options.
15942 _ACEOF
15943 cat >>$CONFIG_STATUS <<\_ACEOF
15944   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15945     ac_cs_recheck=: ;;
15946   --version | --vers* | -V )
15947     echo "$ac_cs_version"; exit 0 ;;
15948   --he | --h)
15949     # Conflict between --help and --header
15950     { { echo "$as_me:$LINENO: error: ambiguous option: $1
15951 Try \`$0 --help' for more information." >&5
15952 echo "$as_me: error: ambiguous option: $1
15953 Try \`$0 --help' for more information." >&2;}
15954    { (exit 1); exit 1; }; };;
15955   --help | --hel | -h )
15956     echo "$ac_cs_usage"; exit 0 ;;
15957   --debug | --d* | -d )
15958     debug=: ;;
15959   --file | --fil | --fi | --f )
15960     $ac_shift
15961     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15962     ac_need_defaults=false;;
15963   --header | --heade | --head | --hea )
15964     $ac_shift
15965     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15966     ac_need_defaults=false;;
15967   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15968   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15969     ac_cs_silent=: ;;
15970
15971   # This is an error.
15972   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15973 Try \`$0 --help' for more information." >&5
15974 echo "$as_me: error: unrecognized option: $1
15975 Try \`$0 --help' for more information." >&2;}
15976    { (exit 1); exit 1; }; } ;;
15977
15978   *) ac_config_targets="$ac_config_targets $1" ;;
15979
15980   esac
15981   shift
15982 done
15983
15984 ac_configure_extra_args=
15985
15986 if $ac_cs_silent; then
15987   exec 6>/dev/null
15988   ac_configure_extra_args="$ac_configure_extra_args --silent"
15989 fi
15990
15991 _ACEOF
15992 cat >>$CONFIG_STATUS <<_ACEOF
15993 if \$ac_cs_recheck; then
15994   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15995   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15996 fi
15997
15998 _ACEOF
15999
16000 cat >>$CONFIG_STATUS <<_ACEOF
16001 #
16002 # INIT-COMMANDS section.
16003 #
16004
16005
16006 INTLTOOL_PERL=${INTLTOOL_PERL}
16007
16008
16009 _ACEOF
16010
16011
16012
16013 cat >>$CONFIG_STATUS <<\_ACEOF
16014 for ac_config_target in $ac_config_targets
16015 do
16016   case "$ac_config_target" in
16017   # Handling of arguments.
16018   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16019   "gnome-vfs.spec" ) CONFIG_FILES="$CONFIG_FILES gnome-vfs.spec" ;;
16020   "libgnomevfs/gnome-vfs-file-size.h" ) CONFIG_FILES="$CONFIG_FILES libgnomevfs/gnome-vfs-file-size.h" ;;
16021   "libgnomevfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libgnomevfs/Makefile" ;;
16022   "modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
16023   "modules/extfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/extfs/Makefile" ;;
16024   "modules/extfs/ar" ) CONFIG_FILES="$CONFIG_FILES modules/extfs/ar" ;;
16025   "modules/extfs/cpio" ) CONFIG_FILES="$CONFIG_FILES modules/extfs/cpio" ;;
16026   "modules/extfs/deb" ) CONFIG_FILES="$CONFIG_FILES modules/extfs/deb" ;;
16027   "modules/extfs/lha" ) CONFIG_FILES="$CONFIG_FILES modules/extfs/lha" ;;
16028   "modules/extfs/rar" ) CONFIG_FILES="$CONFIG_FILES modules/extfs/rar" ;;
16029   "modules/extfs/zip" ) CONFIG_FILES="$CONFIG_FILES modules/extfs/zip" ;;
16030   "modules/extfs/zoo" ) CONFIG_FILES="$CONFIG_FILES modules/extfs/zoo" ;;
16031   "modules/vfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/vfolder/Makefile" ;;
16032   "monikers/Makefile" ) CONFIG_FILES="$CONFIG_FILES monikers/Makefile" ;;
16033   "schemas/Makefile" ) CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
16034   "devel-docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel-docs/Makefile" ;;
16035   "devel-docs/gnome-vfs-tutorial/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel-docs/gnome-vfs-tutorial/Makefile" ;;
16036   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16037   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
16038   "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16039   "test/vfs-run" ) CONFIG_FILES="$CONFIG_FILES test/vfs-run" ;;
16040   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16041   "gnome-vfs-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES gnome-vfs-2.0.pc" ;;
16042   "gnome-vfs-module-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES gnome-vfs-module-2.0.pc" ;;
16043   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16044   "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
16045   "default-3" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-3" ;;
16046   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16047   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16048 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16049    { (exit 1); exit 1; }; };;
16050   esac
16051 done
16052
16053 # If the user did not use the arguments to specify the items to instantiate,
16054 # then the envvar interface is used.  Set only those that are not.
16055 # We use the long form for the default assignment because of an extremely
16056 # bizarre bug on SunOS 4.1.3.
16057 if $ac_need_defaults; then
16058   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16059   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16060   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16061 fi
16062
16063 # Have a temporary directory for convenience.  Make it in the build tree
16064 # simply because there is no reason to put it here, and in addition,
16065 # creating and moving files from /tmp can sometimes cause problems.
16066 # Create a temporary directory, and hook for its removal unless debugging.
16067 $debug ||
16068 {
16069   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16070   trap '{ (exit 1); exit 1; }' 1 2 13 15
16071 }
16072
16073 # Create a (secure) tmp directory for tmp files.
16074
16075 {
16076   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16077   test -n "$tmp" && test -d "$tmp"
16078 }  ||
16079 {
16080   tmp=./confstat$$-$RANDOM
16081   (umask 077 && mkdir $tmp)
16082 } ||
16083 {
16084    echo "$me: cannot create a temporary directory in ." >&2
16085    { (exit 1); exit 1; }
16086 }
16087
16088 _ACEOF
16089
16090 cat >>$CONFIG_STATUS <<_ACEOF
16091
16092 #
16093 # CONFIG_FILES section.
16094 #
16095
16096 # No need to generate the scripts if there are no CONFIG_FILES.
16097 # This happens for instance when ./config.status config.h
16098 if test -n "\$CONFIG_FILES"; then
16099   # Protect against being on the right side of a sed subst in config.status.
16100   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16101    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16102 s,@SHELL@,$SHELL,;t t
16103 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16104 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16105 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16106 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16107 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16108 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16109 s,@exec_prefix@,$exec_prefix,;t t
16110 s,@prefix@,$prefix,;t t
16111 s,@program_transform_name@,$program_transform_name,;t t
16112 s,@bindir@,$bindir,;t t
16113 s,@sbindir@,$sbindir,;t t
16114 s,@libexecdir@,$libexecdir,;t t
16115 s,@datadir@,$datadir,;t t
16116 s,@sysconfdir@,$sysconfdir,;t t
16117 s,@sharedstatedir@,$sharedstatedir,;t t
16118 s,@localstatedir@,$localstatedir,;t t
16119 s,@libdir@,$libdir,;t t
16120 s,@includedir@,$includedir,;t t
16121 s,@oldincludedir@,$oldincludedir,;t t
16122 s,@infodir@,$infodir,;t t
16123 s,@mandir@,$mandir,;t t
16124 s,@build_alias@,$build_alias,;t t
16125 s,@host_alias@,$host_alias,;t t
16126 s,@target_alias@,$target_alias,;t t
16127 s,@DEFS@,$DEFS,;t t
16128 s,@ECHO_C@,$ECHO_C,;t t
16129 s,@ECHO_N@,$ECHO_N,;t t
16130 s,@ECHO_T@,$ECHO_T,;t t
16131 s,@LIBS@,$LIBS,;t t
16132 s,@LIBGNOMEVFS_CURRENT@,$LIBGNOMEVFS_CURRENT,;t t
16133 s,@LIBGNOMEVFS_REVISION@,$LIBGNOMEVFS_REVISION,;t t
16134 s,@LIBGNOMEVFS_AGE@,$LIBGNOMEVFS_AGE,;t t
16135 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16136 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16137 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16138 s,@PACKAGE@,$PACKAGE,;t t
16139 s,@VERSION@,$VERSION,;t t
16140 s,@ACLOCAL@,$ACLOCAL,;t t
16141 s,@AUTOCONF@,$AUTOCONF,;t t
16142 s,@AUTOMAKE@,$AUTOMAKE,;t t
16143 s,@AUTOHEADER@,$AUTOHEADER,;t t
16144 s,@MAKEINFO@,$MAKEINFO,;t t
16145 s,@SET_MAKE@,$SET_MAKE,;t t
16146 s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
16147 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16148 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16149 s,@MAINT@,$MAINT,;t t
16150 s,@GNOME_ACLOCAL_DIR@,$GNOME_ACLOCAL_DIR,;t t
16151 s,@GNOME_ACLOCAL_FLAGS@,$GNOME_ACLOCAL_FLAGS,;t t
16152 s,@INSIDE_GNOME_DOCU_TRUE@,$INSIDE_GNOME_DOCU_TRUE,;t t
16153 s,@INSIDE_GNOME_DOCU_FALSE@,$INSIDE_GNOME_DOCU_FALSE,;t t
16154 s,@CC@,$CC,;t t
16155 s,@CFLAGS@,$CFLAGS,;t t
16156 s,@LDFLAGS@,$LDFLAGS,;t t
16157 s,@CPPFLAGS@,$CPPFLAGS,;t t
16158 s,@ac_ct_CC@,$ac_ct_CC,;t t
16159 s,@EXEEXT@,$EXEEXT,;t t
16160 s,@OBJEXT@,$OBJEXT,;t t
16161 s,@CPP@,$CPP,;t t
16162 s,@AWK@,$AWK,;t t
16163 s,@build@,$build,;t t
16164 s,@build_cpu@,$build_cpu,;t t
16165 s,@build_vendor@,$build_vendor,;t t
16166 s,@build_os@,$build_os,;t t
16167 s,@host@,$host,;t t
16168 s,@host_cpu@,$host_cpu,;t t
16169 s,@host_vendor@,$host_vendor,;t t
16170 s,@host_os@,$host_os,;t t
16171 s,@LN_S@,$LN_S,;t t
16172 s,@ECHO@,$ECHO,;t t
16173 s,@RANLIB@,$RANLIB,;t t
16174 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16175 s,@STRIP@,$STRIP,;t t
16176 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16177 s,@EGREP@,$EGREP,;t t
16178 s,@LIBTOOL@,$LIBTOOL,;t t
16179 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
16180 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
16181 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
16182 s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t
16183 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
16184 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
16185 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
16186 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
16187 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
16188 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
16189 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
16190 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
16191 s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
16192 s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
16193 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
16194 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
16195 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
16196 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
16197 s,@BONOBO_ACTIVATION_REQUIRED@,$BONOBO_ACTIVATION_REQUIRED,;t t
16198 s,@BONOBO_REQUIRED@,$BONOBO_REQUIRED,;t t
16199 s,@GCONF_REQUIRED@,$GCONF_REQUIRED,;t t
16200 s,@GLIB_REQUIRED@,$GLIB_REQUIRED,;t t
16201 s,@LIBIDL_REQUIRED@,$LIBIDL_REQUIRED,;t t
16202 s,@ORBIT_REQUIRED@,$ORBIT_REQUIRED,;t t
16203 s,@XML_REQUIRED@,$XML_REQUIRED,;t t
16204 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16205 s,@MODULES_XML_CFLAGS@,$MODULES_XML_CFLAGS,;t t
16206 s,@MODULES_XML_LIBS@,$MODULES_XML_LIBS,;t t
16207 s,@MODULES_CFLAGS@,$MODULES_CFLAGS,;t t
16208 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
16209 s,@MODULES_FILE_CFLAGS@,$MODULES_FILE_CFLAGS,;t t
16210 s,@MODULES_FILE_LIBS@,$MODULES_FILE_LIBS,;t t
16211 s,@MODULES_GCONF_CFLAGS@,$MODULES_GCONF_CFLAGS,;t t
16212 s,@MODULES_GCONF_LIBS@,$MODULES_GCONF_LIBS,;t t
16213 s,@MODULES_XML_GCONF_CFLAGS@,$MODULES_XML_GCONF_CFLAGS,;t t
16214 s,@MODULES_XML_GCONF_LIBS@,$MODULES_XML_GCONF_LIBS,;t t
16215 s,@MONIKERS_CFLAGS@,$MONIKERS_CFLAGS,;t t
16216 s,@MONIKERS_LIBS@,$MONIKERS_LIBS,;t t
16217 s,@TEST_CFLAGS@,$TEST_CFLAGS,;t t
16218 s,@TEST_LIBS@,$TEST_LIBS,;t t
16219 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
16220 s,@BONOBO_IDLDIR@,$BONOBO_IDLDIR,;t t
16221 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
16222 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
16223 s,@USE_NLS@,$USE_NLS,;t t
16224 s,@MSGFMT@,$MSGFMT,;t t
16225 s,@GMSGFMT@,$GMSGFMT,;t t
16226 s,@XGETTEXT@,$XGETTEXT,;t t
16227 s,@CATALOGS@,$CATALOGS,;t t
16228 s,@CATOBJEXT@,$CATOBJEXT,;t t
16229 s,@DATADIRNAME@,$DATADIRNAME,;t t
16230 s,@GMOFILES@,$GMOFILES,;t t
16231 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16232 s,@INTLLIBS@,$INTLLIBS,;t t
16233 s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t
16234 s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t
16235 s,@POFILES@,$POFILES,;t t
16236 s,@POSUB@,$POSUB,;t t
16237 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16238 s,@ALLOCA@,$ALLOCA,;t t
16239 s,@GCONFTOOL@,$GCONFTOOL,;t t
16240 s,@GCONF_SCHEMA_CONFIG_SOURCE@,$GCONF_SCHEMA_CONFIG_SOURCE,;t t
16241 s,@GCONF_SCHEMA_FILE_DIR@,$GCONF_SCHEMA_FILE_DIR,;t t
16242 s,@GCONF_SCHEMAS_INSTALL_TRUE@,$GCONF_SCHEMAS_INSTALL_TRUE,;t t
16243 s,@GCONF_SCHEMAS_INSTALL_FALSE@,$GCONF_SCHEMAS_INSTALL_FALSE,;t t
16244 s,@VFS_SIZE@,$VFS_SIZE,;t t
16245 s,@VFS_OFFSET@,$VFS_OFFSET,;t t
16246 s,@VFS_SIZE_IS@,$VFS_SIZE_IS,;t t
16247 s,@VFS_OFFSET_IS@,$VFS_OFFSET_IS,;t t
16248 s,@VFS_SIZE_PRINTF@,$VFS_SIZE_PRINTF,;t t
16249 s,@VFS_OFFSET_PRINTF@,$VFS_OFFSET_PRINTF,;t t
16250 s,@ENABLE_PROFILER@,$ENABLE_PROFILER,;t t
16251 s,@ENABLE_PROFILER_TRUE@,$ENABLE_PROFILER_TRUE,;t t
16252 s,@ENABLE_PROFILER_FALSE@,$ENABLE_PROFILER_FALSE,;t t
16253 s,@VFS_CFLAGS@,$VFS_CFLAGS,;t t
16254 s,@GNOME_VFS_DIR@,$GNOME_VFS_DIR,;t t
16255 s,@VFS_LIBDIR@,$VFS_LIBDIR,;t t
16256 s,@VFS_INCLUDEDIR@,$VFS_INCLUDEDIR,;t t
16257 s,@VFS_LIBS@,$VFS_LIBS,;t t
16258 s,@HAVE_LIBEFS_TRUE@,$HAVE_LIBEFS_TRUE,;t t
16259 s,@HAVE_LIBEFS_FALSE@,$HAVE_LIBEFS_FALSE,;t t
16260 s,@LIBEFS_LIBS@,$LIBEFS_LIBS,;t t
16261 s,@LIBEFS_CFLAGS@,$LIBEFS_CFLAGS,;t t
16262 s,@BZ2_LIBS@,$BZ2_LIBS,;t t
16263 s,@HAVE_CDDA_TRUE@,$HAVE_CDDA_TRUE,;t t
16264 s,@HAVE_CDDA_FALSE@,$HAVE_CDDA_FALSE,;t t
16265 s,@BUILD_CDEMENU_MODULE_TRUE@,$BUILD_CDEMENU_MODULE_TRUE,;t t
16266 s,@BUILD_CDEMENU_MODULE_FALSE@,$BUILD_CDEMENU_MODULE_FALSE,;t t
16267 s,@HAVE_SSL_TRUE@,$HAVE_SSL_TRUE,;t t
16268 s,@HAVE_SSL_FALSE@,$HAVE_SSL_FALSE,;t t
16269 s,@OPENSSL_CFLAGS@,$OPENSSL_CFLAGS,;t t
16270 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
16271 s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
16272 s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
16273 s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
16274 s,@LIBGNOMEVFS_CFLAGS@,$LIBGNOMEVFS_CFLAGS,;t t
16275 s,@LIBGNOMEVFS_LIBS@,$LIBGNOMEVFS_LIBS,;t t
16276 s,@FAM_LIBS@,$FAM_LIBS,;t t
16277 s,@HTML_DIR@,$HTML_DIR,;t t
16278 s,@GTKDOC@,$GTKDOC,;t t
16279 s,@DB2HTML@,$DB2HTML,;t t
16280 s,@HAVE_DOCBOOK_TRUE@,$HAVE_DOCBOOK_TRUE,;t t
16281 s,@HAVE_DOCBOOK_FALSE@,$HAVE_DOCBOOK_FALSE,;t t
16282 s,@HAVE_GTK_DOC_TRUE@,$HAVE_GTK_DOC_TRUE,;t t
16283 s,@HAVE_GTK_DOC_FALSE@,$HAVE_GTK_DOC_FALSE,;t t
16284 s,@HAVE_GTK_DOC@,$HAVE_GTK_DOC,;t t
16285 s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
16286 s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
16287 s,@POPT_LIBS@,$POPT_LIBS,;t t
16288 s,@TOP_BUILDDIR@,$TOP_BUILDDIR,;t t
16289 s,@LIBOBJS@,$LIBOBJS,;t t
16290 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16291 CEOF
16292
16293 _ACEOF
16294
16295   cat >>$CONFIG_STATUS <<\_ACEOF
16296   # Split the substitutions into bite-sized pieces for seds with
16297   # small command number limits, like on Digital OSF/1 and HP-UX.
16298   ac_max_sed_lines=48
16299   ac_sed_frag=1 # Number of current file.
16300   ac_beg=1 # First line for current file.
16301   ac_end=$ac_max_sed_lines # Line after last line for current file.
16302   ac_more_lines=:
16303   ac_sed_cmds=
16304   while $ac_more_lines; do
16305     if test $ac_beg -gt 1; then
16306       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16307     else
16308       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16309     fi
16310     if test ! -s $tmp/subs.frag; then
16311       ac_more_lines=false
16312     else
16313       # The purpose of the label and of the branching condition is to
16314       # speed up the sed processing (if there are no `@' at all, there
16315       # is no need to browse any of the substitutions).
16316       # These are the two extra sed commands mentioned above.
16317       (echo ':t
16318   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16319       if test -z "$ac_sed_cmds"; then
16320         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16321       else
16322         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16323       fi
16324       ac_sed_frag=`expr $ac_sed_frag + 1`
16325       ac_beg=$ac_end
16326       ac_end=`expr $ac_end + $ac_max_sed_lines`
16327     fi
16328   done
16329   if test -z "$ac_sed_cmds"; then
16330     ac_sed_cmds=cat
16331   fi
16332 fi # test -n "$CONFIG_FILES"
16333
16334 _ACEOF
16335 cat >>$CONFIG_STATUS <<\_ACEOF
16336 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16337   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16338   case $ac_file in
16339   - | *:- | *:-:* ) # input from stdin
16340         cat >$tmp/stdin
16341         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16342         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16343   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16344         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16345   * )   ac_file_in=$ac_file.in ;;
16346   esac
16347
16348   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16349   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16350 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16351          X"$ac_file" : 'X\(//\)[^/]' \| \
16352          X"$ac_file" : 'X\(//\)$' \| \
16353          X"$ac_file" : 'X\(/\)' \| \
16354          .     : '\(.\)' 2>/dev/null ||
16355 echo X"$ac_file" |
16356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16357           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16358           /^X\(\/\/\)$/{ s//\1/; q; }
16359           /^X\(\/\).*/{ s//\1/; q; }
16360           s/.*/./; q'`
16361   { if $as_mkdir_p; then
16362     mkdir -p "$ac_dir"
16363   else
16364     as_dir="$ac_dir"
16365     as_dirs=
16366     while test ! -d "$as_dir"; do
16367       as_dirs="$as_dir $as_dirs"
16368       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16369 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16370          X"$as_dir" : 'X\(//\)[^/]' \| \
16371          X"$as_dir" : 'X\(//\)$' \| \
16372          X"$as_dir" : 'X\(/\)' \| \
16373          .     : '\(.\)' 2>/dev/null ||
16374 echo X"$as_dir" |
16375     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16376           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16377           /^X\(\/\/\)$/{ s//\1/; q; }
16378           /^X\(\/\).*/{ s//\1/; q; }
16379           s/.*/./; q'`
16380     done
16381     test ! -n "$as_dirs" || mkdir $as_dirs
16382   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16383 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16384    { (exit 1); exit 1; }; }; }
16385
16386   ac_builddir=.
16387
16388 if test "$ac_dir" != .; then
16389   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16390   # A "../" for each directory in $ac_dir_suffix.
16391   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16392 else
16393   ac_dir_suffix= ac_top_builddir=
16394 fi
16395
16396 case $srcdir in
16397   .)  # No --srcdir option.  We are building in place.
16398     ac_srcdir=.
16399     if test -z "$ac_top_builddir"; then
16400        ac_top_srcdir=.
16401     else
16402        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16403     fi ;;
16404   [\\/]* | ?:[\\/]* )  # Absolute path.
16405     ac_srcdir=$srcdir$ac_dir_suffix;
16406     ac_top_srcdir=$srcdir ;;
16407   *) # Relative path.
16408     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16409     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16410 esac
16411 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16412 # absolute.
16413 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16414 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16415 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16416 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16417
16418
16419   case $INSTALL in
16420   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16421   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16422   esac
16423
16424   if test x"$ac_file" != x-; then
16425     { echo "$as_me:$LINENO: creating $ac_file" >&5
16426 echo "$as_me: creating $ac_file" >&6;}
16427     rm -f "$ac_file"
16428   fi
16429   # Let's still pretend it is `configure' which instantiates (i.e., don't
16430   # use $as_me), people would be surprised to read:
16431   #    /* config.h.  Generated by config.status.  */
16432   if test x"$ac_file" = x-; then
16433     configure_input=
16434   else
16435     configure_input="$ac_file.  "
16436   fi
16437   configure_input=$configure_input"Generated from `echo $ac_file_in |
16438                                      sed 's,.*/,,'` by configure."
16439
16440   # First look for the input files in the build tree, otherwise in the
16441   # src tree.
16442   ac_file_inputs=`IFS=:
16443     for f in $ac_file_in; do
16444       case $f in
16445       -) echo $tmp/stdin ;;
16446       [\\/$]*)
16447          # Absolute (can't be DOS-style, as IFS=:)
16448          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16449 echo "$as_me: error: cannot find input file: $f" >&2;}
16450    { (exit 1); exit 1; }; }
16451          echo $f;;
16452       *) # Relative
16453          if test -f "$f"; then
16454            # Build tree
16455            echo $f
16456          elif test -f "$srcdir/$f"; then
16457            # Source tree
16458            echo $srcdir/$f
16459          else
16460            # /dev/null tree
16461            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16462 echo "$as_me: error: cannot find input file: $f" >&2;}
16463    { (exit 1); exit 1; }; }
16464          fi;;
16465       esac
16466     done` || { (exit 1); exit 1; }
16467 _ACEOF
16468 cat >>$CONFIG_STATUS <<_ACEOF
16469   sed "$ac_vpsub
16470 $extrasub
16471 _ACEOF
16472 cat >>$CONFIG_STATUS <<\_ACEOF
16473 :t
16474 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16475 s,@configure_input@,$configure_input,;t t
16476 s,@srcdir@,$ac_srcdir,;t t
16477 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16478 s,@top_srcdir@,$ac_top_srcdir,;t t
16479 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16480 s,@builddir@,$ac_builddir,;t t
16481 s,@abs_builddir@,$ac_abs_builddir,;t t
16482 s,@top_builddir@,$ac_top_builddir,;t t
16483 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16484 s,@INSTALL@,$ac_INSTALL,;t t
16485 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16486   rm -f $tmp/stdin
16487   if test x"$ac_file" != x-; then
16488     mv $tmp/out $ac_file
16489   else
16490     cat $tmp/out
16491     rm -f $tmp/out
16492   fi
16493
16494 done
16495 _ACEOF
16496 cat >>$CONFIG_STATUS <<\_ACEOF
16497
16498 #
16499 # CONFIG_HEADER section.
16500 #
16501
16502 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16503 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16504 #
16505 # ac_d sets the value in "#define NAME VALUE" lines.
16506 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16507 ac_dB='[        ].*$,\1#\2'
16508 ac_dC=' '
16509 ac_dD=',;t'
16510 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16511 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16512 ac_uB='$,\1#\2define\3'
16513 ac_uC=' '
16514 ac_uD=',;t'
16515
16516 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16517   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16518   case $ac_file in
16519   - | *:- | *:-:* ) # input from stdin
16520         cat >$tmp/stdin
16521         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16522         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16523   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16524         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16525   * )   ac_file_in=$ac_file.in ;;
16526   esac
16527
16528   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16529 echo "$as_me: creating $ac_file" >&6;}
16530
16531   # First look for the input files in the build tree, otherwise in the
16532   # src tree.
16533   ac_file_inputs=`IFS=:
16534     for f in $ac_file_in; do
16535       case $f in
16536       -) echo $tmp/stdin ;;
16537       [\\/$]*)
16538          # Absolute (can't be DOS-style, as IFS=:)
16539          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16540 echo "$as_me: error: cannot find input file: $f" >&2;}
16541    { (exit 1); exit 1; }; }
16542          echo $f;;
16543       *) # Relative
16544          if test -f "$f"; then
16545            # Build tree
16546            echo $f
16547          elif test -f "$srcdir/$f"; then
16548            # Source tree
16549            echo $srcdir/$f
16550          else
16551            # /dev/null tree
16552            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16553 echo "$as_me: error: cannot find input file: $f" >&2;}
16554    { (exit 1); exit 1; }; }
16555          fi;;
16556       esac
16557     done` || { (exit 1); exit 1; }
16558   # Remove the trailing spaces.
16559   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16560
16561 _ACEOF
16562
16563 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16564 # `conftest.undefs', that substitutes the proper values into
16565 # config.h.in to produce config.h.  The first handles `#define'
16566 # templates, and the second `#undef' templates.
16567 # And first: Protect against being on the right side of a sed subst in
16568 # config.status.  Protect against being in an unquoted here document
16569 # in config.status.
16570 rm -f conftest.defines conftest.undefs
16571 # Using a here document instead of a string reduces the quoting nightmare.
16572 # Putting comments in sed scripts is not portable.
16573 #
16574 # `end' is used to avoid that the second main sed command (meant for
16575 # 0-ary CPP macros) applies to n-ary macro definitions.
16576 # See the Autoconf documentation for `clear'.
16577 cat >confdef2sed.sed <<\_ACEOF
16578 s/[\\&,]/\\&/g
16579 s,[\\$`],\\&,g
16580 t clear
16581 : clear
16582 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16583 t end
16584 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16585 : end
16586 _ACEOF
16587 # If some macros were called several times there might be several times
16588 # the same #defines, which is useless.  Nevertheless, we may not want to
16589 # sort them, since we want the *last* AC-DEFINE to be honored.
16590 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16591 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16592 rm -f confdef2sed.sed
16593
16594 # This sed command replaces #undef with comments.  This is necessary, for
16595 # example, in the case of _POSIX_SOURCE, which is predefined and required
16596 # on some systems where configure will not decide to define it.
16597 cat >>conftest.undefs <<\_ACEOF
16598 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16599 _ACEOF
16600
16601 # Break up conftest.defines because some shells have a limit on the size
16602 # of here documents, and old seds have small limits too (100 cmds).
16603 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16604 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16605 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16606 echo '  :' >>$CONFIG_STATUS
16607 rm -f conftest.tail
16608 while grep . conftest.defines >/dev/null
16609 do
16610   # Write a limited-size here document to $tmp/defines.sed.
16611   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16612   # Speed up: don't consider the non `#define' lines.
16613   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16614   # Work around the forget-to-reset-the-flag bug.
16615   echo 't clr' >>$CONFIG_STATUS
16616   echo ': clr' >>$CONFIG_STATUS
16617   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16618   echo 'CEOF
16619   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16620   rm -f $tmp/in
16621   mv $tmp/out $tmp/in
16622 ' >>$CONFIG_STATUS
16623   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16624   rm -f conftest.defines
16625   mv conftest.tail conftest.defines
16626 done
16627 rm -f conftest.defines
16628 echo '  fi # grep' >>$CONFIG_STATUS
16629 echo >>$CONFIG_STATUS
16630
16631 # Break up conftest.undefs because some shells have a limit on the size
16632 # of here documents, and old seds have small limits too (100 cmds).
16633 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16634 rm -f conftest.tail
16635 while grep . conftest.undefs >/dev/null
16636 do
16637   # Write a limited-size here document to $tmp/undefs.sed.
16638   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16639   # Speed up: don't consider the non `#undef'
16640   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16641   # Work around the forget-to-reset-the-flag bug.
16642   echo 't clr' >>$CONFIG_STATUS
16643   echo ': clr' >>$CONFIG_STATUS
16644   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16645   echo 'CEOF
16646   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16647   rm -f $tmp/in
16648   mv $tmp/out $tmp/in
16649 ' >>$CONFIG_STATUS
16650   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16651   rm -f conftest.undefs
16652   mv conftest.tail conftest.undefs
16653 done
16654 rm -f conftest.undefs
16655
16656 cat >>$CONFIG_STATUS <<\_ACEOF
16657   # Let's still pretend it is `configure' which instantiates (i.e., don't
16658   # use $as_me), people would be surprised to read:
16659   #    /* config.h.  Generated by config.status.  */
16660   if test x"$ac_file" = x-; then
16661     echo "/* Generated by configure.  */" >$tmp/config.h
16662   else
16663     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16664   fi
16665   cat $tmp/in >>$tmp/config.h
16666   rm -f $tmp/in
16667   if test x"$ac_file" != x-; then
16668     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16669       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16670 echo "$as_me: $ac_file is unchanged" >&6;}
16671     else
16672       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16674          X"$ac_file" : 'X\(//\)[^/]' \| \
16675          X"$ac_file" : 'X\(//\)$' \| \
16676          X"$ac_file" : 'X\(/\)' \| \
16677          .     : '\(.\)' 2>/dev/null ||
16678 echo X"$ac_file" |
16679     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16680           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16681           /^X\(\/\/\)$/{ s//\1/; q; }
16682           /^X\(\/\).*/{ s//\1/; q; }
16683           s/.*/./; q'`
16684       { if $as_mkdir_p; then
16685     mkdir -p "$ac_dir"
16686   else
16687     as_dir="$ac_dir"
16688     as_dirs=
16689     while test ! -d "$as_dir"; do
16690       as_dirs="$as_dir $as_dirs"
16691       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16692 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16693          X"$as_dir" : 'X\(//\)[^/]' \| \
16694          X"$as_dir" : 'X\(//\)$' \| \
16695          X"$as_dir" : 'X\(/\)' \| \
16696          .     : '\(.\)' 2>/dev/null ||
16697 echo X"$as_dir" |
16698     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16699           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16700           /^X\(\/\/\)$/{ s//\1/; q; }
16701           /^X\(\/\).*/{ s//\1/; q; }
16702           s/.*/./; q'`
16703     done
16704     test ! -n "$as_dirs" || mkdir $as_dirs
16705   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16706 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16707    { (exit 1); exit 1; }; }; }
16708
16709       rm -f $ac_file
16710       mv $tmp/config.h $ac_file
16711     fi
16712   else
16713     cat $tmp/config.h
16714     rm -f $tmp/config.h
16715   fi
16716 done
16717 _ACEOF
16718 cat >>$CONFIG_STATUS <<\_ACEOF
16719
16720 #
16721 # CONFIG_COMMANDS section.
16722 #
16723 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16724   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16725   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16726   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16727 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16728          X"$ac_dest" : 'X\(//\)[^/]' \| \
16729          X"$ac_dest" : 'X\(//\)$' \| \
16730          X"$ac_dest" : 'X\(/\)' \| \
16731          .     : '\(.\)' 2>/dev/null ||
16732 echo X"$ac_dest" |
16733     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16734           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16735           /^X\(\/\/\)$/{ s//\1/; q; }
16736           /^X\(\/\).*/{ s//\1/; q; }
16737           s/.*/./; q'`
16738   ac_builddir=.
16739
16740 if test "$ac_dir" != .; then
16741   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16742   # A "../" for each directory in $ac_dir_suffix.
16743   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16744 else
16745   ac_dir_suffix= ac_top_builddir=
16746 fi
16747
16748 case $srcdir in
16749   .)  # No --srcdir option.  We are building in place.
16750     ac_srcdir=.
16751     if test -z "$ac_top_builddir"; then
16752        ac_top_srcdir=.
16753     else
16754        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16755     fi ;;
16756   [\\/]* | ?:[\\/]* )  # Absolute path.
16757     ac_srcdir=$srcdir$ac_dir_suffix;
16758     ac_top_srcdir=$srcdir ;;
16759   *) # Relative path.
16760     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16761     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16762 esac
16763 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16764 # absolute.
16765 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16766 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16767 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16768 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16769
16770
16771   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16772 echo "$as_me: executing $ac_dest commands" >&6;}
16773   case $ac_dest in
16774     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
16775     default-2 )
16776
16777 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
16778 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
16779   rm -f intltool-extract.out
16780 else
16781   mv -f intltool-extract.out intltool-extract
16782 fi
16783 chmod ugo+x intltool-extract
16784 chmod u+w intltool-extract
16785
16786 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
16787 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
16788   rm -f intltool-merge.out
16789 else
16790   mv -f intltool-merge.out intltool-merge
16791 fi
16792 chmod ugo+x intltool-merge
16793 chmod u+w intltool-merge
16794
16795 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
16796 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
16797   rm -f intltool-update.out
16798 else
16799   mv -f intltool-update.out intltool-update
16800 fi
16801 chmod ugo+x intltool-update
16802 chmod u+w intltool-update
16803
16804  ;;
16805     default-3 ) case "$CONFIG_FILES" in *po/Makefile.in*)
16806         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
16807       esac ;;
16808   esac
16809 done
16810 _ACEOF
16811
16812 cat >>$CONFIG_STATUS <<\_ACEOF
16813
16814 { (exit 0); exit 0; }
16815 _ACEOF
16816 chmod +x $CONFIG_STATUS
16817 ac_clean_files=$ac_clean_files_save
16818
16819
16820 # configure is writing to config.log, and then calls config.status.
16821 # config.status does its own redirection, appending to config.log.
16822 # Unfortunately, on DOS this fails, as config.log is still kept open
16823 # by configure, so config.status won't be able to write to it; its
16824 # output is simply discarded.  So we exec the FD to /dev/null,
16825 # effectively closing config.log, so it can be properly (re)opened and
16826 # appended to by config.status.  When coming back to configure, we
16827 # need to make the FD available again.
16828 if test "$no_create" != yes; then
16829   ac_cs_success=:
16830   ac_config_status_args=
16831   test "$silent" = yes &&
16832     ac_config_status_args="$ac_config_status_args --quiet"
16833   exec 5>/dev/null
16834   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16835   exec 5>>config.log
16836   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16837   # would make configure fail if this is the last instruction.
16838   $ac_cs_success || { (exit 1); exit 1; }
16839 fi
16840
16841
16842 chmod u+x test/vfs-run
16843
16844
16845 echo "<= gnome-vfs configuration summary :"
16846 case "X$ENABLE_PROFILER" in
16847 X1)
16848 echo "
16849 Enable profiler         : YES"
16850 ;;
16851 *)
16852 echo "
16853 Enable profiler         : NO"
16854 echo
16855 ;;
16856 esac
16857
16858 echo "
16859 CFLAGS                  : $CFLAGS
16860 LDFLAGS                 : $LDFLAGS"
16861 echo