* added various files generated by autogen.sh, because of problems with autogen on...
[citadel.git] / webcit / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for webcit 6.80.
4 #
5 # Report bugs to <uncensored.citadel.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291        echo_test_string=`eval $cmd` &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='webcit'
425 PACKAGE_TARNAME='webcit'
426 PACKAGE_VERSION='6.80'
427 PACKAGE_STRING='webcit 6.80'
428 PACKAGE_BUGREPORT='uncensored.citadel.org'
429
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_default_prefix=/usr/local/webcit
468 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PROG_SUBDIRS SED PTHREAD_DEFS LIBOBJS 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_XAM_RULE INTLTOOL_KBD_RULE INTLTOOL_XML_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_SERVICE_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL INTLTOOL_ICONV INTLTOOL_MSGFMT INTLTOOL_MSGMERGE INTLTOOL_XGETTEXT MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB SETUP_LIBS staticdir editordir LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures webcit 6.80 to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 Program names:
1011   --program-prefix=PREFIX            prepend PREFIX to installed program names
1012   --program-suffix=SUFFIX            append SUFFIX to installed program names
1013   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015 System types:
1016   --build=BUILD     configure for building on BUILD [guessed]
1017   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022   case $ac_init_help in
1023      short | recursive ) echo "Configuration of webcit 6.80:";;
1024    esac
1025   cat <<\_ACEOF
1026
1027 Optional Features:
1028   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030   --enable-shared[=PKGS]
1031                           build shared libraries [default=yes]
1032   --enable-static[=PKGS]
1033                           build static libraries [default=yes]
1034   --enable-fast-install[=PKGS]
1035                           optimize for fast installation [default=yes]
1036   --disable-dependency-tracking  speeds up one-time build
1037   --enable-dependency-tracking   do not reject slow dependency extractors
1038   --disable-libtool-lock  avoid locking (might break parallel builds)
1039   --disable-nls           do not use Native Language Support
1040   --disable-rpath         do not hardcode runtime library paths
1041
1042 Optional Packages:
1043   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046   --with-pic              try to use only PIC/non-PIC objects [default=use
1047                           both]
1048   --with-tags[=TAGS]
1049                           include additional configurations [automatic]
1050   --with-newt             use newt window library
1051   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1052   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1053   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1054   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1055   --without-libintl-prefix     don't search for libintl in includedir and libdir
1056   --with-rundir=DIR          where to find the citadel servers sockets (overridable by -h  at runtime.)
1057   --with-staticdir=DIR          where to put datafiles
1058   --with-staticrundir=DIR          where to search datafiles at runtime
1059   --with-editordir=DIR          where to search the editor at runtime
1060
1061 Some influential environment variables:
1062   CC          C compiler command
1063   CFLAGS      C compiler flags
1064   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1065               nonstandard directory <lib dir>
1066   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067               headers in a nonstandard directory <include dir>
1068   CPP         C preprocessor
1069   CXX         C++ compiler command
1070   CXXFLAGS    C++ compiler flags
1071   CXXCPP      C++ preprocessor
1072   F77         Fortran 77 compiler command
1073   FFLAGS      Fortran 77 compiler flags
1074
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1077
1078 Report bugs to <uncensored.citadel.org>.
1079 _ACEOF
1080 fi
1081
1082 if test "$ac_init_help" = "recursive"; then
1083   # If there are subdirs, report their specific --help.
1084   ac_popdir=`pwd`
1085   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086     test -d $ac_dir || continue
1087     ac_builddir=.
1088
1089 if test "$ac_dir" != .; then
1090   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091   # A "../" for each directory in $ac_dir_suffix.
1092   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093 else
1094   ac_dir_suffix= ac_top_builddir=
1095 fi
1096
1097 case $srcdir in
1098   .)  # No --srcdir option.  We are building in place.
1099     ac_srcdir=.
1100     if test -z "$ac_top_builddir"; then
1101        ac_top_srcdir=.
1102     else
1103        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104     fi ;;
1105   [\\/]* | ?:[\\/]* )  # Absolute path.
1106     ac_srcdir=$srcdir$ac_dir_suffix;
1107     ac_top_srcdir=$srcdir ;;
1108   *) # Relative path.
1109     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111 esac
1112
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1115 case `pwd` in
1116 .) ac_abs_builddir="$ac_dir";;
1117 *)
1118   case "$ac_dir" in
1119   .) ac_abs_builddir=`pwd`;;
1120   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122   esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1126 *)
1127   case ${ac_top_builddir}. in
1128   .) ac_abs_top_builddir=$ac_abs_builddir;;
1129   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131   esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1135 *)
1136   case $ac_srcdir in
1137   .) ac_abs_srcdir=$ac_abs_builddir;;
1138   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140   esac;;
1141 esac
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1144 *)
1145   case $ac_top_srcdir in
1146   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149   esac;;
1150 esac
1151
1152     cd $ac_dir
1153     # Check for guested configure; otherwise get Cygnus style configure.
1154     if test -f $ac_srcdir/configure.gnu; then
1155       echo
1156       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1157     elif test -f $ac_srcdir/configure; then
1158       echo
1159       $SHELL $ac_srcdir/configure  --help=recursive
1160     elif test -f $ac_srcdir/configure.ac ||
1161            test -f $ac_srcdir/configure.in; then
1162       echo
1163       $ac_configure --help
1164     else
1165       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166     fi
1167     cd "$ac_popdir"
1168   done
1169 fi
1170
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1173   cat <<\_ACEOF
1174 webcit configure 6.80
1175 generated by GNU Autoconf 2.59
1176
1177 Copyright (C) 2003 Free Software Foundation, Inc.
1178 This configure script is free software; the Free Software Foundation
1179 gives unlimited permission to copy, distribute and modify it.
1180 _ACEOF
1181   exit 0
1182 fi
1183 exec 5>config.log
1184 cat >&5 <<_ACEOF
1185 This file contains any messages produced by compilers while
1186 running configure, to aid debugging if configure makes a mistake.
1187
1188 It was created by webcit $as_me 6.80, which was
1189 generated by GNU Autoconf 2.59.  Invocation command line was
1190
1191   $ $0 $@
1192
1193 _ACEOF
1194 {
1195 cat <<_ASUNAME
1196 ## --------- ##
1197 ## Platform. ##
1198 ## --------- ##
1199
1200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1205
1206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1208
1209 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1210 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1213 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1214 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1215 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1216
1217 _ASUNAME
1218
1219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1220 for as_dir in $PATH
1221 do
1222   IFS=$as_save_IFS
1223   test -z "$as_dir" && as_dir=.
1224   echo "PATH: $as_dir"
1225 done
1226
1227 } >&5
1228
1229 cat >&5 <<_ACEOF
1230
1231
1232 ## ----------- ##
1233 ## Core tests. ##
1234 ## ----------- ##
1235
1236 _ACEOF
1237
1238
1239 # Keep a trace of the command line.
1240 # Strip out --no-create and --no-recursion so they do not pile up.
1241 # Strip out --silent because we don't want to record it for future runs.
1242 # Also quote any args containing shell meta-characters.
1243 # Make two passes to allow for proper duplicate-argument suppression.
1244 ac_configure_args=
1245 ac_configure_args0=
1246 ac_configure_args1=
1247 ac_sep=
1248 ac_must_keep_next=false
1249 for ac_pass in 1 2
1250 do
1251   for ac_arg
1252   do
1253     case $ac_arg in
1254     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256     | -silent | --silent | --silen | --sile | --sil)
1257       continue ;;
1258     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1260     esac
1261     case $ac_pass in
1262     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1263     2)
1264       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265       if test $ac_must_keep_next = true; then
1266         ac_must_keep_next=false # Got value, back to normal.
1267       else
1268         case $ac_arg in
1269           *=* | --config-cache | -C | -disable-* | --disable-* \
1270           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272           | -with-* | --with-* | -without-* | --without-* | --x)
1273             case "$ac_configure_args0 " in
1274               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1275             esac
1276             ;;
1277           -* ) ac_must_keep_next=true ;;
1278         esac
1279       fi
1280       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281       # Get rid of the leading space.
1282       ac_sep=" "
1283       ;;
1284     esac
1285   done
1286 done
1287 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1289
1290 # When interrupted or exit'd, cleanup temporary files, and complete
1291 # config.log.  We remove comments because anyway the quotes in there
1292 # would cause problems or look ugly.
1293 # WARNING: Be sure not to use single quotes in there, as some shells,
1294 # such as our DU 5.0 friend, will then `close' the trap.
1295 trap 'exit_status=$?
1296   # Save into config.log some information that might help in debugging.
1297   {
1298     echo
1299
1300     cat <<\_ASBOX
1301 ## ---------------- ##
1302 ## Cache variables. ##
1303 ## ---------------- ##
1304 _ASBOX
1305     echo
1306     # The following way of writing the cache mishandles newlines in values,
1307 {
1308   (set) 2>&1 |
1309     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1310     *ac_space=\ *)
1311       sed -n \
1312         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1314       ;;
1315     *)
1316       sed -n \
1317         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318       ;;
1319     esac;
1320 }
1321     echo
1322
1323     cat <<\_ASBOX
1324 ## ----------------- ##
1325 ## Output variables. ##
1326 ## ----------------- ##
1327 _ASBOX
1328     echo
1329     for ac_var in $ac_subst_vars
1330     do
1331       eval ac_val=$`echo $ac_var`
1332       echo "$ac_var='"'"'$ac_val'"'"'"
1333     done | sort
1334     echo
1335
1336     if test -n "$ac_subst_files"; then
1337       cat <<\_ASBOX
1338 ## ------------- ##
1339 ## Output files. ##
1340 ## ------------- ##
1341 _ASBOX
1342       echo
1343       for ac_var in $ac_subst_files
1344       do
1345         eval ac_val=$`echo $ac_var`
1346         echo "$ac_var='"'"'$ac_val'"'"'"
1347       done | sort
1348       echo
1349     fi
1350
1351     if test -s confdefs.h; then
1352       cat <<\_ASBOX
1353 ## ----------- ##
1354 ## confdefs.h. ##
1355 ## ----------- ##
1356 _ASBOX
1357       echo
1358       sed "/^$/d" confdefs.h | sort
1359       echo
1360     fi
1361     test "$ac_signal" != 0 &&
1362       echo "$as_me: caught signal $ac_signal"
1363     echo "$as_me: exit $exit_status"
1364   } >&5
1365   rm -f core *.core &&
1366   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1367     exit $exit_status
1368      ' 0
1369 for ac_signal in 1 2 13 15; do
1370   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1371 done
1372 ac_signal=0
1373
1374 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1375 rm -rf conftest* confdefs.h
1376 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1377 echo >confdefs.h
1378
1379 # Predefined preprocessor variables.
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_NAME "$PACKAGE_NAME"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_STRING "$PACKAGE_STRING"
1398 _ACEOF
1399
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1403 _ACEOF
1404
1405
1406 # Let the site file select an alternate cache file if it wants to.
1407 # Prefer explicitly selected file to automatically selected ones.
1408 if test -z "$CONFIG_SITE"; then
1409   if test "x$prefix" != xNONE; then
1410     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1411   else
1412     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1413   fi
1414 fi
1415 for ac_site_file in $CONFIG_SITE; do
1416   if test -r "$ac_site_file"; then
1417     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418 echo "$as_me: loading site script $ac_site_file" >&6;}
1419     sed 's/^/| /' "$ac_site_file" >&5
1420     . "$ac_site_file"
1421   fi
1422 done
1423
1424 if test -r "$cache_file"; then
1425   # Some versions of bash will fail to source /dev/null (special
1426   # files actually), so we avoid doing that.
1427   if test -f "$cache_file"; then
1428     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429 echo "$as_me: loading cache $cache_file" >&6;}
1430     case $cache_file in
1431       [\\/]* | ?:[\\/]* ) . $cache_file;;
1432       *)                      . ./$cache_file;;
1433     esac
1434   fi
1435 else
1436   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437 echo "$as_me: creating cache $cache_file" >&6;}
1438   >$cache_file
1439 fi
1440
1441 # Check that the precious variables saved in the cache have kept the same
1442 # value.
1443 ac_cache_corrupted=false
1444 for ac_var in `(set) 2>&1 |
1445                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1446   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447   eval ac_new_set=\$ac_env_${ac_var}_set
1448   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449   eval ac_new_val="\$ac_env_${ac_var}_value"
1450   case $ac_old_set,$ac_new_set in
1451     set,)
1452       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454       ac_cache_corrupted=: ;;
1455     ,set)
1456       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458       ac_cache_corrupted=: ;;
1459     ,);;
1460     *)
1461       if test "x$ac_old_val" != "x$ac_new_val"; then
1462         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1463 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1464         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1465 echo "$as_me:   former value:  $ac_old_val" >&2;}
1466         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1467 echo "$as_me:   current value: $ac_new_val" >&2;}
1468         ac_cache_corrupted=:
1469       fi;;
1470   esac
1471   # Pass precious variables to config.status.
1472   if test "$ac_new_set" = set; then
1473     case $ac_new_val in
1474     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476     *) ac_arg=$ac_var=$ac_new_val ;;
1477     esac
1478     case " $ac_configure_args " in
1479       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1480       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1481     esac
1482   fi
1483 done
1484 if $ac_cache_corrupted; then
1485   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489    { (exit 1); exit 1; }; }
1490 fi
1491
1492 ac_ext=c
1493 ac_cpp='$CPP $CPPFLAGS'
1494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525 cat >>confdefs.h <<\_ACEOF
1526 #define _GNU_SOURCE 1
1527 _ACEOF
1528
1529
1530 am__api_version="1.9"
1531 ac_aux_dir=
1532 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1533   if test -f $ac_dir/install-sh; then
1534     ac_aux_dir=$ac_dir
1535     ac_install_sh="$ac_aux_dir/install-sh -c"
1536     break
1537   elif test -f $ac_dir/install.sh; then
1538     ac_aux_dir=$ac_dir
1539     ac_install_sh="$ac_aux_dir/install.sh -c"
1540     break
1541   elif test -f $ac_dir/shtool; then
1542     ac_aux_dir=$ac_dir
1543     ac_install_sh="$ac_aux_dir/shtool install -c"
1544     break
1545   fi
1546 done
1547 if test -z "$ac_aux_dir"; then
1548   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1549 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1550    { (exit 1); exit 1; }; }
1551 fi
1552 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1553 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1554 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1555
1556 # Find a good install program.  We prefer a C program (faster),
1557 # so one script is as good as another.  But avoid the broken or
1558 # incompatible versions:
1559 # SysV /etc/install, /usr/sbin/install
1560 # SunOS /usr/etc/install
1561 # IRIX /sbin/install
1562 # AIX /bin/install
1563 # AmigaOS /C/install, which installs bootblocks on floppy discs
1564 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1567 # OS/2's system install, which has a completely different semantic
1568 # ./install, which can be erroneously created by make from ./install.sh.
1569 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1570 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1571 if test -z "$INSTALL"; then
1572 if test "${ac_cv_path_install+set}" = set; then
1573   echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 for as_dir in $PATH
1577 do
1578   IFS=$as_save_IFS
1579   test -z "$as_dir" && as_dir=.
1580   # Account for people who put trailing slashes in PATH elements.
1581 case $as_dir/ in
1582   ./ | .// | /cC/* | \
1583   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1584   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1585   /usr/ucb/* ) ;;
1586   *)
1587     # OSF1 and SCO ODT 3.0 have their own names for install.
1588     # Don't use installbsd from OSF since it installs stuff as root
1589     # by default.
1590     for ac_prog in ginstall scoinst install; do
1591       for ac_exec_ext in '' $ac_executable_extensions; do
1592         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1593           if test $ac_prog = install &&
1594             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1595             # AIX install.  It has an incompatible calling convention.
1596             :
1597           elif test $ac_prog = install &&
1598             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1599             # program-specific install script used by HP pwplus--don't use.
1600             :
1601           else
1602             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1603             break 3
1604           fi
1605         fi
1606       done
1607     done
1608     ;;
1609 esac
1610 done
1611
1612
1613 fi
1614   if test "${ac_cv_path_install+set}" = set; then
1615     INSTALL=$ac_cv_path_install
1616   else
1617     # As a last resort, use the slow shell script.  We don't cache a
1618     # path for INSTALL within a source directory, because that will
1619     # break other packages using the cache if that directory is
1620     # removed, or if the path is relative.
1621     INSTALL=$ac_install_sh
1622   fi
1623 fi
1624 echo "$as_me:$LINENO: result: $INSTALL" >&5
1625 echo "${ECHO_T}$INSTALL" >&6
1626
1627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1628 # It thinks the first close brace ends the variable substitution.
1629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1630
1631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1632
1633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1634
1635 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1636 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1637 # Just in case
1638 sleep 1
1639 echo timestamp > conftest.file
1640 # Do `set' in a subshell so we don't clobber the current shell's
1641 # arguments.  Must try -L first in case configure is actually a
1642 # symlink; some systems play weird games with the mod time of symlinks
1643 # (eg FreeBSD returns the mod time of the symlink's containing
1644 # directory).
1645 if (
1646    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1647    if test "$*" = "X"; then
1648       # -L didn't work.
1649       set X `ls -t $srcdir/configure conftest.file`
1650    fi
1651    rm -f conftest.file
1652    if test "$*" != "X $srcdir/configure conftest.file" \
1653       && test "$*" != "X conftest.file $srcdir/configure"; then
1654
1655       # If neither matched, then we have a broken ls.  This can happen
1656       # if, for instance, CONFIG_SHELL is bash and it inherits a
1657       # broken ls alias from the environment.  This has actually
1658       # happened.  Such a system could not be considered "sane".
1659       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1660 alias in your environment" >&5
1661 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1662 alias in your environment" >&2;}
1663    { (exit 1); exit 1; }; }
1664    fi
1665
1666    test "$2" = conftest.file
1667    )
1668 then
1669    # Ok.
1670    :
1671 else
1672    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1673 Check your system clock" >&5
1674 echo "$as_me: error: newly created file is older than distributed files!
1675 Check your system clock" >&2;}
1676    { (exit 1); exit 1; }; }
1677 fi
1678 echo "$as_me:$LINENO: result: yes" >&5
1679 echo "${ECHO_T}yes" >&6
1680 test "$program_prefix" != NONE &&
1681   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1682 # Use a double $ so make ignores it.
1683 test "$program_suffix" != NONE &&
1684   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1685 # Double any \ or $.  echo might interpret backslashes.
1686 # By default was `s,x,x', remove it if useless.
1687 cat <<\_ACEOF >conftest.sed
1688 s/[\\$]/&&/g;s/;s,x,x,$//
1689 _ACEOF
1690 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1691 rm conftest.sed
1692
1693 # expand $ac_aux_dir to an absolute path
1694 am_aux_dir=`cd $ac_aux_dir && pwd`
1695
1696 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1697 # Use eval to expand $SHELL
1698 if eval "$MISSING --run true"; then
1699   am_missing_run="$MISSING --run "
1700 else
1701   am_missing_run=
1702   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1703 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1704 fi
1705
1706 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1707   # We used to keeping the `.' as first argument, in order to
1708   # allow $(mkdir_p) to be used without argument.  As in
1709   #   $(mkdir_p) $(somedir)
1710   # where $(somedir) is conditionally defined.  However this is wrong
1711   # for two reasons:
1712   #  1. if the package is installed by a user who cannot write `.'
1713   #     make install will fail,
1714   #  2. the above comment should most certainly read
1715   #     $(mkdir_p) $(DESTDIR)$(somedir)
1716   #     so it does not work when $(somedir) is undefined and
1717   #     $(DESTDIR) is not.
1718   #  To support the latter case, we have to write
1719   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1720   #  so the `.' trick is pointless.
1721   mkdir_p='mkdir -p --'
1722 else
1723   # On NextStep and OpenStep, the `mkdir' command does not
1724   # recognize any option.  It will interpret all options as
1725   # directories to create, and then abort because `.' already
1726   # exists.
1727   for d in ./-p ./--version;
1728   do
1729     test -d $d && rmdir $d
1730   done
1731   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1732   if test -f "$ac_aux_dir/mkinstalldirs"; then
1733     mkdir_p='$(mkinstalldirs)'
1734   else
1735     mkdir_p='$(install_sh) -d'
1736   fi
1737 fi
1738
1739 for ac_prog in gawk mawk nawk awk
1740 do
1741   # Extract the first word of "$ac_prog", so it can be a program name with args.
1742 set dummy $ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_AWK+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   if test -n "$AWK"; then
1749   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1750 else
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1753 do
1754   IFS=$as_save_IFS
1755   test -z "$as_dir" && as_dir=.
1756   for ac_exec_ext in '' $ac_executable_extensions; do
1757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758     ac_cv_prog_AWK="$ac_prog"
1759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760     break 2
1761   fi
1762 done
1763 done
1764
1765 fi
1766 fi
1767 AWK=$ac_cv_prog_AWK
1768 if test -n "$AWK"; then
1769   echo "$as_me:$LINENO: result: $AWK" >&5
1770 echo "${ECHO_T}$AWK" >&6
1771 else
1772   echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 fi
1775
1776   test -n "$AWK" && break
1777 done
1778
1779 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1780 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1781 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1782 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1783   echo $ECHO_N "(cached) $ECHO_C" >&6
1784 else
1785   cat >conftest.make <<\_ACEOF
1786 all:
1787         @echo 'ac_maketemp="$(MAKE)"'
1788 _ACEOF
1789 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1790 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1791 if test -n "$ac_maketemp"; then
1792   eval ac_cv_prog_make_${ac_make}_set=yes
1793 else
1794   eval ac_cv_prog_make_${ac_make}_set=no
1795 fi
1796 rm -f conftest.make
1797 fi
1798 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1799   echo "$as_me:$LINENO: result: yes" >&5
1800 echo "${ECHO_T}yes" >&6
1801   SET_MAKE=
1802 else
1803   echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1805   SET_MAKE="MAKE=${MAKE-make}"
1806 fi
1807
1808 rm -rf .tst 2>/dev/null
1809 mkdir .tst 2>/dev/null
1810 if test -d .tst; then
1811   am__leading_dot=.
1812 else
1813   am__leading_dot=_
1814 fi
1815 rmdir .tst 2>/dev/null
1816
1817 # test to see if srcdir already configured
1818 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1819    test -f $srcdir/config.status; then
1820   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1821 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1822    { (exit 1); exit 1; }; }
1823 fi
1824
1825 # test whether we have cygpath
1826 if test -z "$CYGPATH_W"; then
1827   if (cygpath --version) >/dev/null 2>/dev/null; then
1828     CYGPATH_W='cygpath -w'
1829   else
1830     CYGPATH_W=echo
1831   fi
1832 fi
1833
1834
1835 # Define the identity of the package.
1836  PACKAGE=webcit
1837  VERSION=6.72
1838
1839
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE "$PACKAGE"
1842 _ACEOF
1843
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define VERSION "$VERSION"
1847 _ACEOF
1848
1849 # Some tools Automake needs.
1850
1851 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1852
1853
1854 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1855
1856
1857 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1858
1859
1860 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1861
1862
1863 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1864
1865 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1866
1867 # Installed binaries are usually stripped using `strip' when the user
1868 # run `make install-strip'.  However `strip' might not be the right
1869 # tool to use in cross-compilation environments, therefore Automake
1870 # will honor the `STRIP' environment variable to overrule this program.
1871 if test "$cross_compiling" != no; then
1872   if test -n "$ac_tool_prefix"; then
1873   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1874 set dummy ${ac_tool_prefix}strip; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_STRIP+set}" = set; then
1878   echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880   if test -n "$STRIP"; then
1881   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1885 do
1886   IFS=$as_save_IFS
1887   test -z "$as_dir" && as_dir=.
1888   for ac_exec_ext in '' $ac_executable_extensions; do
1889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892     break 2
1893   fi
1894 done
1895 done
1896
1897 fi
1898 fi
1899 STRIP=$ac_cv_prog_STRIP
1900 if test -n "$STRIP"; then
1901   echo "$as_me:$LINENO: result: $STRIP" >&5
1902 echo "${ECHO_T}$STRIP" >&6
1903 else
1904   echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1906 fi
1907
1908 fi
1909 if test -z "$ac_cv_prog_STRIP"; then
1910   ac_ct_STRIP=$STRIP
1911   # Extract the first word of "strip", so it can be a program name with args.
1912 set dummy strip; ac_word=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1916   echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918   if test -n "$ac_ct_STRIP"; then
1919   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1920 else
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 for as_dir in $PATH
1923 do
1924   IFS=$as_save_IFS
1925   test -z "$as_dir" && as_dir=.
1926   for ac_exec_ext in '' $ac_executable_extensions; do
1927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928     ac_cv_prog_ac_ct_STRIP="strip"
1929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930     break 2
1931   fi
1932 done
1933 done
1934
1935   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1936 fi
1937 fi
1938 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1939 if test -n "$ac_ct_STRIP"; then
1940   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1941 echo "${ECHO_T}$ac_ct_STRIP" >&6
1942 else
1943   echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945 fi
1946
1947   STRIP=$ac_ct_STRIP
1948 else
1949   STRIP="$ac_cv_prog_STRIP"
1950 fi
1951
1952 fi
1953 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1954
1955 # We need awk for the "check" target.  The system "awk" is bad on
1956 # some platforms.
1957 # Always define AMTAR for backward compatibility.
1958
1959 AMTAR=${AMTAR-"${am_missing_run}tar"}
1960
1961 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1962
1963
1964
1965
1966
1967           ac_config_headers="$ac_config_headers config.h"
1968
1969 # Check whether --enable-shared or --disable-shared was given.
1970 if test "${enable_shared+set}" = set; then
1971   enableval="$enable_shared"
1972   p=${PACKAGE-default}
1973     case $enableval in
1974     yes) enable_shared=yes ;;
1975     no) enable_shared=no ;;
1976     *)
1977       enable_shared=no
1978       # Look at the argument we got.  We use all the common list separators.
1979       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1980       for pkg in $enableval; do
1981         IFS="$lt_save_ifs"
1982         if test "X$pkg" = "X$p"; then
1983           enable_shared=yes
1984         fi
1985       done
1986       IFS="$lt_save_ifs"
1987       ;;
1988     esac
1989 else
1990   enable_shared=yes
1991 fi;
1992
1993 # Check whether --enable-static or --disable-static was given.
1994 if test "${enable_static+set}" = set; then
1995   enableval="$enable_static"
1996   p=${PACKAGE-default}
1997     case $enableval in
1998     yes) enable_static=yes ;;
1999     no) enable_static=no ;;
2000     *)
2001      enable_static=no
2002       # Look at the argument we got.  We use all the common list separators.
2003       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2004       for pkg in $enableval; do
2005         IFS="$lt_save_ifs"
2006         if test "X$pkg" = "X$p"; then
2007           enable_static=yes
2008         fi
2009       done
2010       IFS="$lt_save_ifs"
2011       ;;
2012     esac
2013 else
2014   enable_static=yes
2015 fi;
2016
2017 # Check whether --enable-fast-install or --disable-fast-install was given.
2018 if test "${enable_fast_install+set}" = set; then
2019   enableval="$enable_fast_install"
2020   p=${PACKAGE-default}
2021     case $enableval in
2022     yes) enable_fast_install=yes ;;
2023     no) enable_fast_install=no ;;
2024     *)
2025       enable_fast_install=no
2026       # Look at the argument we got.  We use all the common list separators.
2027       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2028       for pkg in $enableval; do
2029         IFS="$lt_save_ifs"
2030         if test "X$pkg" = "X$p"; then
2031           enable_fast_install=yes
2032         fi
2033       done
2034       IFS="$lt_save_ifs"
2035       ;;
2036     esac
2037 else
2038   enable_fast_install=yes
2039 fi;
2040
2041 # Make sure we can run config.sub.
2042 $ac_config_sub sun4 >/dev/null 2>&1 ||
2043   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2044 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2045    { (exit 1); exit 1; }; }
2046
2047 echo "$as_me:$LINENO: checking build system type" >&5
2048 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2049 if test "${ac_cv_build+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   ac_cv_build_alias=$build_alias
2053 test -z "$ac_cv_build_alias" &&
2054   ac_cv_build_alias=`$ac_config_guess`
2055 test -z "$ac_cv_build_alias" &&
2056   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2057 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2058    { (exit 1); exit 1; }; }
2059 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2060   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2061 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2062    { (exit 1); exit 1; }; }
2063
2064 fi
2065 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2066 echo "${ECHO_T}$ac_cv_build" >&6
2067 build=$ac_cv_build
2068 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2069 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2070 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2071
2072
2073 echo "$as_me:$LINENO: checking host system type" >&5
2074 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2075 if test "${ac_cv_host+set}" = set; then
2076   echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078   ac_cv_host_alias=$host_alias
2079 test -z "$ac_cv_host_alias" &&
2080   ac_cv_host_alias=$ac_cv_build_alias
2081 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2082   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2083 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2084    { (exit 1); exit 1; }; }
2085
2086 fi
2087 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2088 echo "${ECHO_T}$ac_cv_host" >&6
2089 host=$ac_cv_host
2090 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2091 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2092 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2093
2094
2095 DEPDIR="${am__leading_dot}deps"
2096
2097           ac_config_commands="$ac_config_commands depfiles"
2098
2099
2100 am_make=${MAKE-make}
2101 cat > confinc << 'END'
2102 am__doit:
2103         @echo done
2104 .PHONY: am__doit
2105 END
2106 # If we don't find an include directive, just comment out the code.
2107 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2108 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2109 am__include="#"
2110 am__quote=
2111 _am_result=none
2112 # First try GNU make style include.
2113 echo "include confinc" > confmf
2114 # We grep out `Entering directory' and `Leaving directory'
2115 # messages which can occur if `w' ends up in MAKEFLAGS.
2116 # In particular we don't look at `^make:' because GNU make might
2117 # be invoked under some other name (usually "gmake"), in which
2118 # case it prints its new name instead of `make'.
2119 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2120    am__include=include
2121    am__quote=
2122    _am_result=GNU
2123 fi
2124 # Now try BSD make style include.
2125 if test "$am__include" = "#"; then
2126    echo '.include "confinc"' > confmf
2127    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2128       am__include=.include
2129       am__quote="\""
2130       _am_result=BSD
2131    fi
2132 fi
2133
2134
2135 echo "$as_me:$LINENO: result: $_am_result" >&5
2136 echo "${ECHO_T}$_am_result" >&6
2137 rm -f confinc confmf
2138
2139 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2140 if test "${enable_dependency_tracking+set}" = set; then
2141   enableval="$enable_dependency_tracking"
2142
2143 fi;
2144 if test "x$enable_dependency_tracking" != xno; then
2145   am_depcomp="$ac_aux_dir/depcomp"
2146   AMDEPBACKSLASH='\'
2147 fi
2148
2149
2150 if test "x$enable_dependency_tracking" != xno; then
2151   AMDEP_TRUE=
2152   AMDEP_FALSE='#'
2153 else
2154   AMDEP_TRUE='#'
2155   AMDEP_FALSE=
2156 fi
2157
2158
2159
2160 ac_ext=c
2161 ac_cpp='$CPP $CPPFLAGS'
2162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2165 if test -n "$ac_tool_prefix"; then
2166   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2167 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2168 echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   if test -n "$CC"; then
2174   ac_cv_prog_CC="$CC" # Let the user override the test.
2175 else
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH
2178 do
2179   IFS=$as_save_IFS
2180   test -z "$as_dir" && as_dir=.
2181   for ac_exec_ext in '' $ac_executable_extensions; do
2182   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185     break 2
2186   fi
2187 done
2188 done
2189
2190 fi
2191 fi
2192 CC=$ac_cv_prog_CC
2193 if test -n "$CC"; then
2194   echo "$as_me:$LINENO: result: $CC" >&5
2195 echo "${ECHO_T}$CC" >&6
2196 else
2197   echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6
2199 fi
2200
2201 fi
2202 if test -z "$ac_cv_prog_CC"; then
2203   ac_ct_CC=$CC
2204   # Extract the first word of "gcc", so it can be a program name with args.
2205 set dummy gcc; ac_word=$2
2206 echo "$as_me:$LINENO: checking for $ac_word" >&5
2207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2208 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2209   echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211   if test -n "$ac_ct_CC"; then
2212   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2213 else
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 for as_dir in $PATH
2216 do
2217   IFS=$as_save_IFS
2218   test -z "$as_dir" && as_dir=.
2219   for ac_exec_ext in '' $ac_executable_extensions; do
2220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2221     ac_cv_prog_ac_ct_CC="gcc"
2222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223     break 2
2224   fi
2225 done
2226 done
2227
2228 fi
2229 fi
2230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2231 if test -n "$ac_ct_CC"; then
2232   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2233 echo "${ECHO_T}$ac_ct_CC" >&6
2234 else
2235   echo "$as_me:$LINENO: result: no" >&5
2236 echo "${ECHO_T}no" >&6
2237 fi
2238
2239   CC=$ac_ct_CC
2240 else
2241   CC="$ac_cv_prog_CC"
2242 fi
2243
2244 if test -z "$CC"; then
2245   if test -n "$ac_tool_prefix"; then
2246   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2247 set dummy ${ac_tool_prefix}cc; ac_word=$2
2248 echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2250 if test "${ac_cv_prog_CC+set}" = set; then
2251   echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253   if test -n "$CC"; then
2254   ac_cv_prog_CC="$CC" # Let the user override the test.
2255 else
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2258 do
2259   IFS=$as_save_IFS
2260   test -z "$as_dir" && as_dir=.
2261   for ac_exec_ext in '' $ac_executable_extensions; do
2262   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2263     ac_cv_prog_CC="${ac_tool_prefix}cc"
2264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265     break 2
2266   fi
2267 done
2268 done
2269
2270 fi
2271 fi
2272 CC=$ac_cv_prog_CC
2273 if test -n "$CC"; then
2274   echo "$as_me:$LINENO: result: $CC" >&5
2275 echo "${ECHO_T}$CC" >&6
2276 else
2277   echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6
2279 fi
2280
2281 fi
2282 if test -z "$ac_cv_prog_CC"; then
2283   ac_ct_CC=$CC
2284   # Extract the first word of "cc", so it can be a program name with args.
2285 set dummy cc; ac_word=$2
2286 echo "$as_me:$LINENO: checking for $ac_word" >&5
2287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2288 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2289   echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291   if test -n "$ac_ct_CC"; then
2292   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2293 else
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2296 do
2297   IFS=$as_save_IFS
2298   test -z "$as_dir" && as_dir=.
2299   for ac_exec_ext in '' $ac_executable_extensions; do
2300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2301     ac_cv_prog_ac_ct_CC="cc"
2302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303     break 2
2304   fi
2305 done
2306 done
2307
2308 fi
2309 fi
2310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2311 if test -n "$ac_ct_CC"; then
2312   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2313 echo "${ECHO_T}$ac_ct_CC" >&6
2314 else
2315   echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6
2317 fi
2318
2319   CC=$ac_ct_CC
2320 else
2321   CC="$ac_cv_prog_CC"
2322 fi
2323
2324 fi
2325 if test -z "$CC"; then
2326   # Extract the first word of "cc", so it can be a program name with args.
2327 set dummy cc; ac_word=$2
2328 echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2330 if test "${ac_cv_prog_CC+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   if test -n "$CC"; then
2334   ac_cv_prog_CC="$CC" # Let the user override the test.
2335 else
2336   ac_prog_rejected=no
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2339 do
2340   IFS=$as_save_IFS
2341   test -z "$as_dir" && as_dir=.
2342   for ac_exec_ext in '' $ac_executable_extensions; do
2343   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2344     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2345        ac_prog_rejected=yes
2346        continue
2347      fi
2348     ac_cv_prog_CC="cc"
2349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350     break 2
2351   fi
2352 done
2353 done
2354
2355 if test $ac_prog_rejected = yes; then
2356   # We found a bogon in the path, so make sure we never use it.
2357   set dummy $ac_cv_prog_CC
2358   shift
2359   if test $# != 0; then
2360     # We chose a different compiler from the bogus one.
2361     # However, it has the same basename, so the bogon will be chosen
2362     # first if we set CC to just the basename; use the full file name.
2363     shift
2364     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2365   fi
2366 fi
2367 fi
2368 fi
2369 CC=$ac_cv_prog_CC
2370 if test -n "$CC"; then
2371   echo "$as_me:$LINENO: result: $CC" >&5
2372 echo "${ECHO_T}$CC" >&6
2373 else
2374   echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6
2376 fi
2377
2378 fi
2379 if test -z "$CC"; then
2380   if test -n "$ac_tool_prefix"; then
2381   for ac_prog in cl
2382   do
2383     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2384 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2385 echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2387 if test "${ac_cv_prog_CC+set}" = set; then
2388   echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390   if test -n "$CC"; then
2391   ac_cv_prog_CC="$CC" # Let the user override the test.
2392 else
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 for as_dir in $PATH
2395 do
2396   IFS=$as_save_IFS
2397   test -z "$as_dir" && as_dir=.
2398   for ac_exec_ext in '' $ac_executable_extensions; do
2399   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2400     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402     break 2
2403   fi
2404 done
2405 done
2406
2407 fi
2408 fi
2409 CC=$ac_cv_prog_CC
2410 if test -n "$CC"; then
2411   echo "$as_me:$LINENO: result: $CC" >&5
2412 echo "${ECHO_T}$CC" >&6
2413 else
2414   echo "$as_me:$LINENO: result: no" >&5
2415 echo "${ECHO_T}no" >&6
2416 fi
2417
2418     test -n "$CC" && break
2419   done
2420 fi
2421 if test -z "$CC"; then
2422   ac_ct_CC=$CC
2423   for ac_prog in cl
2424 do
2425   # Extract the first word of "$ac_prog", so it can be a program name with args.
2426 set dummy $ac_prog; ac_word=$2
2427 echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2430   echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432   if test -n "$ac_ct_CC"; then
2433   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2437 do
2438   IFS=$as_save_IFS
2439   test -z "$as_dir" && as_dir=.
2440   for ac_exec_ext in '' $ac_executable_extensions; do
2441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442     ac_cv_prog_ac_ct_CC="$ac_prog"
2443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444     break 2
2445   fi
2446 done
2447 done
2448
2449 fi
2450 fi
2451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2452 if test -n "$ac_ct_CC"; then
2453   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2454 echo "${ECHO_T}$ac_ct_CC" >&6
2455 else
2456   echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6
2458 fi
2459
2460   test -n "$ac_ct_CC" && break
2461 done
2462
2463   CC=$ac_ct_CC
2464 fi
2465
2466 fi
2467
2468
2469 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2470 See \`config.log' for more details." >&5
2471 echo "$as_me: error: no acceptable C compiler found in \$PATH
2472 See \`config.log' for more details." >&2;}
2473    { (exit 1); exit 1; }; }
2474
2475 # Provide some information about the compiler.
2476 echo "$as_me:$LINENO:" \
2477      "checking for C compiler version" >&5
2478 ac_compiler=`set X $ac_compile; echo $2`
2479 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2480   (eval $ac_compiler --version </dev/null >&5) 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }
2484 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2485   (eval $ac_compiler -v </dev/null >&5) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }
2489 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2490   (eval $ac_compiler -V </dev/null >&5) 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }
2494
2495 cat >conftest.$ac_ext <<_ACEOF
2496 /* confdefs.h.  */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h.  */
2501
2502 int
2503 main ()
2504 {
2505
2506   ;
2507   return 0;
2508 }
2509 _ACEOF
2510 ac_clean_files_save=$ac_clean_files
2511 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2512 # Try to create an executable without -o first, disregard a.out.
2513 # It will help us diagnose broken compilers, and finding out an intuition
2514 # of exeext.
2515 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2516 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2517 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2518 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2519   (eval $ac_link_default) 2>&5
2520   ac_status=$?
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); }; then
2523   # Find the output, starting from the most likely.  This scheme is
2524 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2525 # resort.
2526
2527 # Be careful to initialize this variable, since it used to be cached.
2528 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2529 ac_cv_exeext=
2530 # b.out is created by i960 compilers.
2531 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2532 do
2533   test -f "$ac_file" || continue
2534   case $ac_file in
2535     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2536         ;;
2537     conftest.$ac_ext )
2538         # This is the source file.
2539         ;;
2540     [ab].out )
2541         # We found the default executable, but exeext='' is most
2542         # certainly right.
2543         break;;
2544     *.* )
2545         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2546         # FIXME: I believe we export ac_cv_exeext for Libtool,
2547         # but it would be cool to find out if it's true.  Does anybody
2548         # maintain Libtool? --akim.
2549         export ac_cv_exeext
2550         break;;
2551     * )
2552         break;;
2553   esac
2554 done
2555 else
2556   echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2558
2559 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2560 See \`config.log' for more details." >&5
2561 echo "$as_me: error: C compiler cannot create executables
2562 See \`config.log' for more details." >&2;}
2563    { (exit 77); exit 77; }; }
2564 fi
2565
2566 ac_exeext=$ac_cv_exeext
2567 echo "$as_me:$LINENO: result: $ac_file" >&5
2568 echo "${ECHO_T}$ac_file" >&6
2569
2570 # Check the compiler produces executables we can run.  If not, either
2571 # the compiler is broken, or we cross compile.
2572 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2573 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2574 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2575 # If not cross compiling, check that we can run a simple program.
2576 if test "$cross_compiling" != yes; then
2577   if { ac_try='./$ac_file'
2578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579   (eval $ac_try) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; }; then
2583     cross_compiling=no
2584   else
2585     if test "$cross_compiling" = maybe; then
2586         cross_compiling=yes
2587     else
2588         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2589 If you meant to cross compile, use \`--host'.
2590 See \`config.log' for more details." >&5
2591 echo "$as_me: error: cannot run C compiled programs.
2592 If you meant to cross compile, use \`--host'.
2593 See \`config.log' for more details." >&2;}
2594    { (exit 1); exit 1; }; }
2595     fi
2596   fi
2597 fi
2598 echo "$as_me:$LINENO: result: yes" >&5
2599 echo "${ECHO_T}yes" >&6
2600
2601 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2602 ac_clean_files=$ac_clean_files_save
2603 # Check the compiler produces executables we can run.  If not, either
2604 # the compiler is broken, or we cross compile.
2605 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2606 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2607 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2608 echo "${ECHO_T}$cross_compiling" >&6
2609
2610 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2611 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2613   (eval $ac_link) 2>&5
2614   ac_status=$?
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); }; then
2617   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2618 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2619 # work properly (i.e., refer to `conftest.exe'), while it won't with
2620 # `rm'.
2621 for ac_file in conftest.exe conftest conftest.*; do
2622   test -f "$ac_file" || continue
2623   case $ac_file in
2624     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2625     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2626           export ac_cv_exeext
2627           break;;
2628     * ) break;;
2629   esac
2630 done
2631 else
2632   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2633 See \`config.log' for more details." >&5
2634 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2635 See \`config.log' for more details." >&2;}
2636    { (exit 1); exit 1; }; }
2637 fi
2638
2639 rm -f conftest$ac_cv_exeext
2640 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2641 echo "${ECHO_T}$ac_cv_exeext" >&6
2642
2643 rm -f conftest.$ac_ext
2644 EXEEXT=$ac_cv_exeext
2645 ac_exeext=$EXEEXT
2646 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2647 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2648 if test "${ac_cv_objext+set}" = set; then
2649   echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651   cat >conftest.$ac_ext <<_ACEOF
2652 /* confdefs.h.  */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h.  */
2657
2658 int
2659 main ()
2660 {
2661
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.o conftest.obj
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); }; then
2672   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2673   case $ac_file in
2674     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2675     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2676        break;;
2677   esac
2678 done
2679 else
2680   echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2684 See \`config.log' for more details." >&5
2685 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2686 See \`config.log' for more details." >&2;}
2687    { (exit 1); exit 1; }; }
2688 fi
2689
2690 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2691 fi
2692 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2693 echo "${ECHO_T}$ac_cv_objext" >&6
2694 OBJEXT=$ac_cv_objext
2695 ac_objext=$OBJEXT
2696 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2697 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2698 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2699   echo $ECHO_N "(cached) $ECHO_C" >&6
2700 else
2701   cat >conftest.$ac_ext <<_ACEOF
2702 /* confdefs.h.  */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h.  */
2707
2708 int
2709 main ()
2710 {
2711 #ifndef __GNUC__
2712        choke me
2713 #endif
2714
2715   ;
2716   return 0;
2717 }
2718 _ACEOF
2719 rm -f conftest.$ac_objext
2720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721   (eval $ac_compile) 2>conftest.er1
2722   ac_status=$?
2723   grep -v '^ *+' conftest.er1 >conftest.err
2724   rm -f conftest.er1
2725   cat conftest.err >&5
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); } &&
2728          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730   (eval $ac_try) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; } &&
2734          { ac_try='test -s conftest.$ac_objext'
2735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736   (eval $ac_try) 2>&5
2737   ac_status=$?
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); }; }; then
2740   ac_compiler_gnu=yes
2741 else
2742   echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2744
2745 ac_compiler_gnu=no
2746 fi
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2749
2750 fi
2751 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2752 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2753 GCC=`test $ac_compiler_gnu = yes && echo yes`
2754 ac_test_CFLAGS=${CFLAGS+set}
2755 ac_save_CFLAGS=$CFLAGS
2756 CFLAGS="-g"
2757 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2758 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2759 if test "${ac_cv_prog_cc_g+set}" = set; then
2760   echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762   cat >conftest.$ac_ext <<_ACEOF
2763 /* confdefs.h.  */
2764 _ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h.  */
2768
2769 int
2770 main ()
2771 {
2772
2773   ;
2774   return 0;
2775 }
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779   (eval $ac_compile) 2>conftest.er1
2780   ac_status=$?
2781   grep -v '^ *+' conftest.er1 >conftest.err
2782   rm -f conftest.er1
2783   cat conftest.err >&5
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); } &&
2786          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788   (eval $ac_try) 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); }; } &&
2792          { ac_try='test -s conftest.$ac_objext'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; }; then
2798   ac_cv_prog_cc_g=yes
2799 else
2800   echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2802
2803 ac_cv_prog_cc_g=no
2804 fi
2805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2806 fi
2807 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2808 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2809 if test "$ac_test_CFLAGS" = set; then
2810   CFLAGS=$ac_save_CFLAGS
2811 elif test $ac_cv_prog_cc_g = yes; then
2812   if test "$GCC" = yes; then
2813     CFLAGS="-g -O2"
2814   else
2815     CFLAGS="-g"
2816   fi
2817 else
2818   if test "$GCC" = yes; then
2819     CFLAGS="-O2"
2820   else
2821     CFLAGS=
2822   fi
2823 fi
2824 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2825 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2826 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2827   echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829   ac_cv_prog_cc_stdc=no
2830 ac_save_CC=$CC
2831 cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h.  */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h.  */
2837 #include <stdarg.h>
2838 #include <stdio.h>
2839 #include <sys/types.h>
2840 #include <sys/stat.h>
2841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2842 struct buf { int x; };
2843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2844 static char *e (p, i)
2845      char **p;
2846      int i;
2847 {
2848   return p[i];
2849 }
2850 static char *f (char * (*g) (char **, int), char **p, ...)
2851 {
2852   char *s;
2853   va_list v;
2854   va_start (v,p);
2855   s = g (p, va_arg (v,int));
2856   va_end (v);
2857   return s;
2858 }
2859
2860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2861    function prototypes and stuff, but not '\xHH' hex character constants.
2862    These don't provoke an error unfortunately, instead are silently treated
2863    as 'x'.  The following induces an error, until -std1 is added to get
2864    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2865    array size at least.  It's necessary to write '\x00'==0 to get something
2866    that's true only with -std1.  */
2867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2868
2869 int test (int i, double x);
2870 struct s1 {int (*f) (int a);};
2871 struct s2 {int (*f) (double a);};
2872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2873 int argc;
2874 char **argv;
2875 int
2876 main ()
2877 {
2878 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2879   ;
2880   return 0;
2881 }
2882 _ACEOF
2883 # Don't try gcc -ansi; that turns off useful extensions and
2884 # breaks some systems' header files.
2885 # AIX                   -qlanglvl=ansi
2886 # Ultrix and OSF/1      -std1
2887 # HP-UX 10.20 and later -Ae
2888 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2889 # SVR4                  -Xc -D__EXTENSIONS__
2890 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2891 do
2892   CC="$ac_save_CC $ac_arg"
2893   rm -f conftest.$ac_objext
2894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2895   (eval $ac_compile) 2>conftest.er1
2896   ac_status=$?
2897   grep -v '^ *+' conftest.er1 >conftest.err
2898   rm -f conftest.er1
2899   cat conftest.err >&5
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); } &&
2902          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904   (eval $ac_try) 2>&5
2905   ac_status=$?
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); }; } &&
2908          { ac_try='test -s conftest.$ac_objext'
2909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910   (eval $ac_try) 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; }; then
2914   ac_cv_prog_cc_stdc=$ac_arg
2915 break
2916 else
2917   echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2919
2920 fi
2921 rm -f conftest.err conftest.$ac_objext
2922 done
2923 rm -f conftest.$ac_ext conftest.$ac_objext
2924 CC=$ac_save_CC
2925
2926 fi
2927
2928 case "x$ac_cv_prog_cc_stdc" in
2929   x|xno)
2930     echo "$as_me:$LINENO: result: none needed" >&5
2931 echo "${ECHO_T}none needed" >&6 ;;
2932   *)
2933     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2934 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2935     CC="$CC $ac_cv_prog_cc_stdc" ;;
2936 esac
2937
2938 # Some people use a C++ compiler to compile C.  Since we use `exit',
2939 # in C++ we need to declare it.  In case someone uses the same compiler
2940 # for both compiling C and C++ we need to have the C++ compiler decide
2941 # the declaration of exit, since it's the most demanding environment.
2942 cat >conftest.$ac_ext <<_ACEOF
2943 #ifndef __cplusplus
2944   choke me
2945 #endif
2946 _ACEOF
2947 rm -f conftest.$ac_objext
2948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2949   (eval $ac_compile) 2>conftest.er1
2950   ac_status=$?
2951   grep -v '^ *+' conftest.er1 >conftest.err
2952   rm -f conftest.er1
2953   cat conftest.err >&5
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); } &&
2956          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958   (eval $ac_try) 2>&5
2959   ac_status=$?
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); }; } &&
2962          { ac_try='test -s conftest.$ac_objext'
2963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964   (eval $ac_try) 2>&5
2965   ac_status=$?
2966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967   (exit $ac_status); }; }; then
2968   for ac_declaration in \
2969    '' \
2970    'extern "C" void std::exit (int) throw (); using std::exit;' \
2971    'extern "C" void std::exit (int); using std::exit;' \
2972    'extern "C" void exit (int) throw ();' \
2973    'extern "C" void exit (int);' \
2974    'void exit (int);'
2975 do
2976   cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h.  */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h.  */
2982 $ac_declaration
2983 #include <stdlib.h>
2984 int
2985 main ()
2986 {
2987 exit (42);
2988   ;
2989   return 0;
2990 }
2991 _ACEOF
2992 rm -f conftest.$ac_objext
2993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2994   (eval $ac_compile) 2>conftest.er1
2995   ac_status=$?
2996   grep -v '^ *+' conftest.er1 >conftest.err
2997   rm -f conftest.er1
2998   cat conftest.err >&5
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); } &&
3001          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003   (eval $ac_try) 2>&5
3004   ac_status=$?
3005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006   (exit $ac_status); }; } &&
3007          { ac_try='test -s conftest.$ac_objext'
3008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009   (eval $ac_try) 2>&5
3010   ac_status=$?
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); }; }; then
3013   :
3014 else
3015   echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3017
3018 continue
3019 fi
3020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3021   cat >conftest.$ac_ext <<_ACEOF
3022 /* confdefs.h.  */
3023 _ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h.  */
3027 $ac_declaration
3028 int
3029 main ()
3030 {
3031 exit (42);
3032   ;
3033   return 0;
3034 }
3035 _ACEOF
3036 rm -f conftest.$ac_objext
3037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3038   (eval $ac_compile) 2>conftest.er1
3039   ac_status=$?
3040   grep -v '^ *+' conftest.er1 >conftest.err
3041   rm -f conftest.er1
3042   cat conftest.err >&5
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); } &&
3045          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047   (eval $ac_try) 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); }; } &&
3051          { ac_try='test -s conftest.$ac_objext'
3052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053   (eval $ac_try) 2>&5
3054   ac_status=$?
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); }; }; then
3057   break
3058 else
3059   echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3061
3062 fi
3063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3064 done
3065 rm -f conftest*
3066 if test -n "$ac_declaration"; then
3067   echo '#ifdef __cplusplus' >>confdefs.h
3068   echo $ac_declaration      >>confdefs.h
3069   echo '#endif'             >>confdefs.h
3070 fi
3071
3072 else
3073   echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3075
3076 fi
3077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3078 ac_ext=c
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3083
3084 depcc="$CC"   am_compiler_list=
3085
3086 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3087 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3088 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3089   echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3092   # We make a subdir and do the tests there.  Otherwise we can end up
3093   # making bogus files that we don't know about and never remove.  For
3094   # instance it was reported that on HP-UX the gcc test will end up
3095   # making a dummy file named `D' -- because `-MD' means `put the output
3096   # in D'.
3097   mkdir conftest.dir
3098   # Copy depcomp to subdir because otherwise we won't find it if we're
3099   # using a relative directory.
3100   cp "$am_depcomp" conftest.dir
3101   cd conftest.dir
3102   # We will build objects and dependencies in a subdirectory because
3103   # it helps to detect inapplicable dependency modes.  For instance
3104   # both Tru64's cc and ICC support -MD to output dependencies as a
3105   # side effect of compilation, but ICC will put the dependencies in
3106   # the current directory while Tru64 will put them in the object
3107   # directory.
3108   mkdir sub
3109
3110   am_cv_CC_dependencies_compiler_type=none
3111   if test "$am_compiler_list" = ""; then
3112      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3113   fi
3114   for depmode in $am_compiler_list; do
3115     # Setup a source with many dependencies, because some compilers
3116     # like to wrap large dependency lists on column 80 (with \), and
3117     # we should not choose a depcomp mode which is confused by this.
3118     #
3119     # We need to recreate these files for each test, as the compiler may
3120     # overwrite some of them when testing with obscure command lines.
3121     # This happens at least with the AIX C compiler.
3122     : > sub/conftest.c
3123     for i in 1 2 3 4 5 6; do
3124       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3125       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3126       # Solaris 8's {/usr,}/bin/sh.
3127       touch sub/conftst$i.h
3128     done
3129     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3130
3131     case $depmode in
3132     nosideeffect)
3133       # after this tag, mechanisms are not by side-effect, so they'll
3134       # only be used when explicitly requested
3135       if test "x$enable_dependency_tracking" = xyes; then
3136         continue
3137       else
3138         break
3139       fi
3140       ;;
3141     none) break ;;
3142     esac
3143     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3144     # mode.  It turns out that the SunPro C++ compiler does not properly
3145     # handle `-M -o', and we need to detect this.
3146     if depmode=$depmode \
3147        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3148        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3149        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3150          >/dev/null 2>conftest.err &&
3151        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3152        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3153        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3154       # icc doesn't choke on unknown options, it will just issue warnings
3155       # or remarks (even with -Werror).  So we grep stderr for any message
3156       # that says an option was ignored or not supported.
3157       # When given -MP, icc 7.0 and 7.1 complain thusly:
3158       #   icc: Command line warning: ignoring option '-M'; no argument required
3159       # The diagnosis changed in icc 8.0:
3160       #   icc: Command line remark: option '-MP' not supported
3161       if (grep 'ignoring option' conftest.err ||
3162           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3163         am_cv_CC_dependencies_compiler_type=$depmode
3164         break
3165       fi
3166     fi
3167   done
3168
3169   cd ..
3170   rm -rf conftest.dir
3171 else
3172   am_cv_CC_dependencies_compiler_type=none
3173 fi
3174
3175 fi
3176 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3177 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3178 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3179
3180
3181
3182 if
3183   test "x$enable_dependency_tracking" != xno \
3184   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3185   am__fastdepCC_TRUE=
3186   am__fastdepCC_FALSE='#'
3187 else
3188   am__fastdepCC_TRUE='#'
3189   am__fastdepCC_FALSE=
3190 fi
3191
3192
3193 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3194 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3195 if test "${lt_cv_path_SED+set}" = set; then
3196   echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198   # Loop through the user's path and test for sed and gsed.
3199 # Then use that list of sed's as ones to test for truncation.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205   for lt_ac_prog in sed gsed; do
3206     for ac_exec_ext in '' $ac_executable_extensions; do
3207       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3208         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3209       fi
3210     done
3211   done
3212 done
3213 lt_ac_max=0
3214 lt_ac_count=0
3215 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3216 # along with /bin/sed that truncates output.
3217 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3218   test ! -f $lt_ac_sed && continue
3219   cat /dev/null > conftest.in
3220   lt_ac_count=0
3221   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3222   # Check for GNU sed and select it if it is found.
3223   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3224     lt_cv_path_SED=$lt_ac_sed
3225     break
3226   fi
3227   while true; do
3228     cat conftest.in conftest.in >conftest.tmp
3229     mv conftest.tmp conftest.in
3230     cp conftest.in conftest.nl
3231     echo >>conftest.nl
3232     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3233     cmp -s conftest.out conftest.nl || break
3234     # 10000 chars as input seems more than enough
3235     test $lt_ac_count -gt 10 && break
3236     lt_ac_count=`expr $lt_ac_count + 1`
3237     if test $lt_ac_count -gt $lt_ac_max; then
3238       lt_ac_max=$lt_ac_count
3239       lt_cv_path_SED=$lt_ac_sed
3240     fi
3241   done
3242 done
3243
3244 fi
3245
3246 SED=$lt_cv_path_SED
3247 echo "$as_me:$LINENO: result: $SED" >&5
3248 echo "${ECHO_T}$SED" >&6
3249
3250 echo "$as_me:$LINENO: checking for egrep" >&5
3251 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3252 if test "${ac_cv_prog_egrep+set}" = set; then
3253   echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3256     then ac_cv_prog_egrep='grep -E'
3257     else ac_cv_prog_egrep='egrep'
3258     fi
3259 fi
3260 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3261 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3262  EGREP=$ac_cv_prog_egrep
3263
3264
3265
3266 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3267 if test "${with_gnu_ld+set}" = set; then
3268   withval="$with_gnu_ld"
3269   test "$withval" = no || with_gnu_ld=yes
3270 else
3271   with_gnu_ld=no
3272 fi;
3273 ac_prog=ld
3274 if test "$GCC" = yes; then
3275   # Check if gcc -print-prog-name=ld gives a path.
3276   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3277 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3278   case $host in
3279   *-*-mingw*)
3280     # gcc leaves a trailing carriage return which upsets mingw
3281     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3282   *)
3283     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3284   esac
3285   case $ac_prog in
3286     # Accept absolute paths.
3287     [\\/]* | ?:[\\/]*)
3288       re_direlt='/[^/][^/]*/\.\./'
3289       # Canonicalize the pathname of ld
3290       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3291       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3292         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3293       done
3294       test -z "$LD" && LD="$ac_prog"
3295       ;;
3296   "")
3297     # If it fails, then pretend we aren't using GCC.
3298     ac_prog=ld
3299     ;;
3300   *)
3301     # If it is relative, then search for the first ld in PATH.
3302     with_gnu_ld=unknown
3303     ;;
3304   esac
3305 elif test "$with_gnu_ld" = yes; then
3306   echo "$as_me:$LINENO: checking for GNU ld" >&5
3307 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3308 else
3309   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3310 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3311 fi
3312 if test "${lt_cv_path_LD+set}" = set; then
3313   echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315   if test -z "$LD"; then
3316   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3317   for ac_dir in $PATH; do
3318     IFS="$lt_save_ifs"
3319     test -z "$ac_dir" && ac_dir=.
3320     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3321       lt_cv_path_LD="$ac_dir/$ac_prog"
3322       # Check to see if the program is GNU ld.  I'd rather use --version,
3323       # but apparently some variants of GNU ld only accept -v.
3324       # Break only if it was the GNU/non-GNU ld that we prefer.
3325       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3326       *GNU* | *'with BFD'*)
3327         test "$with_gnu_ld" != no && break
3328         ;;
3329       *)
3330         test "$with_gnu_ld" != yes && break
3331         ;;
3332       esac
3333     fi
3334   done
3335   IFS="$lt_save_ifs"
3336 else
3337   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3338 fi
3339 fi
3340
3341 LD="$lt_cv_path_LD"
3342 if test -n "$LD"; then
3343   echo "$as_me:$LINENO: result: $LD" >&5
3344 echo "${ECHO_T}$LD" >&6
3345 else
3346   echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6
3348 fi
3349 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3350 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3351    { (exit 1); exit 1; }; }
3352 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3353 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3354 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3355   echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3358 case `$LD -v 2>&1 </dev/null` in
3359 *GNU* | *'with BFD'*)
3360   lt_cv_prog_gnu_ld=yes
3361   ;;
3362 *)
3363   lt_cv_prog_gnu_ld=no
3364   ;;
3365 esac
3366 fi
3367 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3368 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3369 with_gnu_ld=$lt_cv_prog_gnu_ld
3370
3371
3372 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3373 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3374 if test "${lt_cv_ld_reload_flag+set}" = set; then
3375   echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377   lt_cv_ld_reload_flag='-r'
3378 fi
3379 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3380 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3381 reload_flag=$lt_cv_ld_reload_flag
3382 case $reload_flag in
3383 "" | " "*) ;;
3384 *) reload_flag=" $reload_flag" ;;
3385 esac
3386 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3387 case $host_os in
3388   darwin*)
3389     if test "$GCC" = yes; then
3390       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3391     else
3392       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3393     fi
3394     ;;
3395 esac
3396
3397 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3398 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3399 if test "${lt_cv_path_NM+set}" = set; then
3400   echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402   if test -n "$NM"; then
3403   # Let the user override the test.
3404   lt_cv_path_NM="$NM"
3405 else
3406   lt_nm_to_check="${ac_tool_prefix}nm"
3407   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3408     lt_nm_to_check="$lt_nm_to_check nm"
3409   fi
3410   for lt_tmp_nm in $lt_nm_to_check; do
3411     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3412     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3413       IFS="$lt_save_ifs"
3414       test -z "$ac_dir" && ac_dir=.
3415       tmp_nm="$ac_dir/$lt_tmp_nm"
3416       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3417         # Check to see if the nm accepts a BSD-compat flag.
3418         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3419         #   nm: unknown option "B" ignored
3420         # Tru64's nm complains that /dev/null is an invalid object file
3421         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3422         */dev/null* | *'Invalid file or object type'*)
3423           lt_cv_path_NM="$tmp_nm -B"
3424           break
3425           ;;
3426         *)
3427           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3428           */dev/null*)
3429             lt_cv_path_NM="$tmp_nm -p"
3430             break
3431             ;;
3432           *)
3433             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3434             continue # so that we can try to find one that supports BSD flags
3435             ;;
3436           esac
3437           ;;
3438         esac
3439       fi
3440     done
3441     IFS="$lt_save_ifs"
3442   done
3443   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3444 fi
3445 fi
3446 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3447 echo "${ECHO_T}$lt_cv_path_NM" >&6
3448 NM="$lt_cv_path_NM"
3449
3450 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3451 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3452 LN_S=$as_ln_s
3453 if test "$LN_S" = "ln -s"; then
3454   echo "$as_me:$LINENO: result: yes" >&5
3455 echo "${ECHO_T}yes" >&6
3456 else
3457   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3458 echo "${ECHO_T}no, using $LN_S" >&6
3459 fi
3460
3461 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3462 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3463 if test "${lt_cv_deplibs_check_method+set}" = set; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466   lt_cv_file_magic_cmd='$MAGIC_CMD'
3467 lt_cv_file_magic_test_file=
3468 lt_cv_deplibs_check_method='unknown'
3469 # Need to set the preceding variable on all platforms that support
3470 # interlibrary dependencies.
3471 # 'none' -- dependencies not supported.
3472 # `unknown' -- same as none, but documents that we really don't know.
3473 # 'pass_all' -- all dependencies passed with no checks.
3474 # 'test_compile' -- check by making test program.
3475 # 'file_magic [[regex]]' -- check by looking for files in library path
3476 # which responds to the $file_magic_cmd with a given extended regex.
3477 # If you have `file' or equivalent on your system and you're not sure
3478 # whether `pass_all' will *always* work, you probably want this one.
3479
3480 case $host_os in
3481 aix4* | aix5*)
3482   lt_cv_deplibs_check_method=pass_all
3483   ;;
3484
3485 beos*)
3486   lt_cv_deplibs_check_method=pass_all
3487   ;;
3488
3489 bsdi[45]*)
3490   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3491   lt_cv_file_magic_cmd='/usr/bin/file -L'
3492   lt_cv_file_magic_test_file=/shlib/libc.so
3493   ;;
3494
3495 cygwin*)
3496   # func_win32_libid is a shell function defined in ltmain.sh
3497   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3498   lt_cv_file_magic_cmd='func_win32_libid'
3499   ;;
3500
3501 mingw* | pw32*)
3502   # Base MSYS/MinGW do not provide the 'file' command needed by
3503   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3504   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3505   lt_cv_file_magic_cmd='$OBJDUMP -f'
3506   ;;
3507
3508 darwin* | rhapsody*)
3509   lt_cv_deplibs_check_method=pass_all
3510   ;;
3511
3512 freebsd* | dragonfly*)
3513   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3514     case $host_cpu in
3515     i*86 )
3516       # Not sure whether the presence of OpenBSD here was a mistake.
3517       # Let's accept both of them until this is cleared up.
3518       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3519       lt_cv_file_magic_cmd=/usr/bin/file
3520       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3521       ;;
3522     esac
3523   else
3524     lt_cv_deplibs_check_method=pass_all
3525   fi
3526   ;;
3527
3528 gnu*)
3529   lt_cv_deplibs_check_method=pass_all
3530   ;;
3531
3532 hpux10.20* | hpux11*)
3533   lt_cv_file_magic_cmd=/usr/bin/file
3534   case $host_cpu in
3535   ia64*)
3536     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3537     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3538     ;;
3539   hppa*64*)
3540     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3541     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3542     ;;
3543   *)
3544     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3545     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3546     ;;
3547   esac
3548   ;;
3549
3550 interix3*)
3551   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3552   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3553   ;;
3554
3555 irix5* | irix6* | nonstopux*)
3556   case $LD in
3557   *-32|*"-32 ") libmagic=32-bit;;
3558   *-n32|*"-n32 ") libmagic=N32;;
3559   *-64|*"-64 ") libmagic=64-bit;;
3560   *) libmagic=never-match;;
3561   esac
3562   lt_cv_deplibs_check_method=pass_all
3563   ;;
3564
3565 # This must be Linux ELF.
3566 linux* | k*bsd*-gnu)
3567   lt_cv_deplibs_check_method=pass_all
3568   ;;
3569
3570 netbsd* | netbsdelf*-gnu)
3571   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3572     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3573   else
3574     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3575   fi
3576   ;;
3577
3578 newos6*)
3579   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3580   lt_cv_file_magic_cmd=/usr/bin/file
3581   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3582   ;;
3583
3584 nto-qnx*)
3585   lt_cv_deplibs_check_method=unknown
3586   ;;
3587
3588 openbsd*)
3589   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3590     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3591   else
3592     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3593   fi
3594   ;;
3595
3596 osf3* | osf4* | osf5*)
3597   lt_cv_deplibs_check_method=pass_all
3598   ;;
3599
3600 solaris*)
3601   lt_cv_deplibs_check_method=pass_all
3602   ;;
3603
3604 sysv4 | sysv4.3*)
3605   case $host_vendor in
3606   motorola)
3607     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]'
3608     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3609     ;;
3610   ncr)
3611     lt_cv_deplibs_check_method=pass_all
3612     ;;
3613   sequent)
3614     lt_cv_file_magic_cmd='/bin/file'
3615     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3616     ;;
3617   sni)
3618     lt_cv_file_magic_cmd='/bin/file'
3619     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3620     lt_cv_file_magic_test_file=/lib/libc.so
3621     ;;
3622   siemens)
3623     lt_cv_deplibs_check_method=pass_all
3624     ;;
3625   pc)
3626     lt_cv_deplibs_check_method=pass_all
3627     ;;
3628   esac
3629   ;;
3630
3631 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3632   lt_cv_deplibs_check_method=pass_all
3633   ;;
3634 esac
3635
3636 fi
3637 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3638 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3639 file_magic_cmd=$lt_cv_file_magic_cmd
3640 deplibs_check_method=$lt_cv_deplibs_check_method
3641 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3642
3643
3644
3645
3646 # If no C compiler was specified, use CC.
3647 LTCC=${LTCC-"$CC"}
3648
3649 # If no C compiler flags were specified, use CFLAGS.
3650 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3651
3652 # Allow CC to be a program name with arguments.
3653 compiler=$CC
3654
3655
3656 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3657 if test "${enable_libtool_lock+set}" = set; then
3658   enableval="$enable_libtool_lock"
3659
3660 fi;
3661 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3662
3663 # Some flags need to be propagated to the compiler or linker for good
3664 # libtool support.
3665 case $host in
3666 ia64-*-hpux*)
3667   # Find out which ABI we are using.
3668   echo 'int i;' > conftest.$ac_ext
3669   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3670   (eval $ac_compile) 2>&5
3671   ac_status=$?
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); }; then
3674     case `/usr/bin/file conftest.$ac_objext` in
3675     *ELF-32*)
3676       HPUX_IA64_MODE="32"
3677       ;;
3678     *ELF-64*)
3679       HPUX_IA64_MODE="64"
3680       ;;
3681     esac
3682   fi
3683   rm -rf conftest*
3684   ;;
3685 *-*-irix6*)
3686   # Find out which ABI we are using.
3687   echo '#line 3687 "configure"' > conftest.$ac_ext
3688   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689   (eval $ac_compile) 2>&5
3690   ac_status=$?
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); }; then
3693    if test "$lt_cv_prog_gnu_ld" = yes; then
3694     case `/usr/bin/file conftest.$ac_objext` in
3695     *32-bit*)
3696       LD="${LD-ld} -melf32bsmip"
3697       ;;
3698     *N32*)
3699       LD="${LD-ld} -melf32bmipn32"
3700       ;;
3701     *64-bit*)
3702       LD="${LD-ld} -melf64bmip"
3703       ;;
3704     esac
3705    else
3706     case `/usr/bin/file conftest.$ac_objext` in
3707     *32-bit*)
3708       LD="${LD-ld} -32"
3709       ;;
3710     *N32*)
3711       LD="${LD-ld} -n32"
3712       ;;
3713     *64-bit*)
3714       LD="${LD-ld} -64"
3715       ;;
3716     esac
3717    fi
3718   fi
3719   rm -rf conftest*
3720   ;;
3721
3722 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3723   # Find out which ABI we are using.
3724   echo 'int i;' > conftest.$ac_ext
3725   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3726   (eval $ac_compile) 2>&5
3727   ac_status=$?
3728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); }; then
3730     case `/usr/bin/file conftest.o` in
3731     *32-bit*)
3732       case $host in
3733         x86_64-*linux*)
3734           LD="${LD-ld} -m elf_i386"
3735           ;;
3736         ppc64-*linux*|powerpc64-*linux*)
3737           LD="${LD-ld} -m elf32ppclinux"
3738           ;;
3739         s390x-*linux*)
3740           LD="${LD-ld} -m elf_s390"
3741           ;;
3742         sparc64-*linux*)
3743           LD="${LD-ld} -m elf32_sparc"
3744           ;;
3745       esac
3746       ;;
3747     *64-bit*)
3748       case $host in
3749         x86_64-*linux*)
3750           LD="${LD-ld} -m elf_x86_64"
3751           ;;
3752         ppc*-*linux*|powerpc*-*linux*)
3753           LD="${LD-ld} -m elf64ppc"
3754           ;;
3755         s390*-*linux*)
3756           LD="${LD-ld} -m elf64_s390"
3757           ;;
3758         sparc*-*linux*)
3759           LD="${LD-ld} -m elf64_sparc"
3760           ;;
3761       esac
3762       ;;
3763     esac
3764   fi
3765   rm -rf conftest*
3766   ;;
3767
3768 *-*-sco3.2v5*)
3769   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3770   SAVE_CFLAGS="$CFLAGS"
3771   CFLAGS="$CFLAGS -belf"
3772   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3773 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3774 if test "${lt_cv_cc_needs_belf+set}" = set; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   ac_ext=c
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782
3783      cat >conftest.$ac_ext <<_ACEOF
3784 /* confdefs.h.  */
3785 _ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h.  */
3789
3790 int
3791 main ()
3792 {
3793
3794   ;
3795   return 0;
3796 }
3797 _ACEOF
3798 rm -f conftest.$ac_objext conftest$ac_exeext
3799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3800   (eval $ac_link) 2>conftest.er1
3801   ac_status=$?
3802   grep -v '^ *+' conftest.er1 >conftest.err
3803   rm -f conftest.er1
3804   cat conftest.err >&5
3805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); } &&
3807          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809   (eval $ac_try) 2>&5
3810   ac_status=$?
3811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812   (exit $ac_status); }; } &&
3813          { ac_try='test -s conftest$ac_exeext'
3814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815   (eval $ac_try) 2>&5
3816   ac_status=$?
3817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818   (exit $ac_status); }; }; then
3819   lt_cv_cc_needs_belf=yes
3820 else
3821   echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3823
3824 lt_cv_cc_needs_belf=no
3825 fi
3826 rm -f conftest.err conftest.$ac_objext \
3827       conftest$ac_exeext conftest.$ac_ext
3828      ac_ext=c
3829 ac_cpp='$CPP $CPPFLAGS'
3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833
3834 fi
3835 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3836 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3837   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3838     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3839     CFLAGS="$SAVE_CFLAGS"
3840   fi
3841   ;;
3842 sparc*-*solaris*)
3843   # Find out which ABI we are using.
3844   echo 'int i;' > conftest.$ac_ext
3845   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846   (eval $ac_compile) 2>&5
3847   ac_status=$?
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); }; then
3850     case `/usr/bin/file conftest.o` in
3851     *64-bit*)
3852       case $lt_cv_prog_gnu_ld in
3853       yes*) LD="${LD-ld} -m elf64_sparc" ;;
3854       *)    LD="${LD-ld} -64" ;;
3855       esac
3856       ;;
3857     esac
3858   fi
3859   rm -rf conftest*
3860   ;;
3861
3862
3863 esac
3864
3865 need_locks="$enable_libtool_lock"
3866
3867
3868 ac_ext=c
3869 ac_cpp='$CPP $CPPFLAGS'
3870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3874 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3875 # On Suns, sometimes $CPP names a directory.
3876 if test -n "$CPP" && test -d "$CPP"; then
3877   CPP=
3878 fi
3879 if test -z "$CPP"; then
3880   if test "${ac_cv_prog_CPP+set}" = set; then
3881   echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883       # Double quotes because CPP needs to be expanded
3884     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3885     do
3886       ac_preproc_ok=false
3887 for ac_c_preproc_warn_flag in '' yes
3888 do
3889   # Use a header file that comes with gcc, so configuring glibc
3890   # with a fresh cross-compiler works.
3891   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3892   # <limits.h> exists even on freestanding compilers.
3893   # On the NeXT, cc -E runs the code through the compiler's parser,
3894   # not just through cpp. "Syntax error" is here to catch this case.
3895   cat >conftest.$ac_ext <<_ACEOF
3896 /* confdefs.h.  */
3897 _ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h.  */
3901 #ifdef __STDC__
3902 # include <limits.h>
3903 #else
3904 # include <assert.h>
3905 #endif
3906                      Syntax error
3907 _ACEOF
3908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3909   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3910   ac_status=$?
3911   grep -v '^ *+' conftest.er1 >conftest.err
3912   rm -f conftest.er1
3913   cat conftest.err >&5
3914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915   (exit $ac_status); } >/dev/null; then
3916   if test -s conftest.err; then
3917     ac_cpp_err=$ac_c_preproc_warn_flag
3918     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3919   else
3920     ac_cpp_err=
3921   fi
3922 else
3923   ac_cpp_err=yes
3924 fi
3925 if test -z "$ac_cpp_err"; then
3926   :
3927 else
3928   echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3930
3931   # Broken: fails on valid input.
3932 continue
3933 fi
3934 rm -f conftest.err conftest.$ac_ext
3935
3936   # OK, works on sane cases.  Now check whether non-existent headers
3937   # can be detected and how.
3938   cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h.  */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h.  */
3944 #include <ac_nonexistent.h>
3945 _ACEOF
3946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3948   ac_status=$?
3949   grep -v '^ *+' conftest.er1 >conftest.err
3950   rm -f conftest.er1
3951   cat conftest.err >&5
3952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953   (exit $ac_status); } >/dev/null; then
3954   if test -s conftest.err; then
3955     ac_cpp_err=$ac_c_preproc_warn_flag
3956     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3957   else
3958     ac_cpp_err=
3959   fi
3960 else
3961   ac_cpp_err=yes
3962 fi
3963 if test -z "$ac_cpp_err"; then
3964   # Broken: success on invalid input.
3965 continue
3966 else
3967   echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3969
3970   # Passes both tests.
3971 ac_preproc_ok=:
3972 break
3973 fi
3974 rm -f conftest.err conftest.$ac_ext
3975
3976 done
3977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3978 rm -f conftest.err conftest.$ac_ext
3979 if $ac_preproc_ok; then
3980   break
3981 fi
3982
3983     done
3984     ac_cv_prog_CPP=$CPP
3985
3986 fi
3987   CPP=$ac_cv_prog_CPP
3988 else
3989   ac_cv_prog_CPP=$CPP
3990 fi
3991 echo "$as_me:$LINENO: result: $CPP" >&5
3992 echo "${ECHO_T}$CPP" >&6
3993 ac_preproc_ok=false
3994 for ac_c_preproc_warn_flag in '' yes
3995 do
3996   # Use a header file that comes with gcc, so configuring glibc
3997   # with a fresh cross-compiler works.
3998   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3999   # <limits.h> exists even on freestanding compilers.
4000   # On the NeXT, cc -E runs the code through the compiler's parser,
4001   # not just through cpp. "Syntax error" is here to catch this case.
4002   cat >conftest.$ac_ext <<_ACEOF
4003 /* confdefs.h.  */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h.  */
4008 #ifdef __STDC__
4009 # include <limits.h>
4010 #else
4011 # include <assert.h>
4012 #endif
4013                      Syntax error
4014 _ACEOF
4015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4016   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4017   ac_status=$?
4018   grep -v '^ *+' conftest.er1 >conftest.err
4019   rm -f conftest.er1
4020   cat conftest.err >&5
4021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022   (exit $ac_status); } >/dev/null; then
4023   if test -s conftest.err; then
4024     ac_cpp_err=$ac_c_preproc_warn_flag
4025     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4026   else
4027     ac_cpp_err=
4028   fi
4029 else
4030   ac_cpp_err=yes
4031 fi
4032 if test -z "$ac_cpp_err"; then
4033   :
4034 else
4035   echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4037
4038   # Broken: fails on valid input.
4039 continue
4040 fi
4041 rm -f conftest.err conftest.$ac_ext
4042
4043   # OK, works on sane cases.  Now check whether non-existent headers
4044   # can be detected and how.
4045   cat >conftest.$ac_ext <<_ACEOF
4046 /* confdefs.h.  */
4047 _ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h.  */
4051 #include <ac_nonexistent.h>
4052 _ACEOF
4053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4054   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4055   ac_status=$?
4056   grep -v '^ *+' conftest.er1 >conftest.err
4057   rm -f conftest.er1
4058   cat conftest.err >&5
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); } >/dev/null; then
4061   if test -s conftest.err; then
4062     ac_cpp_err=$ac_c_preproc_warn_flag
4063     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4064   else
4065     ac_cpp_err=
4066   fi
4067 else
4068   ac_cpp_err=yes
4069 fi
4070 if test -z "$ac_cpp_err"; then
4071   # Broken: success on invalid input.
4072 continue
4073 else
4074   echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4076
4077   # Passes both tests.
4078 ac_preproc_ok=:
4079 break
4080 fi
4081 rm -f conftest.err conftest.$ac_ext
4082
4083 done
4084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4085 rm -f conftest.err conftest.$ac_ext
4086 if $ac_preproc_ok; then
4087   :
4088 else
4089   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4090 See \`config.log' for more details." >&5
4091 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4092 See \`config.log' for more details." >&2;}
4093    { (exit 1); exit 1; }; }
4094 fi
4095
4096 ac_ext=c
4097 ac_cpp='$CPP $CPPFLAGS'
4098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101
4102
4103 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4104 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4105 if test "${ac_cv_header_stdc+set}" = set; then
4106   echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108   cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h.  */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h.  */
4114 #include <stdlib.h>
4115 #include <stdarg.h>
4116 #include <string.h>
4117 #include <float.h>
4118
4119 int
4120 main ()
4121 {
4122
4123   ;
4124   return 0;
4125 }
4126 _ACEOF
4127 rm -f conftest.$ac_objext
4128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4129   (eval $ac_compile) 2>conftest.er1
4130   ac_status=$?
4131   grep -v '^ *+' conftest.er1 >conftest.err
4132   rm -f conftest.er1
4133   cat conftest.err >&5
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); } &&
4136          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138   (eval $ac_try) 2>&5
4139   ac_status=$?
4140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141   (exit $ac_status); }; } &&
4142          { ac_try='test -s conftest.$ac_objext'
4143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144   (eval $ac_try) 2>&5
4145   ac_status=$?
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); }; }; then
4148   ac_cv_header_stdc=yes
4149 else
4150   echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4152
4153 ac_cv_header_stdc=no
4154 fi
4155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4156
4157 if test $ac_cv_header_stdc = yes; then
4158   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4159   cat >conftest.$ac_ext <<_ACEOF
4160 /* confdefs.h.  */
4161 _ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h.  */
4165 #include <string.h>
4166
4167 _ACEOF
4168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169   $EGREP "memchr" >/dev/null 2>&1; then
4170   :
4171 else
4172   ac_cv_header_stdc=no
4173 fi
4174 rm -f conftest*
4175
4176 fi
4177
4178 if test $ac_cv_header_stdc = yes; then
4179   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4180   cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h.  */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h.  */
4186 #include <stdlib.h>
4187
4188 _ACEOF
4189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4190   $EGREP "free" >/dev/null 2>&1; then
4191   :
4192 else
4193   ac_cv_header_stdc=no
4194 fi
4195 rm -f conftest*
4196
4197 fi
4198
4199 if test $ac_cv_header_stdc = yes; then
4200   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4201   if test "$cross_compiling" = yes; then
4202   :
4203 else
4204   cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 #include <ctype.h>
4211 #if ((' ' & 0x0FF) == 0x020)
4212 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4213 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4214 #else
4215 # define ISLOWER(c) \
4216                    (('a' <= (c) && (c) <= 'i') \
4217                      || ('j' <= (c) && (c) <= 'r') \
4218                      || ('s' <= (c) && (c) <= 'z'))
4219 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4220 #endif
4221
4222 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4223 int
4224 main ()
4225 {
4226   int i;
4227   for (i = 0; i < 256; i++)
4228     if (XOR (islower (i), ISLOWER (i))
4229         || toupper (i) != TOUPPER (i))
4230       exit(2);
4231   exit (0);
4232 }
4233 _ACEOF
4234 rm -f conftest$ac_exeext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4236   (eval $ac_link) 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241   (eval $ac_try) 2>&5
4242   ac_status=$?
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); }; }; then
4245   :
4246 else
4247   echo "$as_me: program exited with status $ac_status" >&5
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4250
4251 ( exit $ac_status )
4252 ac_cv_header_stdc=no
4253 fi
4254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4255 fi
4256 fi
4257 fi
4258 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4259 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4260 if test $ac_cv_header_stdc = yes; then
4261
4262 cat >>confdefs.h <<\_ACEOF
4263 #define STDC_HEADERS 1
4264 _ACEOF
4265
4266 fi
4267
4268 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4279                   inttypes.h stdint.h unistd.h
4280 do
4281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4282 echo "$as_me:$LINENO: checking for $ac_header" >&5
4283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4285   echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287   cat >conftest.$ac_ext <<_ACEOF
4288 /* confdefs.h.  */
4289 _ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h.  */
4293 $ac_includes_default
4294
4295 #include <$ac_header>
4296 _ACEOF
4297 rm -f conftest.$ac_objext
4298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4299   (eval $ac_compile) 2>conftest.er1
4300   ac_status=$?
4301   grep -v '^ *+' conftest.er1 >conftest.err
4302   rm -f conftest.er1
4303   cat conftest.err >&5
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); } &&
4306          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308   (eval $ac_try) 2>&5
4309   ac_status=$?
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); }; } &&
4312          { ac_try='test -s conftest.$ac_objext'
4313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314   (eval $ac_try) 2>&5
4315   ac_status=$?
4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317   (exit $ac_status); }; }; then
4318   eval "$as_ac_Header=yes"
4319 else
4320   echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4322
4323 eval "$as_ac_Header=no"
4324 fi
4325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4326 fi
4327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4330   cat >>confdefs.h <<_ACEOF
4331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4332 _ACEOF
4333
4334 fi
4335
4336 done
4337
4338
4339
4340 for ac_header in dlfcn.h
4341 do
4342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4344   echo "$as_me:$LINENO: checking for $ac_header" >&5
4345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4347   echo $ECHO_N "(cached) $ECHO_C" >&6
4348 fi
4349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4351 else
4352   # Is the header compilable?
4353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4355 cat >conftest.$ac_ext <<_ACEOF
4356 /* confdefs.h.  */
4357 _ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h.  */
4361 $ac_includes_default
4362 #include <$ac_header>
4363 _ACEOF
4364 rm -f conftest.$ac_objext
4365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366   (eval $ac_compile) 2>conftest.er1
4367   ac_status=$?
4368   grep -v '^ *+' conftest.er1 >conftest.err
4369   rm -f conftest.er1
4370   cat conftest.err >&5
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); } &&
4373          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375   (eval $ac_try) 2>&5
4376   ac_status=$?
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); }; } &&
4379          { ac_try='test -s conftest.$ac_objext'
4380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381   (eval $ac_try) 2>&5
4382   ac_status=$?
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); }; }; then
4385   ac_header_compiler=yes
4386 else
4387   echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4389
4390 ac_header_compiler=no
4391 fi
4392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4394 echo "${ECHO_T}$ac_header_compiler" >&6
4395
4396 # Is the header present?
4397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4399 cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h.  */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h.  */
4405 #include <$ac_header>
4406 _ACEOF
4407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4408   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4409   ac_status=$?
4410   grep -v '^ *+' conftest.er1 >conftest.err
4411   rm -f conftest.er1
4412   cat conftest.err >&5
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); } >/dev/null; then
4415   if test -s conftest.err; then
4416     ac_cpp_err=$ac_c_preproc_warn_flag
4417     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4418   else
4419     ac_cpp_err=
4420   fi
4421 else
4422   ac_cpp_err=yes
4423 fi
4424 if test -z "$ac_cpp_err"; then
4425   ac_header_preproc=yes
4426 else
4427   echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4429
4430   ac_header_preproc=no
4431 fi
4432 rm -f conftest.err conftest.$ac_ext
4433 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4434 echo "${ECHO_T}$ac_header_preproc" >&6
4435
4436 # So?  What about this header?
4437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4438   yes:no: )
4439     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4443     ac_header_preproc=yes
4444     ;;
4445   no:yes:* )
4446     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4448     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4449 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4450     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4452     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4453 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4456     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4458     (
4459       cat <<\_ASBOX
4460 ## ------------------------------------- ##
4461 ## Report this to uncensored.citadel.org ##
4462 ## ------------------------------------- ##
4463 _ASBOX
4464     ) |
4465       sed "s/^/$as_me: WARNING:     /" >&2
4466     ;;
4467 esac
4468 echo "$as_me:$LINENO: checking for $ac_header" >&5
4469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4471   echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473   eval "$as_ac_Header=\$ac_header_preproc"
4474 fi
4475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4477
4478 fi
4479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4480   cat >>confdefs.h <<_ACEOF
4481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4482 _ACEOF
4483
4484 fi
4485
4486 done
4487
4488 ac_ext=cc
4489 ac_cpp='$CXXCPP $CPPFLAGS'
4490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4493 if test -n "$ac_tool_prefix"; then
4494   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4495   do
4496     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4498 echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500 if test "${ac_cv_prog_CXX+set}" = set; then
4501   echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503   if test -n "$CXX"; then
4504   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4508 do
4509   IFS=$as_save_IFS
4510   test -z "$as_dir" && as_dir=.
4511   for ac_exec_ext in '' $ac_executable_extensions; do
4512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515     break 2
4516   fi
4517 done
4518 done
4519
4520 fi
4521 fi
4522 CXX=$ac_cv_prog_CXX
4523 if test -n "$CXX"; then
4524   echo "$as_me:$LINENO: result: $CXX" >&5
4525 echo "${ECHO_T}$CXX" >&6
4526 else
4527   echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6
4529 fi
4530
4531     test -n "$CXX" && break
4532   done
4533 fi
4534 if test -z "$CXX"; then
4535   ac_ct_CXX=$CXX
4536   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4537 do
4538   # Extract the first word of "$ac_prog", so it can be a program name with args.
4539 set dummy $ac_prog; ac_word=$2
4540 echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4542 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4543   echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545   if test -n "$ac_ct_CXX"; then
4546   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4550 do
4551   IFS=$as_save_IFS
4552   test -z "$as_dir" && as_dir=.
4553   for ac_exec_ext in '' $ac_executable_extensions; do
4554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555     ac_cv_prog_ac_ct_CXX="$ac_prog"
4556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557     break 2
4558   fi
4559 done
4560 done
4561
4562 fi
4563 fi
4564 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4565 if test -n "$ac_ct_CXX"; then
4566   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4567 echo "${ECHO_T}$ac_ct_CXX" >&6
4568 else
4569   echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6
4571 fi
4572
4573   test -n "$ac_ct_CXX" && break
4574 done
4575 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4576
4577   CXX=$ac_ct_CXX
4578 fi
4579
4580
4581 # Provide some information about the compiler.
4582 echo "$as_me:$LINENO:" \
4583      "checking for C++ compiler version" >&5
4584 ac_compiler=`set X $ac_compile; echo $2`
4585 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4586   (eval $ac_compiler --version </dev/null >&5) 2>&5
4587   ac_status=$?
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); }
4590 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4591   (eval $ac_compiler -v </dev/null >&5) 2>&5
4592   ac_status=$?
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); }
4595 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4596   (eval $ac_compiler -V </dev/null >&5) 2>&5
4597   ac_status=$?
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); }
4600
4601 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4602 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4603 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4604   echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606   cat >conftest.$ac_ext <<_ACEOF
4607 /* confdefs.h.  */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h.  */
4612
4613 int
4614 main ()
4615 {
4616 #ifndef __GNUC__
4617        choke me
4618 #endif
4619
4620   ;
4621   return 0;
4622 }
4623 _ACEOF
4624 rm -f conftest.$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626   (eval $ac_compile) 2>conftest.er1
4627   ac_status=$?
4628   grep -v '^ *+' conftest.er1 >conftest.err
4629   rm -f conftest.er1
4630   cat conftest.err >&5
4631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632   (exit $ac_status); } &&
4633          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635   (eval $ac_try) 2>&5
4636   ac_status=$?
4637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638   (exit $ac_status); }; } &&
4639          { ac_try='test -s conftest.$ac_objext'
4640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641   (eval $ac_try) 2>&5
4642   ac_status=$?
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); }; }; then
4645   ac_compiler_gnu=yes
4646 else
4647   echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4649
4650 ac_compiler_gnu=no
4651 fi
4652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4653 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4654
4655 fi
4656 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4657 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4658 GXX=`test $ac_compiler_gnu = yes && echo yes`
4659 ac_test_CXXFLAGS=${CXXFLAGS+set}
4660 ac_save_CXXFLAGS=$CXXFLAGS
4661 CXXFLAGS="-g"
4662 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4663 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4664 if test "${ac_cv_prog_cxx_g+set}" = set; then
4665   echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667   cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h.  */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h.  */
4673
4674 int
4675 main ()
4676 {
4677
4678   ;
4679   return 0;
4680 }
4681 _ACEOF
4682 rm -f conftest.$ac_objext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684   (eval $ac_compile) 2>conftest.er1
4685   ac_status=$?
4686   grep -v '^ *+' conftest.er1 >conftest.err
4687   rm -f conftest.er1
4688   cat conftest.err >&5
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); } &&
4691          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693   (eval $ac_try) 2>&5
4694   ac_status=$?
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); }; } &&
4697          { ac_try='test -s conftest.$ac_objext'
4698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699   (eval $ac_try) 2>&5
4700   ac_status=$?
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); }; }; then
4703   ac_cv_prog_cxx_g=yes
4704 else
4705   echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4707
4708 ac_cv_prog_cxx_g=no
4709 fi
4710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4711 fi
4712 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4713 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4714 if test "$ac_test_CXXFLAGS" = set; then
4715   CXXFLAGS=$ac_save_CXXFLAGS
4716 elif test $ac_cv_prog_cxx_g = yes; then
4717   if test "$GXX" = yes; then
4718     CXXFLAGS="-g -O2"
4719   else
4720     CXXFLAGS="-g"
4721   fi
4722 else
4723   if test "$GXX" = yes; then
4724     CXXFLAGS="-O2"
4725   else
4726     CXXFLAGS=
4727   fi
4728 fi
4729 for ac_declaration in \
4730    '' \
4731    'extern "C" void std::exit (int) throw (); using std::exit;' \
4732    'extern "C" void std::exit (int); using std::exit;' \
4733    'extern "C" void exit (int) throw ();' \
4734    'extern "C" void exit (int);' \
4735    'void exit (int);'
4736 do
4737   cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h.  */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h.  */
4743 $ac_declaration
4744 #include <stdlib.h>
4745 int
4746 main ()
4747 {
4748 exit (42);
4749   ;
4750   return 0;
4751 }
4752 _ACEOF
4753 rm -f conftest.$ac_objext
4754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4755   (eval $ac_compile) 2>conftest.er1
4756   ac_status=$?
4757   grep -v '^ *+' conftest.er1 >conftest.err
4758   rm -f conftest.er1
4759   cat conftest.err >&5
4760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761   (exit $ac_status); } &&
4762          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764   (eval $ac_try) 2>&5
4765   ac_status=$?
4766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); }; } &&
4768          { ac_try='test -s conftest.$ac_objext'
4769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770   (eval $ac_try) 2>&5
4771   ac_status=$?
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); }; }; then
4774   :
4775 else
4776   echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4778
4779 continue
4780 fi
4781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4782   cat >conftest.$ac_ext <<_ACEOF
4783 /* confdefs.h.  */
4784 _ACEOF
4785 cat confdefs.h >>conftest.$ac_ext
4786 cat >>conftest.$ac_ext <<_ACEOF
4787 /* end confdefs.h.  */
4788 $ac_declaration
4789 int
4790 main ()
4791 {
4792 exit (42);
4793   ;
4794   return 0;
4795 }
4796 _ACEOF
4797 rm -f conftest.$ac_objext
4798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4799   (eval $ac_compile) 2>conftest.er1
4800   ac_status=$?
4801   grep -v '^ *+' conftest.er1 >conftest.err
4802   rm -f conftest.er1
4803   cat conftest.err >&5
4804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805   (exit $ac_status); } &&
4806          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808   (eval $ac_try) 2>&5
4809   ac_status=$?
4810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811   (exit $ac_status); }; } &&
4812          { ac_try='test -s conftest.$ac_objext'
4813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814   (eval $ac_try) 2>&5
4815   ac_status=$?
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); }; }; then
4818   break
4819 else
4820   echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4822
4823 fi
4824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4825 done
4826 rm -f conftest*
4827 if test -n "$ac_declaration"; then
4828   echo '#ifdef __cplusplus' >>confdefs.h
4829   echo $ac_declaration      >>confdefs.h
4830   echo '#endif'             >>confdefs.h
4831 fi
4832
4833 ac_ext=cc
4834 ac_cpp='$CXXCPP $CPPFLAGS'
4835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4838
4839 depcc="$CXX"  am_compiler_list=
4840
4841 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4842 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4843 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4844   echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4847   # We make a subdir and do the tests there.  Otherwise we can end up
4848   # making bogus files that we don't know about and never remove.  For
4849   # instance it was reported that on HP-UX the gcc test will end up
4850   # making a dummy file named `D' -- because `-MD' means `put the output
4851   # in D'.
4852   mkdir conftest.dir
4853   # Copy depcomp to subdir because otherwise we won't find it if we're
4854   # using a relative directory.
4855   cp "$am_depcomp" conftest.dir
4856   cd conftest.dir
4857   # We will build objects and dependencies in a subdirectory because
4858   # it helps to detect inapplicable dependency modes.  For instance
4859   # both Tru64's cc and ICC support -MD to output dependencies as a
4860   # side effect of compilation, but ICC will put the dependencies in
4861   # the current directory while Tru64 will put them in the object
4862   # directory.
4863   mkdir sub
4864
4865   am_cv_CXX_dependencies_compiler_type=none
4866   if test "$am_compiler_list" = ""; then
4867      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4868   fi
4869   for depmode in $am_compiler_list; do
4870     # Setup a source with many dependencies, because some compilers
4871     # like to wrap large dependency lists on column 80 (with \), and
4872     # we should not choose a depcomp mode which is confused by this.
4873     #
4874     # We need to recreate these files for each test, as the compiler may
4875     # overwrite some of them when testing with obscure command lines.
4876     # This happens at least with the AIX C compiler.
4877     : > sub/conftest.c
4878     for i in 1 2 3 4 5 6; do
4879       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4880       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4881       # Solaris 8's {/usr,}/bin/sh.
4882       touch sub/conftst$i.h
4883     done
4884     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4885
4886     case $depmode in
4887     nosideeffect)
4888       # after this tag, mechanisms are not by side-effect, so they'll
4889       # only be used when explicitly requested
4890       if test "x$enable_dependency_tracking" = xyes; then
4891         continue
4892       else
4893         break
4894       fi
4895       ;;
4896     none) break ;;
4897     esac
4898     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4899     # mode.  It turns out that the SunPro C++ compiler does not properly
4900     # handle `-M -o', and we need to detect this.
4901     if depmode=$depmode \
4902        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4903        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4904        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4905          >/dev/null 2>conftest.err &&
4906        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4907        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4908        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4909       # icc doesn't choke on unknown options, it will just issue warnings
4910       # or remarks (even with -Werror).  So we grep stderr for any message
4911       # that says an option was ignored or not supported.
4912       # When given -MP, icc 7.0 and 7.1 complain thusly:
4913       #   icc: Command line warning: ignoring option '-M'; no argument required
4914       # The diagnosis changed in icc 8.0:
4915       #   icc: Command line remark: option '-MP' not supported
4916       if (grep 'ignoring option' conftest.err ||
4917           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4918         am_cv_CXX_dependencies_compiler_type=$depmode
4919         break
4920       fi
4921     fi
4922   done
4923
4924   cd ..
4925   rm -rf conftest.dir
4926 else
4927   am_cv_CXX_dependencies_compiler_type=none
4928 fi
4929
4930 fi
4931 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4932 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4933 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4934
4935
4936
4937 if
4938   test "x$enable_dependency_tracking" != xno \
4939   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4940   am__fastdepCXX_TRUE=
4941   am__fastdepCXX_FALSE='#'
4942 else
4943   am__fastdepCXX_TRUE='#'
4944   am__fastdepCXX_FALSE=
4945 fi
4946
4947
4948
4949
4950 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4951     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4952     (test "X$CXX" != "Xg++"))) ; then
4953   ac_ext=cc
4954 ac_cpp='$CXXCPP $CPPFLAGS'
4955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4958 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4959 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4960 if test -z "$CXXCPP"; then
4961   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964       # Double quotes because CXXCPP needs to be expanded
4965     for CXXCPP in "$CXX -E" "/lib/cpp"
4966     do
4967       ac_preproc_ok=false
4968 for ac_cxx_preproc_warn_flag in '' yes
4969 do
4970   # Use a header file that comes with gcc, so configuring glibc
4971   # with a fresh cross-compiler works.
4972   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4973   # <limits.h> exists even on freestanding compilers.
4974   # On the NeXT, cc -E runs the code through the compiler's parser,
4975   # not just through cpp. "Syntax error" is here to catch this case.
4976   cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h.  */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h.  */
4982 #ifdef __STDC__
4983 # include <limits.h>
4984 #else
4985 # include <assert.h>
4986 #endif
4987                      Syntax error
4988 _ACEOF
4989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4991   ac_status=$?
4992   grep -v '^ *+' conftest.er1 >conftest.err
4993   rm -f conftest.er1
4994   cat conftest.err >&5
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); } >/dev/null; then
4997   if test -s conftest.err; then
4998     ac_cpp_err=$ac_cxx_preproc_warn_flag
4999     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5000   else
5001     ac_cpp_err=
5002   fi
5003 else
5004   ac_cpp_err=yes
5005 fi
5006 if test -z "$ac_cpp_err"; then
5007   :
5008 else
5009   echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012   # Broken: fails on valid input.
5013 continue
5014 fi
5015 rm -f conftest.err conftest.$ac_ext
5016
5017   # OK, works on sane cases.  Now check whether non-existent headers
5018   # can be detected and how.
5019   cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h.  */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h.  */
5025 #include <ac_nonexistent.h>
5026 _ACEOF
5027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5029   ac_status=$?
5030   grep -v '^ *+' conftest.er1 >conftest.err
5031   rm -f conftest.er1
5032   cat conftest.err >&5
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); } >/dev/null; then
5035   if test -s conftest.err; then
5036     ac_cpp_err=$ac_cxx_preproc_warn_flag
5037     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5038   else
5039     ac_cpp_err=
5040   fi
5041 else
5042   ac_cpp_err=yes
5043 fi
5044 if test -z "$ac_cpp_err"; then
5045   # Broken: success on invalid input.
5046 continue
5047 else
5048   echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051   # Passes both tests.
5052 ac_preproc_ok=:
5053 break
5054 fi
5055 rm -f conftest.err conftest.$ac_ext
5056
5057 done
5058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5059 rm -f conftest.err conftest.$ac_ext
5060 if $ac_preproc_ok; then
5061   break
5062 fi
5063
5064     done
5065     ac_cv_prog_CXXCPP=$CXXCPP
5066
5067 fi
5068   CXXCPP=$ac_cv_prog_CXXCPP
5069 else
5070   ac_cv_prog_CXXCPP=$CXXCPP
5071 fi
5072 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5073 echo "${ECHO_T}$CXXCPP" >&6
5074 ac_preproc_ok=false
5075 for ac_cxx_preproc_warn_flag in '' yes
5076 do
5077   # Use a header file that comes with gcc, so configuring glibc
5078   # with a fresh cross-compiler works.
5079   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5080   # <limits.h> exists even on freestanding compilers.
5081   # On the NeXT, cc -E runs the code through the compiler's parser,
5082   # not just through cpp. "Syntax error" is here to catch this case.
5083   cat >conftest.$ac_ext <<_ACEOF
5084 /* confdefs.h.  */
5085 _ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h.  */
5089 #ifdef __STDC__
5090 # include <limits.h>
5091 #else
5092 # include <assert.h>
5093 #endif
5094                      Syntax error
5095 _ACEOF
5096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5097   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5098   ac_status=$?
5099   grep -v '^ *+' conftest.er1 >conftest.err
5100   rm -f conftest.er1
5101   cat conftest.err >&5
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); } >/dev/null; then
5104   if test -s conftest.err; then
5105     ac_cpp_err=$ac_cxx_preproc_warn_flag
5106     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5107   else
5108     ac_cpp_err=
5109   fi
5110 else
5111   ac_cpp_err=yes
5112 fi
5113 if test -z "$ac_cpp_err"; then
5114   :
5115 else
5116   echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119   # Broken: fails on valid input.
5120 continue
5121 fi
5122 rm -f conftest.err conftest.$ac_ext
5123
5124   # OK, works on sane cases.  Now check whether non-existent headers
5125   # can be detected and how.
5126   cat >conftest.$ac_ext <<_ACEOF
5127 /* confdefs.h.  */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h.  */
5132 #include <ac_nonexistent.h>
5133 _ACEOF
5134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5136   ac_status=$?
5137   grep -v '^ *+' conftest.er1 >conftest.err
5138   rm -f conftest.er1
5139   cat conftest.err >&5
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); } >/dev/null; then
5142   if test -s conftest.err; then
5143     ac_cpp_err=$ac_cxx_preproc_warn_flag
5144     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5145   else
5146     ac_cpp_err=
5147   fi
5148 else
5149   ac_cpp_err=yes
5150 fi
5151 if test -z "$ac_cpp_err"; then
5152   # Broken: success on invalid input.
5153 continue
5154 else
5155   echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5157
5158   # Passes both tests.
5159 ac_preproc_ok=:
5160 break
5161 fi
5162 rm -f conftest.err conftest.$ac_ext
5163
5164 done
5165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5166 rm -f conftest.err conftest.$ac_ext
5167 if $ac_preproc_ok; then
5168   :
5169 else
5170   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5171 See \`config.log' for more details." >&5
5172 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5173 See \`config.log' for more details." >&2;}
5174    { (exit 1); exit 1; }; }
5175 fi
5176
5177 ac_ext=cc
5178 ac_cpp='$CXXCPP $CPPFLAGS'
5179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5182
5183 fi
5184
5185
5186 ac_ext=f
5187 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5188 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5190 if test -n "$ac_tool_prefix"; then
5191   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5192   do
5193     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5195 echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197 if test "${ac_cv_prog_F77+set}" = set; then
5198   echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200   if test -n "$F77"; then
5201   ac_cv_prog_F77="$F77" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206   IFS=$as_save_IFS
5207   test -z "$as_dir" && as_dir=.
5208   for ac_exec_ext in '' $ac_executable_extensions; do
5209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212     break 2
5213   fi
5214 done
5215 done
5216
5217 fi
5218 fi
5219 F77=$ac_cv_prog_F77
5220 if test -n "$F77"; then
5221   echo "$as_me:$LINENO: result: $F77" >&5
5222 echo "${ECHO_T}$F77" >&6
5223 else
5224   echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6
5226 fi
5227
5228     test -n "$F77" && break
5229   done
5230 fi
5231 if test -z "$F77"; then
5232   ac_ct_F77=$F77
5233   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5234 do
5235   # Extract the first word of "$ac_prog", so it can be a program name with args.
5236 set dummy $ac_prog; ac_word=$2
5237 echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5240   echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242   if test -n "$ac_ct_F77"; then
5243   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5244 else
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5247 do
5248   IFS=$as_save_IFS
5249   test -z "$as_dir" && as_dir=.
5250   for ac_exec_ext in '' $ac_executable_extensions; do
5251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252     ac_cv_prog_ac_ct_F77="$ac_prog"
5253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254     break 2
5255   fi
5256 done
5257 done
5258
5259 fi
5260 fi
5261 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5262 if test -n "$ac_ct_F77"; then
5263   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5264 echo "${ECHO_T}$ac_ct_F77" >&6
5265 else
5266   echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6
5268 fi
5269
5270   test -n "$ac_ct_F77" && break
5271 done
5272
5273   F77=$ac_ct_F77
5274 fi
5275
5276
5277 # Provide some information about the compiler.
5278 echo "$as_me:5278:" \
5279      "checking for Fortran 77 compiler version" >&5
5280 ac_compiler=`set X $ac_compile; echo $2`
5281 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5282   (eval $ac_compiler --version </dev/null >&5) 2>&5
5283   ac_status=$?
5284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285   (exit $ac_status); }
5286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5287   (eval $ac_compiler -v </dev/null >&5) 2>&5
5288   ac_status=$?
5289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290   (exit $ac_status); }
5291 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5292   (eval $ac_compiler -V </dev/null >&5) 2>&5
5293   ac_status=$?
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); }
5296 rm -f a.out
5297
5298 # If we don't use `.F' as extension, the preprocessor is not run on the
5299 # input file.  (Note that this only needs to work for GNU compilers.)
5300 ac_save_ext=$ac_ext
5301 ac_ext=F
5302 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5303 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5304 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   cat >conftest.$ac_ext <<_ACEOF
5308       program main
5309 #ifndef __GNUC__
5310        choke me
5311 #endif
5312
5313       end
5314 _ACEOF
5315 rm -f conftest.$ac_objext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317   (eval $ac_compile) 2>conftest.er1
5318   ac_status=$?
5319   grep -v '^ *+' conftest.er1 >conftest.err
5320   rm -f conftest.er1
5321   cat conftest.err >&5
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); } &&
5324          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326   (eval $ac_try) 2>&5
5327   ac_status=$?
5328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329   (exit $ac_status); }; } &&
5330          { ac_try='test -s conftest.$ac_objext'
5331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332   (eval $ac_try) 2>&5
5333   ac_status=$?
5334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335   (exit $ac_status); }; }; then
5336   ac_compiler_gnu=yes
5337 else
5338   echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5340
5341 ac_compiler_gnu=no
5342 fi
5343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5344 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5345
5346 fi
5347 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5348 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5349 ac_ext=$ac_save_ext
5350 ac_test_FFLAGS=${FFLAGS+set}
5351 ac_save_FFLAGS=$FFLAGS
5352 FFLAGS=
5353 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5354 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5355 if test "${ac_cv_prog_f77_g+set}" = set; then
5356   echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358   FFLAGS=-g
5359 cat >conftest.$ac_ext <<_ACEOF
5360       program main
5361
5362       end
5363 _ACEOF
5364 rm -f conftest.$ac_objext
5365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366   (eval $ac_compile) 2>conftest.er1
5367   ac_status=$?
5368   grep -v '^ *+' conftest.er1 >conftest.err
5369   rm -f conftest.er1
5370   cat conftest.err >&5
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); } &&
5373          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375   (eval $ac_try) 2>&5
5376   ac_status=$?
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); }; } &&
5379          { ac_try='test -s conftest.$ac_objext'
5380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381   (eval $ac_try) 2>&5
5382   ac_status=$?
5383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384   (exit $ac_status); }; }; then
5385   ac_cv_prog_f77_g=yes
5386 else
5387   echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5389
5390 ac_cv_prog_f77_g=no
5391 fi
5392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5393
5394 fi
5395 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5396 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5397 if test "$ac_test_FFLAGS" = set; then
5398   FFLAGS=$ac_save_FFLAGS
5399 elif test $ac_cv_prog_f77_g = yes; then
5400   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5401     FFLAGS="-g -O2"
5402   else
5403     FFLAGS="-g"
5404   fi
5405 else
5406   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5407     FFLAGS="-O2"
5408   else
5409     FFLAGS=
5410   fi
5411 fi
5412
5413 G77=`test $ac_compiler_gnu = yes && echo yes`
5414 ac_ext=c
5415 ac_cpp='$CPP $CPPFLAGS'
5416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5419
5420
5421
5422 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5423
5424 # find the maximum length of command line arguments
5425 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5426 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5427 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5428   echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430     i=0
5431   teststring="ABCD"
5432
5433   case $build_os in
5434   msdosdjgpp*)
5435     # On DJGPP, this test can blow up pretty badly due to problems in libc
5436     # (any single argument exceeding 2000 bytes causes a buffer overrun
5437     # during glob expansion).  Even if it were fixed, the result of this
5438     # check would be larger than it should be.
5439     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5440     ;;
5441
5442   gnu*)
5443     # Under GNU Hurd, this test is not required because there is
5444     # no limit to the length of command line arguments.
5445     # Libtool will interpret -1 as no limit whatsoever
5446     lt_cv_sys_max_cmd_len=-1;
5447     ;;
5448
5449   cygwin* | mingw*)
5450     # On Win9x/ME, this test blows up -- it succeeds, but takes
5451     # about 5 minutes as the teststring grows exponentially.
5452     # Worse, since 9x/ME are not pre-emptively multitasking,
5453     # you end up with a "frozen" computer, even though with patience
5454     # the test eventually succeeds (with a max line length of 256k).
5455     # Instead, let's just punt: use the minimum linelength reported by
5456     # all of the supported platforms: 8192 (on NT/2K/XP).
5457     lt_cv_sys_max_cmd_len=8192;
5458     ;;
5459
5460   amigaos*)
5461     # On AmigaOS with pdksh, this test takes hours, literally.
5462     # So we just punt and use a minimum line length of 8192.
5463     lt_cv_sys_max_cmd_len=8192;
5464     ;;
5465
5466   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5467     # This has been around since 386BSD, at least.  Likely further.
5468     if test -x /sbin/sysctl; then
5469       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5470     elif test -x /usr/sbin/sysctl; then
5471       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5472     else
5473       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5474     fi
5475     # And add a safety zone
5476     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5477     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5478     ;;
5479
5480   interix*)
5481     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5482     lt_cv_sys_max_cmd_len=196608
5483     ;;
5484
5485   osf*)
5486     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5487     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5488     # nice to cause kernel panics so lets avoid the loop below.
5489     # First set a reasonable default.
5490     lt_cv_sys_max_cmd_len=16384
5491     #
5492     if test -x /sbin/sysconfig; then
5493       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5494         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5495       esac
5496     fi
5497     ;;
5498   sco3.2v5*)
5499     lt_cv_sys_max_cmd_len=102400
5500     ;;
5501   sysv5* | sco5v6* | sysv4.2uw2*)
5502     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5503     if test -n "$kargmax"; then
5504       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5505     else
5506       lt_cv_sys_max_cmd_len=32768
5507     fi
5508     ;;
5509   *)
5510     # If test is not a shell built-in, we'll probably end up computing a
5511     # maximum length that is only half of the actual maximum length, but
5512     # we can't tell.
5513     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5514     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5515                = "XX$teststring") >/dev/null 2>&1 &&
5516             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5517             lt_cv_sys_max_cmd_len=$new_result &&
5518             test $i != 17 # 1/2 MB should be enough
5519     do
5520       i=`expr $i + 1`
5521       teststring=$teststring$teststring
5522     done
5523     teststring=
5524     # Add a significant safety factor because C++ compilers can tack on massive
5525     # amounts of additional arguments before passing them to the linker.
5526     # It appears as though 1/2 is a usable value.
5527     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5528     ;;
5529   esac
5530
5531 fi
5532
5533 if test -n $lt_cv_sys_max_cmd_len ; then
5534   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5535 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5536 else
5537   echo "$as_me:$LINENO: result: none" >&5
5538 echo "${ECHO_T}none" >&6
5539 fi
5540
5541
5542
5543
5544 # Check for command to grab the raw symbol name followed by C symbol from nm.
5545 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5546 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5547 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5548   echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550
5551 # These are sane defaults that work on at least a few old systems.
5552 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5553
5554 # Character class describing NM global symbol codes.
5555 symcode='[BCDEGRST]'
5556
5557 # Regexp to match symbols that can be accessed directly from C.
5558 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5559
5560 # Transform an extracted symbol line into a proper C declaration
5561 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5562
5563 # Transform an extracted symbol line into symbol name and symbol address
5564 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5565
5566 # Define system-specific variables.
5567 case $host_os in
5568 aix*)
5569   symcode='[BCDT]'
5570   ;;
5571 cygwin* | mingw* | pw32*)
5572   symcode='[ABCDGISTW]'
5573   ;;
5574 hpux*) # Its linker distinguishes data from code symbols
5575   if test "$host_cpu" = ia64; then
5576     symcode='[ABCDEGRST]'
5577   fi
5578   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5579   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5580   ;;
5581 linux* | k*bsd*-gnu)
5582   if test "$host_cpu" = ia64; then
5583     symcode='[ABCDGIRSTW]'
5584     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5585     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5586   fi
5587   ;;
5588 irix* | nonstopux*)
5589   symcode='[BCDEGRST]'
5590   ;;
5591 osf*)
5592   symcode='[BCDEGQRST]'
5593   ;;
5594 solaris*)
5595   symcode='[BDRT]'
5596   ;;
5597 sco3.2v5*)
5598   symcode='[DT]'
5599   ;;
5600 sysv4.2uw2*)
5601   symcode='[DT]'
5602   ;;
5603 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5604   symcode='[ABDT]'
5605   ;;
5606 sysv4)
5607   symcode='[DFNSTU]'
5608   ;;
5609 esac
5610
5611 # Handle CRLF in mingw tool chain
5612 opt_cr=
5613 case $build_os in
5614 mingw*)
5615   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5616   ;;
5617 esac
5618
5619 # If we're using GNU nm, then use its standard symbol codes.
5620 case `$NM -V 2>&1` in
5621 *GNU* | *'with BFD'*)
5622   symcode='[ABCDGIRSTW]' ;;
5623 esac
5624
5625 # Try without a prefix undercore, then with it.
5626 for ac_symprfx in "" "_"; do
5627
5628   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5629   symxfrm="\\1 $ac_symprfx\\2 \\2"
5630
5631   # Write the raw and C identifiers.
5632   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5633
5634   # Check to see that the pipe works correctly.
5635   pipe_works=no
5636
5637   rm -f conftest*
5638   cat > conftest.$ac_ext <<EOF
5639 #ifdef __cplusplus
5640 extern "C" {
5641 #endif
5642 char nm_test_var;
5643 void nm_test_func(){}
5644 #ifdef __cplusplus
5645 }
5646 #endif
5647 int main(){nm_test_var='a';nm_test_func();return(0);}
5648 EOF
5649
5650   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651   (eval $ac_compile) 2>&5
5652   ac_status=$?
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); }; then
5655     # Now try to grab the symbols.
5656     nlist=conftest.nm
5657     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5658   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5659   ac_status=$?
5660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661   (exit $ac_status); } && test -s "$nlist"; then
5662       # Try sorting and uniquifying the output.
5663       if sort "$nlist" | uniq > "$nlist"T; then
5664         mv -f "$nlist"T "$nlist"
5665       else
5666         rm -f "$nlist"T
5667       fi
5668
5669       # Make sure that we snagged all the symbols we need.
5670       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5671         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5672           cat <<EOF > conftest.$ac_ext
5673 #ifdef __cplusplus
5674 extern "C" {
5675 #endif
5676
5677 EOF
5678           # Now generate the symbol file.
5679           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5680
5681           cat <<EOF >> conftest.$ac_ext
5682 #if defined (__STDC__) && __STDC__
5683 # define lt_ptr_t void *
5684 #else
5685 # define lt_ptr_t char *
5686 # define const
5687 #endif
5688
5689 /* The mapping between symbol names and symbols. */
5690 const struct {
5691   const char *name;
5692   lt_ptr_t address;
5693 }
5694 lt_preloaded_symbols[] =
5695 {
5696 EOF
5697           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5698           cat <<\EOF >> conftest.$ac_ext
5699   {0, (lt_ptr_t) 0}
5700 };
5701
5702 #ifdef __cplusplus
5703 }
5704 #endif
5705 EOF
5706           # Now try linking the two files.
5707           mv conftest.$ac_objext conftstm.$ac_objext
5708           lt_save_LIBS="$LIBS"
5709           lt_save_CFLAGS="$CFLAGS"
5710           LIBS="conftstm.$ac_objext"
5711           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5712           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5713   (eval $ac_link) 2>&5
5714   ac_status=$?
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5717             pipe_works=yes
5718           fi
5719           LIBS="$lt_save_LIBS"
5720           CFLAGS="$lt_save_CFLAGS"
5721         else
5722           echo "cannot find nm_test_func in $nlist" >&5
5723         fi
5724       else
5725         echo "cannot find nm_test_var in $nlist" >&5
5726       fi
5727     else
5728       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5729     fi
5730   else
5731     echo "$progname: failed program was:" >&5
5732     cat conftest.$ac_ext >&5
5733   fi
5734   rm -f conftest* conftst*
5735
5736   # Do not use the global_symbol_pipe unless it works.
5737   if test "$pipe_works" = yes; then
5738     break
5739   else
5740     lt_cv_sys_global_symbol_pipe=
5741   fi
5742 done
5743
5744 fi
5745
5746 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5747   lt_cv_sys_global_symbol_to_cdecl=
5748 fi
5749 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5750   echo "$as_me:$LINENO: result: failed" >&5
5751 echo "${ECHO_T}failed" >&6
5752 else
5753   echo "$as_me:$LINENO: result: ok" >&5
5754 echo "${ECHO_T}ok" >&6
5755 fi
5756
5757 echo "$as_me:$LINENO: checking for objdir" >&5
5758 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5759 if test "${lt_cv_objdir+set}" = set; then
5760   echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762   rm -f .libs 2>/dev/null
5763 mkdir .libs 2>/dev/null
5764 if test -d .libs; then
5765   lt_cv_objdir=.libs
5766 else
5767   # MS-DOS does not allow filenames that begin with a dot.
5768   lt_cv_objdir=_libs
5769 fi
5770 rmdir .libs 2>/dev/null
5771 fi
5772 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5773 echo "${ECHO_T}$lt_cv_objdir" >&6
5774 objdir=$lt_cv_objdir
5775
5776
5777
5778
5779
5780 case $host_os in
5781 aix3*)
5782   # AIX sometimes has problems with the GCC collect2 program.  For some
5783   # reason, if we set the COLLECT_NAMES environment variable, the problems
5784   # vanish in a puff of smoke.
5785   if test "X${COLLECT_NAMES+set}" != Xset; then
5786     COLLECT_NAMES=
5787     export COLLECT_NAMES
5788   fi
5789   ;;
5790 esac
5791
5792 # Sed substitution that helps us do robust quoting.  It backslashifies
5793 # metacharacters that are still active within double-quoted strings.
5794 Xsed='sed -e 1s/^X//'
5795 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5796
5797 # Same as above, but do not quote variable references.
5798 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5799
5800 # Sed substitution to delay expansion of an escaped shell variable in a
5801 # double_quote_subst'ed string.
5802 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5803
5804 # Sed substitution to avoid accidental globbing in evaled expressions
5805 no_glob_subst='s/\*/\\\*/g'
5806
5807 # Constants:
5808 rm="rm -f"
5809
5810 # Global variables:
5811 default_ofile=libtool
5812 can_build_shared=yes
5813
5814 # All known linkers require a `.a' archive for static linking (except MSVC,
5815 # which needs '.lib').
5816 libext=a
5817 ltmain="$ac_aux_dir/ltmain.sh"
5818 ofile="$default_ofile"
5819 with_gnu_ld="$lt_cv_prog_gnu_ld"
5820
5821 if test -n "$ac_tool_prefix"; then
5822   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5823 set dummy ${ac_tool_prefix}ar; ac_word=$2
5824 echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5826 if test "${ac_cv_prog_AR+set}" = set; then
5827   echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829   if test -n "$AR"; then
5830   ac_cv_prog_AR="$AR" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5834 do
5835   IFS=$as_save_IFS
5836   test -z "$as_dir" && as_dir=.
5837   for ac_exec_ext in '' $ac_executable_extensions; do
5838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839     ac_cv_prog_AR="${ac_tool_prefix}ar"
5840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841     break 2
5842   fi
5843 done
5844 done
5845
5846 fi
5847 fi
5848 AR=$ac_cv_prog_AR
5849 if test -n "$AR"; then
5850   echo "$as_me:$LINENO: result: $AR" >&5
5851 echo "${ECHO_T}$AR" >&6
5852 else
5853   echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6
5855 fi
5856
5857 fi
5858 if test -z "$ac_cv_prog_AR"; then
5859   ac_ct_AR=$AR
5860   # Extract the first word of "ar", so it can be a program name with args.
5861 set dummy ar; ac_word=$2
5862 echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5864 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5865   echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867   if test -n "$ac_ct_AR"; then
5868   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5869 else
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873   IFS=$as_save_IFS
5874   test -z "$as_dir" && as_dir=.
5875   for ac_exec_ext in '' $ac_executable_extensions; do
5876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877     ac_cv_prog_ac_ct_AR="ar"
5878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879     break 2
5880   fi
5881 done
5882 done
5883
5884   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5885 fi
5886 fi
5887 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5888 if test -n "$ac_ct_AR"; then
5889   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5890 echo "${ECHO_T}$ac_ct_AR" >&6
5891 else
5892   echo "$as_me:$LINENO: result: no" >&5
5893 echo "${ECHO_T}no" >&6
5894 fi
5895
5896   AR=$ac_ct_AR
5897 else
5898   AR="$ac_cv_prog_AR"
5899 fi
5900
5901 if test -n "$ac_tool_prefix"; then
5902   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5903 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5904 echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5906 if test "${ac_cv_prog_RANLIB+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909   if test -n "$RANLIB"; then
5910   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915   IFS=$as_save_IFS
5916   test -z "$as_dir" && as_dir=.
5917   for ac_exec_ext in '' $ac_executable_extensions; do
5918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921     break 2
5922   fi
5923 done
5924 done
5925
5926 fi
5927 fi
5928 RANLIB=$ac_cv_prog_RANLIB
5929 if test -n "$RANLIB"; then
5930   echo "$as_me:$LINENO: result: $RANLIB" >&5
5931 echo "${ECHO_T}$RANLIB" >&6
5932 else
5933   echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6
5935 fi
5936
5937 fi
5938 if test -z "$ac_cv_prog_RANLIB"; then
5939   ac_ct_RANLIB=$RANLIB
5940   # Extract the first word of "ranlib", so it can be a program name with args.
5941 set dummy ranlib; ac_word=$2
5942 echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5944 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5945   echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947   if test -n "$ac_ct_RANLIB"; then
5948   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5949 else
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH
5952 do
5953   IFS=$as_save_IFS
5954   test -z "$as_dir" && as_dir=.
5955   for ac_exec_ext in '' $ac_executable_extensions; do
5956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957     ac_cv_prog_ac_ct_RANLIB="ranlib"
5958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959     break 2
5960   fi
5961 done
5962 done
5963
5964   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5965 fi
5966 fi
5967 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5968 if test -n "$ac_ct_RANLIB"; then
5969   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5970 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5971 else
5972   echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6
5974 fi
5975
5976   RANLIB=$ac_ct_RANLIB
5977 else
5978   RANLIB="$ac_cv_prog_RANLIB"
5979 fi
5980
5981 if test -n "$ac_tool_prefix"; then
5982   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5983 set dummy ${ac_tool_prefix}strip; ac_word=$2
5984 echo "$as_me:$LINENO: checking for $ac_word" >&5
5985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5986 if test "${ac_cv_prog_STRIP+set}" = set; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989   if test -n "$STRIP"; then
5990   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5991 else
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995   IFS=$as_save_IFS
5996   test -z "$as_dir" && as_dir=.
5997   for ac_exec_ext in '' $ac_executable_extensions; do
5998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001     break 2
6002   fi
6003 done
6004 done
6005
6006 fi
6007 fi
6008 STRIP=$ac_cv_prog_STRIP
6009 if test -n "$STRIP"; then
6010   echo "$as_me:$LINENO: result: $STRIP" >&5
6011 echo "${ECHO_T}$STRIP" >&6
6012 else
6013   echo "$as_me:$LINENO: result: no" >&5
6014 echo "${ECHO_T}no" >&6
6015 fi
6016
6017 fi
6018 if test -z "$ac_cv_prog_STRIP"; then
6019   ac_ct_STRIP=$STRIP
6020   # Extract the first word of "strip", so it can be a program name with args.
6021 set dummy strip; ac_word=$2
6022 echo "$as_me:$LINENO: checking for $ac_word" >&5
6023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6024 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6025   echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027   if test -n "$ac_ct_STRIP"; then
6028   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6029 else
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6032 do
6033   IFS=$as_save_IFS
6034   test -z "$as_dir" && as_dir=.
6035   for ac_exec_ext in '' $ac_executable_extensions; do
6036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037     ac_cv_prog_ac_ct_STRIP="strip"
6038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039     break 2
6040   fi
6041 done
6042 done
6043
6044   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6045 fi
6046 fi
6047 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6048 if test -n "$ac_ct_STRIP"; then
6049   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6050 echo "${ECHO_T}$ac_ct_STRIP" >&6
6051 else
6052   echo "$as_me:$LINENO: result: no" >&5
6053 echo "${ECHO_T}no" >&6
6054 fi
6055
6056   STRIP=$ac_ct_STRIP
6057 else
6058   STRIP="$ac_cv_prog_STRIP"
6059 fi
6060
6061
6062 old_CC="$CC"
6063 old_CFLAGS="$CFLAGS"
6064
6065 # Set sane defaults for various variables
6066 test -z "$AR" && AR=ar
6067 test -z "$AR_FLAGS" && AR_FLAGS=cru
6068 test -z "$AS" && AS=as
6069 test -z "$CC" && CC=cc
6070 test -z "$LTCC" && LTCC=$CC
6071 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6072 test -z "$DLLTOOL" && DLLTOOL=dlltool
6073 test -z "$LD" && LD=ld
6074 test -z "$LN_S" && LN_S="ln -s"
6075 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6076 test -z "$NM" && NM=nm
6077 test -z "$SED" && SED=sed
6078 test -z "$OBJDUMP" && OBJDUMP=objdump
6079 test -z "$RANLIB" && RANLIB=:
6080 test -z "$STRIP" && STRIP=:
6081 test -z "$ac_objext" && ac_objext=o
6082
6083 # Determine commands to create old-style static archives.
6084 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6085 old_postinstall_cmds='chmod 644 $oldlib'
6086 old_postuninstall_cmds=
6087
6088 if test -n "$RANLIB"; then
6089   case $host_os in
6090   openbsd*)
6091     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6092     ;;
6093   *)
6094     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6095     ;;
6096   esac
6097   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6098 fi
6099
6100 for cc_temp in $compiler""; do
6101   case $cc_temp in
6102     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6103     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6104     \-*) ;;
6105     *) break;;
6106   esac
6107 done
6108 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6109
6110
6111 # Only perform the check for file, if the check method requires it
6112 case $deplibs_check_method in
6113 file_magic*)
6114   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6115     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6116 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6117 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6118   echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120   case $MAGIC_CMD in
6121 [\\/*] |  ?:[\\/]*)
6122   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6123   ;;
6124 *)
6125   lt_save_MAGIC_CMD="$MAGIC_CMD"
6126   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6127   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6128   for ac_dir in $ac_dummy; do
6129     IFS="$lt_save_ifs"
6130     test -z "$ac_dir" && ac_dir=.
6131     if test -f $ac_dir/${ac_tool_prefix}file; then
6132       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6133       if test -n "$file_magic_test_file"; then
6134         case $deplibs_check_method in
6135         "file_magic "*)
6136           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6137           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6138           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6139             $EGREP "$file_magic_regex" > /dev/null; then
6140             :
6141           else
6142             cat <<EOF 1>&2
6143
6144 *** Warning: the command libtool uses to detect shared libraries,
6145 *** $file_magic_cmd, produces output that libtool cannot recognize.
6146 *** The result is that libtool may fail to recognize shared libraries
6147 *** as such.  This will affect the creation of libtool libraries that
6148 *** depend on shared libraries, but programs linked with such libtool
6149 *** libraries will work regardless of this problem.  Nevertheless, you
6150 *** may want to report the problem to your system manager and/or to
6151 *** bug-libtool@gnu.org
6152
6153 EOF
6154           fi ;;
6155         esac
6156       fi
6157       break
6158     fi
6159   done
6160   IFS="$lt_save_ifs"
6161   MAGIC_CMD="$lt_save_MAGIC_CMD"
6162   ;;
6163 esac
6164 fi
6165
6166 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6167 if test -n "$MAGIC_CMD"; then
6168   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6169 echo "${ECHO_T}$MAGIC_CMD" >&6
6170 else
6171   echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6
6173 fi
6174
6175 if test -z "$lt_cv_path_MAGIC_CMD"; then
6176   if test -n "$ac_tool_prefix"; then
6177     echo "$as_me:$LINENO: checking for file" >&5
6178 echo $ECHO_N "checking for file... $ECHO_C" >&6
6179 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   case $MAGIC_CMD in
6183 [\\/*] |  ?:[\\/]*)
6184   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6185   ;;
6186 *)
6187   lt_save_MAGIC_CMD="$MAGIC_CMD"
6188   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6189   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6190   for ac_dir in $ac_dummy; do
6191     IFS="$lt_save_ifs"
6192     test -z "$ac_dir" && ac_dir=.
6193     if test -f $ac_dir/file; then
6194       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6195       if test -n "$file_magic_test_file"; then
6196         case $deplibs_check_method in
6197         "file_magic "*)
6198           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6199           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6200           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6201             $EGREP "$file_magic_regex" > /dev/null; then
6202             :
6203           else
6204             cat <<EOF 1>&2
6205
6206 *** Warning: the command libtool uses to detect shared libraries,
6207 *** $file_magic_cmd, produces output that libtool cannot recognize.
6208 *** The result is that libtool may fail to recognize shared libraries
6209 *** as such.  This will affect the creation of libtool libraries that
6210 *** depend on shared libraries, but programs linked with such libtool
6211 *** libraries will work regardless of this problem.  Nevertheless, you
6212 *** may want to report the problem to your system manager and/or to
6213 *** bug-libtool@gnu.org
6214
6215 EOF
6216           fi ;;
6217         esac
6218       fi
6219       break
6220     fi
6221   done
6222   IFS="$lt_save_ifs"
6223   MAGIC_CMD="$lt_save_MAGIC_CMD"
6224   ;;
6225 esac
6226 fi
6227
6228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6229 if test -n "$MAGIC_CMD"; then
6230   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6231 echo "${ECHO_T}$MAGIC_CMD" >&6
6232 else
6233   echo "$as_me:$LINENO: result: no" >&5
6234 echo "${ECHO_T}no" >&6
6235 fi
6236
6237   else
6238     MAGIC_CMD=:
6239   fi
6240 fi
6241
6242   fi
6243   ;;
6244 esac
6245
6246 enable_dlopen=no
6247 enable_win32_dll=no
6248
6249 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6250 if test "${enable_libtool_lock+set}" = set; then
6251   enableval="$enable_libtool_lock"
6252
6253 fi;
6254 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6255
6256
6257 # Check whether --with-pic or --without-pic was given.
6258 if test "${with_pic+set}" = set; then
6259   withval="$with_pic"
6260   pic_mode="$withval"
6261 else
6262   pic_mode=default
6263 fi;
6264 test -z "$pic_mode" && pic_mode=default
6265
6266 # Use C for the default configuration in the libtool script
6267 tagname=
6268 lt_save_CC="$CC"
6269 ac_ext=c
6270 ac_cpp='$CPP $CPPFLAGS'
6271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6274
6275
6276 # Source file extension for C test sources.
6277 ac_ext=c
6278
6279 # Object file extension for compiled C test sources.
6280 objext=o
6281 objext=$objext
6282
6283 # Code to be used in simple compile tests
6284 lt_simple_compile_test_code="int some_variable = 0;\n"
6285
6286 # Code to be used in simple link tests
6287 lt_simple_link_test_code='int main(){return(0);}\n'
6288
6289
6290 # If no C compiler was specified, use CC.
6291 LTCC=${LTCC-"$CC"}
6292
6293 # If no C compiler flags were specified, use CFLAGS.
6294 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6295
6296 # Allow CC to be a program name with arguments.
6297 compiler=$CC
6298
6299
6300 # save warnings/boilerplate of simple test code
6301 ac_outfile=conftest.$ac_objext
6302 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6303 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6304 _lt_compiler_boilerplate=`cat conftest.err`
6305 $rm conftest*
6306
6307 ac_outfile=conftest.$ac_objext
6308 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6309 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6310 _lt_linker_boilerplate=`cat conftest.err`
6311 $rm conftest*
6312
6313
6314
6315 lt_prog_compiler_no_builtin_flag=
6316
6317 if test "$GCC" = yes; then
6318   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6319
6320
6321 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6322 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6323 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6324   echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326   lt_cv_prog_compiler_rtti_exceptions=no
6327   ac_outfile=conftest.$ac_objext
6328    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6329    lt_compiler_flag="-fno-rtti -fno-exceptions"
6330    # Insert the option either (1) after the last *FLAGS variable, or
6331    # (2) before a word containing "conftest.", or (3) at the end.
6332    # Note that $ac_compile itself does not contain backslashes and begins
6333    # with a dollar sign (not a hyphen), so the echo should work correctly.
6334    # The option is referenced via a variable to avoid confusing sed.
6335    lt_compile=`echo "$ac_compile" | $SED \
6336    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6337    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6338    -e 's:$: $lt_compiler_flag:'`
6339    (eval echo "\"\$as_me:6339: $lt_compile\"" >&5)
6340    (eval "$lt_compile" 2>conftest.err)
6341    ac_status=$?
6342    cat conftest.err >&5
6343    echo "$as_me:6343: \$? = $ac_status" >&5
6344    if (exit $ac_status) && test -s "$ac_outfile"; then
6345      # The compiler can only warn and ignore the option if not recognized
6346      # So say no if there are warnings other than the usual output.
6347      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6348      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6349      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6350        lt_cv_prog_compiler_rtti_exceptions=yes
6351      fi
6352    fi
6353    $rm conftest*
6354
6355 fi
6356 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6357 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6358
6359 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6360     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6361 else
6362     :
6363 fi
6364
6365 fi
6366
6367 lt_prog_compiler_wl=
6368 lt_prog_compiler_pic=
6369 lt_prog_compiler_static=
6370
6371 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6372 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6373
6374   if test "$GCC" = yes; then
6375     lt_prog_compiler_wl='-Wl,'
6376     lt_prog_compiler_static='-static'
6377
6378     case $host_os in
6379       aix*)
6380       # All AIX code is PIC.
6381       if test "$host_cpu" = ia64; then
6382         # AIX 5 now supports IA64 processor
6383         lt_prog_compiler_static='-Bstatic'
6384       fi
6385       ;;
6386
6387     amigaos*)
6388       # FIXME: we need at least 68020 code to build shared libraries, but
6389       # adding the `-m68020' flag to GCC prevents building anything better,
6390       # like `-m68040'.
6391       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6392       ;;
6393
6394     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6395       # PIC is the default for these OSes.
6396       ;;
6397
6398     mingw* | pw32* | os2*)
6399       # This hack is so that the source file can tell whether it is being
6400       # built for inclusion in a dll (and should export symbols for example).
6401       lt_prog_compiler_pic='-DDLL_EXPORT'
6402       ;;
6403
6404     darwin* | rhapsody*)
6405       # PIC is the default on this platform
6406       # Common symbols not allowed in MH_DYLIB files
6407       lt_prog_compiler_pic='-fno-common'
6408       ;;
6409
6410     interix3*)
6411       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6412       # Instead, we relocate shared libraries at runtime.
6413       ;;
6414
6415     msdosdjgpp*)
6416       # Just because we use GCC doesn't mean we suddenly get shared libraries
6417       # on systems that don't support them.
6418       lt_prog_compiler_can_build_shared=no
6419       enable_shared=no
6420       ;;
6421
6422     sysv4*MP*)
6423       if test -d /usr/nec; then
6424         lt_prog_compiler_pic=-Kconform_pic
6425       fi
6426       ;;
6427
6428     hpux*)
6429       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6430       # not for PA HP-UX.
6431       case $host_cpu in
6432       hppa*64*|ia64*)
6433         # +Z the default
6434         ;;
6435       *)
6436         lt_prog_compiler_pic='-fPIC'
6437         ;;
6438       esac
6439       ;;
6440
6441     *)
6442       lt_prog_compiler_pic='-fPIC'
6443       ;;
6444     esac
6445   else
6446     # PORTME Check for flag to pass linker flags through the system compiler.
6447     case $host_os in
6448     aix*)
6449       lt_prog_compiler_wl='-Wl,'
6450       if test "$host_cpu" = ia64; then
6451         # AIX 5 now supports IA64 processor
6452         lt_prog_compiler_static='-Bstatic'
6453       else
6454         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6455       fi
6456       ;;
6457       darwin*)
6458         # PIC is the default on this platform
6459         # Common symbols not allowed in MH_DYLIB files
6460        case $cc_basename in
6461          xlc*)
6462          lt_prog_compiler_pic='-qnocommon'
6463          lt_prog_compiler_wl='-Wl,'
6464          ;;
6465        esac
6466        ;;
6467
6468     mingw* | pw32* | os2*)
6469       # This hack is so that the source file can tell whether it is being
6470       # built for inclusion in a dll (and should export symbols for example).
6471       lt_prog_compiler_pic='-DDLL_EXPORT'
6472       ;;
6473
6474     hpux9* | hpux10* | hpux11*)
6475       lt_prog_compiler_wl='-Wl,'
6476       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6477       # not for PA HP-UX.
6478       case $host_cpu in
6479       hppa*64*|ia64*)
6480         # +Z the default
6481         ;;
6482       *)
6483         lt_prog_compiler_pic='+Z'
6484         ;;
6485       esac
6486       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6487       lt_prog_compiler_static='${wl}-a ${wl}archive'
6488       ;;
6489
6490     irix5* | irix6* | nonstopux*)
6491       lt_prog_compiler_wl='-Wl,'
6492       # PIC (with -KPIC) is the default.
6493       lt_prog_compiler_static='-non_shared'
6494       ;;
6495
6496     newsos6)
6497       lt_prog_compiler_pic='-KPIC'
6498       lt_prog_compiler_static='-Bstatic'
6499       ;;
6500
6501     linux* | k*bsd*-gnu)
6502       case $cc_basename in
6503       icc* | ecc*)
6504         lt_prog_compiler_wl='-Wl,'
6505         lt_prog_compiler_pic='-KPIC'
6506         lt_prog_compiler_static='-static'
6507         ;;
6508       pgcc* | pgf77* | pgf90* | pgf95*)
6509         # Portland Group compilers (*not* the Pentium gcc compiler,
6510         # which looks to be a dead project)
6511         lt_prog_compiler_wl='-Wl,'
6512         lt_prog_compiler_pic='-fpic'
6513         lt_prog_compiler_static='-Bstatic'
6514         ;;
6515       ccc*)
6516         lt_prog_compiler_wl='-Wl,'
6517         # All Alpha code is PIC.
6518         lt_prog_compiler_static='-non_shared'
6519         ;;
6520       esac
6521       ;;
6522
6523     osf3* | osf4* | osf5*)
6524       lt_prog_compiler_wl='-Wl,'
6525       # All OSF/1 code is PIC.
6526       lt_prog_compiler_static='-non_shared'
6527       ;;
6528
6529     solaris*)
6530       lt_prog_compiler_pic='-KPIC'
6531       lt_prog_compiler_static='-Bstatic'
6532       case $cc_basename in
6533       f77* | f90* | f95*)
6534         lt_prog_compiler_wl='-Qoption ld ';;
6535       *)
6536         lt_prog_compiler_wl='-Wl,';;
6537       esac
6538       ;;
6539
6540     sunos4*)
6541       lt_prog_compiler_wl='-Qoption ld '
6542       lt_prog_compiler_pic='-PIC'
6543       lt_prog_compiler_static='-Bstatic'
6544       ;;
6545
6546     sysv4 | sysv4.2uw2* | sysv4.3*)
6547       lt_prog_compiler_wl='-Wl,'
6548       lt_prog_compiler_pic='-KPIC'
6549       lt_prog_compiler_static='-Bstatic'
6550       ;;
6551
6552     sysv4*MP*)
6553       if test -d /usr/nec ;then
6554         lt_prog_compiler_pic='-Kconform_pic'
6555         lt_prog_compiler_static='-Bstatic'
6556       fi
6557       ;;
6558
6559     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6560       lt_prog_compiler_wl='-Wl,'
6561       lt_prog_compiler_pic='-KPIC'
6562       lt_prog_compiler_static='-Bstatic'
6563       ;;
6564
6565     unicos*)
6566       lt_prog_compiler_wl='-Wl,'
6567       lt_prog_compiler_can_build_shared=no
6568       ;;
6569
6570     uts4*)
6571       lt_prog_compiler_pic='-pic'
6572       lt_prog_compiler_static='-Bstatic'
6573       ;;
6574
6575     *)
6576       lt_prog_compiler_can_build_shared=no
6577       ;;
6578     esac
6579   fi
6580
6581 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6582 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6583
6584 #
6585 # Check to make sure the PIC flag actually works.
6586 #
6587 if test -n "$lt_prog_compiler_pic"; then
6588
6589 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6590 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6591 if test "${lt_prog_compiler_pic_works+set}" = set; then
6592   echo $ECHO_N "(cached) $ECHO_C" >&6
6593 else
6594   lt_prog_compiler_pic_works=no
6595   ac_outfile=conftest.$ac_objext
6596    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6597    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6598    # Insert the option either (1) after the last *FLAGS variable, or
6599    # (2) before a word containing "conftest.", or (3) at the end.
6600    # Note that $ac_compile itself does not contain backslashes and begins
6601    # with a dollar sign (not a hyphen), so the echo should work correctly.
6602    # The option is referenced via a variable to avoid confusing sed.
6603    lt_compile=`echo "$ac_compile" | $SED \
6604    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6605    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6606    -e 's:$: $lt_compiler_flag:'`
6607    (eval echo "\"\$as_me:6607: $lt_compile\"" >&5)
6608    (eval "$lt_compile" 2>conftest.err)
6609    ac_status=$?
6610    cat conftest.err >&5
6611    echo "$as_me:6611: \$? = $ac_status" >&5
6612    if (exit $ac_status) && test -s "$ac_outfile"; then
6613      # The compiler can only warn and ignore the option if not recognized
6614      # So say no if there are warnings other than the usual output.
6615      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6616      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6617      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6618        lt_prog_compiler_pic_works=yes
6619      fi
6620    fi
6621    $rm conftest*
6622
6623 fi
6624 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6625 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6626
6627 if test x"$lt_prog_compiler_pic_works" = xyes; then
6628     case $lt_prog_compiler_pic in
6629      "" | " "*) ;;
6630      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6631      esac
6632 else
6633     lt_prog_compiler_pic=
6634      lt_prog_compiler_can_build_shared=no
6635 fi
6636
6637 fi
6638 case $host_os in
6639   # For platforms which do not support PIC, -DPIC is meaningless:
6640   *djgpp*)
6641     lt_prog_compiler_pic=
6642     ;;
6643   *)
6644     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6645     ;;
6646 esac
6647
6648 #
6649 # Check to make sure the static flag actually works.
6650 #
6651 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6652 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6653 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6654 if test "${lt_prog_compiler_static_works+set}" = set; then
6655   echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657   lt_prog_compiler_static_works=no
6658    save_LDFLAGS="$LDFLAGS"
6659    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6660    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6661    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6662      # The linker can only warn and ignore the option if not recognized
6663      # So say no if there are warnings
6664      if test -s conftest.err; then
6665        # Append any errors to the config.log.
6666        cat conftest.err 1>&5
6667        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6668        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6669        if diff conftest.exp conftest.er2 >/dev/null; then
6670          lt_prog_compiler_static_works=yes
6671        fi
6672      else
6673        lt_prog_compiler_static_works=yes
6674      fi
6675    fi
6676    $rm conftest*
6677    LDFLAGS="$save_LDFLAGS"
6678
6679 fi
6680 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6681 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6682
6683 if test x"$lt_prog_compiler_static_works" = xyes; then
6684     :
6685 else
6686     lt_prog_compiler_static=
6687 fi
6688
6689
6690 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6691 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6692 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6693   echo $ECHO_N "(cached) $ECHO_C" >&6
6694 else
6695   lt_cv_prog_compiler_c_o=no
6696    $rm -r conftest 2>/dev/null
6697    mkdir conftest
6698    cd conftest
6699    mkdir out
6700    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6701
6702    lt_compiler_flag="-o out/conftest2.$ac_objext"
6703    # Insert the option either (1) after the last *FLAGS variable, or
6704    # (2) before a word containing "conftest.", or (3) at the end.
6705    # Note that $ac_compile itself does not contain backslashes and begins
6706    # with a dollar sign (not a hyphen), so the echo should work correctly.
6707    lt_compile=`echo "$ac_compile" | $SED \
6708    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6709    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6710    -e 's:$: $lt_compiler_flag:'`
6711    (eval echo "\"\$as_me:6711: $lt_compile\"" >&5)
6712    (eval "$lt_compile" 2>out/conftest.err)
6713    ac_status=$?
6714    cat out/conftest.err >&5
6715    echo "$as_me:6715: \$? = $ac_status" >&5
6716    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6717    then
6718      # The compiler can only warn and ignore the option if not recognized
6719      # So say no if there are warnings
6720      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6721      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6722      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6723        lt_cv_prog_compiler_c_o=yes
6724      fi
6725    fi
6726    chmod u+w . 2>&5
6727    $rm conftest*
6728    # SGI C++ compiler will create directory out/ii_files/ for
6729    # template instantiation
6730    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6731    $rm out/* && rmdir out
6732    cd ..
6733    rmdir conftest
6734    $rm conftest*
6735
6736 fi
6737 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6738 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6739
6740
6741 hard_links="nottested"
6742 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6743   # do not overwrite the value of need_locks provided by the user
6744   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6745 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6746   hard_links=yes
6747   $rm conftest*
6748   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6749   touch conftest.a
6750   ln conftest.a conftest.b 2>&5 || hard_links=no
6751   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6752   echo "$as_me:$LINENO: result: $hard_links" >&5
6753 echo "${ECHO_T}$hard_links" >&6
6754   if test "$hard_links" = no; then
6755     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6756 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6757     need_locks=warn
6758   fi
6759 else
6760   need_locks=no
6761 fi
6762
6763 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6764 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6765
6766   runpath_var=
6767   allow_undefined_flag=
6768   enable_shared_with_static_runtimes=no
6769   archive_cmds=
6770   archive_expsym_cmds=
6771   old_archive_From_new_cmds=
6772   old_archive_from_expsyms_cmds=
6773   export_dynamic_flag_spec=
6774   whole_archive_flag_spec=
6775   thread_safe_flag_spec=
6776   hardcode_libdir_flag_spec=
6777   hardcode_libdir_flag_spec_ld=
6778   hardcode_libdir_separator=
6779   hardcode_direct=no
6780   hardcode_minus_L=no
6781   hardcode_shlibpath_var=unsupported
6782   link_all_deplibs=unknown
6783   hardcode_automatic=no
6784   module_cmds=
6785   module_expsym_cmds=
6786   always_export_symbols=no
6787   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6788   # include_expsyms should be a list of space-separated symbols to be *always*
6789   # included in the symbol list
6790   include_expsyms=
6791   # exclude_expsyms can be an extended regexp of symbols to exclude
6792   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6793   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6794   # as well as any symbol that contains `d'.
6795   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6796   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6797   # platforms (ab)use it in PIC code, but their linkers get confused if
6798   # the symbol is explicitly referenced.  Since portable code cannot
6799   # rely on this symbol name, it's probably fine to never include it in
6800   # preloaded symbol tables.
6801   extract_expsyms_cmds=
6802   # Just being paranoid about ensuring that cc_basename is set.
6803   for cc_temp in $compiler""; do
6804   case $cc_temp in
6805     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6806     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6807     \-*) ;;
6808     *) break;;
6809   esac
6810 done
6811 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6812
6813   case $host_os in
6814   cygwin* | mingw* | pw32*)
6815     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6816     # When not using gcc, we currently assume that we are using
6817     # Microsoft Visual C++.
6818     if test "$GCC" != yes; then
6819       with_gnu_ld=no
6820     fi
6821     ;;
6822   interix*)
6823     # we just hope/assume this is gcc and not c89 (= MSVC++)
6824     with_gnu_ld=yes
6825     ;;
6826   openbsd*)
6827     with_gnu_ld=no
6828     ;;
6829   esac
6830
6831   ld_shlibs=yes
6832   if test "$with_gnu_ld" = yes; then
6833     # If archive_cmds runs LD, not CC, wlarc should be empty
6834     wlarc='${wl}'
6835
6836     # Set some defaults for GNU ld with shared library support. These
6837     # are reset later if shared libraries are not supported. Putting them
6838     # here allows them to be overridden if necessary.
6839     runpath_var=LD_RUN_PATH
6840     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6841     export_dynamic_flag_spec='${wl}--export-dynamic'
6842     # ancient GNU ld didn't support --whole-archive et. al.
6843     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6844         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6845       else
6846         whole_archive_flag_spec=
6847     fi
6848     supports_anon_versioning=no
6849     case `$LD -v 2>/dev/null` in
6850       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6851       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6852       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6853       *\ 2.11.*) ;; # other 2.11 versions
6854       *) supports_anon_versioning=yes ;;
6855     esac
6856
6857     # See if GNU ld supports shared libraries.
6858     case $host_os in
6859     aix3* | aix4* | aix5*)
6860       # On AIX/PPC, the GNU linker is very broken
6861       if test "$host_cpu" != ia64; then
6862         ld_shlibs=no
6863         cat <<EOF 1>&2
6864
6865 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6866 *** to be unable to reliably create shared libraries on AIX.
6867 *** Therefore, libtool is disabling shared libraries support.  If you
6868 *** really care for shared libraries, you may want to modify your PATH
6869 *** so that a non-GNU linker is found, and then restart.
6870
6871 EOF
6872       fi
6873       ;;
6874
6875     amigaos*)
6876       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)'
6877       hardcode_libdir_flag_spec='-L$libdir'
6878       hardcode_minus_L=yes
6879
6880       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6881       # that the semantics of dynamic libraries on AmigaOS, at least up
6882       # to version 4, is to share data among multiple programs linked
6883       # with the same dynamic library.  Since this doesn't match the
6884       # behavior of shared libraries on other platforms, we can't use
6885       # them.
6886       ld_shlibs=no
6887       ;;
6888
6889     beos*)
6890       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6891         allow_undefined_flag=unsupported
6892         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6893         # support --undefined.  This deserves some investigation.  FIXME
6894         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6895       else
6896         ld_shlibs=no
6897       fi
6898       ;;
6899
6900     cygwin* | mingw* | pw32*)
6901       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6902       # as there is no search path for DLLs.
6903       hardcode_libdir_flag_spec='-L$libdir'
6904       allow_undefined_flag=unsupported
6905       always_export_symbols=no
6906       enable_shared_with_static_runtimes=yes
6907       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6908
6909       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6910         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6911         # If the export-symbols file already is a .def file (1st line
6912         # is EXPORTS), use it as is; otherwise, prepend...
6913         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6914           cp $export_symbols $output_objdir/$soname.def;
6915         else
6916           echo EXPORTS > $output_objdir/$soname.def;
6917           cat $export_symbols >> $output_objdir/$soname.def;
6918         fi~
6919         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6920       else
6921         ld_shlibs=no
6922       fi
6923       ;;
6924
6925     interix3*)
6926       hardcode_direct=no
6927       hardcode_shlibpath_var=no
6928       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6929       export_dynamic_flag_spec='${wl}-E'
6930       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6931       # Instead, shared libraries are loaded at an image base (0x10000000 by
6932       # default) and relocated if they conflict, which is a slow very memory
6933       # consuming and fragmenting process.  To avoid this, we pick a random,
6934       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6935       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6936       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6937       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6938       ;;
6939
6940     linux* | k*bsd*-gnu)
6941       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6942         tmp_addflag=
6943         case $cc_basename,$host_cpu in
6944         pgcc*)                          # Portland Group C compiler
6945           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6946           tmp_addflag=' $pic_flag'
6947           ;;
6948         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6949           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6950           tmp_addflag=' $pic_flag -Mnomain' ;;
6951         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6952           tmp_addflag=' -i_dynamic' ;;
6953         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6954           tmp_addflag=' -i_dynamic -nofor_main' ;;
6955         ifc* | ifort*)                  # Intel Fortran compiler
6956           tmp_addflag=' -nofor_main' ;;
6957         esac
6958         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6959
6960         if test $supports_anon_versioning = yes; then
6961           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6962   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6963   $echo "local: *; };" >> $output_objdir/$libname.ver~
6964           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6965         fi
6966         link_all_deplibs=no
6967       else
6968         ld_shlibs=no
6969       fi
6970       ;;
6971
6972     netbsd* | netbsdelf*-gnu)
6973       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6974         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6975         wlarc=
6976       else
6977         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6978         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6979       fi
6980       ;;
6981
6982     solaris*)
6983       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6984         ld_shlibs=no
6985         cat <<EOF 1>&2
6986
6987 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6988 *** create shared libraries on Solaris systems.  Therefore, libtool
6989 *** is disabling shared libraries support.  We urge you to upgrade GNU
6990 *** binutils to release 2.9.1 or newer.  Another option is to modify
6991 *** your PATH or compiler configuration so that the native linker is
6992 *** used, and then restart.
6993
6994 EOF
6995       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6996         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6997         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6998       else
6999         ld_shlibs=no
7000       fi
7001       ;;
7002
7003     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7004       case `$LD -v 2>&1` in
7005         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7006         ld_shlibs=no
7007         cat <<_LT_EOF 1>&2
7008
7009 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7010 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7011 *** is disabling shared libraries support.  We urge you to upgrade GNU
7012 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7013 *** your PATH or compiler configuration so that the native linker is
7014 *** used, and then restart.
7015
7016 _LT_EOF
7017         ;;
7018         *)
7019           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7020             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7021             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7022             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7023           else
7024             ld_shlibs=no
7025           fi
7026         ;;
7027       esac
7028       ;;
7029
7030     sunos4*)
7031       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7032       wlarc=
7033       hardcode_direct=yes
7034       hardcode_shlibpath_var=no
7035       ;;
7036
7037     *)
7038       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7039         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7040         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7041       else
7042         ld_shlibs=no
7043       fi
7044       ;;
7045     esac
7046
7047     if test "$ld_shlibs" = no; then
7048       runpath_var=
7049       hardcode_libdir_flag_spec=
7050       export_dynamic_flag_spec=
7051       whole_archive_flag_spec=
7052     fi
7053   else
7054     # PORTME fill in a description of your system's linker (not GNU ld)
7055     case $host_os in
7056     aix3*)
7057       allow_undefined_flag=unsupported
7058       always_export_symbols=yes
7059       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'
7060       # Note: this linker hardcodes the directories in LIBPATH if there
7061       # are no directories specified by -L.
7062       hardcode_minus_L=yes
7063       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7064         # Neither direct hardcoding nor static linking is supported with a
7065         # broken collect2.
7066         hardcode_direct=unsupported
7067       fi
7068       ;;
7069
7070     aix4* | aix5*)
7071       if test "$host_cpu" = ia64; then
7072         # On IA64, the linker does run time linking by default, so we don't
7073         # have to do anything special.
7074         aix_use_runtimelinking=no
7075         exp_sym_flag='-Bexport'
7076         no_entry_flag=""
7077       else
7078         # If we're using GNU nm, then we don't want the "-C" option.
7079         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7080         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7081           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7082         else
7083           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7084         fi
7085         aix_use_runtimelinking=no
7086
7087         # Test if we are trying to use run time linking or normal
7088         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7089         # need to do runtime linking.
7090         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7091           for ld_flag in $LDFLAGS; do
7092           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7093             aix_use_runtimelinking=yes
7094             break
7095           fi
7096           done
7097           ;;
7098         esac
7099
7100         exp_sym_flag='-bexport'
7101         no_entry_flag='-bnoentry'
7102       fi
7103
7104       # When large executables or shared objects are built, AIX ld can
7105       # have problems creating the table of contents.  If linking a library
7106       # or program results in "error TOC overflow" add -mminimal-toc to
7107       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7108       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7109
7110       archive_cmds=''
7111       hardcode_direct=yes
7112       hardcode_libdir_separator=':'
7113       link_all_deplibs=yes
7114
7115       if test "$GCC" = yes; then
7116         case $host_os in aix4.[012]|aix4.[012].*)
7117         # We only want to do this on AIX 4.2 and lower, the check
7118         # below for broken collect2 doesn't work under 4.3+
7119           collect2name=`${CC} -print-prog-name=collect2`
7120           if test -f "$collect2name" && \
7121            strings "$collect2name" | grep resolve_lib_name >/dev/null
7122           then
7123           # We have reworked collect2
7124           hardcode_direct=yes
7125           else
7126           # We have old collect2
7127           hardcode_direct=unsupported
7128           # It fails to find uninstalled libraries when the uninstalled
7129           # path is not listed in the libpath.  Setting hardcode_minus_L
7130           # to unsupported forces relinking
7131           hardcode_minus_L=yes
7132           hardcode_libdir_flag_spec='-L$libdir'
7133           hardcode_libdir_separator=
7134           fi
7135           ;;
7136         esac
7137         shared_flag='-shared'
7138         if test "$aix_use_runtimelinking" = yes; then
7139           shared_flag="$shared_flag "'${wl}-G'
7140         fi
7141       else
7142         # not using gcc
7143         if test "$host_cpu" = ia64; then
7144         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7145         # chokes on -Wl,-G. The following line is correct:
7146           shared_flag='-G'
7147         else
7148           if test "$aix_use_runtimelinking" = yes; then
7149             shared_flag='${wl}-G'
7150           else
7151             shared_flag='${wl}-bM:SRE'
7152           fi
7153         fi
7154       fi
7155
7156       # It seems that -bexpall does not export symbols beginning with
7157       # underscore (_), so it is better to generate a list of symbols to export.
7158       always_export_symbols=yes
7159       if test "$aix_use_runtimelinking" = yes; then
7160         # Warning - without using the other runtime loading flags (-brtl),
7161         # -berok will link without error, but may produce a broken library.
7162         allow_undefined_flag='-berok'
7163        # Determine the default libpath from the value encoded in an empty executable.
7164        cat >conftest.$ac_ext <<_ACEOF
7165 /* confdefs.h.  */
7166 _ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h.  */
7170
7171 int
7172 main ()
7173 {
7174
7175   ;
7176   return 0;
7177 }
7178 _ACEOF
7179 rm -f conftest.$ac_objext conftest$ac_exeext
7180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7181   (eval $ac_link) 2>conftest.er1
7182   ac_status=$?
7183   grep -v '^ *+' conftest.er1 >conftest.err
7184   rm -f conftest.er1
7185   cat conftest.err >&5
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); } &&
7188          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190   (eval $ac_try) 2>&5
7191   ac_status=$?
7192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193   (exit $ac_status); }; } &&
7194          { ac_try='test -s conftest$ac_exeext'
7195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196   (eval $ac_try) 2>&5
7197   ac_status=$?
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); }; }; then
7200
7201 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7202 }'`
7203 # Check for a 64-bit object if we didn't find anything.
7204 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7205 }'`; fi
7206 else
7207   echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7209
7210 fi
7211 rm -f conftest.err conftest.$ac_objext \
7212       conftest$ac_exeext conftest.$ac_ext
7213 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7214
7215        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7216         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7217        else
7218         if test "$host_cpu" = ia64; then
7219           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7220           allow_undefined_flag="-z nodefs"
7221           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7222         else
7223          # Determine the default libpath from the value encoded in an empty executable.
7224          cat >conftest.$ac_ext <<_ACEOF
7225 /* confdefs.h.  */
7226 _ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h.  */
7230
7231 int
7232 main ()
7233 {
7234
7235   ;
7236   return 0;
7237 }
7238 _ACEOF
7239 rm -f conftest.$ac_objext conftest$ac_exeext
7240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7241   (eval $ac_link) 2>conftest.er1
7242   ac_status=$?
7243   grep -v '^ *+' conftest.er1 >conftest.err
7244   rm -f conftest.er1
7245   cat conftest.err >&5
7246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247   (exit $ac_status); } &&
7248          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250   (eval $ac_try) 2>&5
7251   ac_status=$?
7252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253   (exit $ac_status); }; } &&
7254          { ac_try='test -s conftest$ac_exeext'
7255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256   (eval $ac_try) 2>&5
7257   ac_status=$?
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); }; }; then
7260
7261 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7262 }'`
7263 # Check for a 64-bit object if we didn't find anything.
7264 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7265 }'`; fi
7266 else
7267   echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7269
7270 fi
7271 rm -f conftest.err conftest.$ac_objext \
7272       conftest$ac_exeext conftest.$ac_ext
7273 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7274
7275          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7276           # Warning - without using the other run time loading flags,
7277           # -berok will link without error, but may produce a broken library.
7278           no_undefined_flag=' ${wl}-bernotok'
7279           allow_undefined_flag=' ${wl}-berok'
7280           # Exported symbols can be pulled into shared objects from archives
7281           whole_archive_flag_spec='$convenience'
7282           archive_cmds_need_lc=yes
7283           # This is similar to how AIX traditionally builds its shared libraries.
7284           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7285         fi
7286       fi
7287       ;;
7288
7289     amigaos*)
7290       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)'
7291       hardcode_libdir_flag_spec='-L$libdir'
7292       hardcode_minus_L=yes
7293       # see comment about different semantics on the GNU ld section
7294       ld_shlibs=no
7295       ;;
7296
7297     bsdi[45]*)
7298       export_dynamic_flag_spec=-rdynamic
7299       ;;
7300
7301     cygwin* | mingw* | pw32*)
7302       # When not using gcc, we currently assume that we are using
7303       # Microsoft Visual C++.
7304       # hardcode_libdir_flag_spec is actually meaningless, as there is
7305       # no search path for DLLs.
7306       hardcode_libdir_flag_spec=' '
7307       allow_undefined_flag=unsupported
7308       # Tell ltmain to make .lib files, not .a files.
7309       libext=lib
7310       # Tell ltmain to make .dll files, not .so files.
7311       shrext_cmds=".dll"
7312       # FIXME: Setting linknames here is a bad hack.
7313       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7314       # The linker will automatically build a .lib file if we build a DLL.
7315       old_archive_From_new_cmds='true'
7316       # FIXME: Should let the user specify the lib program.
7317       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7318       fix_srcfile_path='`cygpath -w "$srcfile"`'
7319       enable_shared_with_static_runtimes=yes
7320       ;;
7321
7322     darwin* | rhapsody*)
7323       case $host_os in
7324         rhapsody* | darwin1.[012])
7325          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7326          ;;
7327        *) # Darwin 1.3 on
7328          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7329            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7330          else
7331            case ${MACOSX_DEPLOYMENT_TARGET} in
7332              10.[012])
7333                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7334                ;;
7335              10.*)
7336                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7337                ;;
7338            esac
7339          fi
7340          ;;
7341       esac
7342       archive_cmds_need_lc=no
7343       hardcode_direct=no
7344       hardcode_automatic=yes
7345       hardcode_shlibpath_var=unsupported
7346       whole_archive_flag_spec=''
7347       link_all_deplibs=yes
7348     if test "$GCC" = yes ; then
7349         output_verbose_link_cmd='echo'
7350         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7351       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7352       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7353       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7354       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7355     else
7356       case $cc_basename in
7357         xlc*)
7358          output_verbose_link_cmd='echo'
7359          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7360          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7361           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7362          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7363           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7364           ;;
7365        *)
7366          ld_shlibs=no
7367           ;;
7368       esac
7369     fi
7370       ;;
7371
7372     dgux*)
7373       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7374       hardcode_libdir_flag_spec='-L$libdir'
7375       hardcode_shlibpath_var=no
7376       ;;
7377
7378     freebsd1*)
7379       ld_shlibs=no
7380       ;;
7381
7382     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7383     # support.  Future versions do this automatically, but an explicit c++rt0.o
7384     # does not break anything, and helps significantly (at the cost of a little
7385     # extra space).
7386     freebsd2.2*)
7387       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7388       hardcode_libdir_flag_spec='-R$libdir'
7389       hardcode_direct=yes
7390       hardcode_shlibpath_var=no
7391       ;;
7392
7393     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7394     freebsd2*)
7395       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7396       hardcode_direct=yes
7397       hardcode_minus_L=yes
7398       hardcode_shlibpath_var=no
7399       ;;
7400
7401     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7402     freebsd* | dragonfly*)
7403       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7404       hardcode_libdir_flag_spec='-R$libdir'
7405       hardcode_direct=yes
7406       hardcode_shlibpath_var=no
7407       ;;
7408
7409     hpux9*)
7410       if test "$GCC" = yes; then
7411         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7412       else
7413         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'
7414       fi
7415       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7416       hardcode_libdir_separator=:
7417       hardcode_direct=yes
7418
7419       # hardcode_minus_L: Not really in the search PATH,
7420       # but as the default location of the library.
7421       hardcode_minus_L=yes
7422       export_dynamic_flag_spec='${wl}-E'
7423       ;;
7424
7425     hpux10*)
7426       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7427         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7428       else
7429         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7430       fi
7431       if test "$with_gnu_ld" = no; then
7432         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7433         hardcode_libdir_separator=:
7434
7435         hardcode_direct=yes
7436         export_dynamic_flag_spec='${wl}-E'
7437
7438         # hardcode_minus_L: Not really in the search PATH,
7439         # but as the default location of the library.
7440         hardcode_minus_L=yes
7441       fi
7442       ;;
7443
7444     hpux11*)
7445       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7446         case $host_cpu in
7447         hppa*64*)
7448           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7449           ;;
7450         ia64*)
7451           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7452           ;;
7453         *)
7454           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7455           ;;
7456         esac
7457       else
7458         case $host_cpu in
7459         hppa*64*)
7460           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7461           ;;
7462         ia64*)
7463           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7464           ;;
7465         *)
7466           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7467           ;;
7468         esac
7469       fi
7470       if test "$with_gnu_ld" = no; then
7471         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7472         hardcode_libdir_separator=:
7473
7474         case $host_cpu in
7475         hppa*64*|ia64*)
7476           hardcode_libdir_flag_spec_ld='+b $libdir'
7477           hardcode_direct=no
7478           hardcode_shlibpath_var=no
7479           ;;
7480         *)
7481           hardcode_direct=yes
7482           export_dynamic_flag_spec='${wl}-E'
7483
7484           # hardcode_minus_L: Not really in the search PATH,
7485           # but as the default location of the library.
7486           hardcode_minus_L=yes
7487           ;;
7488         esac
7489       fi
7490       ;;
7491
7492     irix5* | irix6* | nonstopux*)
7493       if test "$GCC" = yes; then
7494         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'
7495       else
7496         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'
7497         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7498       fi
7499       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7500       hardcode_libdir_separator=:
7501       link_all_deplibs=yes
7502       ;;
7503
7504     netbsd* | netbsdelf*-gnu)
7505       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7506         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7507       else
7508         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7509       fi
7510       hardcode_libdir_flag_spec='-R$libdir'
7511       hardcode_direct=yes
7512       hardcode_shlibpath_var=no
7513       ;;
7514
7515     newsos6)
7516       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7517       hardcode_direct=yes
7518       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7519       hardcode_libdir_separator=:
7520       hardcode_shlibpath_var=no
7521       ;;
7522
7523     openbsd*)
7524       hardcode_direct=yes
7525       hardcode_shlibpath_var=no
7526       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7527         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7528         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7529         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7530         export_dynamic_flag_spec='${wl}-E'
7531       else
7532        case $host_os in
7533          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7534            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7535            hardcode_libdir_flag_spec='-R$libdir'
7536            ;;
7537          *)
7538            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7539            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7540            ;;
7541        esac
7542       fi
7543       ;;
7544
7545     os2*)
7546       hardcode_libdir_flag_spec='-L$libdir'
7547       hardcode_minus_L=yes
7548       allow_undefined_flag=unsupported
7549       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'
7550       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7551       ;;
7552
7553     osf3*)
7554       if test "$GCC" = yes; then
7555         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7556         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'
7557       else
7558         allow_undefined_flag=' -expect_unresolved \*'
7559         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'
7560       fi
7561       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7562       hardcode_libdir_separator=:
7563       ;;
7564
7565     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7566       if test "$GCC" = yes; then
7567         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7568         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'
7569         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7570       else
7571         allow_undefined_flag=' -expect_unresolved \*'
7572         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'
7573         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7574         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7575
7576         # Both c and cxx compiler support -rpath directly
7577         hardcode_libdir_flag_spec='-rpath $libdir'
7578       fi
7579       hardcode_libdir_separator=:
7580       ;;
7581
7582     solaris*)
7583       no_undefined_flag=' -z text'
7584       if test "$GCC" = yes; then
7585         wlarc='${wl}'
7586         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7587         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7588           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7589       else
7590         wlarc=''
7591         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7592         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7593         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7594       fi
7595       hardcode_libdir_flag_spec='-R$libdir'
7596       hardcode_shlibpath_var=no
7597       case $host_os in
7598       solaris2.[0-5] | solaris2.[0-5].*) ;;
7599       *)
7600         # The compiler driver will combine linker options so we
7601         # cannot just pass the convience library names through
7602         # without $wl, iff we do not link with $LD.
7603         # Luckily, gcc supports the same syntax we need for Sun Studio.
7604         # Supported since Solaris 2.6 (maybe 2.5.1?)
7605         case $wlarc in
7606         '')
7607           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7608         *)
7609           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7610         esac ;;
7611       esac
7612       link_all_deplibs=yes
7613       ;;
7614
7615     sunos4*)
7616       if test "x$host_vendor" = xsequent; then
7617         # Use $CC to link under sequent, because it throws in some extra .o
7618         # files that make .init and .fini sections work.
7619         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7620       else
7621         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7622       fi
7623       hardcode_libdir_flag_spec='-L$libdir'
7624       hardcode_direct=yes
7625       hardcode_minus_L=yes
7626       hardcode_shlibpath_var=no
7627       ;;
7628
7629     sysv4)
7630       case $host_vendor in
7631         sni)
7632           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7633           hardcode_direct=yes # is this really true???
7634         ;;
7635         siemens)
7636           ## LD is ld it makes a PLAMLIB
7637           ## CC just makes a GrossModule.
7638           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7639           reload_cmds='$CC -r -o $output$reload_objs'
7640           hardcode_direct=no
7641         ;;
7642         motorola)
7643           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7644           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7645         ;;
7646       esac
7647       runpath_var='LD_RUN_PATH'
7648       hardcode_shlibpath_var=no
7649       ;;
7650
7651     sysv4.3*)
7652       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7653       hardcode_shlibpath_var=no
7654       export_dynamic_flag_spec='-Bexport'
7655       ;;
7656
7657     sysv4*MP*)
7658       if test -d /usr/nec; then
7659         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7660         hardcode_shlibpath_var=no
7661         runpath_var=LD_RUN_PATH
7662         hardcode_runpath_var=yes
7663         ld_shlibs=yes
7664       fi
7665       ;;
7666
7667     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7668       no_undefined_flag='${wl}-z,text'
7669       archive_cmds_need_lc=no
7670       hardcode_shlibpath_var=no
7671       runpath_var='LD_RUN_PATH'
7672
7673       if test "$GCC" = yes; then
7674         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7675         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7676       else
7677         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7678         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7679       fi
7680       ;;
7681
7682     sysv5* | sco3.2v5* | sco5v6*)
7683       # Note: We can NOT use -z defs as we might desire, because we do not
7684       # link with -lc, and that would cause any symbols used from libc to
7685       # always be unresolved, which means just about no library would
7686       # ever link correctly.  If we're not using GNU ld we use -z text
7687       # though, which does catch some bad symbols but isn't as heavy-handed
7688       # as -z defs.
7689       no_undefined_flag='${wl}-z,text'
7690       allow_undefined_flag='${wl}-z,nodefs'
7691       archive_cmds_need_lc=no
7692       hardcode_shlibpath_var=no
7693       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7694       hardcode_libdir_separator=':'
7695       link_all_deplibs=yes
7696       export_dynamic_flag_spec='${wl}-Bexport'
7697       runpath_var='LD_RUN_PATH'
7698
7699       if test "$GCC" = yes; then
7700         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7701         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7702       else
7703         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7704         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7705       fi
7706       ;;
7707
7708     uts4*)
7709       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7710       hardcode_libdir_flag_spec='-L$libdir'
7711       hardcode_shlibpath_var=no
7712       ;;
7713
7714     *)
7715       ld_shlibs=no
7716       ;;
7717     esac
7718   fi
7719
7720 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7721 echo "${ECHO_T}$ld_shlibs" >&6
7722 test "$ld_shlibs" = no && can_build_shared=no
7723
7724 #
7725 # Do we need to explicitly link libc?
7726 #
7727 case "x$archive_cmds_need_lc" in
7728 x|xyes)
7729   # Assume -lc should be added
7730   archive_cmds_need_lc=yes
7731
7732   if test "$enable_shared" = yes && test "$GCC" = yes; then
7733     case $archive_cmds in
7734     *'~'*)
7735       # FIXME: we may have to deal with multi-command sequences.
7736       ;;
7737     '$CC '*)
7738       # Test whether the compiler implicitly links with -lc since on some
7739       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7740       # to ld, don't add -lc before -lgcc.
7741       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7742 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7743       $rm conftest*
7744       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7745
7746       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7747   (eval $ac_compile) 2>&5
7748   ac_status=$?
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); } 2>conftest.err; then
7751         soname=conftest
7752         lib=conftest
7753         libobjs=conftest.$ac_objext
7754         deplibs=
7755         wl=$lt_prog_compiler_wl
7756         pic_flag=$lt_prog_compiler_pic
7757         compiler_flags=-v
7758         linker_flags=-v
7759         verstring=
7760         output_objdir=.
7761         libname=conftest
7762         lt_save_allow_undefined_flag=$allow_undefined_flag
7763         allow_undefined_flag=
7764         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7765   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7766   ac_status=$?
7767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); }
7769         then
7770           archive_cmds_need_lc=no
7771         else
7772           archive_cmds_need_lc=yes
7773         fi
7774         allow_undefined_flag=$lt_save_allow_undefined_flag
7775       else
7776         cat conftest.err 1>&5
7777       fi
7778       $rm conftest*
7779       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7780 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7781       ;;
7782     esac
7783   fi
7784   ;;
7785 esac
7786
7787 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7788 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7789 library_names_spec=
7790 libname_spec='lib$name'
7791 soname_spec=
7792 shrext_cmds=".so"
7793 postinstall_cmds=
7794 postuninstall_cmds=
7795 finish_cmds=
7796 finish_eval=
7797 shlibpath_var=
7798 shlibpath_overrides_runpath=unknown
7799 version_type=none
7800 dynamic_linker="$host_os ld.so"
7801 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7802 if test "$GCC" = yes; then
7803   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7804   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7805     # if the path contains ";" then we assume it to be the separator
7806     # otherwise default to the standard path separator (i.e. ":") - it is
7807     # assumed that no part of a normal pathname contains ";" but that should
7808     # okay in the real world where ";" in dirpaths is itself problematic.
7809     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7810   else
7811     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7812   fi
7813 else
7814   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7815 fi
7816 need_lib_prefix=unknown
7817 hardcode_into_libs=no
7818
7819 # when you set need_version to no, make sure it does not cause -set_version
7820 # flags to be left without arguments
7821 need_version=unknown
7822
7823 case $host_os in
7824 aix3*)
7825   version_type=linux
7826   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7827   shlibpath_var=LIBPATH
7828
7829   # AIX 3 has no versioning support, so we append a major version to the name.
7830   soname_spec='${libname}${release}${shared_ext}$major'
7831   ;;
7832
7833 aix4* | aix5*)
7834   version_type=linux
7835   need_lib_prefix=no
7836   need_version=no
7837   hardcode_into_libs=yes
7838   if test "$host_cpu" = ia64; then
7839     # AIX 5 supports IA64
7840     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7841     shlibpath_var=LD_LIBRARY_PATH
7842   else
7843     # With GCC up to 2.95.x, collect2 would create an import file
7844     # for dependence libraries.  The import file would start with
7845     # the line `#! .'.  This would cause the generated library to
7846     # depend on `.', always an invalid library.  This was fixed in
7847     # development snapshots of GCC prior to 3.0.
7848     case $host_os in
7849       aix4 | aix4.[01] | aix4.[01].*)
7850       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7851            echo ' yes '
7852            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7853         :
7854       else
7855         can_build_shared=no
7856       fi
7857       ;;
7858     esac
7859     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7860     # soname into executable. Probably we can add versioning support to
7861     # collect2, so additional links can be useful in future.
7862     if test "$aix_use_runtimelinking" = yes; then
7863       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7864       # instead of lib<name>.a to let people know that these are not
7865       # typical AIX shared libraries.
7866       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7867     else
7868       # We preserve .a as extension for shared libraries through AIX4.2
7869       # and later when we are not doing run time linking.
7870       library_names_spec='${libname}${release}.a $libname.a'
7871       soname_spec='${libname}${release}${shared_ext}$major'
7872     fi
7873     shlibpath_var=LIBPATH
7874   fi
7875   ;;
7876
7877 amigaos*)
7878   library_names_spec='$libname.ixlibrary $libname.a'
7879   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7880   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'
7881   ;;
7882
7883 beos*)
7884   library_names_spec='${libname}${shared_ext}'
7885   dynamic_linker="$host_os ld.so"
7886   shlibpath_var=LIBRARY_PATH
7887   ;;
7888
7889 bsdi[45]*)
7890   version_type=linux
7891   need_version=no
7892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7893   soname_spec='${libname}${release}${shared_ext}$major'
7894   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7895   shlibpath_var=LD_LIBRARY_PATH
7896   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7897   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7898   # the default ld.so.conf also contains /usr/contrib/lib and
7899   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7900   # libtool to hard-code these into programs
7901   ;;
7902
7903 cygwin* | mingw* | pw32*)
7904   version_type=windows
7905   shrext_cmds=".dll"
7906   need_version=no
7907   need_lib_prefix=no
7908
7909   case $GCC,$host_os in
7910   yes,cygwin* | yes,mingw* | yes,pw32*)
7911     library_names_spec='$libname.dll.a'
7912     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7913     postinstall_cmds='base_file=`basename \${file}`~
7914       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7915       dldir=$destdir/`dirname \$dlpath`~
7916       test -d \$dldir || mkdir -p \$dldir~
7917       $install_prog $dir/$dlname \$dldir/$dlname~
7918       chmod a+x \$dldir/$dlname'
7919     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7920       dlpath=$dir/\$dldll~
7921        $rm \$dlpath'
7922     shlibpath_overrides_runpath=yes
7923
7924     case $host_os in
7925     cygwin*)
7926       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7927       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7928       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7929       ;;
7930     mingw*)
7931       # MinGW DLLs use traditional 'lib' prefix
7932       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7933       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7934       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7935         # It is most probably a Windows format PATH printed by
7936         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7937         # path with ; separators, and with drive letters. We can handle the
7938         # drive letters (cygwin fileutils understands them), so leave them,
7939         # especially as we might pass files found there to a mingw objdump,
7940         # which wouldn't understand a cygwinified path. Ahh.
7941         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7942       else
7943         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7944       fi
7945       ;;
7946     pw32*)
7947       # pw32 DLLs use 'pw' prefix rather than 'lib'
7948       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7949       ;;
7950     esac
7951     ;;
7952
7953   *)
7954     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7955     ;;
7956   esac
7957   dynamic_linker='Win32 ld.exe'
7958   # FIXME: first we should search . and the directory the executable is in
7959   shlibpath_var=PATH
7960   ;;
7961
7962 darwin* | rhapsody*)
7963   dynamic_linker="$host_os dyld"
7964   version_type=darwin
7965   need_lib_prefix=no
7966   need_version=no
7967   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7968   soname_spec='${libname}${release}${major}$shared_ext'
7969   shlibpath_overrides_runpath=yes
7970   shlibpath_var=DYLD_LIBRARY_PATH
7971   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7972   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7973   if test "$GCC" = yes; then
7974     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7975   else
7976     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7977   fi
7978   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7979   ;;
7980
7981 dgux*)
7982   version_type=linux
7983   need_lib_prefix=no
7984   need_version=no
7985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7986   soname_spec='${libname}${release}${shared_ext}$major'
7987   shlibpath_var=LD_LIBRARY_PATH
7988   ;;
7989
7990 freebsd1*)
7991   dynamic_linker=no
7992   ;;
7993
7994 freebsd* | dragonfly*)
7995   # DragonFly does not have aout.  When/if they implement a new
7996   # versioning mechanism, adjust this.
7997   if test -x /usr/bin/objformat; then
7998     objformat=`/usr/bin/objformat`
7999   else
8000     case $host_os in
8001     freebsd[123]*) objformat=aout ;;
8002     *) objformat=elf ;;
8003     esac
8004   fi
8005   version_type=freebsd-$objformat
8006   case $version_type in
8007     freebsd-elf*)
8008       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8009       need_version=no
8010       need_lib_prefix=no
8011       ;;
8012     freebsd-*)
8013       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8014       need_version=yes
8015       ;;
8016   esac
8017   shlibpath_var=LD_LIBRARY_PATH
8018   case $host_os in
8019   freebsd2*)
8020     shlibpath_overrides_runpath=yes
8021     ;;
8022   freebsd3.[01]* | freebsdelf3.[01]*)
8023     shlibpath_overrides_runpath=yes
8024     hardcode_into_libs=yes
8025     ;;
8026   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8027   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8028     shlibpath_overrides_runpath=no
8029     hardcode_into_libs=yes
8030     ;;
8031   freebsd*) # from 4.6 on
8032     shlibpath_overrides_runpath=yes
8033     hardcode_into_libs=yes
8034     ;;
8035   esac
8036   ;;
8037
8038 gnu*)
8039   version_type=linux
8040   need_lib_prefix=no
8041   need_version=no
8042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8043   soname_spec='${libname}${release}${shared_ext}$major'
8044   shlibpath_var=LD_LIBRARY_PATH
8045   hardcode_into_libs=yes
8046   ;;
8047
8048 hpux9* | hpux10* | hpux11*)
8049   # Give a soname corresponding to the major version so that dld.sl refuses to
8050   # link against other versions.
8051   version_type=sunos
8052   need_lib_prefix=no
8053   need_version=no
8054   case $host_cpu in
8055   ia64*)
8056     shrext_cmds='.so'
8057     hardcode_into_libs=yes
8058     dynamic_linker="$host_os dld.so"
8059     shlibpath_var=LD_LIBRARY_PATH
8060     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8061     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8062     soname_spec='${libname}${release}${shared_ext}$major'
8063     if test "X$HPUX_IA64_MODE" = X32; then
8064       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8065     else
8066       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8067     fi
8068     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8069     ;;
8070    hppa*64*)
8071      shrext_cmds='.sl'
8072      hardcode_into_libs=yes
8073      dynamic_linker="$host_os dld.sl"
8074      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8075      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8076      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8077      soname_spec='${libname}${release}${shared_ext}$major'
8078      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8079      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8080      ;;
8081    *)
8082     shrext_cmds='.sl'
8083     dynamic_linker="$host_os dld.sl"
8084     shlibpath_var=SHLIB_PATH
8085     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8087     soname_spec='${libname}${release}${shared_ext}$major'
8088     ;;
8089   esac
8090   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8091   postinstall_cmds='chmod 555 $lib'
8092   ;;
8093
8094 interix3*)
8095   version_type=linux
8096   need_lib_prefix=no
8097   need_version=no
8098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8099   soname_spec='${libname}${release}${shared_ext}$major'
8100   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8101   shlibpath_var=LD_LIBRARY_PATH
8102   shlibpath_overrides_runpath=no
8103   hardcode_into_libs=yes
8104   ;;
8105
8106 irix5* | irix6* | nonstopux*)
8107   case $host_os in
8108     nonstopux*) version_type=nonstopux ;;
8109     *)
8110         if test "$lt_cv_prog_gnu_ld" = yes; then
8111                 version_type=linux
8112         else
8113                 version_type=irix
8114         fi ;;
8115   esac
8116   need_lib_prefix=no
8117   need_version=no
8118   soname_spec='${libname}${release}${shared_ext}$major'
8119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8120   case $host_os in
8121   irix5* | nonstopux*)
8122     libsuff= shlibsuff=
8123     ;;
8124   *)
8125     case $LD in # libtool.m4 will add one of these switches to LD
8126     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8127       libsuff= shlibsuff= libmagic=32-bit;;
8128     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8129       libsuff=32 shlibsuff=N32 libmagic=N32;;
8130     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8131       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8132     *) libsuff= shlibsuff= libmagic=never-match;;
8133     esac
8134     ;;
8135   esac
8136   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8137   shlibpath_overrides_runpath=no
8138   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8139   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8140   hardcode_into_libs=yes
8141   ;;
8142
8143 # No shared lib support for Linux oldld, aout, or coff.
8144 linux*oldld* | linux*aout* | linux*coff*)
8145   dynamic_linker=no
8146   ;;
8147
8148 # This must be Linux ELF.
8149 linux* | k*bsd*-gnu)
8150   version_type=linux
8151   need_lib_prefix=no
8152   need_version=no
8153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8154   soname_spec='${libname}${release}${shared_ext}$major'
8155   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8156   shlibpath_var=LD_LIBRARY_PATH
8157   shlibpath_overrides_runpath=no
8158   # This implies no fast_install, which is unacceptable.
8159   # Some rework will be needed to allow for fast_install
8160   # before this can be enabled.
8161   hardcode_into_libs=yes
8162
8163   # Append ld.so.conf contents to the search path
8164   if test -f /etc/ld.so.conf; then
8165     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8166     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8167   fi
8168
8169   # We used to test for /lib/ld.so.1 and disable shared libraries on
8170   # powerpc, because MkLinux only supported shared libraries with the
8171   # GNU dynamic linker.  Since this was broken with cross compilers,
8172   # most powerpc-linux boxes support dynamic linking these days and
8173   # people can always --disable-shared, the test was removed, and we
8174   # assume the GNU/Linux dynamic linker is in use.
8175   dynamic_linker='GNU/Linux ld.so'
8176   ;;
8177
8178 netbsdelf*-gnu)
8179   version_type=linux
8180   need_lib_prefix=no
8181   need_version=no
8182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8183   soname_spec='${libname}${release}${shared_ext}$major'
8184   shlibpath_var=LD_LIBRARY_PATH
8185   shlibpath_overrides_runpath=no
8186   hardcode_into_libs=yes
8187   dynamic_linker='NetBSD ld.elf_so'
8188   ;;
8189
8190 netbsd*)
8191   version_type=sunos
8192   need_lib_prefix=no
8193   need_version=no
8194   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8196     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8197     dynamic_linker='NetBSD (a.out) ld.so'
8198   else
8199     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8200     soname_spec='${libname}${release}${shared_ext}$major'
8201     dynamic_linker='NetBSD ld.elf_so'
8202   fi
8203   shlibpath_var=LD_LIBRARY_PATH
8204   shlibpath_overrides_runpath=yes
8205   hardcode_into_libs=yes
8206   ;;
8207
8208 newsos6)
8209   version_type=linux
8210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8211   shlibpath_var=LD_LIBRARY_PATH
8212   shlibpath_overrides_runpath=yes
8213   ;;
8214
8215 nto-qnx*)
8216   version_type=linux
8217   need_lib_prefix=no
8218   need_version=no
8219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8220   soname_spec='${libname}${release}${shared_ext}$major'
8221   shlibpath_var=LD_LIBRARY_PATH
8222   shlibpath_overrides_runpath=yes
8223   ;;
8224
8225 openbsd*)
8226   version_type=sunos
8227   sys_lib_dlsearch_path_spec="/usr/lib"
8228   need_lib_prefix=no
8229   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8230   case $host_os in
8231     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8232     *)                         need_version=no  ;;
8233   esac
8234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8235   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8236   shlibpath_var=LD_LIBRARY_PATH
8237   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8238     case $host_os in
8239       openbsd2.[89] | openbsd2.[89].*)
8240         shlibpath_overrides_runpath=no
8241         ;;
8242       *)
8243         shlibpath_overrides_runpath=yes
8244         ;;
8245       esac
8246   else
8247     shlibpath_overrides_runpath=yes
8248   fi
8249   ;;
8250
8251 os2*)
8252   libname_spec='$name'
8253   shrext_cmds=".dll"
8254   need_lib_prefix=no
8255   library_names_spec='$libname${shared_ext} $libname.a'
8256   dynamic_linker='OS/2 ld.exe'
8257   shlibpath_var=LIBPATH
8258   ;;
8259
8260 osf3* | osf4* | osf5*)
8261   version_type=osf
8262   need_lib_prefix=no
8263   need_version=no
8264   soname_spec='${libname}${release}${shared_ext}$major'
8265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8266   shlibpath_var=LD_LIBRARY_PATH
8267   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8268   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8269   ;;
8270
8271 solaris*)
8272   version_type=linux
8273   need_lib_prefix=no
8274   need_version=no
8275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8276   soname_spec='${libname}${release}${shared_ext}$major'
8277   shlibpath_var=LD_LIBRARY_PATH
8278   shlibpath_overrides_runpath=yes
8279   hardcode_into_libs=yes
8280   # ldd complains unless libraries are executable
8281   postinstall_cmds='chmod +x $lib'
8282   ;;
8283
8284 sunos4*)
8285   version_type=sunos
8286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8287   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8288   shlibpath_var=LD_LIBRARY_PATH
8289   shlibpath_overrides_runpath=yes
8290   if test "$with_gnu_ld" = yes; then
8291     need_lib_prefix=no
8292   fi
8293   need_version=yes
8294   ;;
8295
8296 sysv4 | sysv4.3*)
8297   version_type=linux
8298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8299   soname_spec='${libname}${release}${shared_ext}$major'
8300   shlibpath_var=LD_LIBRARY_PATH
8301   case $host_vendor in
8302     sni)
8303       shlibpath_overrides_runpath=no
8304       need_lib_prefix=no
8305       export_dynamic_flag_spec='${wl}-Blargedynsym'
8306       runpath_var=LD_RUN_PATH
8307       ;;
8308     siemens)
8309       need_lib_prefix=no
8310       ;;
8311     motorola)
8312       need_lib_prefix=no
8313       need_version=no
8314       shlibpath_overrides_runpath=no
8315       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8316       ;;
8317   esac
8318   ;;
8319
8320 sysv4*MP*)
8321   if test -d /usr/nec ;then
8322     version_type=linux
8323     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8324     soname_spec='$libname${shared_ext}.$major'
8325     shlibpath_var=LD_LIBRARY_PATH
8326   fi
8327   ;;
8328
8329 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8330   version_type=freebsd-elf
8331   need_lib_prefix=no
8332   need_version=no
8333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8334   soname_spec='${libname}${release}${shared_ext}$major'
8335   shlibpath_var=LD_LIBRARY_PATH
8336   hardcode_into_libs=yes
8337   if test "$with_gnu_ld" = yes; then
8338     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8339     shlibpath_overrides_runpath=no
8340   else
8341     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8342     shlibpath_overrides_runpath=yes
8343     case $host_os in
8344       sco3.2v5*)
8345         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8346         ;;
8347     esac
8348   fi
8349   sys_lib_dlsearch_path_spec='/usr/lib'
8350   ;;
8351
8352 uts4*)
8353   version_type=linux
8354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8355   soname_spec='${libname}${release}${shared_ext}$major'
8356   shlibpath_var=LD_LIBRARY_PATH
8357   ;;
8358
8359 *)
8360   dynamic_linker=no
8361   ;;
8362 esac
8363 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8364 echo "${ECHO_T}$dynamic_linker" >&6
8365 test "$dynamic_linker" = no && can_build_shared=no
8366
8367 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8368 if test "$GCC" = yes; then
8369   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8370 fi
8371
8372 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8373 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8374 hardcode_action=
8375 if test -n "$hardcode_libdir_flag_spec" || \
8376    test -n "$runpath_var" || \
8377    test "X$hardcode_automatic" = "Xyes" ; then
8378
8379   # We can hardcode non-existant directories.
8380   if test "$hardcode_direct" != no &&
8381      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8382      # have to relink, otherwise we might link with an installed library
8383      # when we should be linking with a yet-to-be-installed one
8384      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8385      test "$hardcode_minus_L" != no; then
8386     # Linking always hardcodes the temporary library directory.
8387     hardcode_action=relink
8388   else
8389     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8390     hardcode_action=immediate
8391   fi
8392 else
8393   # We cannot hardcode anything, or else we can only hardcode existing
8394   # directories.
8395   hardcode_action=unsupported
8396 fi
8397 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8398 echo "${ECHO_T}$hardcode_action" >&6
8399
8400 if test "$hardcode_action" = relink; then
8401   # Fast installation is not supported
8402   enable_fast_install=no
8403 elif test "$shlibpath_overrides_runpath" = yes ||
8404      test "$enable_shared" = no; then
8405   # Fast installation is not necessary
8406   enable_fast_install=needless
8407 fi
8408
8409 striplib=
8410 old_striplib=
8411 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8412 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8413 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8414   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8415   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8416   echo "$as_me:$LINENO: result: yes" >&5
8417 echo "${ECHO_T}yes" >&6
8418 else
8419 # FIXME - insert some real tests, host_os isn't really good enough
8420   case $host_os in
8421    darwin*)
8422        if test -n "$STRIP" ; then
8423          striplib="$STRIP -x"
8424          echo "$as_me:$LINENO: result: yes" >&5
8425 echo "${ECHO_T}yes" >&6
8426        else
8427   echo "$as_me:$LINENO: result: no" >&5
8428 echo "${ECHO_T}no" >&6
8429 fi
8430        ;;
8431    *)
8432   echo "$as_me:$LINENO: result: no" >&5
8433 echo "${ECHO_T}no" >&6
8434     ;;
8435   esac
8436 fi
8437
8438 if test "x$enable_dlopen" != xyes; then
8439   enable_dlopen=unknown
8440   enable_dlopen_self=unknown
8441   enable_dlopen_self_static=unknown
8442 else
8443   lt_cv_dlopen=no
8444   lt_cv_dlopen_libs=
8445
8446   case $host_os in
8447   beos*)
8448     lt_cv_dlopen="load_add_on"
8449     lt_cv_dlopen_libs=
8450     lt_cv_dlopen_self=yes
8451     ;;
8452
8453   mingw* | pw32*)
8454     lt_cv_dlopen="LoadLibrary"
8455     lt_cv_dlopen_libs=
8456    ;;
8457
8458   cygwin*)
8459     lt_cv_dlopen="dlopen"
8460     lt_cv_dlopen_libs=
8461    ;;
8462
8463   darwin*)
8464   # if libdl is installed we need to link against it
8465     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8466 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8467 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8468   echo $ECHO_N "(cached) $ECHO_C" >&6
8469 else
8470   ac_check_lib_save_LIBS=$LIBS
8471 LIBS="-ldl  $LIBS"
8472 cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h.  */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h.  */
8478
8479 /* Override any gcc2 internal prototype to avoid an error.  */
8480 #ifdef __cplusplus
8481 extern "C"
8482 #endif
8483 /* We use char because int might match the return type of a gcc2
8484    builtin and then its argument prototype would still apply.  */
8485 char dlopen ();
8486 int
8487 main ()
8488 {
8489 dlopen ();
8490   ;
8491   return 0;
8492 }
8493 _ACEOF
8494 rm -f conftest.$ac_objext conftest$ac_exeext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496   (eval $ac_link) 2>conftest.er1
8497   ac_status=$?
8498   grep -v '^ *+' conftest.er1 >conftest.err
8499   rm -f conftest.er1
8500   cat conftest.err >&5
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); } &&
8503          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505   (eval $ac_try) 2>&5
8506   ac_status=$?
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); }; } &&
8509          { ac_try='test -s conftest$ac_exeext'
8510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511   (eval $ac_try) 2>&5
8512   ac_status=$?
8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514   (exit $ac_status); }; }; then
8515   ac_cv_lib_dl_dlopen=yes
8516 else
8517   echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8519
8520 ac_cv_lib_dl_dlopen=no
8521 fi
8522 rm -f conftest.err conftest.$ac_objext \
8523       conftest$ac_exeext conftest.$ac_ext
8524 LIBS=$ac_check_lib_save_LIBS
8525 fi
8526 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8527 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8528 if test $ac_cv_lib_dl_dlopen = yes; then
8529   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8530 else
8531
8532     lt_cv_dlopen="dyld"
8533     lt_cv_dlopen_libs=
8534     lt_cv_dlopen_self=yes
8535
8536 fi
8537
8538    ;;
8539
8540   *)
8541     echo "$as_me:$LINENO: checking for shl_load" >&5
8542 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8543 if test "${ac_cv_func_shl_load+set}" = set; then
8544   echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546   cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h.  */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h.  */
8552 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8554 #define shl_load innocuous_shl_load
8555
8556 /* System header to define __stub macros and hopefully few prototypes,
8557     which can conflict with char shl_load (); below.
8558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8559     <limits.h> exists even on freestanding compilers.  */
8560
8561 #ifdef __STDC__
8562 # include <limits.h>
8563 #else
8564 # include <assert.h>
8565 #endif
8566
8567 #undef shl_load
8568
8569 /* Override any gcc2 internal prototype to avoid an error.  */
8570 #ifdef __cplusplus
8571 extern "C"
8572 {
8573 #endif
8574 /* We use char because int might match the return type of a gcc2
8575    builtin and then its argument prototype would still apply.  */
8576 char shl_load ();
8577 /* The GNU C library defines this for functions which it implements
8578     to always fail with ENOSYS.  Some functions are actually named
8579     something starting with __ and the normal name is an alias.  */
8580 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8581 choke me
8582 #else
8583 char (*f) () = shl_load;
8584 #endif
8585 #ifdef __cplusplus
8586 }
8587 #endif
8588
8589 int
8590 main ()
8591 {
8592 return f != shl_load;
8593   ;
8594   return 0;
8595 }
8596 _ACEOF
8597 rm -f conftest.$ac_objext conftest$ac_exeext
8598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8599   (eval $ac_link) 2>conftest.er1
8600   ac_status=$?
8601   grep -v '^ *+' conftest.er1 >conftest.err
8602   rm -f conftest.er1
8603   cat conftest.err >&5
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); } &&
8606          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608   (eval $ac_try) 2>&5
8609   ac_status=$?
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); }; } &&
8612          { ac_try='test -s conftest$ac_exeext'
8613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614   (eval $ac_try) 2>&5
8615   ac_status=$?
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); }; }; then
8618   ac_cv_func_shl_load=yes
8619 else
8620   echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8622
8623 ac_cv_func_shl_load=no
8624 fi
8625 rm -f conftest.err conftest.$ac_objext \
8626       conftest$ac_exeext conftest.$ac_ext
8627 fi
8628 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8629 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8630 if test $ac_cv_func_shl_load = yes; then
8631   lt_cv_dlopen="shl_load"
8632 else
8633   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8634 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8635 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8636   echo $ECHO_N "(cached) $ECHO_C" >&6
8637 else
8638   ac_check_lib_save_LIBS=$LIBS
8639 LIBS="-ldld  $LIBS"
8640 cat >conftest.$ac_ext <<_ACEOF
8641 /* confdefs.h.  */
8642 _ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h.  */
8646
8647 /* Override any gcc2 internal prototype to avoid an error.  */
8648 #ifdef __cplusplus
8649 extern "C"
8650 #endif
8651 /* We use char because int might match the return type of a gcc2
8652    builtin and then its argument prototype would still apply.  */
8653 char shl_load ();
8654 int
8655 main ()
8656 {
8657 shl_load ();
8658   ;
8659   return 0;
8660 }
8661 _ACEOF
8662 rm -f conftest.$ac_objext conftest$ac_exeext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8664   (eval $ac_link) 2>conftest.er1
8665   ac_status=$?
8666   grep -v '^ *+' conftest.er1 >conftest.err
8667   rm -f conftest.er1
8668   cat conftest.err >&5
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); } &&
8671          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673   (eval $ac_try) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; } &&
8677          { ac_try='test -s conftest$ac_exeext'
8678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679   (eval $ac_try) 2>&5
8680   ac_status=$?
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); }; }; then
8683   ac_cv_lib_dld_shl_load=yes
8684 else
8685   echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8687
8688 ac_cv_lib_dld_shl_load=no
8689 fi
8690 rm -f conftest.err conftest.$ac_objext \
8691       conftest$ac_exeext conftest.$ac_ext
8692 LIBS=$ac_check_lib_save_LIBS
8693 fi
8694 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8695 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8696 if test $ac_cv_lib_dld_shl_load = yes; then
8697   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8698 else
8699   echo "$as_me:$LINENO: checking for dlopen" >&5
8700 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8701 if test "${ac_cv_func_dlopen+set}" = set; then
8702   echo $ECHO_N "(cached) $ECHO_C" >&6
8703 else
8704   cat >conftest.$ac_ext <<_ACEOF
8705 /* confdefs.h.  */
8706 _ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h.  */
8710 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8711    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8712 #define dlopen innocuous_dlopen
8713
8714 /* System header to define __stub macros and hopefully few prototypes,
8715     which can conflict with char dlopen (); below.
8716     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8717     <limits.h> exists even on freestanding compilers.  */
8718
8719 #ifdef __STDC__
8720 # include <limits.h>
8721 #else
8722 # include <assert.h>
8723 #endif
8724
8725 #undef dlopen
8726
8727 /* Override any gcc2 internal prototype to avoid an error.  */
8728 #ifdef __cplusplus
8729 extern "C"
8730 {
8731 #endif
8732 /* We use char because int might match the return type of a gcc2
8733    builtin and then its argument prototype would still apply.  */
8734 char dlopen ();
8735 /* The GNU C library defines this for functions which it implements
8736     to always fail with ENOSYS.  Some functions are actually named
8737     something starting with __ and the normal name is an alias.  */
8738 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8739 choke me
8740 #else
8741 char (*f) () = dlopen;
8742 #endif
8743 #ifdef __cplusplus
8744 }
8745 #endif
8746
8747 int
8748 main ()
8749 {
8750 return f != dlopen;
8751   ;
8752   return 0;
8753 }
8754 _ACEOF
8755 rm -f conftest.$ac_objext conftest$ac_exeext
8756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8757   (eval $ac_link) 2>conftest.er1
8758   ac_status=$?
8759   grep -v '^ *+' conftest.er1 >conftest.err
8760   rm -f conftest.er1
8761   cat conftest.err >&5
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); } &&
8764          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766   (eval $ac_try) 2>&5
8767   ac_status=$?
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); }; } &&
8770          { ac_try='test -s conftest$ac_exeext'
8771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772   (eval $ac_try) 2>&5
8773   ac_status=$?
8774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775   (exit $ac_status); }; }; then
8776   ac_cv_func_dlopen=yes
8777 else
8778   echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.$ac_ext >&5
8780
8781 ac_cv_func_dlopen=no
8782 fi
8783 rm -f conftest.err conftest.$ac_objext \
8784       conftest$ac_exeext conftest.$ac_ext
8785 fi
8786 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8787 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8788 if test $ac_cv_func_dlopen = yes; then
8789   lt_cv_dlopen="dlopen"
8790 else
8791   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8792 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8793 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8794   echo $ECHO_N "(cached) $ECHO_C" >&6
8795 else
8796   ac_check_lib_save_LIBS=$LIBS
8797 LIBS="-ldl  $LIBS"
8798 cat >conftest.$ac_ext <<_ACEOF
8799 /* confdefs.h.  */
8800 _ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h.  */
8804
8805 /* Override any gcc2 internal prototype to avoid an error.  */
8806 #ifdef __cplusplus
8807 extern "C"
8808 #endif
8809 /* We use char because int might match the return type of a gcc2
8810    builtin and then its argument prototype would still apply.  */
8811 char dlopen ();
8812 int
8813 main ()
8814 {
8815 dlopen ();
8816   ;
8817   return 0;
8818 }
8819 _ACEOF
8820 rm -f conftest.$ac_objext conftest$ac_exeext
8821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8822   (eval $ac_link) 2>conftest.er1
8823   ac_status=$?
8824   grep -v '^ *+' conftest.er1 >conftest.err
8825   rm -f conftest.er1
8826   cat conftest.err >&5
8827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828   (exit $ac_status); } &&
8829          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831   (eval $ac_try) 2>&5
8832   ac_status=$?
8833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834   (exit $ac_status); }; } &&
8835          { ac_try='test -s conftest$ac_exeext'
8836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837   (eval $ac_try) 2>&5
8838   ac_status=$?
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); }; }; then
8841   ac_cv_lib_dl_dlopen=yes
8842 else
8843   echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8845
8846 ac_cv_lib_dl_dlopen=no
8847 fi
8848 rm -f conftest.err conftest.$ac_objext \
8849       conftest$ac_exeext conftest.$ac_ext
8850 LIBS=$ac_check_lib_save_LIBS
8851 fi
8852 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8853 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8854 if test $ac_cv_lib_dl_dlopen = yes; then
8855   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8856 else
8857   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8858 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8859 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8860   echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862   ac_check_lib_save_LIBS=$LIBS
8863 LIBS="-lsvld  $LIBS"
8864 cat >conftest.$ac_ext <<_ACEOF
8865 /* confdefs.h.  */
8866 _ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h.  */
8870
8871 /* Override any gcc2 internal prototype to avoid an error.  */
8872 #ifdef __cplusplus
8873 extern "C"
8874 #endif
8875 /* We use char because int might match the return type of a gcc2
8876    builtin and then its argument prototype would still apply.  */
8877 char dlopen ();
8878 int
8879 main ()
8880 {
8881 dlopen ();
8882   ;
8883   return 0;
8884 }
8885 _ACEOF
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8888   (eval $ac_link) 2>conftest.er1
8889   ac_status=$?
8890   grep -v '^ *+' conftest.er1 >conftest.err
8891   rm -f conftest.er1
8892   cat conftest.err >&5
8893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894   (exit $ac_status); } &&
8895          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897   (eval $ac_try) 2>&5
8898   ac_status=$?
8899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900   (exit $ac_status); }; } &&
8901          { ac_try='test -s conftest$ac_exeext'
8902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903   (eval $ac_try) 2>&5
8904   ac_status=$?
8905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906   (exit $ac_status); }; }; then
8907   ac_cv_lib_svld_dlopen=yes
8908 else
8909   echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8911
8912 ac_cv_lib_svld_dlopen=no
8913 fi
8914 rm -f conftest.err conftest.$ac_objext \
8915       conftest$ac_exeext conftest.$ac_ext
8916 LIBS=$ac_check_lib_save_LIBS
8917 fi
8918 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8919 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8920 if test $ac_cv_lib_svld_dlopen = yes; then
8921   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8922 else
8923   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8924 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8925 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8926   echo $ECHO_N "(cached) $ECHO_C" >&6
8927 else
8928   ac_check_lib_save_LIBS=$LIBS
8929 LIBS="-ldld  $LIBS"
8930 cat >conftest.$ac_ext <<_ACEOF
8931 /* confdefs.h.  */
8932 _ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h.  */
8936
8937 /* Override any gcc2 internal prototype to avoid an error.  */
8938 #ifdef __cplusplus
8939 extern "C"
8940 #endif
8941 /* We use char because int might match the return type of a gcc2
8942    builtin and then its argument prototype would still apply.  */
8943 char dld_link ();
8944 int
8945 main ()
8946 {
8947 dld_link ();
8948   ;
8949   return 0;
8950 }
8951 _ACEOF
8952 rm -f conftest.$ac_objext conftest$ac_exeext
8953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8954   (eval $ac_link) 2>conftest.er1
8955   ac_status=$?
8956   grep -v '^ *+' conftest.er1 >conftest.err
8957   rm -f conftest.er1
8958   cat conftest.err >&5
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); } &&
8961          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963   (eval $ac_try) 2>&5
8964   ac_status=$?
8965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966   (exit $ac_status); }; } &&
8967          { ac_try='test -s conftest$ac_exeext'
8968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969   (eval $ac_try) 2>&5
8970   ac_status=$?
8971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972   (exit $ac_status); }; }; then
8973   ac_cv_lib_dld_dld_link=yes
8974 else
8975   echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8977
8978 ac_cv_lib_dld_dld_link=no
8979 fi
8980 rm -f conftest.err conftest.$ac_objext \
8981       conftest$ac_exeext conftest.$ac_ext
8982 LIBS=$ac_check_lib_save_LIBS
8983 fi
8984 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8985 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8986 if test $ac_cv_lib_dld_dld_link = yes; then
8987   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8988 fi
8989
8990
8991 fi
8992
8993
8994 fi
8995
8996
8997 fi
8998
8999
9000 fi
9001
9002
9003 fi
9004
9005     ;;
9006   esac
9007
9008   if test "x$lt_cv_dlopen" != xno; then
9009     enable_dlopen=yes
9010   else
9011     enable_dlopen=no
9012   fi
9013
9014   case $lt_cv_dlopen in
9015   dlopen)
9016     save_CPPFLAGS="$CPPFLAGS"
9017     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9018
9019     save_LDFLAGS="$LDFLAGS"
9020     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9021
9022     save_LIBS="$LIBS"
9023     LIBS="$lt_cv_dlopen_libs $LIBS"
9024
9025     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9026 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9027 if test "${lt_cv_dlopen_self+set}" = set; then
9028   echo $ECHO_N "(cached) $ECHO_C" >&6
9029 else
9030           if test "$cross_compiling" = yes; then :
9031   lt_cv_dlopen_self=cross
9032 else
9033   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9034   lt_status=$lt_dlunknown
9035   cat > conftest.$ac_ext <<EOF
9036 #line 9036 "configure"
9037 #include "confdefs.h"
9038
9039 #if HAVE_DLFCN_H
9040 #include <dlfcn.h>
9041 #endif
9042
9043 #include <stdio.h>
9044
9045 #ifdef RTLD_GLOBAL
9046 #  define LT_DLGLOBAL           RTLD_GLOBAL
9047 #else
9048 #  ifdef DL_GLOBAL
9049 #    define LT_DLGLOBAL         DL_GLOBAL
9050 #  else
9051 #    define LT_DLGLOBAL         0
9052 #  endif
9053 #endif
9054
9055 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9056    find out it does not work in some platform. */
9057 #ifndef LT_DLLAZY_OR_NOW
9058 #  ifdef RTLD_LAZY
9059 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9060 #  else
9061 #    ifdef DL_LAZY
9062 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9063 #    else
9064 #      ifdef RTLD_NOW
9065 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9066 #      else
9067 #        ifdef DL_NOW
9068 #          define LT_DLLAZY_OR_NOW      DL_NOW
9069 #        else
9070 #          define LT_DLLAZY_OR_NOW      0
9071 #        endif
9072 #      endif
9073 #    endif
9074 #  endif
9075 #endif
9076
9077 #ifdef __cplusplus
9078 extern "C" void exit (int);
9079 #endif
9080
9081 void fnord() { int i=42;}
9082 int main ()
9083 {
9084   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9085   int status = $lt_dlunknown;
9086
9087   if (self)
9088     {
9089       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9090       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9091       /* dlclose (self); */
9092     }
9093   else
9094     puts (dlerror ());
9095
9096     exit (status);
9097 }
9098 EOF
9099   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9100   (eval $ac_link) 2>&5
9101   ac_status=$?
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9104     (./conftest; exit; ) >&5 2>/dev/null
9105     lt_status=$?
9106     case x$lt_status in
9107       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9108       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9109       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9110     esac
9111   else :
9112     # compilation failed
9113     lt_cv_dlopen_self=no
9114   fi
9115 fi
9116 rm -fr conftest*
9117
9118
9119 fi
9120 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9121 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9122
9123     if test "x$lt_cv_dlopen_self" = xyes; then
9124       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9125       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9126 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9127 if test "${lt_cv_dlopen_self_static+set}" = set; then
9128   echo $ECHO_N "(cached) $ECHO_C" >&6
9129 else
9130           if test "$cross_compiling" = yes; then :
9131   lt_cv_dlopen_self_static=cross
9132 else
9133   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9134   lt_status=$lt_dlunknown
9135   cat > conftest.$ac_ext <<EOF
9136 #line 9136 "configure"
9137 #include "confdefs.h"
9138
9139 #if HAVE_DLFCN_H
9140 #include <dlfcn.h>
9141 #endif
9142
9143 #include <stdio.h>
9144
9145 #ifdef RTLD_GLOBAL
9146 #  define LT_DLGLOBAL           RTLD_GLOBAL
9147 #else
9148 #  ifdef DL_GLOBAL
9149 #    define LT_DLGLOBAL         DL_GLOBAL
9150 #  else
9151 #    define LT_DLGLOBAL         0
9152 #  endif
9153 #endif
9154
9155 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9156    find out it does not work in some platform. */
9157 #ifndef LT_DLLAZY_OR_NOW
9158 #  ifdef RTLD_LAZY
9159 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9160 #  else
9161 #    ifdef DL_LAZY
9162 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9163 #    else
9164 #      ifdef RTLD_NOW
9165 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9166 #      else
9167 #        ifdef DL_NOW
9168 #          define LT_DLLAZY_OR_NOW      DL_NOW
9169 #        else
9170 #          define LT_DLLAZY_OR_NOW      0
9171 #        endif
9172 #      endif
9173 #    endif
9174 #  endif
9175 #endif
9176
9177 #ifdef __cplusplus
9178 extern "C" void exit (int);
9179 #endif
9180
9181 void fnord() { int i=42;}
9182 int main ()
9183 {
9184   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9185   int status = $lt_dlunknown;
9186
9187   if (self)
9188     {
9189       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9190       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9191       /* dlclose (self); */
9192     }
9193   else
9194     puts (dlerror ());
9195
9196     exit (status);
9197 }
9198 EOF
9199   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9200   (eval $ac_link) 2>&5
9201   ac_status=$?
9202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9204     (./conftest; exit; ) >&5 2>/dev/null
9205     lt_status=$?
9206     case x$lt_status in
9207       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9208       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9209       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9210     esac
9211   else :
9212     # compilation failed
9213     lt_cv_dlopen_self_static=no
9214   fi
9215 fi
9216 rm -fr conftest*
9217
9218
9219 fi
9220 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9221 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9222     fi
9223
9224     CPPFLAGS="$save_CPPFLAGS"
9225     LDFLAGS="$save_LDFLAGS"
9226     LIBS="$save_LIBS"
9227     ;;
9228   esac
9229
9230   case $lt_cv_dlopen_self in
9231   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9232   *) enable_dlopen_self=unknown ;;
9233   esac
9234
9235   case $lt_cv_dlopen_self_static in
9236   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9237   *) enable_dlopen_self_static=unknown ;;
9238   esac
9239 fi
9240
9241
9242 # Report which library types will actually be built
9243 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9244 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9245 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9246 echo "${ECHO_T}$can_build_shared" >&6
9247
9248 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9249 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9250 test "$can_build_shared" = "no" && enable_shared=no
9251
9252 # On AIX, shared libraries and static libraries use the same namespace, and
9253 # are all built from PIC.
9254 case $host_os in
9255 aix3*)
9256   test "$enable_shared" = yes && enable_static=no
9257   if test -n "$RANLIB"; then
9258     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9259     postinstall_cmds='$RANLIB $lib'
9260   fi
9261   ;;
9262
9263 aix4* | aix5*)
9264   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9265     test "$enable_shared" = yes && enable_static=no
9266   fi
9267     ;;
9268 esac
9269 echo "$as_me:$LINENO: result: $enable_shared" >&5
9270 echo "${ECHO_T}$enable_shared" >&6
9271
9272 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9273 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9274 # Make sure either enable_shared or enable_static is yes.
9275 test "$enable_shared" = yes || enable_static=yes
9276 echo "$as_me:$LINENO: result: $enable_static" >&5
9277 echo "${ECHO_T}$enable_static" >&6
9278
9279 # The else clause should only fire when bootstrapping the
9280 # libtool distribution, otherwise you forgot to ship ltmain.sh
9281 # with your package, and you will get complaints that there are
9282 # no rules to generate ltmain.sh.
9283 if test -f "$ltmain"; then
9284   # See if we are running on zsh, and set the options which allow our commands through
9285   # without removal of \ escapes.
9286   if test -n "${ZSH_VERSION+set}" ; then
9287     setopt NO_GLOB_SUBST
9288   fi
9289   # Now quote all the things that may contain metacharacters while being
9290   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9291   # variables and quote the copies for generation of the libtool script.
9292   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9293     SED SHELL STRIP \
9294     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9295     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9296     deplibs_check_method reload_flag reload_cmds need_locks \
9297     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9298     lt_cv_sys_global_symbol_to_c_name_address \
9299     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9300     old_postinstall_cmds old_postuninstall_cmds \
9301     compiler \
9302     CC \
9303     LD \
9304     lt_prog_compiler_wl \
9305     lt_prog_compiler_pic \
9306     lt_prog_compiler_static \
9307     lt_prog_compiler_no_builtin_flag \
9308     export_dynamic_flag_spec \
9309     thread_safe_flag_spec \
9310     whole_archive_flag_spec \
9311     enable_shared_with_static_runtimes \
9312     old_archive_cmds \
9313     old_archive_from_new_cmds \
9314     predep_objects \
9315     postdep_objects \
9316     predeps \
9317     postdeps \
9318     compiler_lib_search_path \
9319     archive_cmds \
9320     archive_expsym_cmds \
9321     postinstall_cmds \
9322     postuninstall_cmds \
9323     old_archive_from_expsyms_cmds \
9324     allow_undefined_flag \
9325     no_undefined_flag \
9326     export_symbols_cmds \
9327     hardcode_libdir_flag_spec \
9328     hardcode_libdir_flag_spec_ld \
9329     hardcode_libdir_separator \
9330     hardcode_automatic \
9331     module_cmds \
9332     module_expsym_cmds \
9333     lt_cv_prog_compiler_c_o \
9334     exclude_expsyms \
9335     include_expsyms; do
9336
9337     case $var in
9338     old_archive_cmds | \
9339     old_archive_from_new_cmds | \
9340     archive_cmds | \
9341     archive_expsym_cmds | \
9342     module_cmds | \
9343     module_expsym_cmds | \
9344     old_archive_from_expsyms_cmds | \
9345     export_symbols_cmds | \
9346     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9347     postinstall_cmds | postuninstall_cmds | \
9348     old_postinstall_cmds | old_postuninstall_cmds | \
9349     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9350       # Double-quote double-evaled strings.
9351       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9352       ;;
9353     *)
9354       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9355       ;;
9356     esac
9357   done
9358
9359   case $lt_echo in
9360   *'\$0 --fallback-echo"')
9361     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9362     ;;
9363   esac
9364
9365 cfgfile="${ofile}T"
9366   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9367   $rm -f "$cfgfile"
9368   { echo "$as_me:$LINENO: creating $ofile" >&5
9369 echo "$as_me: creating $ofile" >&6;}
9370
9371   cat <<__EOF__ >> "$cfgfile"
9372 #! $SHELL
9373
9374 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9375 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9376 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9377 #
9378 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9379 # Free Software Foundation, Inc.
9380 #
9381 # This file is part of GNU Libtool:
9382 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9383 #
9384 # This program is free software; you can redistribute it and/or modify
9385 # it under the terms of the GNU General Public License as published by
9386 # the Free Software Foundation; either version 2 of the License, or
9387 # (at your option) any later version.
9388 #
9389 # This program is distributed in the hope that it will be useful, but
9390 # WITHOUT ANY WARRANTY; without even the implied warranty of
9391 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9392 # General Public License for more details.
9393 #
9394 # You should have received a copy of the GNU General Public License
9395 # along with this program; if not, write to the Free Software
9396 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9397 #
9398 # As a special exception to the GNU General Public License, if you
9399 # distribute this file as part of a program that contains a
9400 # configuration script generated by Autoconf, you may include it under
9401 # the same distribution terms that you use for the rest of that program.
9402
9403 # A sed program that does not truncate output.
9404 SED=$lt_SED
9405
9406 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9407 Xsed="$SED -e 1s/^X//"
9408
9409 # The HP-UX ksh and POSIX shell print the target directory to stdout
9410 # if CDPATH is set.
9411 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9412
9413 # The names of the tagged configurations supported by this script.
9414 available_tags=
9415
9416 # ### BEGIN LIBTOOL CONFIG
9417
9418 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9419
9420 # Shell to use when invoking shell scripts.
9421 SHELL=$lt_SHELL
9422
9423 # Whether or not to build shared libraries.
9424 build_libtool_libs=$enable_shared
9425
9426 # Whether or not to build static libraries.
9427 build_old_libs=$enable_static
9428
9429 # Whether or not to add -lc for building shared libraries.
9430 build_libtool_need_lc=$archive_cmds_need_lc
9431
9432 # Whether or not to disallow shared libs when runtime libs are static
9433 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9434
9435 # Whether or not to optimize for fast installation.
9436 fast_install=$enable_fast_install
9437
9438 # The host system.
9439 host_alias=$host_alias
9440 host=$host
9441 host_os=$host_os
9442
9443 # The build system.
9444 build_alias=$build_alias
9445 build=$build
9446 build_os=$build_os
9447
9448 # An echo program that does not interpret backslashes.
9449 echo=$lt_echo
9450
9451 # The archiver.
9452 AR=$lt_AR
9453 AR_FLAGS=$lt_AR_FLAGS
9454
9455 # A C compiler.
9456 LTCC=$lt_LTCC
9457
9458 # LTCC compiler flags.
9459 LTCFLAGS=$lt_LTCFLAGS
9460
9461 # A language-specific compiler.
9462 CC=$lt_compiler
9463
9464 # Is the compiler the GNU C compiler?
9465 with_gcc=$GCC
9466
9467 # An ERE matcher.
9468 EGREP=$lt_EGREP
9469
9470 # The linker used to build libraries.
9471 LD=$lt_LD
9472
9473 # Whether we need hard or soft links.
9474 LN_S=$lt_LN_S
9475
9476 # A BSD-compatible nm program.
9477 NM=$lt_NM
9478
9479 # A symbol stripping program
9480 STRIP=$lt_STRIP
9481
9482 # Used to examine libraries when file_magic_cmd begins "file"
9483 MAGIC_CMD=$MAGIC_CMD
9484
9485 # Used on cygwin: DLL creation program.
9486 DLLTOOL="$DLLTOOL"
9487
9488 # Used on cygwin: object dumper.
9489 OBJDUMP="$OBJDUMP"
9490
9491 # Used on cygwin: assembler.
9492 AS="$AS"
9493
9494 # The name of the directory that contains temporary libtool files.
9495 objdir=$objdir
9496
9497 # How to create reloadable object files.
9498 reload_flag=$lt_reload_flag
9499 reload_cmds=$lt_reload_cmds
9500
9501 # How to pass a linker flag through the compiler.
9502 wl=$lt_lt_prog_compiler_wl
9503
9504 # Object file suffix (normally "o").
9505 objext="$ac_objext"
9506
9507 # Old archive suffix (normally "a").
9508 libext="$libext"
9509
9510 # Shared library suffix (normally ".so").
9511 shrext_cmds='$shrext_cmds'
9512
9513 # Executable file suffix (normally "").
9514 exeext="$exeext"
9515
9516 # Additional compiler flags for building library objects.
9517 pic_flag=$lt_lt_prog_compiler_pic
9518 pic_mode=$pic_mode
9519
9520 # What is the maximum length of a command?
9521 max_cmd_len=$lt_cv_sys_max_cmd_len
9522
9523 # Does compiler simultaneously support -c and -o options?
9524 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9525
9526 # Must we lock files when doing compilation?
9527 need_locks=$lt_need_locks
9528
9529 # Do we need the lib prefix for modules?
9530 need_lib_prefix=$need_lib_prefix
9531
9532 # Do we need a version for libraries?
9533 need_version=$need_version
9534
9535 # Whether dlopen is supported.
9536 dlopen_support=$enable_dlopen
9537
9538 # Whether dlopen of programs is supported.
9539 dlopen_self=$enable_dlopen_self
9540
9541 # Whether dlopen of statically linked programs is supported.
9542 dlopen_self_static=$enable_dlopen_self_static
9543
9544 # Compiler flag to prevent dynamic linking.
9545 link_static_flag=$lt_lt_prog_compiler_static
9546
9547 # Compiler flag to turn off builtin functions.
9548 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9549
9550 # Compiler flag to allow reflexive dlopens.
9551 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9552
9553 # Compiler flag to generate shared objects directly from archives.
9554 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9555
9556 # Compiler flag to generate thread-safe objects.
9557 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9558
9559 # Library versioning type.
9560 version_type=$version_type
9561
9562 # Format of library name prefix.
9563 libname_spec=$lt_libname_spec
9564
9565 # List of archive names.  First name is the real one, the rest are links.
9566 # The last name is the one that the linker finds with -lNAME.
9567 library_names_spec=$lt_library_names_spec
9568
9569 # The coded name of the library, if different from the real name.
9570 soname_spec=$lt_soname_spec
9571
9572 # Commands used to build and install an old-style archive.
9573 RANLIB=$lt_RANLIB
9574 old_archive_cmds=$lt_old_archive_cmds
9575 old_postinstall_cmds=$lt_old_postinstall_cmds
9576 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9577
9578 # Create an old-style archive from a shared archive.
9579 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9580
9581 # Create a temporary old-style archive to link instead of a shared archive.
9582 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9583
9584 # Commands used to build and install a shared archive.
9585 archive_cmds=$lt_archive_cmds
9586 archive_expsym_cmds=$lt_archive_expsym_cmds
9587 postinstall_cmds=$lt_postinstall_cmds
9588 postuninstall_cmds=$lt_postuninstall_cmds
9589
9590 # Commands used to build a loadable module (assumed same as above if empty)
9591 module_cmds=$lt_module_cmds
9592 module_expsym_cmds=$lt_module_expsym_cmds
9593
9594 # Commands to strip libraries.
9595 old_striplib=$lt_old_striplib
9596 striplib=$lt_striplib
9597
9598 # Dependencies to place before the objects being linked to create a
9599 # shared library.
9600 predep_objects=$lt_predep_objects
9601
9602 # Dependencies to place after the objects being linked to create a
9603 # shared library.
9604 postdep_objects=$lt_postdep_objects
9605
9606 # Dependencies to place before the objects being linked to create a
9607 # shared library.
9608 predeps=$lt_predeps
9609
9610 # Dependencies to place after the objects being linked to create a
9611 # shared library.
9612 postdeps=$lt_postdeps
9613
9614 # The library search path used internally by the compiler when linking
9615 # a shared library.
9616 compiler_lib_search_path=$lt_compiler_lib_search_path
9617
9618 # Method to check whether dependent libraries are shared objects.
9619 deplibs_check_method=$lt_deplibs_check_method
9620
9621 # Command to use when deplibs_check_method == file_magic.
9622 file_magic_cmd=$lt_file_magic_cmd
9623
9624 # Flag that allows shared libraries with undefined symbols to be built.
9625 allow_undefined_flag=$lt_allow_undefined_flag
9626
9627 # Flag that forces no undefined symbols.
9628 no_undefined_flag=$lt_no_undefined_flag
9629
9630 # Commands used to finish a libtool library installation in a directory.
9631 finish_cmds=$lt_finish_cmds
9632
9633 # Same as above, but a single script fragment to be evaled but not shown.
9634 finish_eval=$lt_finish_eval
9635
9636 # Take the output of nm and produce a listing of raw symbols and C names.
9637 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9638
9639 # Transform the output of nm in a proper C declaration
9640 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9641
9642 # Transform the output of nm in a C name address pair
9643 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9644
9645 # This is the shared library runtime path variable.
9646 runpath_var=$runpath_var
9647
9648 # This is the shared library path variable.
9649 shlibpath_var=$shlibpath_var
9650
9651 # Is shlibpath searched before the hard-coded library search path?
9652 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9653
9654 # How to hardcode a shared library path into an executable.
9655 hardcode_action=$hardcode_action
9656
9657 # Whether we should hardcode library paths into libraries.
9658 hardcode_into_libs=$hardcode_into_libs
9659
9660 # Flag to hardcode \$libdir into a binary during linking.
9661 # This must work even if \$libdir does not exist.
9662 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9663
9664 # If ld is used when linking, flag to hardcode \$libdir into
9665 # a binary during linking. This must work even if \$libdir does
9666 # not exist.
9667 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9668
9669 # Whether we need a single -rpath flag with a separated argument.
9670 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9671
9672 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9673 # resulting binary.
9674 hardcode_direct=$hardcode_direct
9675
9676 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9677 # resulting binary.
9678 hardcode_minus_L=$hardcode_minus_L
9679
9680 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9681 # the resulting binary.
9682 hardcode_shlibpath_var=$hardcode_shlibpath_var
9683
9684 # Set to yes if building a shared library automatically hardcodes DIR into the library
9685 # and all subsequent libraries and executables linked against it.
9686 hardcode_automatic=$hardcode_automatic
9687
9688 # Variables whose values should be saved in libtool wrapper scripts and
9689 # restored at relink time.
9690 variables_saved_for_relink="$variables_saved_for_relink"
9691
9692 # Whether libtool must link a program against all its dependency libraries.
9693 link_all_deplibs=$link_all_deplibs
9694
9695 # Compile-time system search path for libraries
9696 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9697
9698 # Run-time system search path for libraries
9699 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9700
9701 # Fix the shell variable \$srcfile for the compiler.
9702 fix_srcfile_path="$fix_srcfile_path"
9703
9704 # Set to yes if exported symbols are required.
9705 always_export_symbols=$always_export_symbols
9706
9707 # The commands to list exported symbols.
9708 export_symbols_cmds=$lt_export_symbols_cmds
9709
9710 # The commands to extract the exported symbol list from a shared archive.
9711 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9712
9713 # Symbols that should not be listed in the preloaded symbols.
9714 exclude_expsyms=$lt_exclude_expsyms
9715
9716 # Symbols that must always be exported.
9717 include_expsyms=$lt_include_expsyms
9718
9719 # ### END LIBTOOL CONFIG
9720
9721 __EOF__
9722
9723
9724   case $host_os in
9725   aix3*)
9726     cat <<\EOF >> "$cfgfile"
9727
9728 # AIX sometimes has problems with the GCC collect2 program.  For some
9729 # reason, if we set the COLLECT_NAMES environment variable, the problems
9730 # vanish in a puff of smoke.
9731 if test "X${COLLECT_NAMES+set}" != Xset; then
9732   COLLECT_NAMES=
9733   export COLLECT_NAMES
9734 fi
9735 EOF
9736     ;;
9737   esac
9738
9739   # We use sed instead of cat because bash on DJGPP gets confused if
9740   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9741   # text mode, it properly converts lines to CR/LF.  This bash problem
9742   # is reportedly fixed, but why not run on old versions too?
9743   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9744
9745   mv -f "$cfgfile" "$ofile" || \
9746     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9747   chmod +x "$ofile"
9748
9749 else
9750   # If there is no Makefile yet, we rely on a make rule to execute
9751   # `config.status --recheck' to rerun these tests and create the
9752   # libtool script then.
9753   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9754   if test -f "$ltmain_in"; then
9755     test -f Makefile && make "$ltmain"
9756   fi
9757 fi
9758
9759
9760 ac_ext=c
9761 ac_cpp='$CPP $CPPFLAGS'
9762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9765
9766 CC="$lt_save_CC"
9767
9768
9769 # Check whether --with-tags or --without-tags was given.
9770 if test "${with_tags+set}" = set; then
9771   withval="$with_tags"
9772   tagnames="$withval"
9773 fi;
9774
9775 if test -f "$ltmain" && test -n "$tagnames"; then
9776   if test ! -f "${ofile}"; then
9777     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9778 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9779   fi
9780
9781   if test -z "$LTCC"; then
9782     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9783     if test -z "$LTCC"; then
9784       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9785 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9786     else
9787       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9788 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9789     fi
9790   fi
9791   if test -z "$LTCFLAGS"; then
9792     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9793   fi
9794
9795   # Extract list of available tagged configurations in $ofile.
9796   # Note that this assumes the entire list is on one line.
9797   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9798
9799   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9800   for tagname in $tagnames; do
9801     IFS="$lt_save_ifs"
9802     # Check whether tagname contains only valid characters
9803     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9804     "") ;;
9805     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9806 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9807    { (exit 1); exit 1; }; }
9808         ;;
9809     esac
9810
9811     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9812     then
9813       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9814 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9815    { (exit 1); exit 1; }; }
9816     fi
9817
9818     # Update the list of available tags.
9819     if test -n "$tagname"; then
9820       echo appending configuration tag \"$tagname\" to $ofile
9821
9822       case $tagname in
9823       CXX)
9824         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9825             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9826             (test "X$CXX" != "Xg++"))) ; then
9827           ac_ext=cc
9828 ac_cpp='$CXXCPP $CPPFLAGS'
9829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9832
9833
9834
9835
9836 archive_cmds_need_lc_CXX=no
9837 allow_undefined_flag_CXX=
9838 always_export_symbols_CXX=no
9839 archive_expsym_cmds_CXX=
9840 export_dynamic_flag_spec_CXX=
9841 hardcode_direct_CXX=no
9842 hardcode_libdir_flag_spec_CXX=
9843 hardcode_libdir_flag_spec_ld_CXX=
9844 hardcode_libdir_separator_CXX=
9845 hardcode_minus_L_CXX=no
9846 hardcode_shlibpath_var_CXX=unsupported
9847 hardcode_automatic_CXX=no
9848 module_cmds_CXX=
9849 module_expsym_cmds_CXX=
9850 link_all_deplibs_CXX=unknown
9851 old_archive_cmds_CXX=$old_archive_cmds
9852 no_undefined_flag_CXX=
9853 whole_archive_flag_spec_CXX=
9854 enable_shared_with_static_runtimes_CXX=no
9855
9856 # Dependencies to place before and after the object being linked:
9857 predep_objects_CXX=
9858 postdep_objects_CXX=
9859 predeps_CXX=
9860 postdeps_CXX=
9861 compiler_lib_search_path_CXX=
9862
9863 # Source file extension for C++ test sources.
9864 ac_ext=cpp
9865
9866 # Object file extension for compiled C++ test sources.
9867 objext=o
9868 objext_CXX=$objext
9869
9870 # Code to be used in simple compile tests
9871 lt_simple_compile_test_code="int some_variable = 0;\n"
9872
9873 # Code to be used in simple link tests
9874 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9875
9876 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9877
9878 # If no C compiler was specified, use CC.
9879 LTCC=${LTCC-"$CC"}
9880
9881 # If no C compiler flags were specified, use CFLAGS.
9882 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9883
9884 # Allow CC to be a program name with arguments.
9885 compiler=$CC
9886
9887
9888 # save warnings/boilerplate of simple test code
9889 ac_outfile=conftest.$ac_objext
9890 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9891 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9892 _lt_compiler_boilerplate=`cat conftest.err`
9893 $rm conftest*
9894
9895 ac_outfile=conftest.$ac_objext
9896 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9897 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9898 _lt_linker_boilerplate=`cat conftest.err`
9899 $rm conftest*
9900
9901
9902 # Allow CC to be a program name with arguments.
9903 lt_save_CC=$CC
9904 lt_save_LD=$LD
9905 lt_save_GCC=$GCC
9906 GCC=$GXX
9907 lt_save_with_gnu_ld=$with_gnu_ld
9908 lt_save_path_LD=$lt_cv_path_LD
9909 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9910   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9911 else
9912   $as_unset lt_cv_prog_gnu_ld
9913 fi
9914 if test -n "${lt_cv_path_LDCXX+set}"; then
9915   lt_cv_path_LD=$lt_cv_path_LDCXX
9916 else
9917   $as_unset lt_cv_path_LD
9918 fi
9919 test -z "${LDCXX+set}" || LD=$LDCXX
9920 CC=${CXX-"c++"}
9921 compiler=$CC
9922 compiler_CXX=$CC
9923 for cc_temp in $compiler""; do
9924   case $cc_temp in
9925     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9926     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9927     \-*) ;;
9928     *) break;;
9929   esac
9930 done
9931 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9932
9933
9934 # We don't want -fno-exception wen compiling C++ code, so set the
9935 # no_builtin_flag separately
9936 if test "$GXX" = yes; then
9937   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9938 else
9939   lt_prog_compiler_no_builtin_flag_CXX=
9940 fi
9941
9942 if test "$GXX" = yes; then
9943   # Set up default GNU C++ configuration
9944
9945
9946 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9947 if test "${with_gnu_ld+set}" = set; then
9948   withval="$with_gnu_ld"
9949   test "$withval" = no || with_gnu_ld=yes
9950 else
9951   with_gnu_ld=no
9952 fi;
9953 ac_prog=ld
9954 if test "$GCC" = yes; then
9955   # Check if gcc -print-prog-name=ld gives a path.
9956   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9957 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9958   case $host in
9959   *-*-mingw*)
9960     # gcc leaves a trailing carriage return which upsets mingw
9961     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9962   *)
9963     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9964   esac
9965   case $ac_prog in
9966     # Accept absolute paths.
9967     [\\/]* | ?:[\\/]*)
9968       re_direlt='/[^/][^/]*/\.\./'
9969       # Canonicalize the pathname of ld
9970       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9971       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9972         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9973       done
9974       test -z "$LD" && LD="$ac_prog"
9975       ;;
9976   "")
9977     # If it fails, then pretend we aren't using GCC.
9978     ac_prog=ld
9979     ;;
9980   *)
9981     # If it is relative, then search for the first ld in PATH.
9982     with_gnu_ld=unknown
9983     ;;
9984   esac
9985 elif test "$with_gnu_ld" = yes; then
9986   echo "$as_me:$LINENO: checking for GNU ld" >&5
9987 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9988 else
9989   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9990 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9991 fi
9992 if test "${lt_cv_path_LD+set}" = set; then
9993   echo $ECHO_N "(cached) $ECHO_C" >&6
9994 else
9995   if test -z "$LD"; then
9996   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9997   for ac_dir in $PATH; do
9998     IFS="$lt_save_ifs"
9999     test -z "$ac_dir" && ac_dir=.
10000     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10001       lt_cv_path_LD="$ac_dir/$ac_prog"
10002       # Check to see if the program is GNU ld.  I'd rather use --version,
10003       # but apparently some variants of GNU ld only accept -v.
10004       # Break only if it was the GNU/non-GNU ld that we prefer.
10005       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10006       *GNU* | *'with BFD'*)
10007         test "$with_gnu_ld" != no && break
10008         ;;
10009       *)
10010         test "$with_gnu_ld" != yes && break
10011         ;;
10012       esac
10013     fi
10014   done
10015   IFS="$lt_save_ifs"
10016 else
10017   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10018 fi
10019 fi
10020
10021 LD="$lt_cv_path_LD"
10022 if test -n "$LD"; then
10023   echo "$as_me:$LINENO: result: $LD" >&5
10024 echo "${ECHO_T}$LD" >&6
10025 else
10026   echo "$as_me:$LINENO: result: no" >&5
10027 echo "${ECHO_T}no" >&6
10028 fi
10029 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10030 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10031    { (exit 1); exit 1; }; }
10032 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10033 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10034 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10035   echo $ECHO_N "(cached) $ECHO_C" >&6
10036 else
10037   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10038 case `$LD -v 2>&1 </dev/null` in
10039 *GNU* | *'with BFD'*)
10040   lt_cv_prog_gnu_ld=yes
10041   ;;
10042 *)
10043   lt_cv_prog_gnu_ld=no
10044   ;;
10045 esac
10046 fi
10047 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10048 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10049 with_gnu_ld=$lt_cv_prog_gnu_ld
10050
10051
10052
10053   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10054   # archiving commands below assume that GNU ld is being used.
10055   if test "$with_gnu_ld" = yes; then
10056     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10057     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10058
10059     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10060     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10061
10062     # If archive_cmds runs LD, not CC, wlarc should be empty
10063     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10064     #     investigate it a little bit more. (MM)
10065     wlarc='${wl}'
10066
10067     # ancient GNU ld didn't support --whole-archive et. al.
10068     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10069         grep 'no-whole-archive' > /dev/null; then
10070       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10071     else
10072       whole_archive_flag_spec_CXX=
10073     fi
10074   else
10075     with_gnu_ld=no
10076     wlarc=
10077
10078     # A generic and very simple default shared library creation
10079     # command for GNU C++ for the case where it uses the native
10080     # linker, instead of GNU ld.  If possible, this setting should
10081     # overridden to take advantage of the native linker features on
10082     # the platform it is being used on.
10083     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10084   fi
10085
10086   # Commands to make compiler produce verbose output that lists
10087   # what "hidden" libraries, object files and flags are used when
10088   # linking a shared library.
10089   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10090
10091 else
10092   GXX=no
10093   with_gnu_ld=no
10094   wlarc=
10095 fi
10096
10097 # PORTME: fill in a description of your system's C++ link characteristics
10098 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10099 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10100 ld_shlibs_CXX=yes
10101 case $host_os in
10102   aix3*)
10103     # FIXME: insert proper C++ library support
10104     ld_shlibs_CXX=no
10105     ;;
10106   aix4* | aix5*)
10107     if test "$host_cpu" = ia64; then
10108       # On IA64, the linker does run time linking by default, so we don't
10109       # have to do anything special.
10110       aix_use_runtimelinking=no
10111       exp_sym_flag='-Bexport'
10112       no_entry_flag=""
10113     else
10114       aix_use_runtimelinking=no
10115
10116       # Test if we are trying to use run time linking or normal
10117       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10118       # need to do runtime linking.
10119       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10120         for ld_flag in $LDFLAGS; do
10121           case $ld_flag in
10122           *-brtl*)
10123             aix_use_runtimelinking=yes
10124             break
10125             ;;
10126           esac
10127         done
10128         ;;
10129       esac
10130
10131       exp_sym_flag='-bexport'
10132       no_entry_flag='-bnoentry'
10133     fi
10134
10135     # When large executables or shared objects are built, AIX ld can
10136     # have problems creating the table of contents.  If linking a library
10137     # or program results in "error TOC overflow" add -mminimal-toc to
10138     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10139     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10140
10141     archive_cmds_CXX=''
10142     hardcode_direct_CXX=yes
10143     hardcode_libdir_separator_CXX=':'
10144     link_all_deplibs_CXX=yes
10145
10146     if test "$GXX" = yes; then
10147       case $host_os in aix4.[012]|aix4.[012].*)
10148       # We only want to do this on AIX 4.2 and lower, the check
10149       # below for broken collect2 doesn't work under 4.3+
10150         collect2name=`${CC} -print-prog-name=collect2`
10151         if test -f "$collect2name" && \
10152            strings "$collect2name" | grep resolve_lib_name >/dev/null
10153         then
10154           # We have reworked collect2
10155           hardcode_direct_CXX=yes
10156         else
10157           # We have old collect2
10158           hardcode_direct_CXX=unsupported
10159           # It fails to find uninstalled libraries when the uninstalled
10160           # path is not listed in the libpath.  Setting hardcode_minus_L
10161           # to unsupported forces relinking
10162           hardcode_minus_L_CXX=yes
10163           hardcode_libdir_flag_spec_CXX='-L$libdir'
10164           hardcode_libdir_separator_CXX=
10165         fi
10166         ;;
10167       esac
10168       shared_flag='-shared'
10169       if test "$aix_use_runtimelinking" = yes; then
10170         shared_flag="$shared_flag "'${wl}-G'
10171       fi
10172     else
10173       # not using gcc
10174       if test "$host_cpu" = ia64; then
10175         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10176         # chokes on -Wl,-G. The following line is correct:
10177         shared_flag='-G'
10178       else
10179         if test "$aix_use_runtimelinking" = yes; then
10180           shared_flag='${wl}-G'
10181         else
10182           shared_flag='${wl}-bM:SRE'
10183         fi
10184       fi
10185     fi
10186
10187     # It seems that -bexpall does not export symbols beginning with
10188     # underscore (_), so it is better to generate a list of symbols to export.
10189     always_export_symbols_CXX=yes
10190     if test "$aix_use_runtimelinking" = yes; then
10191       # Warning - without using the other runtime loading flags (-brtl),
10192       # -berok will link without error, but may produce a broken library.
10193       allow_undefined_flag_CXX='-berok'
10194       # Determine the default libpath from the value encoded in an empty executable.
10195       cat >conftest.$ac_ext <<_ACEOF
10196 /* confdefs.h.  */
10197 _ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h.  */
10201
10202 int
10203 main ()
10204 {
10205
10206   ;
10207   return 0;
10208 }
10209 _ACEOF
10210 rm -f conftest.$ac_objext conftest$ac_exeext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10212   (eval $ac_link) 2>conftest.er1
10213   ac_status=$?
10214   grep -v '^ *+' conftest.er1 >conftest.err
10215   rm -f conftest.er1
10216   cat conftest.err >&5
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); } &&
10219          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221   (eval $ac_try) 2>&5
10222   ac_status=$?
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); }; } &&
10225          { ac_try='test -s conftest$ac_exeext'
10226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227   (eval $ac_try) 2>&5
10228   ac_status=$?
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); }; }; then
10231
10232 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10233 }'`
10234 # Check for a 64-bit object if we didn't find anything.
10235 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10236 }'`; fi
10237 else
10238   echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10240
10241 fi
10242 rm -f conftest.err conftest.$ac_objext \
10243       conftest$ac_exeext conftest.$ac_ext
10244 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10245
10246       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10247
10248       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10249      else
10250       if test "$host_cpu" = ia64; then
10251         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10252         allow_undefined_flag_CXX="-z nodefs"
10253         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10254       else
10255         # Determine the default libpath from the value encoded in an empty executable.
10256         cat >conftest.$ac_ext <<_ACEOF
10257 /* confdefs.h.  */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h.  */
10262
10263 int
10264 main ()
10265 {
10266
10267   ;
10268   return 0;
10269 }
10270 _ACEOF
10271 rm -f conftest.$ac_objext conftest$ac_exeext
10272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10273   (eval $ac_link) 2>conftest.er1
10274   ac_status=$?
10275   grep -v '^ *+' conftest.er1 >conftest.err
10276   rm -f conftest.er1
10277   cat conftest.err >&5
10278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279   (exit $ac_status); } &&
10280          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282   (eval $ac_try) 2>&5
10283   ac_status=$?
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); }; } &&
10286          { ac_try='test -s conftest$ac_exeext'
10287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288   (eval $ac_try) 2>&5
10289   ac_status=$?
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); }; }; then
10292
10293 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10294 }'`
10295 # Check for a 64-bit object if we didn't find anything.
10296 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10297 }'`; fi
10298 else
10299   echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10301
10302 fi
10303 rm -f conftest.err conftest.$ac_objext \
10304       conftest$ac_exeext conftest.$ac_ext
10305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10306
10307         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10308         # Warning - without using the other run time loading flags,
10309         # -berok will link without error, but may produce a broken library.
10310         no_undefined_flag_CXX=' ${wl}-bernotok'
10311         allow_undefined_flag_CXX=' ${wl}-berok'
10312         # Exported symbols can be pulled into shared objects from archives
10313         whole_archive_flag_spec_CXX='$convenience'
10314         archive_cmds_need_lc_CXX=yes
10315         # This is similar to how AIX traditionally builds its shared libraries.
10316         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10317       fi
10318     fi
10319     ;;
10320
10321   beos*)
10322     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10323       allow_undefined_flag_CXX=unsupported
10324       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10325       # support --undefined.  This deserves some investigation.  FIXME
10326       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10327     else
10328       ld_shlibs_CXX=no
10329     fi
10330     ;;
10331
10332   chorus*)
10333     case $cc_basename in
10334       *)
10335         # FIXME: insert proper C++ library support
10336         ld_shlibs_CXX=no
10337         ;;
10338     esac
10339     ;;
10340
10341   cygwin* | mingw* | pw32*)
10342     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10343     # as there is no search path for DLLs.
10344     hardcode_libdir_flag_spec_CXX='-L$libdir'
10345     allow_undefined_flag_CXX=unsupported
10346     always_export_symbols_CXX=no
10347     enable_shared_with_static_runtimes_CXX=yes
10348
10349     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10350       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10351       # If the export-symbols file already is a .def file (1st line
10352       # is EXPORTS), use it as is; otherwise, prepend...
10353       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10354         cp $export_symbols $output_objdir/$soname.def;
10355       else
10356         echo EXPORTS > $output_objdir/$soname.def;
10357         cat $export_symbols >> $output_objdir/$soname.def;
10358       fi~
10359       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10360     else
10361       ld_shlibs_CXX=no
10362     fi
10363   ;;
10364       darwin* | rhapsody*)
10365         case $host_os in
10366         rhapsody* | darwin1.[012])
10367          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10368          ;;
10369        *) # Darwin 1.3 on
10370          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10371            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10372          else
10373            case ${MACOSX_DEPLOYMENT_TARGET} in
10374              10.[012])
10375                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10376                ;;
10377              10.*)
10378                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10379                ;;
10380            esac
10381          fi
10382          ;;
10383         esac
10384       archive_cmds_need_lc_CXX=no
10385       hardcode_direct_CXX=no
10386       hardcode_automatic_CXX=yes
10387       hardcode_shlibpath_var_CXX=unsupported
10388       whole_archive_flag_spec_CXX=''
10389       link_all_deplibs_CXX=yes
10390
10391     if test "$GXX" = yes ; then
10392       lt_int_apple_cc_single_mod=no
10393       output_verbose_link_cmd='echo'
10394       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10395        lt_int_apple_cc_single_mod=yes
10396       fi
10397       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10398        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10399       else
10400           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10401         fi
10402         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10403         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10404           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10405             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10406           else
10407             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10408           fi
10409             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10410       else
10411       case $cc_basename in
10412         xlc*)
10413          output_verbose_link_cmd='echo'
10414           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10415           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10416           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10417           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10418           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10419           ;;
10420        *)
10421          ld_shlibs_CXX=no
10422           ;;
10423       esac
10424       fi
10425         ;;
10426
10427   dgux*)
10428     case $cc_basename in
10429       ec++*)
10430         # FIXME: insert proper C++ library support
10431         ld_shlibs_CXX=no
10432         ;;
10433       ghcx*)
10434         # Green Hills C++ Compiler
10435         # FIXME: insert proper C++ library support
10436         ld_shlibs_CXX=no
10437         ;;
10438       *)
10439         # FIXME: insert proper C++ library support
10440         ld_shlibs_CXX=no
10441         ;;
10442     esac
10443     ;;
10444   freebsd[12]*)
10445     # C++ shared libraries reported to be fairly broken before switch to ELF
10446     ld_shlibs_CXX=no
10447     ;;
10448   freebsd-elf*)
10449     archive_cmds_need_lc_CXX=no
10450     ;;
10451   freebsd* | dragonfly*)
10452     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10453     # conventions
10454     ld_shlibs_CXX=yes
10455     ;;
10456   gnu*)
10457     ;;
10458   hpux9*)
10459     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10460     hardcode_libdir_separator_CXX=:
10461     export_dynamic_flag_spec_CXX='${wl}-E'
10462     hardcode_direct_CXX=yes
10463     hardcode_minus_L_CXX=yes # Not in the search PATH,
10464                                 # but as the default
10465                                 # location of the library.
10466
10467     case $cc_basename in
10468     CC*)
10469       # FIXME: insert proper C++ library support
10470       ld_shlibs_CXX=no
10471       ;;
10472     aCC*)
10473       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10474       # Commands to make compiler produce verbose output that lists
10475       # what "hidden" libraries, object files and flags are used when
10476       # linking a shared library.
10477       #
10478       # There doesn't appear to be a way to prevent this compiler from
10479       # explicitly linking system object files so we need to strip them
10480       # from the output so that they don't get included in the library
10481       # dependencies.
10482       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10483       ;;
10484     *)
10485       if test "$GXX" = yes; then
10486         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10487       else
10488         # FIXME: insert proper C++ library support
10489         ld_shlibs_CXX=no
10490       fi
10491       ;;
10492     esac
10493     ;;
10494   hpux10*|hpux11*)
10495     if test $with_gnu_ld = no; then
10496       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10497       hardcode_libdir_separator_CXX=:
10498
10499       case $host_cpu in
10500       hppa*64*|ia64*)
10501         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10502         ;;
10503       *)
10504         export_dynamic_flag_spec_CXX='${wl}-E'
10505         ;;
10506       esac
10507     fi
10508     case $host_cpu in
10509     hppa*64*|ia64*)
10510       hardcode_direct_CXX=no
10511       hardcode_shlibpath_var_CXX=no
10512       ;;
10513     *)
10514       hardcode_direct_CXX=yes
10515       hardcode_minus_L_CXX=yes # Not in the search PATH,
10516                                               # but as the default
10517                                               # location of the library.
10518       ;;
10519     esac
10520
10521     case $cc_basename in
10522       CC*)
10523         # FIXME: insert proper C++ library support
10524         ld_shlibs_CXX=no
10525         ;;
10526       aCC*)
10527         case $host_cpu in
10528         hppa*64*)
10529           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10530           ;;
10531         ia64*)
10532           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10533           ;;
10534         *)
10535           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10536           ;;
10537         esac
10538         # Commands to make compiler produce verbose output that lists
10539         # what "hidden" libraries, object files and flags are used when
10540         # linking a shared library.
10541         #
10542         # There doesn't appear to be a way to prevent this compiler from
10543         # explicitly linking system object files so we need to strip them
10544         # from the output so that they don't get included in the library
10545         # dependencies.
10546         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10547         ;;
10548       *)
10549         if test "$GXX" = yes; then
10550           if test $with_gnu_ld = no; then
10551             case $host_cpu in
10552             hppa*64*)
10553               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10554               ;;
10555             ia64*)
10556               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10557               ;;
10558             *)
10559               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10560               ;;
10561             esac
10562           fi
10563         else
10564           # FIXME: insert proper C++ library support
10565           ld_shlibs_CXX=no
10566         fi
10567         ;;
10568     esac
10569     ;;
10570   interix3*)
10571     hardcode_direct_CXX=no
10572     hardcode_shlibpath_var_CXX=no
10573     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10574     export_dynamic_flag_spec_CXX='${wl}-E'
10575     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10576     # Instead, shared libraries are loaded at an image base (0x10000000 by
10577     # default) and relocated if they conflict, which is a slow very memory
10578     # consuming and fragmenting process.  To avoid this, we pick a random,
10579     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10580     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10581     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10582     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10583     ;;
10584   irix5* | irix6*)
10585     case $cc_basename in
10586       CC*)
10587         # SGI C++
10588         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10589
10590         # Archives containing C++ object files must be created using
10591         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10592         # necessary to make sure instantiated templates are included
10593         # in the archive.
10594         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10595         ;;
10596       *)
10597         if test "$GXX" = yes; then
10598           if test "$with_gnu_ld" = no; then
10599             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
10600           else
10601             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10602           fi
10603         fi
10604         link_all_deplibs_CXX=yes
10605         ;;
10606     esac
10607     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10608     hardcode_libdir_separator_CXX=:
10609     ;;
10610   linux* | k*bsd*-gnu)
10611     case $cc_basename in
10612       KCC*)
10613         # Kuck and Associates, Inc. (KAI) C++ Compiler
10614
10615         # KCC will only create a shared library if the output file
10616         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10617         # to its proper name (with version) after linking.
10618         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10619         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10620         # Commands to make compiler produce verbose output that lists
10621         # what "hidden" libraries, object files and flags are used when
10622         # linking a shared library.
10623         #
10624         # There doesn't appear to be a way to prevent this compiler from
10625         # explicitly linking system object files so we need to strip them
10626         # from the output so that they don't get included in the library
10627         # dependencies.
10628         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10629
10630         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10631         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10632
10633         # Archives containing C++ object files must be created using
10634         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10635         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10636         ;;
10637       icpc*)
10638         # Intel C++
10639         with_gnu_ld=yes
10640         # version 8.0 and above of icpc choke on multiply defined symbols
10641         # if we add $predep_objects and $postdep_objects, however 7.1 and
10642         # earlier do not add the objects themselves.
10643         case `$CC -V 2>&1` in
10644         *"Version 7."*)
10645           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10646           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10647           ;;
10648         *)  # Version 8.0 or newer
10649           tmp_idyn=
10650           case $host_cpu in
10651             ia64*) tmp_idyn=' -i_dynamic';;
10652           esac
10653           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10654           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10655           ;;
10656         esac
10657         archive_cmds_need_lc_CXX=no
10658         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10659         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10660         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10661         ;;
10662       pgCC*)
10663         # Portland Group C++ compiler
10664         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10665         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10666
10667         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10668         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10669         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10670         ;;
10671       cxx*)
10672         # Compaq C++
10673         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10674         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10675
10676         runpath_var=LD_RUN_PATH
10677         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10678         hardcode_libdir_separator_CXX=:
10679
10680         # Commands to make compiler produce verbose output that lists
10681         # what "hidden" libraries, object files and flags are used when
10682         # linking a shared library.
10683         #
10684         # There doesn't appear to be a way to prevent this compiler from
10685         # explicitly linking system object files so we need to strip them
10686         # from the output so that they don't get included in the library
10687         # dependencies.
10688         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10689         ;;
10690     esac
10691     ;;
10692   lynxos*)
10693     # FIXME: insert proper C++ library support
10694     ld_shlibs_CXX=no
10695     ;;
10696   m88k*)
10697     # FIXME: insert proper C++ library support
10698     ld_shlibs_CXX=no
10699     ;;
10700   mvs*)
10701     case $cc_basename in
10702       cxx*)
10703         # FIXME: insert proper C++ library support
10704         ld_shlibs_CXX=no
10705         ;;
10706       *)
10707         # FIXME: insert proper C++ library support
10708         ld_shlibs_CXX=no
10709         ;;
10710     esac
10711     ;;
10712   netbsd* | netbsdelf*-gnu)
10713     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10714       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10715       wlarc=
10716       hardcode_libdir_flag_spec_CXX='-R$libdir'
10717       hardcode_direct_CXX=yes
10718       hardcode_shlibpath_var_CXX=no
10719     fi
10720     # Workaround some broken pre-1.5 toolchains
10721     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10722     ;;
10723   openbsd2*)
10724     # C++ shared libraries are fairly broken
10725     ld_shlibs_CXX=no
10726     ;;
10727   openbsd*)
10728     hardcode_direct_CXX=yes
10729     hardcode_shlibpath_var_CXX=no
10730     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10731     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10732     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10733       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10734       export_dynamic_flag_spec_CXX='${wl}-E'
10735       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10736     fi
10737     output_verbose_link_cmd='echo'
10738     ;;
10739   osf3*)
10740     case $cc_basename in
10741       KCC*)
10742         # Kuck and Associates, Inc. (KAI) C++ Compiler
10743
10744         # KCC will only create a shared library if the output file
10745         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10746         # to its proper name (with version) after linking.
10747         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10748
10749         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10750         hardcode_libdir_separator_CXX=:
10751
10752         # Archives containing C++ object files must be created using
10753         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10754         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10755
10756         ;;
10757       RCC*)
10758         # Rational C++ 2.4.1
10759         # FIXME: insert proper C++ library support
10760         ld_shlibs_CXX=no
10761         ;;
10762       cxx*)
10763         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10764         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10765
10766         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10767         hardcode_libdir_separator_CXX=:
10768
10769         # Commands to make compiler produce verbose output that lists
10770         # what "hidden" libraries, object files and flags are used when
10771         # linking a shared library.
10772         #
10773         # There doesn't appear to be a way to prevent this compiler from
10774         # explicitly linking system object files so we need to strip them
10775         # from the output so that they don't get included in the library
10776         # dependencies.
10777         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10778         ;;
10779       *)
10780         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10781           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10782           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
10783
10784           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10785           hardcode_libdir_separator_CXX=:
10786
10787           # Commands to make compiler produce verbose output that lists
10788           # what "hidden" libraries, object files and flags are used when
10789           # linking a shared library.
10790           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10791
10792         else
10793           # FIXME: insert proper C++ library support
10794           ld_shlibs_CXX=no
10795         fi
10796         ;;
10797     esac
10798     ;;
10799   osf4* | osf5*)
10800     case $cc_basename in
10801       KCC*)
10802         # Kuck and Associates, Inc. (KAI) C++ Compiler
10803
10804         # KCC will only create a shared library if the output file
10805         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10806         # to its proper name (with version) after linking.
10807         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10808
10809         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10810         hardcode_libdir_separator_CXX=:
10811
10812         # Archives containing C++ object files must be created using
10813         # the KAI C++ compiler.
10814         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10815         ;;
10816       RCC*)
10817         # Rational C++ 2.4.1
10818         # FIXME: insert proper C++ library support
10819         ld_shlibs_CXX=no
10820         ;;
10821       cxx*)
10822         allow_undefined_flag_CXX=' -expect_unresolved \*'
10823         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10824         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10825           echo "-hidden">> $lib.exp~
10826           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10827           $rm $lib.exp'
10828
10829         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10830         hardcode_libdir_separator_CXX=:
10831
10832         # Commands to make compiler produce verbose output that lists
10833         # what "hidden" libraries, object files and flags are used when
10834         # linking a shared library.
10835         #
10836         # There doesn't appear to be a way to prevent this compiler from
10837         # explicitly linking system object files so we need to strip them
10838         # from the output so that they don't get included in the library
10839         # dependencies.
10840         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10841         ;;
10842       *)
10843         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10844           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10845          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
10846
10847           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10848           hardcode_libdir_separator_CXX=:
10849
10850           # Commands to make compiler produce verbose output that lists
10851           # what "hidden" libraries, object files and flags are used when
10852           # linking a shared library.
10853           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10854
10855         else
10856           # FIXME: insert proper C++ library support
10857           ld_shlibs_CXX=no
10858         fi
10859         ;;
10860     esac
10861     ;;
10862   psos*)
10863     # FIXME: insert proper C++ library support
10864     ld_shlibs_CXX=no
10865     ;;
10866   sunos4*)
10867     case $cc_basename in
10868       CC*)
10869         # Sun C++ 4.x
10870         # FIXME: insert proper C++ library support
10871         ld_shlibs_CXX=no
10872         ;;
10873       lcc*)
10874         # Lucid
10875         # FIXME: insert proper C++ library support
10876         ld_shlibs_CXX=no
10877         ;;
10878       *)
10879         # FIXME: insert proper C++ library support
10880         ld_shlibs_CXX=no
10881         ;;
10882     esac
10883     ;;
10884   solaris*)
10885     case $cc_basename in
10886       CC*)
10887         # Sun C++ 4.2, 5.x and Centerline C++
10888         archive_cmds_need_lc_CXX=yes
10889         no_undefined_flag_CXX=' -zdefs'
10890         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10891         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10892         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10893
10894         hardcode_libdir_flag_spec_CXX='-R$libdir'
10895         hardcode_shlibpath_var_CXX=no
10896         case $host_os in
10897           solaris2.[0-5] | solaris2.[0-5].*) ;;
10898           *)
10899             # The C++ compiler is used as linker so we must use $wl
10900             # flag to pass the commands to the underlying system
10901             # linker. We must also pass each convience library through
10902             # to the system linker between allextract/defaultextract.
10903             # The C++ compiler will combine linker options so we
10904             # cannot just pass the convience library names through
10905             # without $wl.
10906             # Supported since Solaris 2.6 (maybe 2.5.1?)
10907             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10908             ;;
10909         esac
10910         link_all_deplibs_CXX=yes
10911
10912         output_verbose_link_cmd='echo'
10913
10914         # Archives containing C++ object files must be created using
10915         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10916         # necessary to make sure instantiated templates are included
10917         # in the archive.
10918         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10919         ;;
10920       gcx*)
10921         # Green Hills C++ Compiler
10922         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10923
10924         # The C++ compiler must be used to create the archive.
10925         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10926         ;;
10927       *)
10928         # GNU C++ compiler with Solaris linker
10929         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10930           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10931           if $CC --version | grep -v '^2\.7' > /dev/null; then
10932             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10933             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10934                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10935
10936             # Commands to make compiler produce verbose output that lists
10937             # what "hidden" libraries, object files and flags are used when
10938             # linking a shared library.
10939             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10940           else
10941             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10942             # platform.
10943             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10944             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10945                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10946
10947             # Commands to make compiler produce verbose output that lists
10948             # what "hidden" libraries, object files and flags are used when
10949             # linking a shared library.
10950             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10951           fi
10952
10953           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10954         fi
10955         ;;
10956     esac
10957     ;;
10958   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10959     no_undefined_flag_CXX='${wl}-z,text'
10960     archive_cmds_need_lc_CXX=no
10961     hardcode_shlibpath_var_CXX=no
10962     runpath_var='LD_RUN_PATH'
10963
10964     case $cc_basename in
10965       CC*)
10966         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10967         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10968         ;;
10969       *)
10970         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10971         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10972         ;;
10973     esac
10974     ;;
10975   sysv5* | sco3.2v5* | sco5v6*)
10976     # Note: We can NOT use -z defs as we might desire, because we do not
10977     # link with -lc, and that would cause any symbols used from libc to
10978     # always be unresolved, which means just about no library would
10979     # ever link correctly.  If we're not using GNU ld we use -z text
10980     # though, which does catch some bad symbols but isn't as heavy-handed
10981     # as -z defs.
10982     # For security reasons, it is highly recommended that you always
10983     # use absolute paths for naming shared libraries, and exclude the
10984     # DT_RUNPATH tag from executables and libraries.  But doing so
10985     # requires that you compile everything twice, which is a pain.
10986     # So that behaviour is only enabled if SCOABSPATH is set to a
10987     # non-empty value in the environment.  Most likely only useful for
10988     # creating official distributions of packages.
10989     # This is a hack until libtool officially supports absolute path
10990     # names for shared libraries.
10991     no_undefined_flag_CXX='${wl}-z,text'
10992     allow_undefined_flag_CXX='${wl}-z,nodefs'
10993     archive_cmds_need_lc_CXX=no
10994     hardcode_shlibpath_var_CXX=no
10995     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10996     hardcode_libdir_separator_CXX=':'
10997     link_all_deplibs_CXX=yes
10998     export_dynamic_flag_spec_CXX='${wl}-Bexport'
10999     runpath_var='LD_RUN_PATH'
11000
11001     case $cc_basename in
11002       CC*)
11003         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11004         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11005         ;;
11006       *)
11007         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11008         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11009         ;;
11010     esac
11011     ;;
11012   tandem*)
11013     case $cc_basename in
11014       NCC*)
11015         # NonStop-UX NCC 3.20
11016         # FIXME: insert proper C++ library support
11017         ld_shlibs_CXX=no
11018         ;;
11019       *)
11020         # FIXME: insert proper C++ library support
11021         ld_shlibs_CXX=no
11022         ;;
11023     esac
11024     ;;
11025   vxworks*)
11026     # FIXME: insert proper C++ library support
11027     ld_shlibs_CXX=no
11028     ;;
11029   *)
11030     # FIXME: insert proper C++ library support
11031     ld_shlibs_CXX=no
11032     ;;
11033 esac
11034 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11035 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11036 test "$ld_shlibs_CXX" = no && can_build_shared=no
11037
11038 GCC_CXX="$GXX"
11039 LD_CXX="$LD"
11040
11041
11042 cat > conftest.$ac_ext <<EOF
11043 class Foo
11044 {
11045 public:
11046   Foo (void) { a = 0; }
11047 private:
11048   int a;
11049 };
11050 EOF
11051
11052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11053   (eval $ac_compile) 2>&5
11054   ac_status=$?
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); }; then
11057   # Parse the compiler output and extract the necessary
11058   # objects, libraries and library flags.
11059
11060   # Sentinel used to keep track of whether or not we are before
11061   # the conftest object file.
11062   pre_test_object_deps_done=no
11063
11064   # The `*' in the case matches for architectures that use `case' in
11065   # $output_verbose_cmd can trigger glob expansion during the loop
11066   # eval without this substitution.
11067   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11068
11069   for p in `eval $output_verbose_link_cmd`; do
11070     case $p in
11071
11072     -L* | -R* | -l*)
11073        # Some compilers place space between "-{L,R}" and the path.
11074        # Remove the space.
11075        if test $p = "-L" \
11076           || test $p = "-R"; then
11077          prev=$p
11078          continue
11079        else
11080          prev=
11081        fi
11082
11083        if test "$pre_test_object_deps_done" = no; then
11084          case $p in
11085          -L* | -R*)
11086            # Internal compiler library paths should come after those
11087            # provided the user.  The postdeps already come after the
11088            # user supplied libs so there is no need to process them.
11089            if test -z "$compiler_lib_search_path_CXX"; then
11090              compiler_lib_search_path_CXX="${prev}${p}"
11091            else
11092              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11093            fi
11094            ;;
11095          # The "-l" case would never come before the object being
11096          # linked, so don't bother handling this case.
11097          esac
11098        else
11099          if test -z "$postdeps_CXX"; then
11100            postdeps_CXX="${prev}${p}"
11101          else
11102            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11103          fi
11104        fi
11105        ;;
11106
11107     *.$objext)
11108        # This assumes that the test object file only shows up
11109        # once in the compiler output.
11110        if test "$p" = "conftest.$objext"; then
11111          pre_test_object_deps_done=yes
11112          continue
11113        fi
11114
11115        if test "$pre_test_object_deps_done" = no; then
11116          if test -z "$predep_objects_CXX"; then
11117            predep_objects_CXX="$p"
11118          else
11119            predep_objects_CXX="$predep_objects_CXX $p"
11120          fi
11121        else
11122          if test -z "$postdep_objects_CXX"; then
11123            postdep_objects_CXX="$p"
11124          else
11125            postdep_objects_CXX="$postdep_objects_CXX $p"
11126          fi
11127        fi
11128        ;;
11129
11130     *) ;; # Ignore the rest.
11131
11132     esac
11133   done
11134
11135   # Clean up.
11136   rm -f a.out a.exe
11137 else
11138   echo "libtool.m4: error: problem compiling CXX test program"
11139 fi
11140
11141 $rm -f confest.$objext
11142
11143 # PORTME: override above test on systems where it is broken
11144 case $host_os in
11145 interix3*)
11146   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11147   # hack all around it, let's just trust "g++" to DTRT.
11148   predep_objects_CXX=
11149   postdep_objects_CXX=
11150   postdeps_CXX=
11151   ;;
11152
11153 solaris*)
11154   case $cc_basename in
11155   CC*)
11156     # Adding this requires a known-good setup of shared libraries for
11157     # Sun compiler versions before 5.6, else PIC objects from an old
11158     # archive will be linked into the output, leading to subtle bugs.
11159     postdeps_CXX='-lCstd -lCrun'
11160     ;;
11161   esac
11162   ;;
11163 esac
11164
11165
11166 case " $postdeps_CXX " in
11167 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11168 esac
11169
11170 lt_prog_compiler_wl_CXX=
11171 lt_prog_compiler_pic_CXX=
11172 lt_prog_compiler_static_CXX=
11173
11174 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11175 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11176
11177   # C++ specific cases for pic, static, wl, etc.
11178   if test "$GXX" = yes; then
11179     lt_prog_compiler_wl_CXX='-Wl,'
11180     lt_prog_compiler_static_CXX='-static'
11181
11182     case $host_os in
11183     aix*)
11184       # All AIX code is PIC.
11185       if test "$host_cpu" = ia64; then
11186         # AIX 5 now supports IA64 processor
11187         lt_prog_compiler_static_CXX='-Bstatic'
11188       fi
11189       ;;
11190     amigaos*)
11191       # FIXME: we need at least 68020 code to build shared libraries, but
11192       # adding the `-m68020' flag to GCC prevents building anything better,
11193       # like `-m68040'.
11194       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11195       ;;
11196     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11197       # PIC is the default for these OSes.
11198       ;;
11199     mingw* | os2* | pw32*)
11200       # This hack is so that the source file can tell whether it is being
11201       # built for inclusion in a dll (and should export symbols for example).
11202       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11203       ;;
11204     darwin* | rhapsody*)
11205       # PIC is the default on this platform
11206       # Common symbols not allowed in MH_DYLIB files
11207       lt_prog_compiler_pic_CXX='-fno-common'
11208       ;;
11209     *djgpp*)
11210       # DJGPP does not support shared libraries at all
11211       lt_prog_compiler_pic_CXX=
11212       ;;
11213     interix3*)
11214       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11215       # Instead, we relocate shared libraries at runtime.
11216       ;;
11217     sysv4*MP*)
11218       if test -d /usr/nec; then
11219         lt_prog_compiler_pic_CXX=-Kconform_pic
11220       fi
11221       ;;
11222     hpux*)
11223       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11224       # not for PA HP-UX.
11225       case $host_cpu in
11226       hppa*64*|ia64*)
11227         ;;
11228       *)
11229         lt_prog_compiler_pic_CXX='-fPIC'
11230         ;;
11231       esac
11232       ;;
11233     *)
11234       lt_prog_compiler_pic_CXX='-fPIC'
11235       ;;
11236     esac
11237   else
11238     case $host_os in
11239       aix4* | aix5*)
11240         # All AIX code is PIC.
11241         if test "$host_cpu" = ia64; then
11242           # AIX 5 now supports IA64 processor
11243           lt_prog_compiler_static_CXX='-Bstatic'
11244         else
11245           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11246         fi
11247         ;;
11248       chorus*)
11249         case $cc_basename in
11250         cxch68*)
11251           # Green Hills C++ Compiler
11252           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11253           ;;
11254         esac
11255         ;;
11256        darwin*)
11257          # PIC is the default on this platform
11258          # Common symbols not allowed in MH_DYLIB files
11259          case $cc_basename in
11260            xlc*)
11261            lt_prog_compiler_pic_CXX='-qnocommon'
11262            lt_prog_compiler_wl_CXX='-Wl,'
11263            ;;
11264          esac
11265        ;;
11266       dgux*)
11267         case $cc_basename in
11268           ec++*)
11269             lt_prog_compiler_pic_CXX='-KPIC'
11270             ;;
11271           ghcx*)
11272             # Green Hills C++ Compiler
11273             lt_prog_compiler_pic_CXX='-pic'
11274             ;;
11275           *)
11276             ;;
11277         esac
11278         ;;
11279       freebsd* | dragonfly*)
11280         # FreeBSD uses GNU C++
11281         ;;
11282       hpux9* | hpux10* | hpux11*)
11283         case $cc_basename in
11284           CC*)
11285             lt_prog_compiler_wl_CXX='-Wl,'
11286             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11287             if test "$host_cpu" != ia64; then
11288               lt_prog_compiler_pic_CXX='+Z'
11289             fi
11290             ;;
11291           aCC*)
11292             lt_prog_compiler_wl_CXX='-Wl,'
11293             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11294             case $host_cpu in
11295             hppa*64*|ia64*)
11296               # +Z the default
11297               ;;
11298             *)
11299               lt_prog_compiler_pic_CXX='+Z'
11300               ;;
11301             esac
11302             ;;
11303           *)
11304             ;;
11305         esac
11306         ;;
11307       interix*)
11308         # This is c89, which is MS Visual C++ (no shared libs)
11309         # Anyone wants to do a port?
11310         ;;
11311       irix5* | irix6* | nonstopux*)
11312         case $cc_basename in
11313           CC*)
11314             lt_prog_compiler_wl_CXX='-Wl,'
11315             lt_prog_compiler_static_CXX='-non_shared'
11316             # CC pic flag -KPIC is the default.
11317             ;;
11318           *)
11319             ;;
11320         esac
11321         ;;
11322       linux* | k*bsd*-gnu)
11323         case $cc_basename in
11324           KCC*)
11325             # KAI C++ Compiler
11326             lt_prog_compiler_wl_CXX='--backend -Wl,'
11327             lt_prog_compiler_pic_CXX='-fPIC'
11328             ;;
11329           icpc* | ecpc*)
11330             # Intel C++
11331             lt_prog_compiler_wl_CXX='-Wl,'
11332             lt_prog_compiler_pic_CXX='-KPIC'
11333             lt_prog_compiler_static_CXX='-static'
11334             ;;
11335           pgCC*)
11336             # Portland Group C++ compiler.
11337             lt_prog_compiler_wl_CXX='-Wl,'
11338             lt_prog_compiler_pic_CXX='-fpic'
11339             lt_prog_compiler_static_CXX='-Bstatic'
11340             ;;
11341           cxx*)
11342             # Compaq C++
11343             # Make sure the PIC flag is empty.  It appears that all Alpha
11344             # Linux and Compaq Tru64 Unix objects are PIC.
11345             lt_prog_compiler_pic_CXX=
11346             lt_prog_compiler_static_CXX='-non_shared'
11347             ;;
11348           *)
11349             ;;
11350         esac
11351         ;;
11352       lynxos*)
11353         ;;
11354       m88k*)
11355         ;;
11356       mvs*)
11357         case $cc_basename in
11358           cxx*)
11359             lt_prog_compiler_pic_CXX='-W c,exportall'
11360             ;;
11361           *)
11362             ;;
11363         esac
11364         ;;
11365       netbsd* | netbsdelf*-gnu)
11366         ;;
11367       osf3* | osf4* | osf5*)
11368         case $cc_basename in
11369           KCC*)
11370             lt_prog_compiler_wl_CXX='--backend -Wl,'
11371             ;;
11372           RCC*)
11373             # Rational C++ 2.4.1
11374             lt_prog_compiler_pic_CXX='-pic'
11375             ;;
11376           cxx*)
11377             # Digital/Compaq C++
11378             lt_prog_compiler_wl_CXX='-Wl,'
11379             # Make sure the PIC flag is empty.  It appears that all Alpha
11380             # Linux and Compaq Tru64 Unix objects are PIC.
11381             lt_prog_compiler_pic_CXX=
11382             lt_prog_compiler_static_CXX='-non_shared'
11383             ;;
11384           *)
11385             ;;
11386         esac
11387         ;;
11388       psos*)
11389         ;;
11390       solaris*)
11391         case $cc_basename in
11392           CC*)
11393             # Sun C++ 4.2, 5.x and Centerline C++
11394             lt_prog_compiler_pic_CXX='-KPIC'
11395             lt_prog_compiler_static_CXX='-Bstatic'
11396             lt_prog_compiler_wl_CXX='-Qoption ld '
11397             ;;
11398           gcx*)
11399             # Green Hills C++ Compiler
11400             lt_prog_compiler_pic_CXX='-PIC'
11401             ;;
11402           *)
11403             ;;
11404         esac
11405         ;;
11406       sunos4*)
11407         case $cc_basename in
11408           CC*)
11409             # Sun C++ 4.x
11410             lt_prog_compiler_pic_CXX='-pic'
11411             lt_prog_compiler_static_CXX='-Bstatic'
11412             ;;
11413           lcc*)
11414             # Lucid
11415             lt_prog_compiler_pic_CXX='-pic'
11416             ;;
11417           *)
11418             ;;
11419         esac
11420         ;;
11421       tandem*)
11422         case $cc_basename in
11423           NCC*)
11424             # NonStop-UX NCC 3.20
11425             lt_prog_compiler_pic_CXX='-KPIC'
11426             ;;
11427           *)
11428             ;;
11429         esac
11430         ;;
11431       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11432         case $cc_basename in
11433           CC*)
11434             lt_prog_compiler_wl_CXX='-Wl,'
11435             lt_prog_compiler_pic_CXX='-KPIC'
11436             lt_prog_compiler_static_CXX='-Bstatic'
11437             ;;
11438         esac
11439         ;;
11440       vxworks*)
11441         ;;
11442       *)
11443         lt_prog_compiler_can_build_shared_CXX=no
11444         ;;
11445     esac
11446   fi
11447
11448 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11449 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11450
11451 #
11452 # Check to make sure the PIC flag actually works.
11453 #
11454 if test -n "$lt_prog_compiler_pic_CXX"; then
11455
11456 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11457 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11458 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11459   echo $ECHO_N "(cached) $ECHO_C" >&6
11460 else
11461   lt_prog_compiler_pic_works_CXX=no
11462   ac_outfile=conftest.$ac_objext
11463    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11464    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11465    # Insert the option either (1) after the last *FLAGS variable, or
11466    # (2) before a word containing "conftest.", or (3) at the end.
11467    # Note that $ac_compile itself does not contain backslashes and begins
11468    # with a dollar sign (not a hyphen), so the echo should work correctly.
11469    # The option is referenced via a variable to avoid confusing sed.
11470    lt_compile=`echo "$ac_compile" | $SED \
11471    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11472    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11473    -e 's:$: $lt_compiler_flag:'`
11474    (eval echo "\"\$as_me:11474: $lt_compile\"" >&5)
11475    (eval "$lt_compile" 2>conftest.err)
11476    ac_status=$?
11477    cat conftest.err >&5
11478    echo "$as_me:11478: \$? = $ac_status" >&5
11479    if (exit $ac_status) && test -s "$ac_outfile"; then
11480      # The compiler can only warn and ignore the option if not recognized
11481      # So say no if there are warnings other than the usual output.
11482      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11483      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11484      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11485        lt_prog_compiler_pic_works_CXX=yes
11486      fi
11487    fi
11488    $rm conftest*
11489
11490 fi
11491 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11492 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11493
11494 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11495     case $lt_prog_compiler_pic_CXX in
11496      "" | " "*) ;;
11497      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11498      esac
11499 else
11500     lt_prog_compiler_pic_CXX=
11501      lt_prog_compiler_can_build_shared_CXX=no
11502 fi
11503
11504 fi
11505 case $host_os in
11506   # For platforms which do not support PIC, -DPIC is meaningless:
11507   *djgpp*)
11508     lt_prog_compiler_pic_CXX=
11509     ;;
11510   *)
11511     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11512     ;;
11513 esac
11514
11515 #
11516 # Check to make sure the static flag actually works.
11517 #
11518 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11519 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11520 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11521 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11522   echo $ECHO_N "(cached) $ECHO_C" >&6
11523 else
11524   lt_prog_compiler_static_works_CXX=no
11525    save_LDFLAGS="$LDFLAGS"
11526    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11527    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11528    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11529      # The linker can only warn and ignore the option if not recognized
11530      # So say no if there are warnings
11531      if test -s conftest.err; then
11532        # Append any errors to the config.log.
11533        cat conftest.err 1>&5
11534        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11535        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11536        if diff conftest.exp conftest.er2 >/dev/null; then
11537          lt_prog_compiler_static_works_CXX=yes
11538        fi
11539      else
11540        lt_prog_compiler_static_works_CXX=yes
11541      fi
11542    fi
11543    $rm conftest*
11544    LDFLAGS="$save_LDFLAGS"
11545
11546 fi
11547 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11548 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11549
11550 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11551     :
11552 else
11553     lt_prog_compiler_static_CXX=
11554 fi
11555
11556
11557 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11558 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11559 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11560   echo $ECHO_N "(cached) $ECHO_C" >&6
11561 else
11562   lt_cv_prog_compiler_c_o_CXX=no
11563    $rm -r conftest 2>/dev/null
11564    mkdir conftest
11565    cd conftest
11566    mkdir out
11567    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11568
11569    lt_compiler_flag="-o out/conftest2.$ac_objext"
11570    # Insert the option either (1) after the last *FLAGS variable, or
11571    # (2) before a word containing "conftest.", or (3) at the end.
11572    # Note that $ac_compile itself does not contain backslashes and begins
11573    # with a dollar sign (not a hyphen), so the echo should work correctly.
11574    lt_compile=`echo "$ac_compile" | $SED \
11575    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11576    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11577    -e 's:$: $lt_compiler_flag:'`
11578    (eval echo "\"\$as_me:11578: $lt_compile\"" >&5)
11579    (eval "$lt_compile" 2>out/conftest.err)
11580    ac_status=$?
11581    cat out/conftest.err >&5
11582    echo "$as_me:11582: \$? = $ac_status" >&5
11583    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11584    then
11585      # The compiler can only warn and ignore the option if not recognized
11586      # So say no if there are warnings
11587      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11588      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11589      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11590        lt_cv_prog_compiler_c_o_CXX=yes
11591      fi
11592    fi
11593    chmod u+w . 2>&5
11594    $rm conftest*
11595    # SGI C++ compiler will create directory out/ii_files/ for
11596    # template instantiation
11597    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11598    $rm out/* && rmdir out
11599    cd ..
11600    rmdir conftest
11601    $rm conftest*
11602
11603 fi
11604 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11605 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11606
11607
11608 hard_links="nottested"
11609 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11610   # do not overwrite the value of need_locks provided by the user
11611   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11612 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11613   hard_links=yes
11614   $rm conftest*
11615   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11616   touch conftest.a
11617   ln conftest.a conftest.b 2>&5 || hard_links=no
11618   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11619   echo "$as_me:$LINENO: result: $hard_links" >&5
11620 echo "${ECHO_T}$hard_links" >&6
11621   if test "$hard_links" = no; then
11622     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11623 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11624     need_locks=warn
11625   fi
11626 else
11627   need_locks=no
11628 fi
11629
11630 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11631 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11632
11633   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11634   case $host_os in
11635   aix4* | aix5*)
11636     # If we're using GNU nm, then we don't want the "-C" option.
11637     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11638     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11639       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11640     else
11641       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11642     fi
11643     ;;
11644   pw32*)
11645     export_symbols_cmds_CXX="$ltdll_cmds"
11646   ;;
11647   cygwin* | mingw*)
11648     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11649   ;;
11650   linux* | k*bsd*-gnu)
11651     link_all_deplibs_CXX=no
11652   ;;
11653   *)
11654     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11655   ;;
11656   esac
11657
11658 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11659 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11660 test "$ld_shlibs_CXX" = no && can_build_shared=no
11661
11662 #
11663 # Do we need to explicitly link libc?
11664 #
11665 case "x$archive_cmds_need_lc_CXX" in
11666 x|xyes)
11667   # Assume -lc should be added
11668   archive_cmds_need_lc_CXX=yes
11669
11670   if test "$enable_shared" = yes && test "$GCC" = yes; then
11671     case $archive_cmds_CXX in
11672     *'~'*)
11673       # FIXME: we may have to deal with multi-command sequences.
11674       ;;
11675     '$CC '*)
11676       # Test whether the compiler implicitly links with -lc since on some
11677       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11678       # to ld, don't add -lc before -lgcc.
11679       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11680 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11681       $rm conftest*
11682       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11683
11684       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11685   (eval $ac_compile) 2>&5
11686   ac_status=$?
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); } 2>conftest.err; then
11689         soname=conftest
11690         lib=conftest
11691         libobjs=conftest.$ac_objext
11692         deplibs=
11693         wl=$lt_prog_compiler_wl_CXX
11694         pic_flag=$lt_prog_compiler_pic_CXX
11695         compiler_flags=-v
11696         linker_flags=-v
11697         verstring=
11698         output_objdir=.
11699         libname=conftest
11700         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11701         allow_undefined_flag_CXX=
11702         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11703   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11704   ac_status=$?
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); }
11707         then
11708           archive_cmds_need_lc_CXX=no
11709         else
11710           archive_cmds_need_lc_CXX=yes
11711         fi
11712         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11713       else
11714         cat conftest.err 1>&5
11715       fi
11716       $rm conftest*
11717       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11718 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11719       ;;
11720     esac
11721   fi
11722   ;;
11723 esac
11724
11725 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11726 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11727 library_names_spec=
11728 libname_spec='lib$name'
11729 soname_spec=
11730 shrext_cmds=".so"
11731 postinstall_cmds=
11732 postuninstall_cmds=
11733 finish_cmds=
11734 finish_eval=
11735 shlibpath_var=
11736 shlibpath_overrides_runpath=unknown
11737 version_type=none
11738 dynamic_linker="$host_os ld.so"
11739 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11740 if test "$GCC" = yes; then
11741   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11742   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11743     # if the path contains ";" then we assume it to be the separator
11744     # otherwise default to the standard path separator (i.e. ":") - it is
11745     # assumed that no part of a normal pathname contains ";" but that should
11746     # okay in the real world where ";" in dirpaths is itself problematic.
11747     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11748   else
11749     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11750   fi
11751 else
11752   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11753 fi
11754 need_lib_prefix=unknown
11755 hardcode_into_libs=no
11756
11757 # when you set need_version to no, make sure it does not cause -set_version
11758 # flags to be left without arguments
11759 need_version=unknown
11760
11761 case $host_os in
11762 aix3*)
11763   version_type=linux
11764   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11765   shlibpath_var=LIBPATH
11766
11767   # AIX 3 has no versioning support, so we append a major version to the name.
11768   soname_spec='${libname}${release}${shared_ext}$major'
11769   ;;
11770
11771 aix4* | aix5*)
11772   version_type=linux
11773   need_lib_prefix=no
11774   need_version=no
11775   hardcode_into_libs=yes
11776   if test "$host_cpu" = ia64; then
11777     # AIX 5 supports IA64
11778     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11779     shlibpath_var=LD_LIBRARY_PATH
11780   else
11781     # With GCC up to 2.95.x, collect2 would create an import file
11782     # for dependence libraries.  The import file would start with
11783     # the line `#! .'.  This would cause the generated library to
11784     # depend on `.', always an invalid library.  This was fixed in
11785     # development snapshots of GCC prior to 3.0.
11786     case $host_os in
11787       aix4 | aix4.[01] | aix4.[01].*)
11788       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11789            echo ' yes '
11790            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11791         :
11792       else
11793         can_build_shared=no
11794       fi
11795       ;;
11796     esac
11797     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11798     # soname into executable. Probably we can add versioning support to
11799     # collect2, so additional links can be useful in future.
11800     if test "$aix_use_runtimelinking" = yes; then
11801       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11802       # instead of lib<name>.a to let people know that these are not
11803       # typical AIX shared libraries.
11804       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11805     else
11806       # We preserve .a as extension for shared libraries through AIX4.2
11807       # and later when we are not doing run time linking.
11808       library_names_spec='${libname}${release}.a $libname.a'
11809       soname_spec='${libname}${release}${shared_ext}$major'
11810     fi
11811     shlibpath_var=LIBPATH
11812   fi
11813   ;;
11814
11815 amigaos*)
11816   library_names_spec='$libname.ixlibrary $libname.a'
11817   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11818   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'
11819   ;;
11820
11821 beos*)
11822   library_names_spec='${libname}${shared_ext}'
11823   dynamic_linker="$host_os ld.so"
11824   shlibpath_var=LIBRARY_PATH
11825   ;;
11826
11827 bsdi[45]*)
11828   version_type=linux
11829   need_version=no
11830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11831   soname_spec='${libname}${release}${shared_ext}$major'
11832   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11833   shlibpath_var=LD_LIBRARY_PATH
11834   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11835   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11836   # the default ld.so.conf also contains /usr/contrib/lib and
11837   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11838   # libtool to hard-code these into programs
11839   ;;
11840
11841 cygwin* | mingw* | pw32*)
11842   version_type=windows
11843   shrext_cmds=".dll"
11844   need_version=no
11845   need_lib_prefix=no
11846
11847   case $GCC,$host_os in
11848   yes,cygwin* | yes,mingw* | yes,pw32*)
11849     library_names_spec='$libname.dll.a'
11850     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11851     postinstall_cmds='base_file=`basename \${file}`~
11852       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11853       dldir=$destdir/`dirname \$dlpath`~
11854       test -d \$dldir || mkdir -p \$dldir~
11855       $install_prog $dir/$dlname \$dldir/$dlname~
11856       chmod a+x \$dldir/$dlname'
11857     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11858       dlpath=$dir/\$dldll~
11859        $rm \$dlpath'
11860     shlibpath_overrides_runpath=yes
11861
11862     case $host_os in
11863     cygwin*)
11864       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11865       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11866       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11867       ;;
11868     mingw*)
11869       # MinGW DLLs use traditional 'lib' prefix
11870       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11871       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11872       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11873         # It is most probably a Windows format PATH printed by
11874         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11875         # path with ; separators, and with drive letters. We can handle the
11876         # drive letters (cygwin fileutils understands them), so leave them,
11877         # especially as we might pass files found there to a mingw objdump,
11878         # which wouldn't understand a cygwinified path. Ahh.
11879         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11880       else
11881         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11882       fi
11883       ;;
11884     pw32*)
11885       # pw32 DLLs use 'pw' prefix rather than 'lib'
11886       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11887       ;;
11888     esac
11889     ;;
11890
11891   *)
11892     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11893     ;;
11894   esac
11895   dynamic_linker='Win32 ld.exe'
11896   # FIXME: first we should search . and the directory the executable is in
11897   shlibpath_var=PATH
11898   ;;
11899
11900 darwin* | rhapsody*)
11901   dynamic_linker="$host_os dyld"
11902   version_type=darwin
11903   need_lib_prefix=no
11904   need_version=no
11905   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11906   soname_spec='${libname}${release}${major}$shared_ext'
11907   shlibpath_overrides_runpath=yes
11908   shlibpath_var=DYLD_LIBRARY_PATH
11909   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11910   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11911   if test "$GCC" = yes; then
11912     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11913   else
11914     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11915   fi
11916   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11917   ;;
11918
11919 dgux*)
11920   version_type=linux
11921   need_lib_prefix=no
11922   need_version=no
11923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11924   soname_spec='${libname}${release}${shared_ext}$major'
11925   shlibpath_var=LD_LIBRARY_PATH
11926   ;;
11927
11928 freebsd1*)
11929   dynamic_linker=no
11930   ;;
11931
11932 freebsd* | dragonfly*)
11933   # DragonFly does not have aout.  When/if they implement a new
11934   # versioning mechanism, adjust this.
11935   if test -x /usr/bin/objformat; then
11936     objformat=`/usr/bin/objformat`
11937   else
11938     case $host_os in
11939     freebsd[123]*) objformat=aout ;;
11940     *) objformat=elf ;;
11941     esac
11942   fi
11943   version_type=freebsd-$objformat
11944   case $version_type in
11945     freebsd-elf*)
11946       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11947       need_version=no
11948       need_lib_prefix=no
11949       ;;
11950     freebsd-*)
11951       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11952       need_version=yes
11953       ;;
11954   esac
11955   shlibpath_var=LD_LIBRARY_PATH
11956   case $host_os in
11957   freebsd2*)
11958     shlibpath_overrides_runpath=yes
11959     ;;
11960   freebsd3.[01]* | freebsdelf3.[01]*)
11961     shlibpath_overrides_runpath=yes
11962     hardcode_into_libs=yes
11963     ;;
11964   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11965   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11966     shlibpath_overrides_runpath=no
11967     hardcode_into_libs=yes
11968     ;;
11969   freebsd*) # from 4.6 on
11970     shlibpath_overrides_runpath=yes
11971     hardcode_into_libs=yes
11972     ;;
11973   esac
11974   ;;
11975
11976 gnu*)
11977   version_type=linux
11978   need_lib_prefix=no
11979   need_version=no
11980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11981   soname_spec='${libname}${release}${shared_ext}$major'
11982   shlibpath_var=LD_LIBRARY_PATH
11983   hardcode_into_libs=yes
11984   ;;
11985
11986 hpux9* | hpux10* | hpux11*)
11987   # Give a soname corresponding to the major version so that dld.sl refuses to
11988   # link against other versions.
11989   version_type=sunos
11990   need_lib_prefix=no
11991   need_version=no
11992   case $host_cpu in
11993   ia64*)
11994     shrext_cmds='.so'
11995     hardcode_into_libs=yes
11996     dynamic_linker="$host_os dld.so"
11997     shlibpath_var=LD_LIBRARY_PATH
11998     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11999     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12000     soname_spec='${libname}${release}${shared_ext}$major'
12001     if test "X$HPUX_IA64_MODE" = X32; then
12002       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12003     else
12004       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12005     fi
12006     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12007     ;;
12008    hppa*64*)
12009      shrext_cmds='.sl'
12010      hardcode_into_libs=yes
12011      dynamic_linker="$host_os dld.sl"
12012      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12013      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12014      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12015      soname_spec='${libname}${release}${shared_ext}$major'
12016      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12017      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12018      ;;
12019    *)
12020     shrext_cmds='.sl'
12021     dynamic_linker="$host_os dld.sl"
12022     shlibpath_var=SHLIB_PATH
12023     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12024     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12025     soname_spec='${libname}${release}${shared_ext}$major'
12026     ;;
12027   esac
12028   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12029   postinstall_cmds='chmod 555 $lib'
12030   ;;
12031
12032 interix3*)
12033   version_type=linux
12034   need_lib_prefix=no
12035   need_version=no
12036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12037   soname_spec='${libname}${release}${shared_ext}$major'
12038   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12039   shlibpath_var=LD_LIBRARY_PATH
12040   shlibpath_overrides_runpath=no
12041   hardcode_into_libs=yes
12042   ;;
12043
12044 irix5* | irix6* | nonstopux*)
12045   case $host_os in
12046     nonstopux*) version_type=nonstopux ;;
12047     *)
12048         if test "$lt_cv_prog_gnu_ld" = yes; then
12049                 version_type=linux
12050         else
12051                 version_type=irix
12052         fi ;;
12053   esac
12054   need_lib_prefix=no
12055   need_version=no
12056   soname_spec='${libname}${release}${shared_ext}$major'
12057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12058   case $host_os in
12059   irix5* | nonstopux*)
12060     libsuff= shlibsuff=
12061     ;;
12062   *)
12063     case $LD in # libtool.m4 will add one of these switches to LD
12064     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12065       libsuff= shlibsuff= libmagic=32-bit;;
12066     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12067       libsuff=32 shlibsuff=N32 libmagic=N32;;
12068     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12069       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12070     *) libsuff= shlibsuff= libmagic=never-match;;
12071     esac
12072     ;;
12073   esac
12074   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12075   shlibpath_overrides_runpath=no
12076   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12077   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12078   hardcode_into_libs=yes
12079   ;;
12080
12081 # No shared lib support for Linux oldld, aout, or coff.
12082 linux*oldld* | linux*aout* | linux*coff*)
12083   dynamic_linker=no
12084   ;;
12085
12086 # This must be Linux ELF.
12087 linux* | k*bsd*-gnu)
12088   version_type=linux
12089   need_lib_prefix=no
12090   need_version=no
12091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12092   soname_spec='${libname}${release}${shared_ext}$major'
12093   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12094   shlibpath_var=LD_LIBRARY_PATH
12095   shlibpath_overrides_runpath=no
12096   # This implies no fast_install, which is unacceptable.
12097   # Some rework will be needed to allow for fast_install
12098   # before this can be enabled.
12099   hardcode_into_libs=yes
12100
12101   # Append ld.so.conf contents to the search path
12102   if test -f /etc/ld.so.conf; then
12103     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12104     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12105   fi
12106
12107   # We used to test for /lib/ld.so.1 and disable shared libraries on
12108   # powerpc, because MkLinux only supported shared libraries with the
12109   # GNU dynamic linker.  Since this was broken with cross compilers,
12110   # most powerpc-linux boxes support dynamic linking these days and
12111   # people can always --disable-shared, the test was removed, and we
12112   # assume the GNU/Linux dynamic linker is in use.
12113   dynamic_linker='GNU/Linux ld.so'
12114   ;;
12115
12116 netbsdelf*-gnu)
12117   version_type=linux
12118   need_lib_prefix=no
12119   need_version=no
12120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12121   soname_spec='${libname}${release}${shared_ext}$major'
12122   shlibpath_var=LD_LIBRARY_PATH
12123   shlibpath_overrides_runpath=no
12124   hardcode_into_libs=yes
12125   dynamic_linker='NetBSD ld.elf_so'
12126   ;;
12127
12128 netbsd*)
12129   version_type=sunos
12130   need_lib_prefix=no
12131   need_version=no
12132   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12133     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12134     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12135     dynamic_linker='NetBSD (a.out) ld.so'
12136   else
12137     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12138     soname_spec='${libname}${release}${shared_ext}$major'
12139     dynamic_linker='NetBSD ld.elf_so'
12140   fi
12141   shlibpath_var=LD_LIBRARY_PATH
12142   shlibpath_overrides_runpath=yes
12143   hardcode_into_libs=yes
12144   ;;
12145
12146 newsos6)
12147   version_type=linux
12148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12149   shlibpath_var=LD_LIBRARY_PATH
12150   shlibpath_overrides_runpath=yes
12151   ;;
12152
12153 nto-qnx*)
12154   version_type=linux
12155   need_lib_prefix=no
12156   need_version=no
12157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12158   soname_spec='${libname}${release}${shared_ext}$major'
12159   shlibpath_var=LD_LIBRARY_PATH
12160   shlibpath_overrides_runpath=yes
12161   ;;
12162
12163 openbsd*)
12164   version_type=sunos
12165   sys_lib_dlsearch_path_spec="/usr/lib"
12166   need_lib_prefix=no
12167   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12168   case $host_os in
12169     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12170     *)                         need_version=no  ;;
12171   esac
12172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12173   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12174   shlibpath_var=LD_LIBRARY_PATH
12175   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12176     case $host_os in
12177       openbsd2.[89] | openbsd2.[89].*)
12178         shlibpath_overrides_runpath=no
12179         ;;
12180       *)
12181         shlibpath_overrides_runpath=yes
12182         ;;
12183       esac
12184   else
12185     shlibpath_overrides_runpath=yes
12186   fi
12187   ;;
12188
12189 os2*)
12190   libname_spec='$name'
12191   shrext_cmds=".dll"
12192   need_lib_prefix=no
12193   library_names_spec='$libname${shared_ext} $libname.a'
12194   dynamic_linker='OS/2 ld.exe'
12195   shlibpath_var=LIBPATH
12196   ;;
12197
12198 osf3* | osf4* | osf5*)
12199   version_type=osf
12200   need_lib_prefix=no
12201   need_version=no
12202   soname_spec='${libname}${release}${shared_ext}$major'
12203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12204   shlibpath_var=LD_LIBRARY_PATH
12205   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12206   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12207   ;;
12208
12209 solaris*)
12210   version_type=linux
12211   need_lib_prefix=no
12212   need_version=no
12213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12214   soname_spec='${libname}${release}${shared_ext}$major'
12215   shlibpath_var=LD_LIBRARY_PATH
12216   shlibpath_overrides_runpath=yes
12217   hardcode_into_libs=yes
12218   # ldd complains unless libraries are executable
12219   postinstall_cmds='chmod +x $lib'
12220   ;;
12221
12222 sunos4*)
12223   version_type=sunos
12224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12225   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12226   shlibpath_var=LD_LIBRARY_PATH
12227   shlibpath_overrides_runpath=yes
12228   if test "$with_gnu_ld" = yes; then
12229     need_lib_prefix=no
12230   fi
12231   need_version=yes
12232   ;;
12233
12234 sysv4 | sysv4.3*)
12235   version_type=linux
12236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12237   soname_spec='${libname}${release}${shared_ext}$major'
12238   shlibpath_var=LD_LIBRARY_PATH
12239   case $host_vendor in
12240     sni)
12241       shlibpath_overrides_runpath=no
12242       need_lib_prefix=no
12243       export_dynamic_flag_spec='${wl}-Blargedynsym'
12244       runpath_var=LD_RUN_PATH
12245       ;;
12246     siemens)
12247       need_lib_prefix=no
12248       ;;
12249     motorola)
12250       need_lib_prefix=no
12251       need_version=no
12252       shlibpath_overrides_runpath=no
12253       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12254       ;;
12255   esac
12256   ;;
12257
12258 sysv4*MP*)
12259   if test -d /usr/nec ;then
12260     version_type=linux
12261     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12262     soname_spec='$libname${shared_ext}.$major'
12263     shlibpath_var=LD_LIBRARY_PATH
12264   fi
12265   ;;
12266
12267 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12268   version_type=freebsd-elf
12269   need_lib_prefix=no
12270   need_version=no
12271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12272   soname_spec='${libname}${release}${shared_ext}$major'
12273   shlibpath_var=LD_LIBRARY_PATH
12274   hardcode_into_libs=yes
12275   if test "$with_gnu_ld" = yes; then
12276     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12277     shlibpath_overrides_runpath=no
12278   else
12279     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12280     shlibpath_overrides_runpath=yes
12281     case $host_os in
12282       sco3.2v5*)
12283         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12284         ;;
12285     esac
12286   fi
12287   sys_lib_dlsearch_path_spec='/usr/lib'
12288   ;;
12289
12290 uts4*)
12291   version_type=linux
12292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12293   soname_spec='${libname}${release}${shared_ext}$major'
12294   shlibpath_var=LD_LIBRARY_PATH
12295   ;;
12296
12297 *)
12298   dynamic_linker=no
12299   ;;
12300 esac
12301 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12302 echo "${ECHO_T}$dynamic_linker" >&6
12303 test "$dynamic_linker" = no && can_build_shared=no
12304
12305 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12306 if test "$GCC" = yes; then
12307   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12308 fi
12309
12310 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12311 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12312 hardcode_action_CXX=
12313 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12314    test -n "$runpath_var_CXX" || \
12315    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12316
12317   # We can hardcode non-existant directories.
12318   if test "$hardcode_direct_CXX" != no &&
12319      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12320      # have to relink, otherwise we might link with an installed library
12321      # when we should be linking with a yet-to-be-installed one
12322      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12323      test "$hardcode_minus_L_CXX" != no; then
12324     # Linking always hardcodes the temporary library directory.
12325     hardcode_action_CXX=relink
12326   else
12327     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12328     hardcode_action_CXX=immediate
12329   fi
12330 else
12331   # We cannot hardcode anything, or else we can only hardcode existing
12332   # directories.
12333   hardcode_action_CXX=unsupported
12334 fi
12335 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12336 echo "${ECHO_T}$hardcode_action_CXX" >&6
12337
12338 if test "$hardcode_action_CXX" = relink; then
12339   # Fast installation is not supported
12340   enable_fast_install=no
12341 elif test "$shlibpath_overrides_runpath" = yes ||
12342      test "$enable_shared" = no; then
12343   # Fast installation is not necessary
12344   enable_fast_install=needless
12345 fi
12346
12347
12348 # The else clause should only fire when bootstrapping the
12349 # libtool distribution, otherwise you forgot to ship ltmain.sh
12350 # with your package, and you will get complaints that there are
12351 # no rules to generate ltmain.sh.
12352 if test -f "$ltmain"; then
12353   # See if we are running on zsh, and set the options which allow our commands through
12354   # without removal of \ escapes.
12355   if test -n "${ZSH_VERSION+set}" ; then
12356     setopt NO_GLOB_SUBST
12357   fi
12358   # Now quote all the things that may contain metacharacters while being
12359   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12360   # variables and quote the copies for generation of the libtool script.
12361   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12362     SED SHELL STRIP \
12363     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12364     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12365     deplibs_check_method reload_flag reload_cmds need_locks \
12366     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12367     lt_cv_sys_global_symbol_to_c_name_address \
12368     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12369     old_postinstall_cmds old_postuninstall_cmds \
12370     compiler_CXX \
12371     CC_CXX \
12372     LD_CXX \
12373     lt_prog_compiler_wl_CXX \
12374     lt_prog_compiler_pic_CXX \
12375     lt_prog_compiler_static_CXX \
12376     lt_prog_compiler_no_builtin_flag_CXX \
12377     export_dynamic_flag_spec_CXX \
12378     thread_safe_flag_spec_CXX \
12379     whole_archive_flag_spec_CXX \
12380     enable_shared_with_static_runtimes_CXX \
12381     old_archive_cmds_CXX \
12382     old_archive_from_new_cmds_CXX \
12383     predep_objects_CXX \
12384     postdep_objects_CXX \
12385     predeps_CXX \
12386     postdeps_CXX \
12387     compiler_lib_search_path_CXX \
12388     archive_cmds_CXX \
12389     archive_expsym_cmds_CXX \
12390     postinstall_cmds_CXX \
12391     postuninstall_cmds_CXX \
12392     old_archive_from_expsyms_cmds_CXX \
12393     allow_undefined_flag_CXX \
12394     no_undefined_flag_CXX \
12395     export_symbols_cmds_CXX \
12396     hardcode_libdir_flag_spec_CXX \
12397     hardcode_libdir_flag_spec_ld_CXX \
12398     hardcode_libdir_separator_CXX \
12399     hardcode_automatic_CXX \
12400     module_cmds_CXX \
12401     module_expsym_cmds_CXX \
12402     lt_cv_prog_compiler_c_o_CXX \
12403     exclude_expsyms_CXX \
12404     include_expsyms_CXX; do
12405
12406     case $var in
12407     old_archive_cmds_CXX | \
12408     old_archive_from_new_cmds_CXX | \
12409     archive_cmds_CXX | \
12410     archive_expsym_cmds_CXX | \
12411     module_cmds_CXX | \
12412     module_expsym_cmds_CXX | \
12413     old_archive_from_expsyms_cmds_CXX | \
12414     export_symbols_cmds_CXX | \
12415     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12416     postinstall_cmds | postuninstall_cmds | \
12417     old_postinstall_cmds | old_postuninstall_cmds | \
12418     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12419       # Double-quote double-evaled strings.
12420       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12421       ;;
12422     *)
12423       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12424       ;;
12425     esac
12426   done
12427
12428   case $lt_echo in
12429   *'\$0 --fallback-echo"')
12430     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12431     ;;
12432   esac
12433
12434 cfgfile="$ofile"
12435
12436   cat <<__EOF__ >> "$cfgfile"
12437 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12438
12439 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12440
12441 # Shell to use when invoking shell scripts.
12442 SHELL=$lt_SHELL
12443
12444 # Whether or not to build shared libraries.
12445 build_libtool_libs=$enable_shared
12446
12447 # Whether or not to build static libraries.
12448 build_old_libs=$enable_static
12449
12450 # Whether or not to add -lc for building shared libraries.
12451 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12452
12453 # Whether or not to disallow shared libs when runtime libs are static
12454 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12455
12456 # Whether or not to optimize for fast installation.
12457 fast_install=$enable_fast_install
12458
12459 # The host system.
12460 host_alias=$host_alias
12461 host=$host
12462 host_os=$host_os
12463
12464 # The build system.
12465 build_alias=$build_alias
12466 build=$build
12467 build_os=$build_os
12468
12469 # An echo program that does not interpret backslashes.
12470 echo=$lt_echo
12471
12472 # The archiver.
12473 AR=$lt_AR
12474 AR_FLAGS=$lt_AR_FLAGS
12475
12476 # A C compiler.
12477 LTCC=$lt_LTCC
12478
12479 # LTCC compiler flags.
12480 LTCFLAGS=$lt_LTCFLAGS
12481
12482 # A language-specific compiler.
12483 CC=$lt_compiler_CXX
12484
12485 # Is the compiler the GNU C compiler?
12486 with_gcc=$GCC_CXX
12487
12488 # An ERE matcher.
12489 EGREP=$lt_EGREP
12490
12491 # The linker used to build libraries.
12492 LD=$lt_LD_CXX
12493
12494 # Whether we need hard or soft links.
12495 LN_S=$lt_LN_S
12496
12497 # A BSD-compatible nm program.
12498 NM=$lt_NM
12499
12500 # A symbol stripping program
12501 STRIP=$lt_STRIP
12502
12503 # Used to examine libraries when file_magic_cmd begins "file"
12504 MAGIC_CMD=$MAGIC_CMD
12505
12506 # Used on cygwin: DLL creation program.
12507 DLLTOOL="$DLLTOOL"
12508
12509 # Used on cygwin: object dumper.
12510 OBJDUMP="$OBJDUMP"
12511
12512 # Used on cygwin: assembler.
12513 AS="$AS"
12514
12515 # The name of the directory that contains temporary libtool files.
12516 objdir=$objdir
12517
12518 # How to create reloadable object files.
12519 reload_flag=$lt_reload_flag
12520 reload_cmds=$lt_reload_cmds
12521
12522 # How to pass a linker flag through the compiler.
12523 wl=$lt_lt_prog_compiler_wl_CXX
12524
12525 # Object file suffix (normally "o").
12526 objext="$ac_objext"
12527
12528 # Old archive suffix (normally "a").
12529 libext="$libext"
12530
12531 # Shared library suffix (normally ".so").
12532 shrext_cmds='$shrext_cmds'
12533
12534 # Executable file suffix (normally "").
12535 exeext="$exeext"
12536
12537 # Additional compiler flags for building library objects.
12538 pic_flag=$lt_lt_prog_compiler_pic_CXX
12539 pic_mode=$pic_mode
12540
12541 # What is the maximum length of a command?
12542 max_cmd_len=$lt_cv_sys_max_cmd_len
12543
12544 # Does compiler simultaneously support -c and -o options?
12545 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12546
12547 # Must we lock files when doing compilation?
12548 need_locks=$lt_need_locks
12549
12550 # Do we need the lib prefix for modules?
12551 need_lib_prefix=$need_lib_prefix
12552
12553 # Do we need a version for libraries?
12554 need_version=$need_version
12555
12556 # Whether dlopen is supported.
12557 dlopen_support=$enable_dlopen
12558
12559 # Whether dlopen of programs is supported.
12560 dlopen_self=$enable_dlopen_self
12561
12562 # Whether dlopen of statically linked programs is supported.
12563 dlopen_self_static=$enable_dlopen_self_static
12564
12565 # Compiler flag to prevent dynamic linking.
12566 link_static_flag=$lt_lt_prog_compiler_static_CXX
12567
12568 # Compiler flag to turn off builtin functions.
12569 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12570
12571 # Compiler flag to allow reflexive dlopens.
12572 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12573
12574 # Compiler flag to generate shared objects directly from archives.
12575 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12576
12577 # Compiler flag to generate thread-safe objects.
12578 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12579
12580 # Library versioning type.
12581 version_type=$version_type
12582
12583 # Format of library name prefix.
12584 libname_spec=$lt_libname_spec
12585
12586 # List of archive names.  First name is the real one, the rest are links.
12587 # The last name is the one that the linker finds with -lNAME.
12588 library_names_spec=$lt_library_names_spec
12589
12590 # The coded name of the library, if different from the real name.
12591 soname_spec=$lt_soname_spec
12592
12593 # Commands used to build and install an old-style archive.
12594 RANLIB=$lt_RANLIB
12595 old_archive_cmds=$lt_old_archive_cmds_CXX
12596 old_postinstall_cmds=$lt_old_postinstall_cmds
12597 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12598
12599 # Create an old-style archive from a shared archive.
12600 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12601
12602 # Create a temporary old-style archive to link instead of a shared archive.
12603 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12604
12605 # Commands used to build and install a shared archive.
12606 archive_cmds=$lt_archive_cmds_CXX
12607 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12608 postinstall_cmds=$lt_postinstall_cmds
12609 postuninstall_cmds=$lt_postuninstall_cmds
12610
12611 # Commands used to build a loadable module (assumed same as above if empty)
12612 module_cmds=$lt_module_cmds_CXX
12613 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12614
12615 # Commands to strip libraries.
12616 old_striplib=$lt_old_striplib
12617 striplib=$lt_striplib
12618
12619 # Dependencies to place before the objects being linked to create a
12620 # shared library.
12621 predep_objects=$lt_predep_objects_CXX
12622
12623 # Dependencies to place after the objects being linked to create a
12624 # shared library.
12625 postdep_objects=$lt_postdep_objects_CXX
12626
12627 # Dependencies to place before the objects being linked to create a
12628 # shared library.
12629 predeps=$lt_predeps_CXX
12630
12631 # Dependencies to place after the objects being linked to create a
12632 # shared library.
12633 postdeps=$lt_postdeps_CXX
12634
12635 # The library search path used internally by the compiler when linking
12636 # a shared library.
12637 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12638
12639 # Method to check whether dependent libraries are shared objects.
12640 deplibs_check_method=$lt_deplibs_check_method
12641
12642 # Command to use when deplibs_check_method == file_magic.
12643 file_magic_cmd=$lt_file_magic_cmd
12644
12645 # Flag that allows shared libraries with undefined symbols to be built.
12646 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12647
12648 # Flag that forces no undefined symbols.
12649 no_undefined_flag=$lt_no_undefined_flag_CXX
12650
12651 # Commands used to finish a libtool library installation in a directory.
12652 finish_cmds=$lt_finish_cmds
12653
12654 # Same as above, but a single script fragment to be evaled but not shown.
12655 finish_eval=$lt_finish_eval
12656
12657 # Take the output of nm and produce a listing of raw symbols and C names.
12658 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12659
12660 # Transform the output of nm in a proper C declaration
12661 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12662
12663 # Transform the output of nm in a C name address pair
12664 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12665
12666 # This is the shared library runtime path variable.
12667 runpath_var=$runpath_var
12668
12669 # This is the shared library path variable.
12670 shlibpath_var=$shlibpath_var
12671
12672 # Is shlibpath searched before the hard-coded library search path?
12673 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12674
12675 # How to hardcode a shared library path into an executable.
12676 hardcode_action=$hardcode_action_CXX
12677
12678 # Whether we should hardcode library paths into libraries.
12679 hardcode_into_libs=$hardcode_into_libs
12680
12681 # Flag to hardcode \$libdir into a binary during linking.
12682 # This must work even if \$libdir does not exist.
12683 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12684
12685 # If ld is used when linking, flag to hardcode \$libdir into
12686 # a binary during linking. This must work even if \$libdir does
12687 # not exist.
12688 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12689
12690 # Whether we need a single -rpath flag with a separated argument.
12691 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12692
12693 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12694 # resulting binary.
12695 hardcode_direct=$hardcode_direct_CXX
12696
12697 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12698 # resulting binary.
12699 hardcode_minus_L=$hardcode_minus_L_CXX
12700
12701 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12702 # the resulting binary.
12703 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12704
12705 # Set to yes if building a shared library automatically hardcodes DIR into the library
12706 # and all subsequent libraries and executables linked against it.
12707 hardcode_automatic=$hardcode_automatic_CXX
12708
12709 # Variables whose values should be saved in libtool wrapper scripts and
12710 # restored at relink time.
12711 variables_saved_for_relink="$variables_saved_for_relink"
12712
12713 # Whether libtool must link a program against all its dependency libraries.
12714 link_all_deplibs=$link_all_deplibs_CXX
12715
12716 # Compile-time system search path for libraries
12717 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12718
12719 # Run-time system search path for libraries
12720 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12721
12722 # Fix the shell variable \$srcfile for the compiler.
12723 fix_srcfile_path="$fix_srcfile_path_CXX"
12724
12725 # Set to yes if exported symbols are required.
12726 always_export_symbols=$always_export_symbols_CXX
12727
12728 # The commands to list exported symbols.
12729 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12730
12731 # The commands to extract the exported symbol list from a shared archive.
12732 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12733
12734 # Symbols that should not be listed in the preloaded symbols.
12735 exclude_expsyms=$lt_exclude_expsyms_CXX
12736
12737 # Symbols that must always be exported.
12738 include_expsyms=$lt_include_expsyms_CXX
12739
12740 # ### END LIBTOOL TAG CONFIG: $tagname
12741
12742 __EOF__
12743
12744
12745 else
12746   # If there is no Makefile yet, we rely on a make rule to execute
12747   # `config.status --recheck' to rerun these tests and create the
12748   # libtool script then.
12749   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12750   if test -f "$ltmain_in"; then
12751     test -f Makefile && make "$ltmain"
12752   fi
12753 fi
12754
12755
12756 ac_ext=c
12757 ac_cpp='$CPP $CPPFLAGS'
12758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12761
12762 CC=$lt_save_CC
12763 LDCXX=$LD
12764 LD=$lt_save_LD
12765 GCC=$lt_save_GCC
12766 with_gnu_ldcxx=$with_gnu_ld
12767 with_gnu_ld=$lt_save_with_gnu_ld
12768 lt_cv_path_LDCXX=$lt_cv_path_LD
12769 lt_cv_path_LD=$lt_save_path_LD
12770 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12771 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12772
12773         else
12774           tagname=""
12775         fi
12776         ;;
12777
12778       F77)
12779         if test -n "$F77" && test "X$F77" != "Xno"; then
12780
12781 ac_ext=f
12782 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12783 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12784 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12785
12786
12787 archive_cmds_need_lc_F77=no
12788 allow_undefined_flag_F77=
12789 always_export_symbols_F77=no
12790 archive_expsym_cmds_F77=
12791 export_dynamic_flag_spec_F77=
12792 hardcode_direct_F77=no
12793 hardcode_libdir_flag_spec_F77=
12794 hardcode_libdir_flag_spec_ld_F77=
12795 hardcode_libdir_separator_F77=
12796 hardcode_minus_L_F77=no
12797 hardcode_automatic_F77=no
12798 module_cmds_F77=
12799 module_expsym_cmds_F77=
12800 link_all_deplibs_F77=unknown
12801 old_archive_cmds_F77=$old_archive_cmds
12802 no_undefined_flag_F77=
12803 whole_archive_flag_spec_F77=
12804 enable_shared_with_static_runtimes_F77=no
12805
12806 # Source file extension for f77 test sources.
12807 ac_ext=f
12808
12809 # Object file extension for compiled f77 test sources.
12810 objext=o
12811 objext_F77=$objext
12812
12813 # Code to be used in simple compile tests
12814 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12815
12816 # Code to be used in simple link tests
12817 lt_simple_link_test_code="      program t\n      end\n"
12818
12819 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12820
12821 # If no C compiler was specified, use CC.
12822 LTCC=${LTCC-"$CC"}
12823
12824 # If no C compiler flags were specified, use CFLAGS.
12825 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12826
12827 # Allow CC to be a program name with arguments.
12828 compiler=$CC
12829
12830
12831 # save warnings/boilerplate of simple test code
12832 ac_outfile=conftest.$ac_objext
12833 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12834 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12835 _lt_compiler_boilerplate=`cat conftest.err`
12836 $rm conftest*
12837
12838 ac_outfile=conftest.$ac_objext
12839 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12840 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12841 _lt_linker_boilerplate=`cat conftest.err`
12842 $rm conftest*
12843
12844
12845 # Allow CC to be a program name with arguments.
12846 lt_save_CC="$CC"
12847 CC=${F77-"f77"}
12848 compiler=$CC
12849 compiler_F77=$CC
12850 for cc_temp in $compiler""; do
12851   case $cc_temp in
12852     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12853     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12854     \-*) ;;
12855     *) break;;
12856   esac
12857 done
12858 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12859
12860
12861 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12862 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12863 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12864 echo "${ECHO_T}$can_build_shared" >&6
12865
12866 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12867 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12868 test "$can_build_shared" = "no" && enable_shared=no
12869
12870 # On AIX, shared libraries and static libraries use the same namespace, and
12871 # are all built from PIC.
12872 case $host_os in
12873 aix3*)
12874   test "$enable_shared" = yes && enable_static=no
12875   if test -n "$RANLIB"; then
12876     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12877     postinstall_cmds='$RANLIB $lib'
12878   fi
12879   ;;
12880 aix4* | aix5*)
12881   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12882     test "$enable_shared" = yes && enable_static=no
12883   fi
12884   ;;
12885 esac
12886 echo "$as_me:$LINENO: result: $enable_shared" >&5
12887 echo "${ECHO_T}$enable_shared" >&6
12888
12889 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12890 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12891 # Make sure either enable_shared or enable_static is yes.
12892 test "$enable_shared" = yes || enable_static=yes
12893 echo "$as_me:$LINENO: result: $enable_static" >&5
12894 echo "${ECHO_T}$enable_static" >&6
12895
12896 GCC_F77="$G77"
12897 LD_F77="$LD"
12898
12899 lt_prog_compiler_wl_F77=
12900 lt_prog_compiler_pic_F77=
12901 lt_prog_compiler_static_F77=
12902
12903 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12904 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12905
12906   if test "$GCC" = yes; then
12907     lt_prog_compiler_wl_F77='-Wl,'
12908     lt_prog_compiler_static_F77='-static'
12909
12910     case $host_os in
12911       aix*)
12912       # All AIX code is PIC.
12913       if test "$host_cpu" = ia64; then
12914         # AIX 5 now supports IA64 processor
12915         lt_prog_compiler_static_F77='-Bstatic'
12916       fi
12917       ;;
12918
12919     amigaos*)
12920       # FIXME: we need at least 68020 code to build shared libraries, but
12921       # adding the `-m68020' flag to GCC prevents building anything better,
12922       # like `-m68040'.
12923       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12924       ;;
12925
12926     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12927       # PIC is the default for these OSes.
12928       ;;
12929
12930     mingw* | pw32* | os2*)
12931       # This hack is so that the source file can tell whether it is being
12932       # built for inclusion in a dll (and should export symbols for example).
12933       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12934       ;;
12935
12936     darwin* | rhapsody*)
12937       # PIC is the default on this platform
12938       # Common symbols not allowed in MH_DYLIB files
12939       lt_prog_compiler_pic_F77='-fno-common'
12940       ;;
12941
12942     interix3*)
12943       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12944       # Instead, we relocate shared libraries at runtime.
12945       ;;
12946
12947     msdosdjgpp*)
12948       # Just because we use GCC doesn't mean we suddenly get shared libraries
12949       # on systems that don't support them.
12950       lt_prog_compiler_can_build_shared_F77=no
12951       enable_shared=no
12952       ;;
12953
12954     sysv4*MP*)
12955       if test -d /usr/nec; then
12956         lt_prog_compiler_pic_F77=-Kconform_pic
12957       fi
12958       ;;
12959
12960     hpux*)
12961       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12962       # not for PA HP-UX.
12963       case $host_cpu in
12964       hppa*64*|ia64*)
12965         # +Z the default
12966         ;;
12967       *)
12968         lt_prog_compiler_pic_F77='-fPIC'
12969         ;;
12970       esac
12971       ;;
12972
12973     *)
12974       lt_prog_compiler_pic_F77='-fPIC'
12975       ;;
12976     esac
12977   else
12978     # PORTME Check for flag to pass linker flags through the system compiler.
12979     case $host_os in
12980     aix*)
12981       lt_prog_compiler_wl_F77='-Wl,'
12982       if test "$host_cpu" = ia64; then
12983         # AIX 5 now supports IA64 processor
12984         lt_prog_compiler_static_F77='-Bstatic'
12985       else
12986         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12987       fi
12988       ;;
12989       darwin*)
12990         # PIC is the default on this platform
12991         # Common symbols not allowed in MH_DYLIB files
12992        case $cc_basename in
12993          xlc*)
12994          lt_prog_compiler_pic_F77='-qnocommon'
12995          lt_prog_compiler_wl_F77='-Wl,'
12996          ;;
12997        esac
12998        ;;
12999
13000     mingw* | pw32* | os2*)
13001       # This hack is so that the source file can tell whether it is being
13002       # built for inclusion in a dll (and should export symbols for example).
13003       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13004       ;;
13005
13006     hpux9* | hpux10* | hpux11*)
13007       lt_prog_compiler_wl_F77='-Wl,'
13008       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13009       # not for PA HP-UX.
13010       case $host_cpu in
13011       hppa*64*|ia64*)
13012         # +Z the default
13013         ;;
13014       *)
13015         lt_prog_compiler_pic_F77='+Z'
13016         ;;
13017       esac
13018       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13019       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13020       ;;
13021
13022     irix5* | irix6* | nonstopux*)
13023       lt_prog_compiler_wl_F77='-Wl,'
13024       # PIC (with -KPIC) is the default.
13025       lt_prog_compiler_static_F77='-non_shared'
13026       ;;
13027
13028     newsos6)
13029       lt_prog_compiler_pic_F77='-KPIC'
13030       lt_prog_compiler_static_F77='-Bstatic'
13031       ;;
13032
13033     linux* | k*bsd*-gnu)
13034       case $cc_basename in
13035       icc* | ecc*)
13036         lt_prog_compiler_wl_F77='-Wl,'
13037         lt_prog_compiler_pic_F77='-KPIC'
13038         lt_prog_compiler_static_F77='-static'
13039         ;;
13040       pgcc* | pgf77* | pgf90* | pgf95*)
13041         # Portland Group compilers (*not* the Pentium gcc compiler,
13042         # which looks to be a dead project)
13043         lt_prog_compiler_wl_F77='-Wl,'
13044         lt_prog_compiler_pic_F77='-fpic'
13045         lt_prog_compiler_static_F77='-Bstatic'
13046         ;;
13047       ccc*)
13048         lt_prog_compiler_wl_F77='-Wl,'
13049         # All Alpha code is PIC.
13050         lt_prog_compiler_static_F77='-non_shared'
13051         ;;
13052       esac
13053       ;;
13054
13055     osf3* | osf4* | osf5*)
13056       lt_prog_compiler_wl_F77='-Wl,'
13057       # All OSF/1 code is PIC.
13058       lt_prog_compiler_static_F77='-non_shared'
13059       ;;
13060
13061     solaris*)
13062       lt_prog_compiler_pic_F77='-KPIC'
13063       lt_prog_compiler_static_F77='-Bstatic'
13064       case $cc_basename in
13065       f77* | f90* | f95*)
13066         lt_prog_compiler_wl_F77='-Qoption ld ';;
13067       *)
13068         lt_prog_compiler_wl_F77='-Wl,';;
13069       esac
13070       ;;
13071
13072     sunos4*)
13073       lt_prog_compiler_wl_F77='-Qoption ld '
13074       lt_prog_compiler_pic_F77='-PIC'
13075       lt_prog_compiler_static_F77='-Bstatic'
13076       ;;
13077
13078     sysv4 | sysv4.2uw2* | sysv4.3*)
13079       lt_prog_compiler_wl_F77='-Wl,'
13080       lt_prog_compiler_pic_F77='-KPIC'
13081       lt_prog_compiler_static_F77='-Bstatic'
13082       ;;
13083
13084     sysv4*MP*)
13085       if test -d /usr/nec ;then
13086         lt_prog_compiler_pic_F77='-Kconform_pic'
13087         lt_prog_compiler_static_F77='-Bstatic'
13088       fi
13089       ;;
13090
13091     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13092       lt_prog_compiler_wl_F77='-Wl,'
13093       lt_prog_compiler_pic_F77='-KPIC'
13094       lt_prog_compiler_static_F77='-Bstatic'
13095       ;;
13096
13097     unicos*)
13098       lt_prog_compiler_wl_F77='-Wl,'
13099       lt_prog_compiler_can_build_shared_F77=no
13100       ;;
13101
13102     uts4*)
13103       lt_prog_compiler_pic_F77='-pic'
13104       lt_prog_compiler_static_F77='-Bstatic'
13105       ;;
13106
13107     *)
13108       lt_prog_compiler_can_build_shared_F77=no
13109       ;;
13110     esac
13111   fi
13112
13113 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13114 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13115
13116 #
13117 # Check to make sure the PIC flag actually works.
13118 #
13119 if test -n "$lt_prog_compiler_pic_F77"; then
13120
13121 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13122 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13123 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13124   echo $ECHO_N "(cached) $ECHO_C" >&6
13125 else
13126   lt_prog_compiler_pic_works_F77=no
13127   ac_outfile=conftest.$ac_objext
13128    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13129    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13130    # Insert the option either (1) after the last *FLAGS variable, or
13131    # (2) before a word containing "conftest.", or (3) at the end.
13132    # Note that $ac_compile itself does not contain backslashes and begins
13133    # with a dollar sign (not a hyphen), so the echo should work correctly.
13134    # The option is referenced via a variable to avoid confusing sed.
13135    lt_compile=`echo "$ac_compile" | $SED \
13136    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13137    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13138    -e 's:$: $lt_compiler_flag:'`
13139    (eval echo "\"\$as_me:13139: $lt_compile\"" >&5)
13140    (eval "$lt_compile" 2>conftest.err)
13141    ac_status=$?
13142    cat conftest.err >&5
13143    echo "$as_me:13143: \$? = $ac_status" >&5
13144    if (exit $ac_status) && test -s "$ac_outfile"; then
13145      # The compiler can only warn and ignore the option if not recognized
13146      # So say no if there are warnings other than the usual output.
13147      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13148      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13149      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13150        lt_prog_compiler_pic_works_F77=yes
13151      fi
13152    fi
13153    $rm conftest*
13154
13155 fi
13156 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13157 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13158
13159 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13160     case $lt_prog_compiler_pic_F77 in
13161      "" | " "*) ;;
13162      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13163      esac
13164 else
13165     lt_prog_compiler_pic_F77=
13166      lt_prog_compiler_can_build_shared_F77=no
13167 fi
13168
13169 fi
13170 case $host_os in
13171   # For platforms which do not support PIC, -DPIC is meaningless:
13172   *djgpp*)
13173     lt_prog_compiler_pic_F77=
13174     ;;
13175   *)
13176     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13177     ;;
13178 esac
13179
13180 #
13181 # Check to make sure the static flag actually works.
13182 #
13183 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13184 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13185 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13186 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13187   echo $ECHO_N "(cached) $ECHO_C" >&6
13188 else
13189   lt_prog_compiler_static_works_F77=no
13190    save_LDFLAGS="$LDFLAGS"
13191    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13192    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13193    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13194      # The linker can only warn and ignore the option if not recognized
13195      # So say no if there are warnings
13196      if test -s conftest.err; then
13197        # Append any errors to the config.log.
13198        cat conftest.err 1>&5
13199        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13200        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13201        if diff conftest.exp conftest.er2 >/dev/null; then
13202          lt_prog_compiler_static_works_F77=yes
13203        fi
13204      else
13205        lt_prog_compiler_static_works_F77=yes
13206      fi
13207    fi
13208    $rm conftest*
13209    LDFLAGS="$save_LDFLAGS"
13210
13211 fi
13212 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13213 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13214
13215 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13216     :
13217 else
13218     lt_prog_compiler_static_F77=
13219 fi
13220
13221
13222 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13223 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13224 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13225   echo $ECHO_N "(cached) $ECHO_C" >&6
13226 else
13227   lt_cv_prog_compiler_c_o_F77=no
13228    $rm -r conftest 2>/dev/null
13229    mkdir conftest
13230    cd conftest
13231    mkdir out
13232    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13233
13234    lt_compiler_flag="-o out/conftest2.$ac_objext"
13235    # Insert the option either (1) after the last *FLAGS variable, or
13236    # (2) before a word containing "conftest.", or (3) at the end.
13237    # Note that $ac_compile itself does not contain backslashes and begins
13238    # with a dollar sign (not a hyphen), so the echo should work correctly.
13239    lt_compile=`echo "$ac_compile" | $SED \
13240    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13241    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13242    -e 's:$: $lt_compiler_flag:'`
13243    (eval echo "\"\$as_me:13243: $lt_compile\"" >&5)
13244    (eval "$lt_compile" 2>out/conftest.err)
13245    ac_status=$?
13246    cat out/conftest.err >&5
13247    echo "$as_me:13247: \$? = $ac_status" >&5
13248    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13249    then
13250      # The compiler can only warn and ignore the option if not recognized
13251      # So say no if there are warnings
13252      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13253      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13254      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13255        lt_cv_prog_compiler_c_o_F77=yes
13256      fi
13257    fi
13258    chmod u+w . 2>&5
13259    $rm conftest*
13260    # SGI C++ compiler will create directory out/ii_files/ for
13261    # template instantiation
13262    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13263    $rm out/* && rmdir out
13264    cd ..
13265    rmdir conftest
13266    $rm conftest*
13267
13268 fi
13269 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13270 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13271
13272
13273 hard_links="nottested"
13274 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13275   # do not overwrite the value of need_locks provided by the user
13276   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13277 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13278   hard_links=yes
13279   $rm conftest*
13280   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13281   touch conftest.a
13282   ln conftest.a conftest.b 2>&5 || hard_links=no
13283   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13284   echo "$as_me:$LINENO: result: $hard_links" >&5
13285 echo "${ECHO_T}$hard_links" >&6
13286   if test "$hard_links" = no; then
13287     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13288 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13289     need_locks=warn
13290   fi
13291 else
13292   need_locks=no
13293 fi
13294
13295 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13296 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13297
13298   runpath_var=
13299   allow_undefined_flag_F77=
13300   enable_shared_with_static_runtimes_F77=no
13301   archive_cmds_F77=
13302   archive_expsym_cmds_F77=
13303   old_archive_From_new_cmds_F77=
13304   old_archive_from_expsyms_cmds_F77=
13305   export_dynamic_flag_spec_F77=
13306   whole_archive_flag_spec_F77=
13307   thread_safe_flag_spec_F77=
13308   hardcode_libdir_flag_spec_F77=
13309   hardcode_libdir_flag_spec_ld_F77=
13310   hardcode_libdir_separator_F77=
13311   hardcode_direct_F77=no
13312   hardcode_minus_L_F77=no
13313   hardcode_shlibpath_var_F77=unsupported
13314   link_all_deplibs_F77=unknown
13315   hardcode_automatic_F77=no
13316   module_cmds_F77=
13317   module_expsym_cmds_F77=
13318   always_export_symbols_F77=no
13319   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13320   # include_expsyms should be a list of space-separated symbols to be *always*
13321   # included in the symbol list
13322   include_expsyms_F77=
13323   # exclude_expsyms can be an extended regexp of symbols to exclude
13324   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13325   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13326   # as well as any symbol that contains `d'.
13327   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13328   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13329   # platforms (ab)use it in PIC code, but their linkers get confused if
13330   # the symbol is explicitly referenced.  Since portable code cannot
13331   # rely on this symbol name, it's probably fine to never include it in
13332   # preloaded symbol tables.
13333   extract_expsyms_cmds=
13334   # Just being paranoid about ensuring that cc_basename is set.
13335   for cc_temp in $compiler""; do
13336   case $cc_temp in
13337     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13338     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13339     \-*) ;;
13340     *) break;;
13341   esac
13342 done
13343 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13344
13345   case $host_os in
13346   cygwin* | mingw* | pw32*)
13347     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13348     # When not using gcc, we currently assume that we are using
13349     # Microsoft Visual C++.
13350     if test "$GCC" != yes; then
13351       with_gnu_ld=no
13352     fi
13353     ;;
13354   interix*)
13355     # we just hope/assume this is gcc and not c89 (= MSVC++)
13356     with_gnu_ld=yes
13357     ;;
13358   openbsd*)
13359     with_gnu_ld=no
13360     ;;
13361   esac
13362
13363   ld_shlibs_F77=yes
13364   if test "$with_gnu_ld" = yes; then
13365     # If archive_cmds runs LD, not CC, wlarc should be empty
13366     wlarc='${wl}'
13367
13368     # Set some defaults for GNU ld with shared library support. These
13369     # are reset later if shared libraries are not supported. Putting them
13370     # here allows them to be overridden if necessary.
13371     runpath_var=LD_RUN_PATH
13372     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13373     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13374     # ancient GNU ld didn't support --whole-archive et. al.
13375     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13376         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13377       else
13378         whole_archive_flag_spec_F77=
13379     fi
13380     supports_anon_versioning=no
13381     case `$LD -v 2>/dev/null` in
13382       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13383       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13384       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13385       *\ 2.11.*) ;; # other 2.11 versions
13386       *) supports_anon_versioning=yes ;;
13387     esac
13388
13389     # See if GNU ld supports shared libraries.
13390     case $host_os in
13391     aix3* | aix4* | aix5*)
13392       # On AIX/PPC, the GNU linker is very broken
13393       if test "$host_cpu" != ia64; then
13394         ld_shlibs_F77=no
13395         cat <<EOF 1>&2
13396
13397 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13398 *** to be unable to reliably create shared libraries on AIX.
13399 *** Therefore, libtool is disabling shared libraries support.  If you
13400 *** really care for shared libraries, you may want to modify your PATH
13401 *** so that a non-GNU linker is found, and then restart.
13402
13403 EOF
13404       fi
13405       ;;
13406
13407     amigaos*)
13408       archive_cmds_F77='$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)'
13409       hardcode_libdir_flag_spec_F77='-L$libdir'
13410       hardcode_minus_L_F77=yes
13411
13412       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13413       # that the semantics of dynamic libraries on AmigaOS, at least up
13414       # to version 4, is to share data among multiple programs linked
13415       # with the same dynamic library.  Since this doesn't match the
13416       # behavior of shared libraries on other platforms, we can't use
13417       # them.
13418       ld_shlibs_F77=no
13419       ;;
13420
13421     beos*)
13422       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13423         allow_undefined_flag_F77=unsupported
13424         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13425         # support --undefined.  This deserves some investigation.  FIXME
13426         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13427       else
13428         ld_shlibs_F77=no
13429       fi
13430       ;;
13431
13432     cygwin* | mingw* | pw32*)
13433       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13434       # as there is no search path for DLLs.
13435       hardcode_libdir_flag_spec_F77='-L$libdir'
13436       allow_undefined_flag_F77=unsupported
13437       always_export_symbols_F77=no
13438       enable_shared_with_static_runtimes_F77=yes
13439       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13440
13441       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13442         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13443         # If the export-symbols file already is a .def file (1st line
13444         # is EXPORTS), use it as is; otherwise, prepend...
13445         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13446           cp $export_symbols $output_objdir/$soname.def;
13447         else
13448           echo EXPORTS > $output_objdir/$soname.def;
13449           cat $export_symbols >> $output_objdir/$soname.def;
13450         fi~
13451         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13452       else
13453         ld_shlibs_F77=no
13454       fi
13455       ;;
13456
13457     interix3*)
13458       hardcode_direct_F77=no
13459       hardcode_shlibpath_var_F77=no
13460       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13461       export_dynamic_flag_spec_F77='${wl}-E'
13462       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13463       # Instead, shared libraries are loaded at an image base (0x10000000 by
13464       # default) and relocated if they conflict, which is a slow very memory
13465       # consuming and fragmenting process.  To avoid this, we pick a random,
13466       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13467       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13468       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13469       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13470       ;;
13471
13472     linux* | k*bsd*-gnu)
13473       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13474         tmp_addflag=
13475         case $cc_basename,$host_cpu in
13476         pgcc*)                          # Portland Group C compiler
13477           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13478           tmp_addflag=' $pic_flag'
13479           ;;
13480         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13481           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13482           tmp_addflag=' $pic_flag -Mnomain' ;;
13483         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13484           tmp_addflag=' -i_dynamic' ;;
13485         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13486           tmp_addflag=' -i_dynamic -nofor_main' ;;
13487         ifc* | ifort*)                  # Intel Fortran compiler
13488           tmp_addflag=' -nofor_main' ;;
13489         esac
13490         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13491
13492         if test $supports_anon_versioning = yes; then
13493           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13494   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13495   $echo "local: *; };" >> $output_objdir/$libname.ver~
13496           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13497         fi
13498         link_all_deplibs_F77=no
13499       else
13500         ld_shlibs_F77=no
13501       fi
13502       ;;
13503
13504     netbsd* | netbsdelf*-gnu)
13505       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13506         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13507         wlarc=
13508       else
13509         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13510         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13511       fi
13512       ;;
13513
13514     solaris*)
13515       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13516         ld_shlibs_F77=no
13517         cat <<EOF 1>&2
13518
13519 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13520 *** create shared libraries on Solaris systems.  Therefore, libtool
13521 *** is disabling shared libraries support.  We urge you to upgrade GNU
13522 *** binutils to release 2.9.1 or newer.  Another option is to modify
13523 *** your PATH or compiler configuration so that the native linker is
13524 *** used, and then restart.
13525
13526 EOF
13527       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13528         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13529         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13530       else
13531         ld_shlibs_F77=no
13532       fi
13533       ;;
13534
13535     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13536       case `$LD -v 2>&1` in
13537         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13538         ld_shlibs_F77=no
13539         cat <<_LT_EOF 1>&2
13540
13541 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13542 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13543 *** is disabling shared libraries support.  We urge you to upgrade GNU
13544 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13545 *** your PATH or compiler configuration so that the native linker is
13546 *** used, and then restart.
13547
13548 _LT_EOF
13549         ;;
13550         *)
13551           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13552             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13553             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13554             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13555           else
13556             ld_shlibs_F77=no
13557           fi
13558         ;;
13559       esac
13560       ;;
13561
13562     sunos4*)
13563       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13564       wlarc=
13565       hardcode_direct_F77=yes
13566       hardcode_shlibpath_var_F77=no
13567       ;;
13568
13569     *)
13570       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13571         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13572         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13573       else
13574         ld_shlibs_F77=no
13575       fi
13576       ;;
13577     esac
13578
13579     if test "$ld_shlibs_F77" = no; then
13580       runpath_var=
13581       hardcode_libdir_flag_spec_F77=
13582       export_dynamic_flag_spec_F77=
13583       whole_archive_flag_spec_F77=
13584     fi
13585   else
13586     # PORTME fill in a description of your system's linker (not GNU ld)
13587     case $host_os in
13588     aix3*)
13589       allow_undefined_flag_F77=unsupported
13590       always_export_symbols_F77=yes
13591       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13592       # Note: this linker hardcodes the directories in LIBPATH if there
13593       # are no directories specified by -L.
13594       hardcode_minus_L_F77=yes
13595       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13596         # Neither direct hardcoding nor static linking is supported with a
13597         # broken collect2.
13598         hardcode_direct_F77=unsupported
13599       fi
13600       ;;
13601
13602     aix4* | aix5*)
13603       if test "$host_cpu" = ia64; then
13604         # On IA64, the linker does run time linking by default, so we don't
13605         # have to do anything special.
13606         aix_use_runtimelinking=no
13607         exp_sym_flag='-Bexport'
13608         no_entry_flag=""
13609       else
13610         # If we're using GNU nm, then we don't want the "-C" option.
13611         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13612         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13613           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13614         else
13615           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13616         fi
13617         aix_use_runtimelinking=no
13618
13619         # Test if we are trying to use run time linking or normal
13620         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13621         # need to do runtime linking.
13622         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13623           for ld_flag in $LDFLAGS; do
13624           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13625             aix_use_runtimelinking=yes
13626             break
13627           fi
13628           done
13629           ;;
13630         esac
13631
13632         exp_sym_flag='-bexport'
13633         no_entry_flag='-bnoentry'
13634       fi
13635
13636       # When large executables or shared objects are built, AIX ld can
13637       # have problems creating the table of contents.  If linking a library
13638       # or program results in "error TOC overflow" add -mminimal-toc to
13639       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13640       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13641
13642       archive_cmds_F77=''
13643       hardcode_direct_F77=yes
13644       hardcode_libdir_separator_F77=':'
13645       link_all_deplibs_F77=yes
13646
13647       if test "$GCC" = yes; then
13648         case $host_os in aix4.[012]|aix4.[012].*)
13649         # We only want to do this on AIX 4.2 and lower, the check
13650         # below for broken collect2 doesn't work under 4.3+
13651           collect2name=`${CC} -print-prog-name=collect2`
13652           if test -f "$collect2name" && \
13653            strings "$collect2name" | grep resolve_lib_name >/dev/null
13654           then
13655           # We have reworked collect2
13656           hardcode_direct_F77=yes
13657           else
13658           # We have old collect2
13659           hardcode_direct_F77=unsupported
13660           # It fails to find uninstalled libraries when the uninstalled
13661           # path is not listed in the libpath.  Setting hardcode_minus_L
13662           # to unsupported forces relinking
13663           hardcode_minus_L_F77=yes
13664           hardcode_libdir_flag_spec_F77='-L$libdir'
13665           hardcode_libdir_separator_F77=
13666           fi
13667           ;;
13668         esac
13669         shared_flag='-shared'
13670         if test "$aix_use_runtimelinking" = yes; then
13671           shared_flag="$shared_flag "'${wl}-G'
13672         fi
13673       else
13674         # not using gcc
13675         if test "$host_cpu" = ia64; then
13676         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13677         # chokes on -Wl,-G. The following line is correct:
13678           shared_flag='-G'
13679         else
13680           if test "$aix_use_runtimelinking" = yes; then
13681             shared_flag='${wl}-G'
13682           else
13683             shared_flag='${wl}-bM:SRE'
13684           fi
13685         fi
13686       fi
13687
13688       # It seems that -bexpall does not export symbols beginning with
13689       # underscore (_), so it is better to generate a list of symbols to export.
13690       always_export_symbols_F77=yes
13691       if test "$aix_use_runtimelinking" = yes; then
13692         # Warning - without using the other runtime loading flags (-brtl),
13693         # -berok will link without error, but may produce a broken library.
13694         allow_undefined_flag_F77='-berok'
13695        # Determine the default libpath from the value encoded in an empty executable.
13696        cat >conftest.$ac_ext <<_ACEOF
13697       program main
13698
13699       end
13700 _ACEOF
13701 rm -f conftest.$ac_objext conftest$ac_exeext
13702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13703   (eval $ac_link) 2>conftest.er1
13704   ac_status=$?
13705   grep -v '^ *+' conftest.er1 >conftest.err
13706   rm -f conftest.er1
13707   cat conftest.err >&5
13708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); } &&
13710          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712   (eval $ac_try) 2>&5
13713   ac_status=$?
13714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715   (exit $ac_status); }; } &&
13716          { ac_try='test -s conftest$ac_exeext'
13717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718   (eval $ac_try) 2>&5
13719   ac_status=$?
13720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721   (exit $ac_status); }; }; then
13722
13723 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13724 }'`
13725 # Check for a 64-bit object if we didn't find anything.
13726 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13727 }'`; fi
13728 else
13729   echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13731
13732 fi
13733 rm -f conftest.err conftest.$ac_objext \
13734       conftest$ac_exeext conftest.$ac_ext
13735 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13736
13737        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13738         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13739        else
13740         if test "$host_cpu" = ia64; then
13741           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13742           allow_undefined_flag_F77="-z nodefs"
13743           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13744         else
13745          # Determine the default libpath from the value encoded in an empty executable.
13746          cat >conftest.$ac_ext <<_ACEOF
13747       program main
13748
13749       end
13750 _ACEOF
13751 rm -f conftest.$ac_objext conftest$ac_exeext
13752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13753   (eval $ac_link) 2>conftest.er1
13754   ac_status=$?
13755   grep -v '^ *+' conftest.er1 >conftest.err
13756   rm -f conftest.er1
13757   cat conftest.err >&5
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); } &&
13760          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762   (eval $ac_try) 2>&5
13763   ac_status=$?
13764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765   (exit $ac_status); }; } &&
13766          { ac_try='test -s conftest$ac_exeext'
13767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13768   (eval $ac_try) 2>&5
13769   ac_status=$?
13770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771   (exit $ac_status); }; }; then
13772
13773 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13774 }'`
13775 # Check for a 64-bit object if we didn't find anything.
13776 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13777 }'`; fi
13778 else
13779   echo "$as_me: failed program was:" >&5
13780 sed 's/^/| /' conftest.$ac_ext >&5
13781
13782 fi
13783 rm -f conftest.err conftest.$ac_objext \
13784       conftest$ac_exeext conftest.$ac_ext
13785 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13786
13787          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13788           # Warning - without using the other run time loading flags,
13789           # -berok will link without error, but may produce a broken library.
13790           no_undefined_flag_F77=' ${wl}-bernotok'
13791           allow_undefined_flag_F77=' ${wl}-berok'
13792           # Exported symbols can be pulled into shared objects from archives
13793           whole_archive_flag_spec_F77='$convenience'
13794           archive_cmds_need_lc_F77=yes
13795           # This is similar to how AIX traditionally builds its shared libraries.
13796           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13797         fi
13798       fi
13799       ;;
13800
13801     amigaos*)
13802       archive_cmds_F77='$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)'
13803       hardcode_libdir_flag_spec_F77='-L$libdir'
13804       hardcode_minus_L_F77=yes
13805       # see comment about different semantics on the GNU ld section
13806       ld_shlibs_F77=no
13807       ;;
13808
13809     bsdi[45]*)
13810       export_dynamic_flag_spec_F77=-rdynamic
13811       ;;
13812
13813     cygwin* | mingw* | pw32*)
13814       # When not using gcc, we currently assume that we are using
13815       # Microsoft Visual C++.
13816       # hardcode_libdir_flag_spec is actually meaningless, as there is
13817       # no search path for DLLs.
13818       hardcode_libdir_flag_spec_F77=' '
13819       allow_undefined_flag_F77=unsupported
13820       # Tell ltmain to make .lib files, not .a files.
13821       libext=lib
13822       # Tell ltmain to make .dll files, not .so files.
13823       shrext_cmds=".dll"
13824       # FIXME: Setting linknames here is a bad hack.
13825       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13826       # The linker will automatically build a .lib file if we build a DLL.
13827       old_archive_From_new_cmds_F77='true'
13828       # FIXME: Should let the user specify the lib program.
13829       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13830       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13831       enable_shared_with_static_runtimes_F77=yes
13832       ;;
13833
13834     darwin* | rhapsody*)
13835       case $host_os in
13836         rhapsody* | darwin1.[012])
13837          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13838          ;;
13839        *) # Darwin 1.3 on
13840          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13841            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13842          else
13843            case ${MACOSX_DEPLOYMENT_TARGET} in
13844              10.[012])
13845                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13846                ;;
13847              10.*)
13848                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13849                ;;
13850            esac
13851          fi
13852          ;;
13853       esac
13854       archive_cmds_need_lc_F77=no
13855       hardcode_direct_F77=no
13856       hardcode_automatic_F77=yes
13857       hardcode_shlibpath_var_F77=unsupported
13858       whole_archive_flag_spec_F77=''
13859       link_all_deplibs_F77=yes
13860     if test "$GCC" = yes ; then
13861         output_verbose_link_cmd='echo'
13862         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13863       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13864       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13865       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13866       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13867     else
13868       case $cc_basename in
13869         xlc*)
13870          output_verbose_link_cmd='echo'
13871          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13872          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13873           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13874          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13875           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13876           ;;
13877        *)
13878          ld_shlibs_F77=no
13879           ;;
13880       esac
13881     fi
13882       ;;
13883
13884     dgux*)
13885       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13886       hardcode_libdir_flag_spec_F77='-L$libdir'
13887       hardcode_shlibpath_var_F77=no
13888       ;;
13889
13890     freebsd1*)
13891       ld_shlibs_F77=no
13892       ;;
13893
13894     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13895     # support.  Future versions do this automatically, but an explicit c++rt0.o
13896     # does not break anything, and helps significantly (at the cost of a little
13897     # extra space).
13898     freebsd2.2*)
13899       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13900       hardcode_libdir_flag_spec_F77='-R$libdir'
13901       hardcode_direct_F77=yes
13902       hardcode_shlibpath_var_F77=no
13903       ;;
13904
13905     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13906     freebsd2*)
13907       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13908       hardcode_direct_F77=yes
13909       hardcode_minus_L_F77=yes
13910       hardcode_shlibpath_var_F77=no
13911       ;;
13912
13913     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13914     freebsd* | dragonfly*)
13915       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13916       hardcode_libdir_flag_spec_F77='-R$libdir'
13917       hardcode_direct_F77=yes
13918       hardcode_shlibpath_var_F77=no
13919       ;;
13920
13921     hpux9*)
13922       if test "$GCC" = yes; then
13923         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13924       else
13925         archive_cmds_F77='$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'
13926       fi
13927       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13928       hardcode_libdir_separator_F77=:
13929       hardcode_direct_F77=yes
13930
13931       # hardcode_minus_L: Not really in the search PATH,
13932       # but as the default location of the library.
13933       hardcode_minus_L_F77=yes
13934       export_dynamic_flag_spec_F77='${wl}-E'
13935       ;;
13936
13937     hpux10*)
13938       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13939         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13940       else
13941         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13942       fi
13943       if test "$with_gnu_ld" = no; then
13944         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13945         hardcode_libdir_separator_F77=:
13946
13947         hardcode_direct_F77=yes
13948         export_dynamic_flag_spec_F77='${wl}-E'
13949
13950         # hardcode_minus_L: Not really in the search PATH,
13951         # but as the default location of the library.
13952         hardcode_minus_L_F77=yes
13953       fi
13954       ;;
13955
13956     hpux11*)
13957       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13958         case $host_cpu in
13959         hppa*64*)
13960           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13961           ;;
13962         ia64*)
13963           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13964           ;;
13965         *)
13966           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13967           ;;
13968         esac
13969       else
13970         case $host_cpu in
13971         hppa*64*)
13972           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13973           ;;
13974         ia64*)
13975           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13976           ;;
13977         *)
13978           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13979           ;;
13980         esac
13981       fi
13982       if test "$with_gnu_ld" = no; then
13983         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13984         hardcode_libdir_separator_F77=:
13985
13986         case $host_cpu in
13987         hppa*64*|ia64*)
13988           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13989           hardcode_direct_F77=no
13990           hardcode_shlibpath_var_F77=no
13991           ;;
13992         *)
13993           hardcode_direct_F77=yes
13994           export_dynamic_flag_spec_F77='${wl}-E'
13995
13996           # hardcode_minus_L: Not really in the search PATH,
13997           # but as the default location of the library.
13998           hardcode_minus_L_F77=yes
13999           ;;
14000         esac
14001       fi
14002       ;;
14003
14004     irix5* | irix6* | nonstopux*)
14005       if test "$GCC" = yes; then
14006         archive_cmds_F77='$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'
14007       else
14008         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14009         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14010       fi
14011       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14012       hardcode_libdir_separator_F77=:
14013       link_all_deplibs_F77=yes
14014       ;;
14015
14016     netbsd* | netbsdelf*-gnu)
14017       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14018         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14019       else
14020         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14021       fi
14022       hardcode_libdir_flag_spec_F77='-R$libdir'
14023       hardcode_direct_F77=yes
14024       hardcode_shlibpath_var_F77=no
14025       ;;
14026
14027     newsos6)
14028       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14029       hardcode_direct_F77=yes
14030       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14031       hardcode_libdir_separator_F77=:
14032       hardcode_shlibpath_var_F77=no
14033       ;;
14034
14035     openbsd*)
14036       hardcode_direct_F77=yes
14037       hardcode_shlibpath_var_F77=no
14038       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14039         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14040         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14041         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14042         export_dynamic_flag_spec_F77='${wl}-E'
14043       else
14044        case $host_os in
14045          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14046            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14047            hardcode_libdir_flag_spec_F77='-R$libdir'
14048            ;;
14049          *)
14050            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14051            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14052            ;;
14053        esac
14054       fi
14055       ;;
14056
14057     os2*)
14058       hardcode_libdir_flag_spec_F77='-L$libdir'
14059       hardcode_minus_L_F77=yes
14060       allow_undefined_flag_F77=unsupported
14061       archive_cmds_F77='$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'
14062       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14063       ;;
14064
14065     osf3*)
14066       if test "$GCC" = yes; then
14067         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14068         archive_cmds_F77='$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'
14069       else
14070         allow_undefined_flag_F77=' -expect_unresolved \*'
14071         archive_cmds_F77='$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'
14072       fi
14073       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14074       hardcode_libdir_separator_F77=:
14075       ;;
14076
14077     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14078       if test "$GCC" = yes; then
14079         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14080         archive_cmds_F77='$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'
14081         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14082       else
14083         allow_undefined_flag_F77=' -expect_unresolved \*'
14084         archive_cmds_F77='$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'
14085         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14086         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14087
14088         # Both c and cxx compiler support -rpath directly
14089         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14090       fi
14091       hardcode_libdir_separator_F77=:
14092       ;;
14093
14094     solaris*)
14095       no_undefined_flag_F77=' -z text'
14096       if test "$GCC" = yes; then
14097         wlarc='${wl}'
14098         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14099         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14100           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14101       else
14102         wlarc=''
14103         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14104         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14105         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14106       fi
14107       hardcode_libdir_flag_spec_F77='-R$libdir'
14108       hardcode_shlibpath_var_F77=no
14109       case $host_os in
14110       solaris2.[0-5] | solaris2.[0-5].*) ;;
14111       *)
14112         # The compiler driver will combine linker options so we
14113         # cannot just pass the convience library names through
14114         # without $wl, iff we do not link with $LD.
14115         # Luckily, gcc supports the same syntax we need for Sun Studio.
14116         # Supported since Solaris 2.6 (maybe 2.5.1?)
14117         case $wlarc in
14118         '')
14119           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14120         *)
14121           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14122         esac ;;
14123       esac
14124       link_all_deplibs_F77=yes
14125       ;;
14126
14127     sunos4*)
14128       if test "x$host_vendor" = xsequent; then
14129         # Use $CC to link under sequent, because it throws in some extra .o
14130         # files that make .init and .fini sections work.
14131         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14132       else
14133         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14134       fi
14135       hardcode_libdir_flag_spec_F77='-L$libdir'
14136       hardcode_direct_F77=yes
14137       hardcode_minus_L_F77=yes
14138       hardcode_shlibpath_var_F77=no
14139       ;;
14140
14141     sysv4)
14142       case $host_vendor in
14143         sni)
14144           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14145           hardcode_direct_F77=yes # is this really true???
14146         ;;
14147         siemens)
14148           ## LD is ld it makes a PLAMLIB
14149           ## CC just makes a GrossModule.
14150           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14151           reload_cmds_F77='$CC -r -o $output$reload_objs'
14152           hardcode_direct_F77=no
14153         ;;
14154         motorola)
14155           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14156           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14157         ;;
14158       esac
14159       runpath_var='LD_RUN_PATH'
14160       hardcode_shlibpath_var_F77=no
14161       ;;
14162
14163     sysv4.3*)
14164       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14165       hardcode_shlibpath_var_F77=no
14166       export_dynamic_flag_spec_F77='-Bexport'
14167       ;;
14168
14169     sysv4*MP*)
14170       if test -d /usr/nec; then
14171         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14172         hardcode_shlibpath_var_F77=no
14173         runpath_var=LD_RUN_PATH
14174         hardcode_runpath_var=yes
14175         ld_shlibs_F77=yes
14176       fi
14177       ;;
14178
14179     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14180       no_undefined_flag_F77='${wl}-z,text'
14181       archive_cmds_need_lc_F77=no
14182       hardcode_shlibpath_var_F77=no
14183       runpath_var='LD_RUN_PATH'
14184
14185       if test "$GCC" = yes; then
14186         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14187         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14188       else
14189         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14190         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14191       fi
14192       ;;
14193
14194     sysv5* | sco3.2v5* | sco5v6*)
14195       # Note: We can NOT use -z defs as we might desire, because we do not
14196       # link with -lc, and that would cause any symbols used from libc to
14197       # always be unresolved, which means just about no library would
14198       # ever link correctly.  If we're not using GNU ld we use -z text
14199       # though, which does catch some bad symbols but isn't as heavy-handed
14200       # as -z defs.
14201       no_undefined_flag_F77='${wl}-z,text'
14202       allow_undefined_flag_F77='${wl}-z,nodefs'
14203       archive_cmds_need_lc_F77=no
14204       hardcode_shlibpath_var_F77=no
14205       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14206       hardcode_libdir_separator_F77=':'
14207       link_all_deplibs_F77=yes
14208       export_dynamic_flag_spec_F77='${wl}-Bexport'
14209       runpath_var='LD_RUN_PATH'
14210
14211       if test "$GCC" = yes; then
14212         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14213         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14214       else
14215         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14216         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14217       fi
14218       ;;
14219
14220     uts4*)
14221       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14222       hardcode_libdir_flag_spec_F77='-L$libdir'
14223       hardcode_shlibpath_var_F77=no
14224       ;;
14225
14226     *)
14227       ld_shlibs_F77=no
14228       ;;
14229     esac
14230   fi
14231
14232 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14233 echo "${ECHO_T}$ld_shlibs_F77" >&6
14234 test "$ld_shlibs_F77" = no && can_build_shared=no
14235
14236 #
14237 # Do we need to explicitly link libc?
14238 #
14239 case "x$archive_cmds_need_lc_F77" in
14240 x|xyes)
14241   # Assume -lc should be added
14242   archive_cmds_need_lc_F77=yes
14243
14244   if test "$enable_shared" = yes && test "$GCC" = yes; then
14245     case $archive_cmds_F77 in
14246     *'~'*)
14247       # FIXME: we may have to deal with multi-command sequences.
14248       ;;
14249     '$CC '*)
14250       # Test whether the compiler implicitly links with -lc since on some
14251       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14252       # to ld, don't add -lc before -lgcc.
14253       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14254 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14255       $rm conftest*
14256       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14257
14258       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14259   (eval $ac_compile) 2>&5
14260   ac_status=$?
14261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262   (exit $ac_status); } 2>conftest.err; then
14263         soname=conftest
14264         lib=conftest
14265         libobjs=conftest.$ac_objext
14266         deplibs=
14267         wl=$lt_prog_compiler_wl_F77
14268         pic_flag=$lt_prog_compiler_pic_F77
14269         compiler_flags=-v
14270         linker_flags=-v
14271         verstring=
14272         output_objdir=.
14273         libname=conftest
14274         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14275         allow_undefined_flag_F77=
14276         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14277   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14278   ac_status=$?
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); }
14281         then
14282           archive_cmds_need_lc_F77=no
14283         else
14284           archive_cmds_need_lc_F77=yes
14285         fi
14286         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14287       else
14288         cat conftest.err 1>&5
14289       fi
14290       $rm conftest*
14291       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14292 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14293       ;;
14294     esac
14295   fi
14296   ;;
14297 esac
14298
14299 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14300 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14301 library_names_spec=
14302 libname_spec='lib$name'
14303 soname_spec=
14304 shrext_cmds=".so"
14305 postinstall_cmds=
14306 postuninstall_cmds=
14307 finish_cmds=
14308 finish_eval=
14309 shlibpath_var=
14310 shlibpath_overrides_runpath=unknown
14311 version_type=none
14312 dynamic_linker="$host_os ld.so"
14313 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14314 if test "$GCC" = yes; then
14315   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14316   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14317     # if the path contains ";" then we assume it to be the separator
14318     # otherwise default to the standard path separator (i.e. ":") - it is
14319     # assumed that no part of a normal pathname contains ";" but that should
14320     # okay in the real world where ";" in dirpaths is itself problematic.
14321     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14322   else
14323     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14324   fi
14325 else
14326   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14327 fi
14328 need_lib_prefix=unknown
14329 hardcode_into_libs=no
14330
14331 # when you set need_version to no, make sure it does not cause -set_version
14332 # flags to be left without arguments
14333 need_version=unknown
14334
14335 case $host_os in
14336 aix3*)
14337   version_type=linux
14338   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14339   shlibpath_var=LIBPATH
14340
14341   # AIX 3 has no versioning support, so we append a major version to the name.
14342   soname_spec='${libname}${release}${shared_ext}$major'
14343   ;;
14344
14345 aix4* | aix5*)
14346   version_type=linux
14347   need_lib_prefix=no
14348   need_version=no
14349   hardcode_into_libs=yes
14350   if test "$host_cpu" = ia64; then
14351     # AIX 5 supports IA64
14352     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14353     shlibpath_var=LD_LIBRARY_PATH
14354   else
14355     # With GCC up to 2.95.x, collect2 would create an import file
14356     # for dependence libraries.  The import file would start with
14357     # the line `#! .'.  This would cause the generated library to
14358     # depend on `.', always an invalid library.  This was fixed in
14359     # development snapshots of GCC prior to 3.0.
14360     case $host_os in
14361       aix4 | aix4.[01] | aix4.[01].*)
14362       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14363            echo ' yes '
14364            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14365         :
14366       else
14367         can_build_shared=no
14368       fi
14369       ;;
14370     esac
14371     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14372     # soname into executable. Probably we can add versioning support to
14373     # collect2, so additional links can be useful in future.
14374     if test "$aix_use_runtimelinking" = yes; then
14375       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14376       # instead of lib<name>.a to let people know that these are not
14377       # typical AIX shared libraries.
14378       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14379     else
14380       # We preserve .a as extension for shared libraries through AIX4.2
14381       # and later when we are not doing run time linking.
14382       library_names_spec='${libname}${release}.a $libname.a'
14383       soname_spec='${libname}${release}${shared_ext}$major'
14384     fi
14385     shlibpath_var=LIBPATH
14386   fi
14387   ;;
14388
14389 amigaos*)
14390   library_names_spec='$libname.ixlibrary $libname.a'
14391   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14392   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'
14393   ;;
14394
14395 beos*)
14396   library_names_spec='${libname}${shared_ext}'
14397   dynamic_linker="$host_os ld.so"
14398   shlibpath_var=LIBRARY_PATH
14399   ;;
14400
14401 bsdi[45]*)
14402   version_type=linux
14403   need_version=no
14404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14405   soname_spec='${libname}${release}${shared_ext}$major'
14406   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14407   shlibpath_var=LD_LIBRARY_PATH
14408   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14409   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14410   # the default ld.so.conf also contains /usr/contrib/lib and
14411   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14412   # libtool to hard-code these into programs
14413   ;;
14414
14415 cygwin* | mingw* | pw32*)
14416   version_type=windows
14417   shrext_cmds=".dll"
14418   need_version=no
14419   need_lib_prefix=no
14420
14421   case $GCC,$host_os in
14422   yes,cygwin* | yes,mingw* | yes,pw32*)
14423     library_names_spec='$libname.dll.a'
14424     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14425     postinstall_cmds='base_file=`basename \${file}`~
14426       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14427       dldir=$destdir/`dirname \$dlpath`~
14428       test -d \$dldir || mkdir -p \$dldir~
14429       $install_prog $dir/$dlname \$dldir/$dlname~
14430       chmod a+x \$dldir/$dlname'
14431     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14432       dlpath=$dir/\$dldll~
14433        $rm \$dlpath'
14434     shlibpath_overrides_runpath=yes
14435
14436     case $host_os in
14437     cygwin*)
14438       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14439       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14440       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14441       ;;
14442     mingw*)
14443       # MinGW DLLs use traditional 'lib' prefix
14444       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14445       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14446       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14447         # It is most probably a Windows format PATH printed by
14448         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14449         # path with ; separators, and with drive letters. We can handle the
14450         # drive letters (cygwin fileutils understands them), so leave them,
14451         # especially as we might pass files found there to a mingw objdump,
14452         # which wouldn't understand a cygwinified path. Ahh.
14453         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14454       else
14455         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14456       fi
14457       ;;
14458     pw32*)
14459       # pw32 DLLs use 'pw' prefix rather than 'lib'
14460       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14461       ;;
14462     esac
14463     ;;
14464
14465   *)
14466     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14467     ;;
14468   esac
14469   dynamic_linker='Win32 ld.exe'
14470   # FIXME: first we should search . and the directory the executable is in
14471   shlibpath_var=PATH
14472   ;;
14473
14474 darwin* | rhapsody*)
14475   dynamic_linker="$host_os dyld"
14476   version_type=darwin
14477   need_lib_prefix=no
14478   need_version=no
14479   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14480   soname_spec='${libname}${release}${major}$shared_ext'
14481   shlibpath_overrides_runpath=yes
14482   shlibpath_var=DYLD_LIBRARY_PATH
14483   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14484   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14485   if test "$GCC" = yes; then
14486     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14487   else
14488     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14489   fi
14490   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14491   ;;
14492
14493 dgux*)
14494   version_type=linux
14495   need_lib_prefix=no
14496   need_version=no
14497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14498   soname_spec='${libname}${release}${shared_ext}$major'
14499   shlibpath_var=LD_LIBRARY_PATH
14500   ;;
14501
14502 freebsd1*)
14503   dynamic_linker=no
14504   ;;
14505
14506 freebsd* | dragonfly*)
14507   # DragonFly does not have aout.  When/if they implement a new
14508   # versioning mechanism, adjust this.
14509   if test -x /usr/bin/objformat; then
14510     objformat=`/usr/bin/objformat`
14511   else
14512     case $host_os in
14513     freebsd[123]*) objformat=aout ;;
14514     *) objformat=elf ;;
14515     esac
14516   fi
14517   version_type=freebsd-$objformat
14518   case $version_type in
14519     freebsd-elf*)
14520       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14521       need_version=no
14522       need_lib_prefix=no
14523       ;;
14524     freebsd-*)
14525       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14526       need_version=yes
14527       ;;
14528   esac
14529   shlibpath_var=LD_LIBRARY_PATH
14530   case $host_os in
14531   freebsd2*)
14532     shlibpath_overrides_runpath=yes
14533     ;;
14534   freebsd3.[01]* | freebsdelf3.[01]*)
14535     shlibpath_overrides_runpath=yes
14536     hardcode_into_libs=yes
14537     ;;
14538   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14539   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14540     shlibpath_overrides_runpath=no
14541     hardcode_into_libs=yes
14542     ;;
14543   freebsd*) # from 4.6 on
14544     shlibpath_overrides_runpath=yes
14545     hardcode_into_libs=yes
14546     ;;
14547   esac
14548   ;;
14549
14550 gnu*)
14551   version_type=linux
14552   need_lib_prefix=no
14553   need_version=no
14554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14555   soname_spec='${libname}${release}${shared_ext}$major'
14556   shlibpath_var=LD_LIBRARY_PATH
14557   hardcode_into_libs=yes
14558   ;;
14559
14560 hpux9* | hpux10* | hpux11*)
14561   # Give a soname corresponding to the major version so that dld.sl refuses to
14562   # link against other versions.
14563   version_type=sunos
14564   need_lib_prefix=no
14565   need_version=no
14566   case $host_cpu in
14567   ia64*)
14568     shrext_cmds='.so'
14569     hardcode_into_libs=yes
14570     dynamic_linker="$host_os dld.so"
14571     shlibpath_var=LD_LIBRARY_PATH
14572     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14574     soname_spec='${libname}${release}${shared_ext}$major'
14575     if test "X$HPUX_IA64_MODE" = X32; then
14576       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14577     else
14578       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14579     fi
14580     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14581     ;;
14582    hppa*64*)
14583      shrext_cmds='.sl'
14584      hardcode_into_libs=yes
14585      dynamic_linker="$host_os dld.sl"
14586      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14587      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14588      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14589      soname_spec='${libname}${release}${shared_ext}$major'
14590      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14591      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14592      ;;
14593    *)
14594     shrext_cmds='.sl'
14595     dynamic_linker="$host_os dld.sl"
14596     shlibpath_var=SHLIB_PATH
14597     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14599     soname_spec='${libname}${release}${shared_ext}$major'
14600     ;;
14601   esac
14602   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14603   postinstall_cmds='chmod 555 $lib'
14604   ;;
14605
14606 interix3*)
14607   version_type=linux
14608   need_lib_prefix=no
14609   need_version=no
14610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14611   soname_spec='${libname}${release}${shared_ext}$major'
14612   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14613   shlibpath_var=LD_LIBRARY_PATH
14614   shlibpath_overrides_runpath=no
14615   hardcode_into_libs=yes
14616   ;;
14617
14618 irix5* | irix6* | nonstopux*)
14619   case $host_os in
14620     nonstopux*) version_type=nonstopux ;;
14621     *)
14622         if test "$lt_cv_prog_gnu_ld" = yes; then
14623                 version_type=linux
14624         else
14625                 version_type=irix
14626         fi ;;
14627   esac
14628   need_lib_prefix=no
14629   need_version=no
14630   soname_spec='${libname}${release}${shared_ext}$major'
14631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14632   case $host_os in
14633   irix5* | nonstopux*)
14634     libsuff= shlibsuff=
14635     ;;
14636   *)
14637     case $LD in # libtool.m4 will add one of these switches to LD
14638     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14639       libsuff= shlibsuff= libmagic=32-bit;;
14640     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14641       libsuff=32 shlibsuff=N32 libmagic=N32;;
14642     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14643       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14644     *) libsuff= shlibsuff= libmagic=never-match;;
14645     esac
14646     ;;
14647   esac
14648   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14649   shlibpath_overrides_runpath=no
14650   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14651   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14652   hardcode_into_libs=yes
14653   ;;
14654
14655 # No shared lib support for Linux oldld, aout, or coff.
14656 linux*oldld* | linux*aout* | linux*coff*)
14657   dynamic_linker=no
14658   ;;
14659
14660 # This must be Linux ELF.
14661 linux* | k*bsd*-gnu)
14662   version_type=linux
14663   need_lib_prefix=no
14664   need_version=no
14665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666   soname_spec='${libname}${release}${shared_ext}$major'
14667   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14668   shlibpath_var=LD_LIBRARY_PATH
14669   shlibpath_overrides_runpath=no
14670   # This implies no fast_install, which is unacceptable.
14671   # Some rework will be needed to allow for fast_install
14672   # before this can be enabled.
14673   hardcode_into_libs=yes
14674
14675   # Append ld.so.conf contents to the search path
14676   if test -f /etc/ld.so.conf; then
14677     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14678     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14679   fi
14680
14681   # We used to test for /lib/ld.so.1 and disable shared libraries on
14682   # powerpc, because MkLinux only supported shared libraries with the
14683   # GNU dynamic linker.  Since this was broken with cross compilers,
14684   # most powerpc-linux boxes support dynamic linking these days and
14685   # people can always --disable-shared, the test was removed, and we
14686   # assume the GNU/Linux dynamic linker is in use.
14687   dynamic_linker='GNU/Linux ld.so'
14688   ;;
14689
14690 netbsdelf*-gnu)
14691   version_type=linux
14692   need_lib_prefix=no
14693   need_version=no
14694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14695   soname_spec='${libname}${release}${shared_ext}$major'
14696   shlibpath_var=LD_LIBRARY_PATH
14697   shlibpath_overrides_runpath=no
14698   hardcode_into_libs=yes
14699   dynamic_linker='NetBSD ld.elf_so'
14700   ;;
14701
14702 netbsd*)
14703   version_type=sunos
14704   need_lib_prefix=no
14705   need_version=no
14706   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14707     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14708     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14709     dynamic_linker='NetBSD (a.out) ld.so'
14710   else
14711     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14712     soname_spec='${libname}${release}${shared_ext}$major'
14713     dynamic_linker='NetBSD ld.elf_so'
14714   fi
14715   shlibpath_var=LD_LIBRARY_PATH
14716   shlibpath_overrides_runpath=yes
14717   hardcode_into_libs=yes
14718   ;;
14719
14720 newsos6)
14721   version_type=linux
14722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14723   shlibpath_var=LD_LIBRARY_PATH
14724   shlibpath_overrides_runpath=yes
14725   ;;
14726
14727 nto-qnx*)
14728   version_type=linux
14729   need_lib_prefix=no
14730   need_version=no
14731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14732   soname_spec='${libname}${release}${shared_ext}$major'
14733   shlibpath_var=LD_LIBRARY_PATH
14734   shlibpath_overrides_runpath=yes
14735   ;;
14736
14737 openbsd*)
14738   version_type=sunos
14739   sys_lib_dlsearch_path_spec="/usr/lib"
14740   need_lib_prefix=no
14741   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14742   case $host_os in
14743     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14744     *)                         need_version=no  ;;
14745   esac
14746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14747   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14748   shlibpath_var=LD_LIBRARY_PATH
14749   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14750     case $host_os in
14751       openbsd2.[89] | openbsd2.[89].*)
14752         shlibpath_overrides_runpath=no
14753         ;;
14754       *)
14755         shlibpath_overrides_runpath=yes
14756         ;;
14757       esac
14758   else
14759     shlibpath_overrides_runpath=yes
14760   fi
14761   ;;
14762
14763 os2*)
14764   libname_spec='$name'
14765   shrext_cmds=".dll"
14766   need_lib_prefix=no
14767   library_names_spec='$libname${shared_ext} $libname.a'
14768   dynamic_linker='OS/2 ld.exe'
14769   shlibpath_var=LIBPATH
14770   ;;
14771
14772 osf3* | osf4* | osf5*)
14773   version_type=osf
14774   need_lib_prefix=no
14775   need_version=no
14776   soname_spec='${libname}${release}${shared_ext}$major'
14777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14778   shlibpath_var=LD_LIBRARY_PATH
14779   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14780   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14781   ;;
14782
14783 solaris*)
14784   version_type=linux
14785   need_lib_prefix=no
14786   need_version=no
14787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14788   soname_spec='${libname}${release}${shared_ext}$major'
14789   shlibpath_var=LD_LIBRARY_PATH
14790   shlibpath_overrides_runpath=yes
14791   hardcode_into_libs=yes
14792   # ldd complains unless libraries are executable
14793   postinstall_cmds='chmod +x $lib'
14794   ;;
14795
14796 sunos4*)
14797   version_type=sunos
14798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14799   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14800   shlibpath_var=LD_LIBRARY_PATH
14801   shlibpath_overrides_runpath=yes
14802   if test "$with_gnu_ld" = yes; then
14803     need_lib_prefix=no
14804   fi
14805   need_version=yes
14806   ;;
14807
14808 sysv4 | sysv4.3*)
14809   version_type=linux
14810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14811   soname_spec='${libname}${release}${shared_ext}$major'
14812   shlibpath_var=LD_LIBRARY_PATH
14813   case $host_vendor in
14814     sni)
14815       shlibpath_overrides_runpath=no
14816       need_lib_prefix=no
14817       export_dynamic_flag_spec='${wl}-Blargedynsym'
14818       runpath_var=LD_RUN_PATH
14819       ;;
14820     siemens)
14821       need_lib_prefix=no
14822       ;;
14823     motorola)
14824       need_lib_prefix=no
14825       need_version=no
14826       shlibpath_overrides_runpath=no
14827       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14828       ;;
14829   esac
14830   ;;
14831
14832 sysv4*MP*)
14833   if test -d /usr/nec ;then
14834     version_type=linux
14835     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14836     soname_spec='$libname${shared_ext}.$major'
14837     shlibpath_var=LD_LIBRARY_PATH
14838   fi
14839   ;;
14840
14841 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14842   version_type=freebsd-elf
14843   need_lib_prefix=no
14844   need_version=no
14845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14846   soname_spec='${libname}${release}${shared_ext}$major'
14847   shlibpath_var=LD_LIBRARY_PATH
14848   hardcode_into_libs=yes
14849   if test "$with_gnu_ld" = yes; then
14850     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14851     shlibpath_overrides_runpath=no
14852   else
14853     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14854     shlibpath_overrides_runpath=yes
14855     case $host_os in
14856       sco3.2v5*)
14857         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14858         ;;
14859     esac
14860   fi
14861   sys_lib_dlsearch_path_spec='/usr/lib'
14862   ;;
14863
14864 uts4*)
14865   version_type=linux
14866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14867   soname_spec='${libname}${release}${shared_ext}$major'
14868   shlibpath_var=LD_LIBRARY_PATH
14869   ;;
14870
14871 *)
14872   dynamic_linker=no
14873   ;;
14874 esac
14875 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14876 echo "${ECHO_T}$dynamic_linker" >&6
14877 test "$dynamic_linker" = no && can_build_shared=no
14878
14879 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14880 if test "$GCC" = yes; then
14881   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14882 fi
14883
14884 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14885 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14886 hardcode_action_F77=
14887 if test -n "$hardcode_libdir_flag_spec_F77" || \
14888    test -n "$runpath_var_F77" || \
14889    test "X$hardcode_automatic_F77" = "Xyes" ; then
14890
14891   # We can hardcode non-existant directories.
14892   if test "$hardcode_direct_F77" != no &&
14893      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14894      # have to relink, otherwise we might link with an installed library
14895      # when we should be linking with a yet-to-be-installed one
14896      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14897      test "$hardcode_minus_L_F77" != no; then
14898     # Linking always hardcodes the temporary library directory.
14899     hardcode_action_F77=relink
14900   else
14901     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14902     hardcode_action_F77=immediate
14903   fi
14904 else
14905   # We cannot hardcode anything, or else we can only hardcode existing
14906   # directories.
14907   hardcode_action_F77=unsupported
14908 fi
14909 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14910 echo "${ECHO_T}$hardcode_action_F77" >&6
14911
14912 if test "$hardcode_action_F77" = relink; then
14913   # Fast installation is not supported
14914   enable_fast_install=no
14915 elif test "$shlibpath_overrides_runpath" = yes ||
14916      test "$enable_shared" = no; then
14917   # Fast installation is not necessary
14918   enable_fast_install=needless
14919 fi
14920
14921
14922 # The else clause should only fire when bootstrapping the
14923 # libtool distribution, otherwise you forgot to ship ltmain.sh
14924 # with your package, and you will get complaints that there are
14925 # no rules to generate ltmain.sh.
14926 if test -f "$ltmain"; then
14927   # See if we are running on zsh, and set the options which allow our commands through
14928   # without removal of \ escapes.
14929   if test -n "${ZSH_VERSION+set}" ; then
14930     setopt NO_GLOB_SUBST
14931   fi
14932   # Now quote all the things that may contain metacharacters while being
14933   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14934   # variables and quote the copies for generation of the libtool script.
14935   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14936     SED SHELL STRIP \
14937     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14938     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14939     deplibs_check_method reload_flag reload_cmds need_locks \
14940     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14941     lt_cv_sys_global_symbol_to_c_name_address \
14942     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14943     old_postinstall_cmds old_postuninstall_cmds \
14944     compiler_F77 \
14945     CC_F77 \
14946     LD_F77 \
14947     lt_prog_compiler_wl_F77 \
14948     lt_prog_compiler_pic_F77 \
14949     lt_prog_compiler_static_F77 \
14950     lt_prog_compiler_no_builtin_flag_F77 \
14951     export_dynamic_flag_spec_F77 \
14952     thread_safe_flag_spec_F77 \
14953     whole_archive_flag_spec_F77 \
14954     enable_shared_with_static_runtimes_F77 \
14955     old_archive_cmds_F77 \
14956     old_archive_from_new_cmds_F77 \
14957     predep_objects_F77 \
14958     postdep_objects_F77 \
14959     predeps_F77 \
14960     postdeps_F77 \
14961     compiler_lib_search_path_F77 \
14962     archive_cmds_F77 \
14963     archive_expsym_cmds_F77 \
14964     postinstall_cmds_F77 \
14965     postuninstall_cmds_F77 \
14966     old_archive_from_expsyms_cmds_F77 \
14967     allow_undefined_flag_F77 \
14968     no_undefined_flag_F77 \
14969     export_symbols_cmds_F77 \
14970     hardcode_libdir_flag_spec_F77 \
14971     hardcode_libdir_flag_spec_ld_F77 \
14972     hardcode_libdir_separator_F77 \
14973     hardcode_automatic_F77 \
14974     module_cmds_F77 \
14975     module_expsym_cmds_F77 \
14976     lt_cv_prog_compiler_c_o_F77 \
14977     exclude_expsyms_F77 \
14978     include_expsyms_F77; do
14979
14980     case $var in
14981     old_archive_cmds_F77 | \
14982     old_archive_from_new_cmds_F77 | \
14983     archive_cmds_F77 | \
14984     archive_expsym_cmds_F77 | \
14985     module_cmds_F77 | \
14986     module_expsym_cmds_F77 | \
14987     old_archive_from_expsyms_cmds_F77 | \
14988     export_symbols_cmds_F77 | \
14989     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14990     postinstall_cmds | postuninstall_cmds | \
14991     old_postinstall_cmds | old_postuninstall_cmds | \
14992     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14993       # Double-quote double-evaled strings.
14994       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14995       ;;
14996     *)
14997       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14998       ;;
14999     esac
15000   done
15001
15002   case $lt_echo in
15003   *'\$0 --fallback-echo"')
15004     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15005     ;;
15006   esac
15007
15008 cfgfile="$ofile"
15009
15010   cat <<__EOF__ >> "$cfgfile"
15011 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15012
15013 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15014
15015 # Shell to use when invoking shell scripts.
15016 SHELL=$lt_SHELL
15017
15018 # Whether or not to build shared libraries.
15019 build_libtool_libs=$enable_shared
15020
15021 # Whether or not to build static libraries.
15022 build_old_libs=$enable_static
15023
15024 # Whether or not to add -lc for building shared libraries.
15025 build_libtool_need_lc=$archive_cmds_need_lc_F77
15026
15027 # Whether or not to disallow shared libs when runtime libs are static
15028 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15029
15030 # Whether or not to optimize for fast installation.
15031 fast_install=$enable_fast_install
15032
15033 # The host system.
15034 host_alias=$host_alias
15035 host=$host
15036 host_os=$host_os
15037
15038 # The build system.
15039 build_alias=$build_alias
15040 build=$build
15041 build_os=$build_os
15042
15043 # An echo program that does not interpret backslashes.
15044 echo=$lt_echo
15045
15046 # The archiver.
15047 AR=$lt_AR
15048 AR_FLAGS=$lt_AR_FLAGS
15049
15050 # A C compiler.
15051 LTCC=$lt_LTCC
15052
15053 # LTCC compiler flags.
15054 LTCFLAGS=$lt_LTCFLAGS
15055
15056 # A language-specific compiler.
15057 CC=$lt_compiler_F77
15058
15059 # Is the compiler the GNU C compiler?
15060 with_gcc=$GCC_F77
15061
15062 # An ERE matcher.
15063 EGREP=$lt_EGREP
15064
15065 # The linker used to build libraries.
15066 LD=$lt_LD_F77
15067
15068 # Whether we need hard or soft links.
15069 LN_S=$lt_LN_S
15070
15071 # A BSD-compatible nm program.
15072 NM=$lt_NM
15073
15074 # A symbol stripping program
15075 STRIP=$lt_STRIP
15076
15077 # Used to examine libraries when file_magic_cmd begins "file"
15078 MAGIC_CMD=$MAGIC_CMD
15079
15080 # Used on cygwin: DLL creation program.
15081 DLLTOOL="$DLLTOOL"
15082
15083 # Used on cygwin: object dumper.
15084 OBJDUMP="$OBJDUMP"
15085
15086 # Used on cygwin: assembler.
15087 AS="$AS"
15088
15089 # The name of the directory that contains temporary libtool files.
15090 objdir=$objdir
15091
15092 # How to create reloadable object files.
15093 reload_flag=$lt_reload_flag
15094 reload_cmds=$lt_reload_cmds
15095
15096 # How to pass a linker flag through the compiler.
15097 wl=$lt_lt_prog_compiler_wl_F77
15098
15099 # Object file suffix (normally "o").
15100 objext="$ac_objext"
15101
15102 # Old archive suffix (normally "a").
15103 libext="$libext"
15104
15105 # Shared library suffix (normally ".so").
15106 shrext_cmds='$shrext_cmds'
15107
15108 # Executable file suffix (normally "").
15109 exeext="$exeext"
15110
15111 # Additional compiler flags for building library objects.
15112 pic_flag=$lt_lt_prog_compiler_pic_F77
15113 pic_mode=$pic_mode
15114
15115 # What is the maximum length of a command?
15116 max_cmd_len=$lt_cv_sys_max_cmd_len
15117
15118 # Does compiler simultaneously support -c and -o options?
15119 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15120
15121 # Must we lock files when doing compilation?
15122 need_locks=$lt_need_locks
15123
15124 # Do we need the lib prefix for modules?
15125 need_lib_prefix=$need_lib_prefix
15126
15127 # Do we need a version for libraries?
15128 need_version=$need_version
15129
15130 # Whether dlopen is supported.
15131 dlopen_support=$enable_dlopen
15132
15133 # Whether dlopen of programs is supported.
15134 dlopen_self=$enable_dlopen_self
15135
15136 # Whether dlopen of statically linked programs is supported.
15137 dlopen_self_static=$enable_dlopen_self_static
15138
15139 # Compiler flag to prevent dynamic linking.
15140 link_static_flag=$lt_lt_prog_compiler_static_F77
15141
15142 # Compiler flag to turn off builtin functions.
15143 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15144
15145 # Compiler flag to allow reflexive dlopens.
15146 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15147
15148 # Compiler flag to generate shared objects directly from archives.
15149 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15150
15151 # Compiler flag to generate thread-safe objects.
15152 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15153
15154 # Library versioning type.
15155 version_type=$version_type
15156
15157 # Format of library name prefix.
15158 libname_spec=$lt_libname_spec
15159
15160 # List of archive names.  First name is the real one, the rest are links.
15161 # The last name is the one that the linker finds with -lNAME.
15162 library_names_spec=$lt_library_names_spec
15163
15164 # The coded name of the library, if different from the real name.
15165 soname_spec=$lt_soname_spec
15166
15167 # Commands used to build and install an old-style archive.
15168 RANLIB=$lt_RANLIB
15169 old_archive_cmds=$lt_old_archive_cmds_F77
15170 old_postinstall_cmds=$lt_old_postinstall_cmds
15171 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15172
15173 # Create an old-style archive from a shared archive.
15174 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15175
15176 # Create a temporary old-style archive to link instead of a shared archive.
15177 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15178
15179 # Commands used to build and install a shared archive.
15180 archive_cmds=$lt_archive_cmds_F77
15181 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15182 postinstall_cmds=$lt_postinstall_cmds
15183 postuninstall_cmds=$lt_postuninstall_cmds
15184
15185 # Commands used to build a loadable module (assumed same as above if empty)
15186 module_cmds=$lt_module_cmds_F77
15187 module_expsym_cmds=$lt_module_expsym_cmds_F77
15188
15189 # Commands to strip libraries.
15190 old_striplib=$lt_old_striplib
15191 striplib=$lt_striplib
15192
15193 # Dependencies to place before the objects being linked to create a
15194 # shared library.
15195 predep_objects=$lt_predep_objects_F77
15196
15197 # Dependencies to place after the objects being linked to create a
15198 # shared library.
15199 postdep_objects=$lt_postdep_objects_F77
15200
15201 # Dependencies to place before the objects being linked to create a
15202 # shared library.
15203 predeps=$lt_predeps_F77
15204
15205 # Dependencies to place after the objects being linked to create a
15206 # shared library.
15207 postdeps=$lt_postdeps_F77
15208
15209 # The library search path used internally by the compiler when linking
15210 # a shared library.
15211 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15212
15213 # Method to check whether dependent libraries are shared objects.
15214 deplibs_check_method=$lt_deplibs_check_method
15215
15216 # Command to use when deplibs_check_method == file_magic.
15217 file_magic_cmd=$lt_file_magic_cmd
15218
15219 # Flag that allows shared libraries with undefined symbols to be built.
15220 allow_undefined_flag=$lt_allow_undefined_flag_F77
15221
15222 # Flag that forces no undefined symbols.
15223 no_undefined_flag=$lt_no_undefined_flag_F77
15224
15225 # Commands used to finish a libtool library installation in a directory.
15226 finish_cmds=$lt_finish_cmds
15227
15228 # Same as above, but a single script fragment to be evaled but not shown.
15229 finish_eval=$lt_finish_eval
15230
15231 # Take the output of nm and produce a listing of raw symbols and C names.
15232 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15233
15234 # Transform the output of nm in a proper C declaration
15235 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15236
15237 # Transform the output of nm in a C name address pair
15238 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15239
15240 # This is the shared library runtime path variable.
15241 runpath_var=$runpath_var
15242
15243 # This is the shared library path variable.
15244 shlibpath_var=$shlibpath_var
15245
15246 # Is shlibpath searched before the hard-coded library search path?
15247 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15248
15249 # How to hardcode a shared library path into an executable.
15250 hardcode_action=$hardcode_action_F77
15251
15252 # Whether we should hardcode library paths into libraries.
15253 hardcode_into_libs=$hardcode_into_libs
15254
15255 # Flag to hardcode \$libdir into a binary during linking.
15256 # This must work even if \$libdir does not exist.
15257 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15258
15259 # If ld is used when linking, flag to hardcode \$libdir into
15260 # a binary during linking. This must work even if \$libdir does
15261 # not exist.
15262 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15263
15264 # Whether we need a single -rpath flag with a separated argument.
15265 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15266
15267 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15268 # resulting binary.
15269 hardcode_direct=$hardcode_direct_F77
15270
15271 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15272 # resulting binary.
15273 hardcode_minus_L=$hardcode_minus_L_F77
15274
15275 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15276 # the resulting binary.
15277 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15278
15279 # Set to yes if building a shared library automatically hardcodes DIR into the library
15280 # and all subsequent libraries and executables linked against it.
15281 hardcode_automatic=$hardcode_automatic_F77
15282
15283 # Variables whose values should be saved in libtool wrapper scripts and
15284 # restored at relink time.
15285 variables_saved_for_relink="$variables_saved_for_relink"
15286
15287 # Whether libtool must link a program against all its dependency libraries.
15288 link_all_deplibs=$link_all_deplibs_F77
15289
15290 # Compile-time system search path for libraries
15291 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15292
15293 # Run-time system search path for libraries
15294 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15295
15296 # Fix the shell variable \$srcfile for the compiler.
15297 fix_srcfile_path="$fix_srcfile_path_F77"
15298
15299 # Set to yes if exported symbols are required.
15300 always_export_symbols=$always_export_symbols_F77
15301
15302 # The commands to list exported symbols.
15303 export_symbols_cmds=$lt_export_symbols_cmds_F77
15304
15305 # The commands to extract the exported symbol list from a shared archive.
15306 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15307
15308 # Symbols that should not be listed in the preloaded symbols.
15309 exclude_expsyms=$lt_exclude_expsyms_F77
15310
15311 # Symbols that must always be exported.
15312 include_expsyms=$lt_include_expsyms_F77
15313
15314 # ### END LIBTOOL TAG CONFIG: $tagname
15315
15316 __EOF__
15317
15318
15319 else
15320   # If there is no Makefile yet, we rely on a make rule to execute
15321   # `config.status --recheck' to rerun these tests and create the
15322   # libtool script then.
15323   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15324   if test -f "$ltmain_in"; then
15325     test -f Makefile && make "$ltmain"
15326   fi
15327 fi
15328
15329
15330 ac_ext=c
15331 ac_cpp='$CPP $CPPFLAGS'
15332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15335
15336 CC="$lt_save_CC"
15337
15338         else
15339           tagname=""
15340         fi
15341         ;;
15342
15343       GCJ)
15344         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15345
15346
15347
15348 # Source file extension for Java test sources.
15349 ac_ext=java
15350
15351 # Object file extension for compiled Java test sources.
15352 objext=o
15353 objext_GCJ=$objext
15354
15355 # Code to be used in simple compile tests
15356 lt_simple_compile_test_code="class foo {}\n"
15357
15358 # Code to be used in simple link tests
15359 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15360
15361 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15362
15363 # If no C compiler was specified, use CC.
15364 LTCC=${LTCC-"$CC"}
15365
15366 # If no C compiler flags were specified, use CFLAGS.
15367 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15368
15369 # Allow CC to be a program name with arguments.
15370 compiler=$CC
15371
15372
15373 # save warnings/boilerplate of simple test code
15374 ac_outfile=conftest.$ac_objext
15375 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15376 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15377 _lt_compiler_boilerplate=`cat conftest.err`
15378 $rm conftest*
15379
15380 ac_outfile=conftest.$ac_objext
15381 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15382 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15383 _lt_linker_boilerplate=`cat conftest.err`
15384 $rm conftest*
15385
15386
15387 # Allow CC to be a program name with arguments.
15388 lt_save_CC="$CC"
15389 CC=${GCJ-"gcj"}
15390 compiler=$CC
15391 compiler_GCJ=$CC
15392 for cc_temp in $compiler""; do
15393   case $cc_temp in
15394     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15395     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15396     \-*) ;;
15397     *) break;;
15398   esac
15399 done
15400 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15401
15402
15403 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15404 archive_cmds_need_lc_GCJ=no
15405
15406 old_archive_cmds_GCJ=$old_archive_cmds
15407
15408
15409 lt_prog_compiler_no_builtin_flag_GCJ=
15410
15411 if test "$GCC" = yes; then
15412   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15413
15414
15415 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15416 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15417 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15418   echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15420   lt_cv_prog_compiler_rtti_exceptions=no
15421   ac_outfile=conftest.$ac_objext
15422    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15423    lt_compiler_flag="-fno-rtti -fno-exceptions"
15424    # Insert the option either (1) after the last *FLAGS variable, or
15425    # (2) before a word containing "conftest.", or (3) at the end.
15426    # Note that $ac_compile itself does not contain backslashes and begins
15427    # with a dollar sign (not a hyphen), so the echo should work correctly.
15428    # The option is referenced via a variable to avoid confusing sed.
15429    lt_compile=`echo "$ac_compile" | $SED \
15430    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15431    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15432    -e 's:$: $lt_compiler_flag:'`
15433    (eval echo "\"\$as_me:15433: $lt_compile\"" >&5)
15434    (eval "$lt_compile" 2>conftest.err)
15435    ac_status=$?
15436    cat conftest.err >&5
15437    echo "$as_me:15437: \$? = $ac_status" >&5
15438    if (exit $ac_status) && test -s "$ac_outfile"; then
15439      # The compiler can only warn and ignore the option if not recognized
15440      # So say no if there are warnings other than the usual output.
15441      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15442      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15443      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15444        lt_cv_prog_compiler_rtti_exceptions=yes
15445      fi
15446    fi
15447    $rm conftest*
15448
15449 fi
15450 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15451 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15452
15453 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15454     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15455 else
15456     :
15457 fi
15458
15459 fi
15460
15461 lt_prog_compiler_wl_GCJ=
15462 lt_prog_compiler_pic_GCJ=
15463 lt_prog_compiler_static_GCJ=
15464
15465 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15466 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15467
15468   if test "$GCC" = yes; then
15469     lt_prog_compiler_wl_GCJ='-Wl,'
15470     lt_prog_compiler_static_GCJ='-static'
15471
15472     case $host_os in
15473       aix*)
15474       # All AIX code is PIC.
15475       if test "$host_cpu" = ia64; then
15476         # AIX 5 now supports IA64 processor
15477         lt_prog_compiler_static_GCJ='-Bstatic'
15478       fi
15479       ;;
15480
15481     amigaos*)
15482       # FIXME: we need at least 68020 code to build shared libraries, but
15483       # adding the `-m68020' flag to GCC prevents building anything better,
15484       # like `-m68040'.
15485       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15486       ;;
15487
15488     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15489       # PIC is the default for these OSes.
15490       ;;
15491
15492     mingw* | pw32* | os2*)
15493       # This hack is so that the source file can tell whether it is being
15494       # built for inclusion in a dll (and should export symbols for example).
15495       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15496       ;;
15497
15498     darwin* | rhapsody*)
15499       # PIC is the default on this platform
15500       # Common symbols not allowed in MH_DYLIB files
15501       lt_prog_compiler_pic_GCJ='-fno-common'
15502       ;;
15503
15504     interix3*)
15505       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15506       # Instead, we relocate shared libraries at runtime.
15507       ;;
15508
15509     msdosdjgpp*)
15510       # Just because we use GCC doesn't mean we suddenly get shared libraries
15511       # on systems that don't support them.
15512       lt_prog_compiler_can_build_shared_GCJ=no
15513       enable_shared=no
15514       ;;
15515
15516     sysv4*MP*)
15517       if test -d /usr/nec; then
15518         lt_prog_compiler_pic_GCJ=-Kconform_pic
15519       fi
15520       ;;
15521
15522     hpux*)
15523       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15524       # not for PA HP-UX.
15525       case $host_cpu in
15526       hppa*64*|ia64*)
15527         # +Z the default
15528         ;;
15529       *)
15530         lt_prog_compiler_pic_GCJ='-fPIC'
15531         ;;
15532       esac
15533       ;;
15534
15535     *)
15536       lt_prog_compiler_pic_GCJ='-fPIC'
15537       ;;
15538     esac
15539   else
15540     # PORTME Check for flag to pass linker flags through the system compiler.
15541     case $host_os in
15542     aix*)
15543       lt_prog_compiler_wl_GCJ='-Wl,'
15544       if test "$host_cpu" = ia64; then
15545         # AIX 5 now supports IA64 processor
15546         lt_prog_compiler_static_GCJ='-Bstatic'
15547       else
15548         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15549       fi
15550       ;;
15551       darwin*)
15552         # PIC is the default on this platform
15553         # Common symbols not allowed in MH_DYLIB files
15554        case $cc_basename in
15555          xlc*)
15556          lt_prog_compiler_pic_GCJ='-qnocommon'
15557          lt_prog_compiler_wl_GCJ='-Wl,'
15558          ;;
15559        esac
15560        ;;
15561
15562     mingw* | pw32* | os2*)
15563       # This hack is so that the source file can tell whether it is being
15564       # built for inclusion in a dll (and should export symbols for example).
15565       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15566       ;;
15567
15568     hpux9* | hpux10* | hpux11*)
15569       lt_prog_compiler_wl_GCJ='-Wl,'
15570       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15571       # not for PA HP-UX.
15572       case $host_cpu in
15573       hppa*64*|ia64*)
15574         # +Z the default
15575         ;;
15576       *)
15577         lt_prog_compiler_pic_GCJ='+Z'
15578         ;;
15579       esac
15580       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15581       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15582       ;;
15583
15584     irix5* | irix6* | nonstopux*)
15585       lt_prog_compiler_wl_GCJ='-Wl,'
15586       # PIC (with -KPIC) is the default.
15587       lt_prog_compiler_static_GCJ='-non_shared'
15588       ;;
15589
15590     newsos6)
15591       lt_prog_compiler_pic_GCJ='-KPIC'
15592       lt_prog_compiler_static_GCJ='-Bstatic'
15593       ;;
15594
15595     linux* | k*bsd*-gnu)
15596       case $cc_basename in
15597       icc* | ecc*)
15598         lt_prog_compiler_wl_GCJ='-Wl,'
15599         lt_prog_compiler_pic_GCJ='-KPIC'
15600         lt_prog_compiler_static_GCJ='-static'
15601         ;;
15602       pgcc* | pgf77* | pgf90* | pgf95*)
15603         # Portland Group compilers (*not* the Pentium gcc compiler,
15604         # which looks to be a dead project)
15605         lt_prog_compiler_wl_GCJ='-Wl,'
15606         lt_prog_compiler_pic_GCJ='-fpic'
15607         lt_prog_compiler_static_GCJ='-Bstatic'
15608         ;;
15609       ccc*)
15610         lt_prog_compiler_wl_GCJ='-Wl,'
15611         # All Alpha code is PIC.
15612         lt_prog_compiler_static_GCJ='-non_shared'
15613         ;;
15614       esac
15615       ;;
15616
15617     osf3* | osf4* | osf5*)
15618       lt_prog_compiler_wl_GCJ='-Wl,'
15619       # All OSF/1 code is PIC.
15620       lt_prog_compiler_static_GCJ='-non_shared'
15621       ;;
15622
15623     solaris*)
15624       lt_prog_compiler_pic_GCJ='-KPIC'
15625       lt_prog_compiler_static_GCJ='-Bstatic'
15626       case $cc_basename in
15627       f77* | f90* | f95*)
15628         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15629       *)
15630         lt_prog_compiler_wl_GCJ='-Wl,';;
15631       esac
15632       ;;
15633
15634     sunos4*)
15635       lt_prog_compiler_wl_GCJ='-Qoption ld '
15636       lt_prog_compiler_pic_GCJ='-PIC'
15637       lt_prog_compiler_static_GCJ='-Bstatic'
15638       ;;
15639
15640     sysv4 | sysv4.2uw2* | sysv4.3*)
15641       lt_prog_compiler_wl_GCJ='-Wl,'
15642       lt_prog_compiler_pic_GCJ='-KPIC'
15643       lt_prog_compiler_static_GCJ='-Bstatic'
15644       ;;
15645
15646     sysv4*MP*)
15647       if test -d /usr/nec ;then
15648         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15649         lt_prog_compiler_static_GCJ='-Bstatic'
15650       fi
15651       ;;
15652
15653     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15654       lt_prog_compiler_wl_GCJ='-Wl,'
15655       lt_prog_compiler_pic_GCJ='-KPIC'
15656       lt_prog_compiler_static_GCJ='-Bstatic'
15657       ;;
15658
15659     unicos*)
15660       lt_prog_compiler_wl_GCJ='-Wl,'
15661       lt_prog_compiler_can_build_shared_GCJ=no
15662       ;;
15663
15664     uts4*)
15665       lt_prog_compiler_pic_GCJ='-pic'
15666       lt_prog_compiler_static_GCJ='-Bstatic'
15667       ;;
15668
15669     *)
15670       lt_prog_compiler_can_build_shared_GCJ=no
15671       ;;
15672     esac
15673   fi
15674
15675 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15676 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15677
15678 #
15679 # Check to make sure the PIC flag actually works.
15680 #
15681 if test -n "$lt_prog_compiler_pic_GCJ"; then
15682
15683 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15684 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15685 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15686   echo $ECHO_N "(cached) $ECHO_C" >&6
15687 else
15688   lt_prog_compiler_pic_works_GCJ=no
15689   ac_outfile=conftest.$ac_objext
15690    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15691    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15692    # Insert the option either (1) after the last *FLAGS variable, or
15693    # (2) before a word containing "conftest.", or (3) at the end.
15694    # Note that $ac_compile itself does not contain backslashes and begins
15695    # with a dollar sign (not a hyphen), so the echo should work correctly.
15696    # The option is referenced via a variable to avoid confusing sed.
15697    lt_compile=`echo "$ac_compile" | $SED \
15698    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15699    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15700    -e 's:$: $lt_compiler_flag:'`
15701    (eval echo "\"\$as_me:15701: $lt_compile\"" >&5)
15702    (eval "$lt_compile" 2>conftest.err)
15703    ac_status=$?
15704    cat conftest.err >&5
15705    echo "$as_me:15705: \$? = $ac_status" >&5
15706    if (exit $ac_status) && test -s "$ac_outfile"; then
15707      # The compiler can only warn and ignore the option if not recognized
15708      # So say no if there are warnings other than the usual output.
15709      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15710      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15711      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15712        lt_prog_compiler_pic_works_GCJ=yes
15713      fi
15714    fi
15715    $rm conftest*
15716
15717 fi
15718 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15719 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15720
15721 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15722     case $lt_prog_compiler_pic_GCJ in
15723      "" | " "*) ;;
15724      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15725      esac
15726 else
15727     lt_prog_compiler_pic_GCJ=
15728      lt_prog_compiler_can_build_shared_GCJ=no
15729 fi
15730
15731 fi
15732 case $host_os in
15733   # For platforms which do not support PIC, -DPIC is meaningless:
15734   *djgpp*)
15735     lt_prog_compiler_pic_GCJ=
15736     ;;
15737   *)
15738     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15739     ;;
15740 esac
15741
15742 #
15743 # Check to make sure the static flag actually works.
15744 #
15745 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15746 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15747 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15748 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15749   echo $ECHO_N "(cached) $ECHO_C" >&6
15750 else
15751   lt_prog_compiler_static_works_GCJ=no
15752    save_LDFLAGS="$LDFLAGS"
15753    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15754    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15755    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15756      # The linker can only warn and ignore the option if not recognized
15757      # So say no if there are warnings
15758      if test -s conftest.err; then
15759        # Append any errors to the config.log.
15760        cat conftest.err 1>&5
15761        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15762        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15763        if diff conftest.exp conftest.er2 >/dev/null; then
15764          lt_prog_compiler_static_works_GCJ=yes
15765        fi
15766      else
15767        lt_prog_compiler_static_works_GCJ=yes
15768      fi
15769    fi
15770    $rm conftest*
15771    LDFLAGS="$save_LDFLAGS"
15772
15773 fi
15774 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15775 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15776
15777 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15778     :
15779 else
15780     lt_prog_compiler_static_GCJ=
15781 fi
15782
15783
15784 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15785 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15786 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15787   echo $ECHO_N "(cached) $ECHO_C" >&6
15788 else
15789   lt_cv_prog_compiler_c_o_GCJ=no
15790    $rm -r conftest 2>/dev/null
15791    mkdir conftest
15792    cd conftest
15793    mkdir out
15794    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15795
15796    lt_compiler_flag="-o out/conftest2.$ac_objext"
15797    # Insert the option either (1) after the last *FLAGS variable, or
15798    # (2) before a word containing "conftest.", or (3) at the end.
15799    # Note that $ac_compile itself does not contain backslashes and begins
15800    # with a dollar sign (not a hyphen), so the echo should work correctly.
15801    lt_compile=`echo "$ac_compile" | $SED \
15802    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15803    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15804    -e 's:$: $lt_compiler_flag:'`
15805    (eval echo "\"\$as_me:15805: $lt_compile\"" >&5)
15806    (eval "$lt_compile" 2>out/conftest.err)
15807    ac_status=$?
15808    cat out/conftest.err >&5
15809    echo "$as_me:15809: \$? = $ac_status" >&5
15810    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15811    then
15812      # The compiler can only warn and ignore the option if not recognized
15813      # So say no if there are warnings
15814      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15815      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15816      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15817        lt_cv_prog_compiler_c_o_GCJ=yes
15818      fi
15819    fi
15820    chmod u+w . 2>&5
15821    $rm conftest*
15822    # SGI C++ compiler will create directory out/ii_files/ for
15823    # template instantiation
15824    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15825    $rm out/* && rmdir out
15826    cd ..
15827    rmdir conftest
15828    $rm conftest*
15829
15830 fi
15831 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15832 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15833
15834
15835 hard_links="nottested"
15836 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15837   # do not overwrite the value of need_locks provided by the user
15838   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15839 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15840   hard_links=yes
15841   $rm conftest*
15842   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15843   touch conftest.a
15844   ln conftest.a conftest.b 2>&5 || hard_links=no
15845   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15846   echo "$as_me:$LINENO: result: $hard_links" >&5
15847 echo "${ECHO_T}$hard_links" >&6
15848   if test "$hard_links" = no; then
15849     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15850 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15851     need_locks=warn
15852   fi
15853 else
15854   need_locks=no
15855 fi
15856
15857 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15858 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15859
15860   runpath_var=
15861   allow_undefined_flag_GCJ=
15862   enable_shared_with_static_runtimes_GCJ=no
15863   archive_cmds_GCJ=
15864   archive_expsym_cmds_GCJ=
15865   old_archive_From_new_cmds_GCJ=
15866   old_archive_from_expsyms_cmds_GCJ=
15867   export_dynamic_flag_spec_GCJ=
15868   whole_archive_flag_spec_GCJ=
15869   thread_safe_flag_spec_GCJ=
15870   hardcode_libdir_flag_spec_GCJ=
15871   hardcode_libdir_flag_spec_ld_GCJ=
15872   hardcode_libdir_separator_GCJ=
15873   hardcode_direct_GCJ=no
15874   hardcode_minus_L_GCJ=no
15875   hardcode_shlibpath_var_GCJ=unsupported
15876   link_all_deplibs_GCJ=unknown
15877   hardcode_automatic_GCJ=no
15878   module_cmds_GCJ=
15879   module_expsym_cmds_GCJ=
15880   always_export_symbols_GCJ=no
15881   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15882   # include_expsyms should be a list of space-separated symbols to be *always*
15883   # included in the symbol list
15884   include_expsyms_GCJ=
15885   # exclude_expsyms can be an extended regexp of symbols to exclude
15886   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15887   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15888   # as well as any symbol that contains `d'.
15889   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15890   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15891   # platforms (ab)use it in PIC code, but their linkers get confused if
15892   # the symbol is explicitly referenced.  Since portable code cannot
15893   # rely on this symbol name, it's probably fine to never include it in
15894   # preloaded symbol tables.
15895   extract_expsyms_cmds=
15896   # Just being paranoid about ensuring that cc_basename is set.
15897   for cc_temp in $compiler""; do
15898   case $cc_temp in
15899     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15900     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15901     \-*) ;;
15902     *) break;;
15903   esac
15904 done
15905 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15906
15907   case $host_os in
15908   cygwin* | mingw* | pw32*)
15909     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15910     # When not using gcc, we currently assume that we are using
15911     # Microsoft Visual C++.
15912     if test "$GCC" != yes; then
15913       with_gnu_ld=no
15914     fi
15915     ;;
15916   interix*)
15917     # we just hope/assume this is gcc and not c89 (= MSVC++)
15918     with_gnu_ld=yes
15919     ;;
15920   openbsd*)
15921     with_gnu_ld=no
15922     ;;
15923   esac
15924
15925   ld_shlibs_GCJ=yes
15926   if test "$with_gnu_ld" = yes; then
15927     # If archive_cmds runs LD, not CC, wlarc should be empty
15928     wlarc='${wl}'
15929
15930     # Set some defaults for GNU ld with shared library support. These
15931     # are reset later if shared libraries are not supported. Putting them
15932     # here allows them to be overridden if necessary.
15933     runpath_var=LD_RUN_PATH
15934     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15935     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15936     # ancient GNU ld didn't support --whole-archive et. al.
15937     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15938         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15939       else
15940         whole_archive_flag_spec_GCJ=
15941     fi
15942     supports_anon_versioning=no
15943     case `$LD -v 2>/dev/null` in
15944       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15945       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15946       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15947       *\ 2.11.*) ;; # other 2.11 versions
15948       *) supports_anon_versioning=yes ;;
15949     esac
15950
15951     # See if GNU ld supports shared libraries.
15952     case $host_os in
15953     aix3* | aix4* | aix5*)
15954       # On AIX/PPC, the GNU linker is very broken
15955       if test "$host_cpu" != ia64; then
15956         ld_shlibs_GCJ=no
15957         cat <<EOF 1>&2
15958
15959 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15960 *** to be unable to reliably create shared libraries on AIX.
15961 *** Therefore, libtool is disabling shared libraries support.  If you
15962 *** really care for shared libraries, you may want to modify your PATH
15963 *** so that a non-GNU linker is found, and then restart.
15964
15965 EOF
15966       fi
15967       ;;
15968
15969     amigaos*)
15970       archive_cmds_GCJ='$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)'
15971       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15972       hardcode_minus_L_GCJ=yes
15973
15974       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15975       # that the semantics of dynamic libraries on AmigaOS, at least up
15976       # to version 4, is to share data among multiple programs linked
15977       # with the same dynamic library.  Since this doesn't match the
15978       # behavior of shared libraries on other platforms, we can't use
15979       # them.
15980       ld_shlibs_GCJ=no
15981       ;;
15982
15983     beos*)
15984       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15985         allow_undefined_flag_GCJ=unsupported
15986         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15987         # support --undefined.  This deserves some investigation.  FIXME
15988         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15989       else
15990         ld_shlibs_GCJ=no
15991       fi
15992       ;;
15993
15994     cygwin* | mingw* | pw32*)
15995       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15996       # as there is no search path for DLLs.
15997       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15998       allow_undefined_flag_GCJ=unsupported
15999       always_export_symbols_GCJ=no
16000       enable_shared_with_static_runtimes_GCJ=yes
16001       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16002
16003       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16004         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16005         # If the export-symbols file already is a .def file (1st line
16006         # is EXPORTS), use it as is; otherwise, prepend...
16007         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16008           cp $export_symbols $output_objdir/$soname.def;
16009         else
16010           echo EXPORTS > $output_objdir/$soname.def;
16011           cat $export_symbols >> $output_objdir/$soname.def;
16012         fi~
16013         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16014       else
16015         ld_shlibs_GCJ=no
16016       fi
16017       ;;
16018
16019     interix3*)
16020       hardcode_direct_GCJ=no
16021       hardcode_shlibpath_var_GCJ=no
16022       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16023       export_dynamic_flag_spec_GCJ='${wl}-E'
16024       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16025       # Instead, shared libraries are loaded at an image base (0x10000000 by
16026       # default) and relocated if they conflict, which is a slow very memory
16027       # consuming and fragmenting process.  To avoid this, we pick a random,
16028       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16029       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16030       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16031       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16032       ;;
16033
16034     linux* | k*bsd*-gnu)
16035       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16036         tmp_addflag=
16037         case $cc_basename,$host_cpu in
16038         pgcc*)                          # Portland Group C compiler
16039           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16040           tmp_addflag=' $pic_flag'
16041           ;;
16042         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16043           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16044           tmp_addflag=' $pic_flag -Mnomain' ;;
16045         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16046           tmp_addflag=' -i_dynamic' ;;
16047         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16048           tmp_addflag=' -i_dynamic -nofor_main' ;;
16049         ifc* | ifort*)                  # Intel Fortran compiler
16050           tmp_addflag=' -nofor_main' ;;
16051         esac
16052         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16053
16054         if test $supports_anon_versioning = yes; then
16055           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16056   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16057   $echo "local: *; };" >> $output_objdir/$libname.ver~
16058           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16059         fi
16060         link_all_deplibs_GCJ=no
16061       else
16062         ld_shlibs_GCJ=no
16063       fi
16064       ;;
16065
16066     netbsd* | netbsdelf*-gnu)
16067       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16068         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16069         wlarc=
16070       else
16071         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16072         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16073       fi
16074       ;;
16075
16076     solaris*)
16077       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16078         ld_shlibs_GCJ=no
16079         cat <<EOF 1>&2
16080
16081 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16082 *** create shared libraries on Solaris systems.  Therefore, libtool
16083 *** is disabling shared libraries support.  We urge you to upgrade GNU
16084 *** binutils to release 2.9.1 or newer.  Another option is to modify
16085 *** your PATH or compiler configuration so that the native linker is
16086 *** used, and then restart.
16087
16088 EOF
16089       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16090         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16091         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16092       else
16093         ld_shlibs_GCJ=no
16094       fi
16095       ;;
16096
16097     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16098       case `$LD -v 2>&1` in
16099         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16100         ld_shlibs_GCJ=no
16101         cat <<_LT_EOF 1>&2
16102
16103 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16104 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16105 *** is disabling shared libraries support.  We urge you to upgrade GNU
16106 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16107 *** your PATH or compiler configuration so that the native linker is
16108 *** used, and then restart.
16109
16110 _LT_EOF
16111         ;;
16112         *)
16113           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16114             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16115             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16116             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16117           else
16118             ld_shlibs_GCJ=no
16119           fi
16120         ;;
16121       esac
16122       ;;
16123
16124     sunos4*)
16125       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16126       wlarc=
16127       hardcode_direct_GCJ=yes
16128       hardcode_shlibpath_var_GCJ=no
16129       ;;
16130
16131     *)
16132       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16133         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16134         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16135       else
16136         ld_shlibs_GCJ=no
16137       fi
16138       ;;
16139     esac
16140
16141     if test "$ld_shlibs_GCJ" = no; then
16142       runpath_var=
16143       hardcode_libdir_flag_spec_GCJ=
16144       export_dynamic_flag_spec_GCJ=
16145       whole_archive_flag_spec_GCJ=
16146     fi
16147   else
16148     # PORTME fill in a description of your system's linker (not GNU ld)
16149     case $host_os in
16150     aix3*)
16151       allow_undefined_flag_GCJ=unsupported
16152       always_export_symbols_GCJ=yes
16153       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16154       # Note: this linker hardcodes the directories in LIBPATH if there
16155       # are no directories specified by -L.
16156       hardcode_minus_L_GCJ=yes
16157       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16158         # Neither direct hardcoding nor static linking is supported with a
16159         # broken collect2.
16160         hardcode_direct_GCJ=unsupported
16161       fi
16162       ;;
16163
16164     aix4* | aix5*)
16165       if test "$host_cpu" = ia64; then
16166         # On IA64, the linker does run time linking by default, so we don't
16167         # have to do anything special.
16168         aix_use_runtimelinking=no
16169         exp_sym_flag='-Bexport'
16170         no_entry_flag=""
16171       else
16172         # If we're using GNU nm, then we don't want the "-C" option.
16173         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16174         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16175           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16176         else
16177           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16178         fi
16179         aix_use_runtimelinking=no
16180
16181         # Test if we are trying to use run time linking or normal
16182         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16183         # need to do runtime linking.
16184         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16185           for ld_flag in $LDFLAGS; do
16186           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16187             aix_use_runtimelinking=yes
16188             break
16189           fi
16190           done
16191           ;;
16192         esac
16193
16194         exp_sym_flag='-bexport'
16195         no_entry_flag='-bnoentry'
16196       fi
16197
16198       # When large executables or shared objects are built, AIX ld can
16199       # have problems creating the table of contents.  If linking a library
16200       # or program results in "error TOC overflow" add -mminimal-toc to
16201       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16202       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16203
16204       archive_cmds_GCJ=''
16205       hardcode_direct_GCJ=yes
16206       hardcode_libdir_separator_GCJ=':'
16207       link_all_deplibs_GCJ=yes
16208
16209       if test "$GCC" = yes; then
16210         case $host_os in aix4.[012]|aix4.[012].*)
16211         # We only want to do this on AIX 4.2 and lower, the check
16212         # below for broken collect2 doesn't work under 4.3+
16213           collect2name=`${CC} -print-prog-name=collect2`
16214           if test -f "$collect2name" && \
16215            strings "$collect2name" | grep resolve_lib_name >/dev/null
16216           then
16217           # We have reworked collect2
16218           hardcode_direct_GCJ=yes
16219           else
16220           # We have old collect2
16221           hardcode_direct_GCJ=unsupported
16222           # It fails to find uninstalled libraries when the uninstalled
16223           # path is not listed in the libpath.  Setting hardcode_minus_L
16224           # to unsupported forces relinking
16225           hardcode_minus_L_GCJ=yes
16226           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16227           hardcode_libdir_separator_GCJ=
16228           fi
16229           ;;
16230         esac
16231         shared_flag='-shared'
16232         if test "$aix_use_runtimelinking" = yes; then
16233           shared_flag="$shared_flag "'${wl}-G'
16234         fi
16235       else
16236         # not using gcc
16237         if test "$host_cpu" = ia64; then
16238         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16239         # chokes on -Wl,-G. The following line is correct:
16240           shared_flag='-G'
16241         else
16242           if test "$aix_use_runtimelinking" = yes; then
16243             shared_flag='${wl}-G'
16244           else
16245             shared_flag='${wl}-bM:SRE'
16246           fi
16247         fi
16248       fi
16249
16250       # It seems that -bexpall does not export symbols beginning with
16251       # underscore (_), so it is better to generate a list of symbols to export.
16252       always_export_symbols_GCJ=yes
16253       if test "$aix_use_runtimelinking" = yes; then
16254         # Warning - without using the other runtime loading flags (-brtl),
16255         # -berok will link without error, but may produce a broken library.
16256         allow_undefined_flag_GCJ='-berok'
16257        # Determine the default libpath from the value encoded in an empty executable.
16258        cat >conftest.$ac_ext <<_ACEOF
16259 /* confdefs.h.  */
16260 _ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h.  */
16264
16265 int
16266 main ()
16267 {
16268
16269   ;
16270   return 0;
16271 }
16272 _ACEOF
16273 rm -f conftest.$ac_objext conftest$ac_exeext
16274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16275   (eval $ac_link) 2>conftest.er1
16276   ac_status=$?
16277   grep -v '^ *+' conftest.er1 >conftest.err
16278   rm -f conftest.er1
16279   cat conftest.err >&5
16280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281   (exit $ac_status); } &&
16282          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284   (eval $ac_try) 2>&5
16285   ac_status=$?
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); }; } &&
16288          { ac_try='test -s conftest$ac_exeext'
16289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290   (eval $ac_try) 2>&5
16291   ac_status=$?
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); }; }; then
16294
16295 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16296 }'`
16297 # Check for a 64-bit object if we didn't find anything.
16298 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16299 }'`; fi
16300 else
16301   echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16303
16304 fi
16305 rm -f conftest.err conftest.$ac_objext \
16306       conftest$ac_exeext conftest.$ac_ext
16307 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16308
16309        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16310         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16311        else
16312         if test "$host_cpu" = ia64; then
16313           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16314           allow_undefined_flag_GCJ="-z nodefs"
16315           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16316         else
16317          # Determine the default libpath from the value encoded in an empty executable.
16318          cat >conftest.$ac_ext <<_ACEOF
16319 /* confdefs.h.  */
16320 _ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h.  */
16324
16325 int
16326 main ()
16327 {
16328
16329   ;
16330   return 0;
16331 }
16332 _ACEOF
16333 rm -f conftest.$ac_objext conftest$ac_exeext
16334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16335   (eval $ac_link) 2>conftest.er1
16336   ac_status=$?
16337   grep -v '^ *+' conftest.er1 >conftest.err
16338   rm -f conftest.er1
16339   cat conftest.err >&5
16340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341   (exit $ac_status); } &&
16342          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344   (eval $ac_try) 2>&5
16345   ac_status=$?
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); }; } &&
16348          { ac_try='test -s conftest$ac_exeext'
16349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350   (eval $ac_try) 2>&5
16351   ac_status=$?
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); }; }; then
16354
16355 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16356 }'`
16357 # Check for a 64-bit object if we didn't find anything.
16358 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16359 }'`; fi
16360 else
16361   echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16363
16364 fi
16365 rm -f conftest.err conftest.$ac_objext \
16366       conftest$ac_exeext conftest.$ac_ext
16367 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16368
16369          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16370           # Warning - without using the other run time loading flags,
16371           # -berok will link without error, but may produce a broken library.
16372           no_undefined_flag_GCJ=' ${wl}-bernotok'
16373           allow_undefined_flag_GCJ=' ${wl}-berok'
16374           # Exported symbols can be pulled into shared objects from archives
16375           whole_archive_flag_spec_GCJ='$convenience'
16376           archive_cmds_need_lc_GCJ=yes
16377           # This is similar to how AIX traditionally builds its shared libraries.
16378           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16379         fi
16380       fi
16381       ;;
16382
16383     amigaos*)
16384       archive_cmds_GCJ='$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)'
16385       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16386       hardcode_minus_L_GCJ=yes
16387       # see comment about different semantics on the GNU ld section
16388       ld_shlibs_GCJ=no
16389       ;;
16390
16391     bsdi[45]*)
16392       export_dynamic_flag_spec_GCJ=-rdynamic
16393       ;;
16394
16395     cygwin* | mingw* | pw32*)
16396       # When not using gcc, we currently assume that we are using
16397       # Microsoft Visual C++.
16398       # hardcode_libdir_flag_spec is actually meaningless, as there is
16399       # no search path for DLLs.
16400       hardcode_libdir_flag_spec_GCJ=' '
16401       allow_undefined_flag_GCJ=unsupported
16402       # Tell ltmain to make .lib files, not .a files.
16403       libext=lib
16404       # Tell ltmain to make .dll files, not .so files.
16405       shrext_cmds=".dll"
16406       # FIXME: Setting linknames here is a bad hack.
16407       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16408       # The linker will automatically build a .lib file if we build a DLL.
16409       old_archive_From_new_cmds_GCJ='true'
16410       # FIXME: Should let the user specify the lib program.
16411       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16412       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16413       enable_shared_with_static_runtimes_GCJ=yes
16414       ;;
16415
16416     darwin* | rhapsody*)
16417       case $host_os in
16418         rhapsody* | darwin1.[012])
16419          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16420          ;;
16421        *) # Darwin 1.3 on
16422          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16423            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16424          else
16425            case ${MACOSX_DEPLOYMENT_TARGET} in
16426              10.[012])
16427                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16428                ;;
16429              10.*)
16430                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16431                ;;
16432            esac
16433          fi
16434          ;;
16435       esac
16436       archive_cmds_need_lc_GCJ=no
16437       hardcode_direct_GCJ=no
16438       hardcode_automatic_GCJ=yes
16439       hardcode_shlibpath_var_GCJ=unsupported
16440       whole_archive_flag_spec_GCJ=''
16441       link_all_deplibs_GCJ=yes
16442     if test "$GCC" = yes ; then
16443         output_verbose_link_cmd='echo'
16444         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16445       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16446       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16447       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16448       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16449     else
16450       case $cc_basename in
16451         xlc*)
16452          output_verbose_link_cmd='echo'
16453          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16454          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16455           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16456          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16457           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16458           ;;
16459        *)
16460          ld_shlibs_GCJ=no
16461           ;;
16462       esac
16463     fi
16464       ;;
16465
16466     dgux*)
16467       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16468       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16469       hardcode_shlibpath_var_GCJ=no
16470       ;;
16471
16472     freebsd1*)
16473       ld_shlibs_GCJ=no
16474       ;;
16475
16476     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16477     # support.  Future versions do this automatically, but an explicit c++rt0.o
16478     # does not break anything, and helps significantly (at the cost of a little
16479     # extra space).
16480     freebsd2.2*)
16481       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16482       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16483       hardcode_direct_GCJ=yes
16484       hardcode_shlibpath_var_GCJ=no
16485       ;;
16486
16487     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16488     freebsd2*)
16489       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16490       hardcode_direct_GCJ=yes
16491       hardcode_minus_L_GCJ=yes
16492       hardcode_shlibpath_var_GCJ=no
16493       ;;
16494
16495     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16496     freebsd* | dragonfly*)
16497       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16498       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16499       hardcode_direct_GCJ=yes
16500       hardcode_shlibpath_var_GCJ=no
16501       ;;
16502
16503     hpux9*)
16504       if test "$GCC" = yes; then
16505         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16506       else
16507         archive_cmds_GCJ='$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'
16508       fi
16509       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16510       hardcode_libdir_separator_GCJ=:
16511       hardcode_direct_GCJ=yes
16512
16513       # hardcode_minus_L: Not really in the search PATH,
16514       # but as the default location of the library.
16515       hardcode_minus_L_GCJ=yes
16516       export_dynamic_flag_spec_GCJ='${wl}-E'
16517       ;;
16518
16519     hpux10*)
16520       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16521         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16522       else
16523         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16524       fi
16525       if test "$with_gnu_ld" = no; then
16526         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16527         hardcode_libdir_separator_GCJ=:
16528
16529         hardcode_direct_GCJ=yes
16530         export_dynamic_flag_spec_GCJ='${wl}-E'
16531
16532         # hardcode_minus_L: Not really in the search PATH,
16533         # but as the default location of the library.
16534         hardcode_minus_L_GCJ=yes
16535       fi
16536       ;;
16537
16538     hpux11*)
16539       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16540         case $host_cpu in
16541         hppa*64*)
16542           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16543           ;;
16544         ia64*)
16545           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16546           ;;
16547         *)
16548           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16549           ;;
16550         esac
16551       else
16552         case $host_cpu in
16553         hppa*64*)
16554           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16555           ;;
16556         ia64*)
16557           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16558           ;;
16559         *)
16560           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16561           ;;
16562         esac
16563       fi
16564       if test "$with_gnu_ld" = no; then
16565         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16566         hardcode_libdir_separator_GCJ=:
16567
16568         case $host_cpu in
16569         hppa*64*|ia64*)
16570           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16571           hardcode_direct_GCJ=no
16572           hardcode_shlibpath_var_GCJ=no
16573           ;;
16574         *)
16575           hardcode_direct_GCJ=yes
16576           export_dynamic_flag_spec_GCJ='${wl}-E'
16577
16578           # hardcode_minus_L: Not really in the search PATH,
16579           # but as the default location of the library.
16580           hardcode_minus_L_GCJ=yes
16581           ;;
16582         esac
16583       fi
16584       ;;
16585
16586     irix5* | irix6* | nonstopux*)
16587       if test "$GCC" = yes; then
16588         archive_cmds_GCJ='$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'
16589       else
16590         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16591         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16592       fi
16593       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16594       hardcode_libdir_separator_GCJ=:
16595       link_all_deplibs_GCJ=yes
16596       ;;
16597
16598     netbsd* | netbsdelf*-gnu)
16599       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16600         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16601       else
16602         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16603       fi
16604       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16605       hardcode_direct_GCJ=yes
16606       hardcode_shlibpath_var_GCJ=no
16607       ;;
16608
16609     newsos6)
16610       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16611       hardcode_direct_GCJ=yes
16612       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16613       hardcode_libdir_separator_GCJ=:
16614       hardcode_shlibpath_var_GCJ=no
16615       ;;
16616
16617     openbsd*)
16618       hardcode_direct_GCJ=yes
16619       hardcode_shlibpath_var_GCJ=no
16620       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16621         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16622         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16623         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16624         export_dynamic_flag_spec_GCJ='${wl}-E'
16625       else
16626        case $host_os in
16627          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16628            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16629            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16630            ;;
16631          *)
16632            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16633            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16634            ;;
16635        esac
16636       fi
16637       ;;
16638
16639     os2*)
16640       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16641       hardcode_minus_L_GCJ=yes
16642       allow_undefined_flag_GCJ=unsupported
16643       archive_cmds_GCJ='$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'
16644       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16645       ;;
16646
16647     osf3*)
16648       if test "$GCC" = yes; then
16649         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16650         archive_cmds_GCJ='$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'
16651       else
16652         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16653         archive_cmds_GCJ='$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'
16654       fi
16655       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16656       hardcode_libdir_separator_GCJ=:
16657       ;;
16658
16659     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16660       if test "$GCC" = yes; then
16661         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16662         archive_cmds_GCJ='$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'
16663         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16664       else
16665         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16666         archive_cmds_GCJ='$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'
16667         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16668         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16669
16670         # Both c and cxx compiler support -rpath directly
16671         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16672       fi
16673       hardcode_libdir_separator_GCJ=:
16674       ;;
16675
16676     solaris*)
16677       no_undefined_flag_GCJ=' -z text'
16678       if test "$GCC" = yes; then
16679         wlarc='${wl}'
16680         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16681         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16682           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16683       else
16684         wlarc=''
16685         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16686         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16687         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16688       fi
16689       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16690       hardcode_shlibpath_var_GCJ=no
16691       case $host_os in
16692       solaris2.[0-5] | solaris2.[0-5].*) ;;
16693       *)
16694         # The compiler driver will combine linker options so we
16695         # cannot just pass the convience library names through
16696         # without $wl, iff we do not link with $LD.
16697         # Luckily, gcc supports the same syntax we need for Sun Studio.
16698         # Supported since Solaris 2.6 (maybe 2.5.1?)
16699         case $wlarc in
16700         '')
16701           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16702         *)
16703           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16704         esac ;;
16705       esac
16706       link_all_deplibs_GCJ=yes
16707       ;;
16708
16709     sunos4*)
16710       if test "x$host_vendor" = xsequent; then
16711         # Use $CC to link under sequent, because it throws in some extra .o
16712         # files that make .init and .fini sections work.
16713         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16714       else
16715         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16716       fi
16717       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16718       hardcode_direct_GCJ=yes
16719       hardcode_minus_L_GCJ=yes
16720       hardcode_shlibpath_var_GCJ=no
16721       ;;
16722
16723     sysv4)
16724       case $host_vendor in
16725         sni)
16726           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16727           hardcode_direct_GCJ=yes # is this really true???
16728         ;;
16729         siemens)
16730           ## LD is ld it makes a PLAMLIB
16731           ## CC just makes a GrossModule.
16732           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16733           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16734           hardcode_direct_GCJ=no
16735         ;;
16736         motorola)
16737           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16738           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16739         ;;
16740       esac
16741       runpath_var='LD_RUN_PATH'
16742       hardcode_shlibpath_var_GCJ=no
16743       ;;
16744
16745     sysv4.3*)
16746       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16747       hardcode_shlibpath_var_GCJ=no
16748       export_dynamic_flag_spec_GCJ='-Bexport'
16749       ;;
16750
16751     sysv4*MP*)
16752       if test -d /usr/nec; then
16753         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16754         hardcode_shlibpath_var_GCJ=no
16755         runpath_var=LD_RUN_PATH
16756         hardcode_runpath_var=yes
16757         ld_shlibs_GCJ=yes
16758       fi
16759       ;;
16760
16761     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16762       no_undefined_flag_GCJ='${wl}-z,text'
16763       archive_cmds_need_lc_GCJ=no
16764       hardcode_shlibpath_var_GCJ=no
16765       runpath_var='LD_RUN_PATH'
16766
16767       if test "$GCC" = yes; then
16768         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16769         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16770       else
16771         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16772         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16773       fi
16774       ;;
16775
16776     sysv5* | sco3.2v5* | sco5v6*)
16777       # Note: We can NOT use -z defs as we might desire, because we do not
16778       # link with -lc, and that would cause any symbols used from libc to
16779       # always be unresolved, which means just about no library would
16780       # ever link correctly.  If we're not using GNU ld we use -z text
16781       # though, which does catch some bad symbols but isn't as heavy-handed
16782       # as -z defs.
16783       no_undefined_flag_GCJ='${wl}-z,text'
16784       allow_undefined_flag_GCJ='${wl}-z,nodefs'
16785       archive_cmds_need_lc_GCJ=no
16786       hardcode_shlibpath_var_GCJ=no
16787       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16788       hardcode_libdir_separator_GCJ=':'
16789       link_all_deplibs_GCJ=yes
16790       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16791       runpath_var='LD_RUN_PATH'
16792
16793       if test "$GCC" = yes; then
16794         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16795         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16796       else
16797         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16798         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16799       fi
16800       ;;
16801
16802     uts4*)
16803       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16804       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16805       hardcode_shlibpath_var_GCJ=no
16806       ;;
16807
16808     *)
16809       ld_shlibs_GCJ=no
16810       ;;
16811     esac
16812   fi
16813
16814 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16815 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16816 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16817
16818 #
16819 # Do we need to explicitly link libc?
16820 #
16821 case "x$archive_cmds_need_lc_GCJ" in
16822 x|xyes)
16823   # Assume -lc should be added
16824   archive_cmds_need_lc_GCJ=yes
16825
16826   if test "$enable_shared" = yes && test "$GCC" = yes; then
16827     case $archive_cmds_GCJ in
16828     *'~'*)
16829       # FIXME: we may have to deal with multi-command sequences.
16830       ;;
16831     '$CC '*)
16832       # Test whether the compiler implicitly links with -lc since on some
16833       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16834       # to ld, don't add -lc before -lgcc.
16835       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16836 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16837       $rm conftest*
16838       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16839
16840       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16841   (eval $ac_compile) 2>&5
16842   ac_status=$?
16843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844   (exit $ac_status); } 2>conftest.err; then
16845         soname=conftest
16846         lib=conftest
16847         libobjs=conftest.$ac_objext
16848         deplibs=
16849         wl=$lt_prog_compiler_wl_GCJ
16850         pic_flag=$lt_prog_compiler_pic_GCJ
16851         compiler_flags=-v
16852         linker_flags=-v
16853         verstring=
16854         output_objdir=.
16855         libname=conftest
16856         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16857         allow_undefined_flag_GCJ=
16858         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16859   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16860   ac_status=$?
16861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); }
16863         then
16864           archive_cmds_need_lc_GCJ=no
16865         else
16866           archive_cmds_need_lc_GCJ=yes
16867         fi
16868         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16869       else
16870         cat conftest.err 1>&5
16871       fi
16872       $rm conftest*
16873       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16874 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16875       ;;
16876     esac
16877   fi
16878   ;;
16879 esac
16880
16881 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16882 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16883 library_names_spec=
16884 libname_spec='lib$name'
16885 soname_spec=
16886 shrext_cmds=".so"
16887 postinstall_cmds=
16888 postuninstall_cmds=
16889 finish_cmds=
16890 finish_eval=
16891 shlibpath_var=
16892 shlibpath_overrides_runpath=unknown
16893 version_type=none
16894 dynamic_linker="$host_os ld.so"
16895 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16896 if test "$GCC" = yes; then
16897   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16898   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16899     # if the path contains ";" then we assume it to be the separator
16900     # otherwise default to the standard path separator (i.e. ":") - it is
16901     # assumed that no part of a normal pathname contains ";" but that should
16902     # okay in the real world where ";" in dirpaths is itself problematic.
16903     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16904   else
16905     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16906   fi
16907 else
16908   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16909 fi
16910 need_lib_prefix=unknown
16911 hardcode_into_libs=no
16912
16913 # when you set need_version to no, make sure it does not cause -set_version
16914 # flags to be left without arguments
16915 need_version=unknown
16916
16917 case $host_os in
16918 aix3*)
16919   version_type=linux
16920   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16921   shlibpath_var=LIBPATH
16922
16923   # AIX 3 has no versioning support, so we append a major version to the name.
16924   soname_spec='${libname}${release}${shared_ext}$major'
16925   ;;
16926
16927 aix4* | aix5*)
16928   version_type=linux
16929   need_lib_prefix=no
16930   need_version=no
16931   hardcode_into_libs=yes
16932   if test "$host_cpu" = ia64; then
16933     # AIX 5 supports IA64
16934     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16935     shlibpath_var=LD_LIBRARY_PATH
16936   else
16937     # With GCC up to 2.95.x, collect2 would create an import file
16938     # for dependence libraries.  The import file would start with
16939     # the line `#! .'.  This would cause the generated library to
16940     # depend on `.', always an invalid library.  This was fixed in
16941     # development snapshots of GCC prior to 3.0.
16942     case $host_os in
16943       aix4 | aix4.[01] | aix4.[01].*)
16944       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16945            echo ' yes '
16946            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16947         :
16948       else
16949         can_build_shared=no
16950       fi
16951       ;;
16952     esac
16953     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16954     # soname into executable. Probably we can add versioning support to
16955     # collect2, so additional links can be useful in future.
16956     if test "$aix_use_runtimelinking" = yes; then
16957       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16958       # instead of lib<name>.a to let people know that these are not
16959       # typical AIX shared libraries.
16960       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16961     else
16962       # We preserve .a as extension for shared libraries through AIX4.2
16963       # and later when we are not doing run time linking.
16964       library_names_spec='${libname}${release}.a $libname.a'
16965       soname_spec='${libname}${release}${shared_ext}$major'
16966     fi
16967     shlibpath_var=LIBPATH
16968   fi
16969   ;;
16970
16971 amigaos*)
16972   library_names_spec='$libname.ixlibrary $libname.a'
16973   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16974   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'
16975   ;;
16976
16977 beos*)
16978   library_names_spec='${libname}${shared_ext}'
16979   dynamic_linker="$host_os ld.so"
16980   shlibpath_var=LIBRARY_PATH
16981   ;;
16982
16983 bsdi[45]*)
16984   version_type=linux
16985   need_version=no
16986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16987   soname_spec='${libname}${release}${shared_ext}$major'
16988   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16989   shlibpath_var=LD_LIBRARY_PATH
16990   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16991   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16992   # the default ld.so.conf also contains /usr/contrib/lib and
16993   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16994   # libtool to hard-code these into programs
16995   ;;
16996
16997 cygwin* | mingw* | pw32*)
16998   version_type=windows
16999   shrext_cmds=".dll"
17000   need_version=no
17001   need_lib_prefix=no
17002
17003   case $GCC,$host_os in
17004   yes,cygwin* | yes,mingw* | yes,pw32*)
17005     library_names_spec='$libname.dll.a'
17006     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17007     postinstall_cmds='base_file=`basename \${file}`~
17008       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17009       dldir=$destdir/`dirname \$dlpath`~
17010       test -d \$dldir || mkdir -p \$dldir~
17011       $install_prog $dir/$dlname \$dldir/$dlname~
17012       chmod a+x \$dldir/$dlname'
17013     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17014       dlpath=$dir/\$dldll~
17015        $rm \$dlpath'
17016     shlibpath_overrides_runpath=yes
17017
17018     case $host_os in
17019     cygwin*)
17020       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17021       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17022       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17023       ;;
17024     mingw*)
17025       # MinGW DLLs use traditional 'lib' prefix
17026       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17027       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17028       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17029         # It is most probably a Windows format PATH printed by
17030         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17031         # path with ; separators, and with drive letters. We can handle the
17032         # drive letters (cygwin fileutils understands them), so leave them,
17033         # especially as we might pass files found there to a mingw objdump,
17034         # which wouldn't understand a cygwinified path. Ahh.
17035         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17036       else
17037         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17038       fi
17039       ;;
17040     pw32*)
17041       # pw32 DLLs use 'pw' prefix rather than 'lib'
17042       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17043       ;;
17044     esac
17045     ;;
17046
17047   *)
17048     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17049     ;;
17050   esac
17051   dynamic_linker='Win32 ld.exe'
17052   # FIXME: first we should search . and the directory the executable is in
17053   shlibpath_var=PATH
17054   ;;
17055
17056 darwin* | rhapsody*)
17057   dynamic_linker="$host_os dyld"
17058   version_type=darwin
17059   need_lib_prefix=no
17060   need_version=no
17061   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17062   soname_spec='${libname}${release}${major}$shared_ext'
17063   shlibpath_overrides_runpath=yes
17064   shlibpath_var=DYLD_LIBRARY_PATH
17065   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17066   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17067   if test "$GCC" = yes; then
17068     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17069   else
17070     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17071   fi
17072   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17073   ;;
17074
17075 dgux*)
17076   version_type=linux
17077   need_lib_prefix=no
17078   need_version=no
17079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17080   soname_spec='${libname}${release}${shared_ext}$major'
17081   shlibpath_var=LD_LIBRARY_PATH
17082   ;;
17083
17084 freebsd1*)
17085   dynamic_linker=no
17086   ;;
17087
17088 freebsd* | dragonfly*)
17089   # DragonFly does not have aout.  When/if they implement a new
17090   # versioning mechanism, adjust this.
17091   if test -x /usr/bin/objformat; then
17092     objformat=`/usr/bin/objformat`
17093   else
17094     case $host_os in
17095     freebsd[123]*) objformat=aout ;;
17096     *) objformat=elf ;;
17097     esac
17098   fi
17099   version_type=freebsd-$objformat
17100   case $version_type in
17101     freebsd-elf*)
17102       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17103       need_version=no
17104       need_lib_prefix=no
17105       ;;
17106     freebsd-*)
17107       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17108       need_version=yes
17109       ;;
17110   esac
17111   shlibpath_var=LD_LIBRARY_PATH
17112   case $host_os in
17113   freebsd2*)
17114     shlibpath_overrides_runpath=yes
17115     ;;
17116   freebsd3.[01]* | freebsdelf3.[01]*)
17117     shlibpath_overrides_runpath=yes
17118     hardcode_into_libs=yes
17119     ;;
17120   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17121   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17122     shlibpath_overrides_runpath=no
17123     hardcode_into_libs=yes
17124     ;;
17125   freebsd*) # from 4.6 on
17126     shlibpath_overrides_runpath=yes
17127     hardcode_into_libs=yes
17128     ;;
17129   esac
17130   ;;
17131
17132 gnu*)
17133   version_type=linux
17134   need_lib_prefix=no
17135   need_version=no
17136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17137   soname_spec='${libname}${release}${shared_ext}$major'
17138   shlibpath_var=LD_LIBRARY_PATH
17139   hardcode_into_libs=yes
17140   ;;
17141
17142 hpux9* | hpux10* | hpux11*)
17143   # Give a soname corresponding to the major version so that dld.sl refuses to
17144   # link against other versions.
17145   version_type=sunos
17146   need_lib_prefix=no
17147   need_version=no
17148   case $host_cpu in
17149   ia64*)
17150     shrext_cmds='.so'
17151     hardcode_into_libs=yes
17152     dynamic_linker="$host_os dld.so"
17153     shlibpath_var=LD_LIBRARY_PATH
17154     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17155     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156     soname_spec='${libname}${release}${shared_ext}$major'
17157     if test "X$HPUX_IA64_MODE" = X32; then
17158       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17159     else
17160       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17161     fi
17162     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17163     ;;
17164    hppa*64*)
17165      shrext_cmds='.sl'
17166      hardcode_into_libs=yes
17167      dynamic_linker="$host_os dld.sl"
17168      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17169      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17170      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171      soname_spec='${libname}${release}${shared_ext}$major'
17172      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17173      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17174      ;;
17175    *)
17176     shrext_cmds='.sl'
17177     dynamic_linker="$host_os dld.sl"
17178     shlibpath_var=SHLIB_PATH
17179     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17180     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17181     soname_spec='${libname}${release}${shared_ext}$major'
17182     ;;
17183   esac
17184   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17185   postinstall_cmds='chmod 555 $lib'
17186   ;;
17187
17188 interix3*)
17189   version_type=linux
17190   need_lib_prefix=no
17191   need_version=no
17192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17193   soname_spec='${libname}${release}${shared_ext}$major'
17194   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17195   shlibpath_var=LD_LIBRARY_PATH
17196   shlibpath_overrides_runpath=no
17197   hardcode_into_libs=yes
17198   ;;
17199
17200 irix5* | irix6* | nonstopux*)
17201   case $host_os in
17202     nonstopux*) version_type=nonstopux ;;
17203     *)
17204         if test "$lt_cv_prog_gnu_ld" = yes; then
17205                 version_type=linux
17206         else
17207                 version_type=irix
17208         fi ;;
17209   esac
17210   need_lib_prefix=no
17211   need_version=no
17212   soname_spec='${libname}${release}${shared_ext}$major'
17213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17214   case $host_os in
17215   irix5* | nonstopux*)
17216     libsuff= shlibsuff=
17217     ;;
17218   *)
17219     case $LD in # libtool.m4 will add one of these switches to LD
17220     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17221       libsuff= shlibsuff= libmagic=32-bit;;
17222     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17223       libsuff=32 shlibsuff=N32 libmagic=N32;;
17224     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17225       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17226     *) libsuff= shlibsuff= libmagic=never-match;;
17227     esac
17228     ;;
17229   esac
17230   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17231   shlibpath_overrides_runpath=no
17232   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17233   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17234   hardcode_into_libs=yes
17235   ;;
17236
17237 # No shared lib support for Linux oldld, aout, or coff.
17238 linux*oldld* | linux*aout* | linux*coff*)
17239   dynamic_linker=no
17240   ;;
17241
17242 # This must be Linux ELF.
17243 linux* | k*bsd*-gnu)
17244   version_type=linux
17245   need_lib_prefix=no
17246   need_version=no
17247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17248   soname_spec='${libname}${release}${shared_ext}$major'
17249   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17250   shlibpath_var=LD_LIBRARY_PATH
17251   shlibpath_overrides_runpath=no
17252   # This implies no fast_install, which is unacceptable.
17253   # Some rework will be needed to allow for fast_install
17254   # before this can be enabled.
17255   hardcode_into_libs=yes
17256
17257   # Append ld.so.conf contents to the search path
17258   if test -f /etc/ld.so.conf; then
17259     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17260     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17261   fi
17262
17263   # We used to test for /lib/ld.so.1 and disable shared libraries on
17264   # powerpc, because MkLinux only supported shared libraries with the
17265   # GNU dynamic linker.  Since this was broken with cross compilers,
17266   # most powerpc-linux boxes support dynamic linking these days and
17267   # people can always --disable-shared, the test was removed, and we
17268   # assume the GNU/Linux dynamic linker is in use.
17269   dynamic_linker='GNU/Linux ld.so'
17270   ;;
17271
17272 netbsdelf*-gnu)
17273   version_type=linux
17274   need_lib_prefix=no
17275   need_version=no
17276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17277   soname_spec='${libname}${release}${shared_ext}$major'
17278   shlibpath_var=LD_LIBRARY_PATH
17279   shlibpath_overrides_runpath=no
17280   hardcode_into_libs=yes
17281   dynamic_linker='NetBSD ld.elf_so'
17282   ;;
17283
17284 netbsd*)
17285   version_type=sunos
17286   need_lib_prefix=no
17287   need_version=no
17288   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17289     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17290     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17291     dynamic_linker='NetBSD (a.out) ld.so'
17292   else
17293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17294     soname_spec='${libname}${release}${shared_ext}$major'
17295     dynamic_linker='NetBSD ld.elf_so'
17296   fi
17297   shlibpath_var=LD_LIBRARY_PATH
17298   shlibpath_overrides_runpath=yes
17299   hardcode_into_libs=yes
17300   ;;
17301
17302 newsos6)
17303   version_type=linux
17304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305   shlibpath_var=LD_LIBRARY_PATH
17306   shlibpath_overrides_runpath=yes
17307   ;;
17308
17309 nto-qnx*)
17310   version_type=linux
17311   need_lib_prefix=no
17312   need_version=no
17313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17314   soname_spec='${libname}${release}${shared_ext}$major'
17315   shlibpath_var=LD_LIBRARY_PATH
17316   shlibpath_overrides_runpath=yes
17317   ;;
17318
17319 openbsd*)
17320   version_type=sunos
17321   sys_lib_dlsearch_path_spec="/usr/lib"
17322   need_lib_prefix=no
17323   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17324   case $host_os in
17325     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17326     *)                         need_version=no  ;;
17327   esac
17328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17329   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17330   shlibpath_var=LD_LIBRARY_PATH
17331   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17332     case $host_os in
17333       openbsd2.[89] | openbsd2.[89].*)
17334         shlibpath_overrides_runpath=no
17335         ;;
17336       *)
17337         shlibpath_overrides_runpath=yes
17338         ;;
17339       esac
17340   else
17341     shlibpath_overrides_runpath=yes
17342   fi
17343   ;;
17344
17345 os2*)
17346   libname_spec='$name'
17347   shrext_cmds=".dll"
17348   need_lib_prefix=no
17349   library_names_spec='$libname${shared_ext} $libname.a'
17350   dynamic_linker='OS/2 ld.exe'
17351   shlibpath_var=LIBPATH
17352   ;;
17353
17354 osf3* | osf4* | osf5*)
17355   version_type=osf
17356   need_lib_prefix=no
17357   need_version=no
17358   soname_spec='${libname}${release}${shared_ext}$major'
17359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17360   shlibpath_var=LD_LIBRARY_PATH
17361   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17362   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17363   ;;
17364
17365 solaris*)
17366   version_type=linux
17367   need_lib_prefix=no
17368   need_version=no
17369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17370   soname_spec='${libname}${release}${shared_ext}$major'
17371   shlibpath_var=LD_LIBRARY_PATH
17372   shlibpath_overrides_runpath=yes
17373   hardcode_into_libs=yes
17374   # ldd complains unless libraries are executable
17375   postinstall_cmds='chmod +x $lib'
17376   ;;
17377
17378 sunos4*)
17379   version_type=sunos
17380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17381   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17382   shlibpath_var=LD_LIBRARY_PATH
17383   shlibpath_overrides_runpath=yes
17384   if test "$with_gnu_ld" = yes; then
17385     need_lib_prefix=no
17386   fi
17387   need_version=yes
17388   ;;
17389
17390 sysv4 | sysv4.3*)
17391   version_type=linux
17392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17393   soname_spec='${libname}${release}${shared_ext}$major'
17394   shlibpath_var=LD_LIBRARY_PATH
17395   case $host_vendor in
17396     sni)
17397       shlibpath_overrides_runpath=no
17398       need_lib_prefix=no
17399       export_dynamic_flag_spec='${wl}-Blargedynsym'
17400       runpath_var=LD_RUN_PATH
17401       ;;
17402     siemens)
17403       need_lib_prefix=no
17404       ;;
17405     motorola)
17406       need_lib_prefix=no
17407       need_version=no
17408       shlibpath_overrides_runpath=no
17409       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17410       ;;
17411   esac
17412   ;;
17413
17414 sysv4*MP*)
17415   if test -d /usr/nec ;then
17416     version_type=linux
17417     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17418     soname_spec='$libname${shared_ext}.$major'
17419     shlibpath_var=LD_LIBRARY_PATH
17420   fi
17421   ;;
17422
17423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17424   version_type=freebsd-elf
17425   need_lib_prefix=no
17426   need_version=no
17427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17428   soname_spec='${libname}${release}${shared_ext}$major'
17429   shlibpath_var=LD_LIBRARY_PATH
17430   hardcode_into_libs=yes
17431   if test "$with_gnu_ld" = yes; then
17432     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17433     shlibpath_overrides_runpath=no
17434   else
17435     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17436     shlibpath_overrides_runpath=yes
17437     case $host_os in
17438       sco3.2v5*)
17439         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17440         ;;
17441     esac
17442   fi
17443   sys_lib_dlsearch_path_spec='/usr/lib'
17444   ;;
17445
17446 uts4*)
17447   version_type=linux
17448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17449   soname_spec='${libname}${release}${shared_ext}$major'
17450   shlibpath_var=LD_LIBRARY_PATH
17451   ;;
17452
17453 *)
17454   dynamic_linker=no
17455   ;;
17456 esac
17457 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17458 echo "${ECHO_T}$dynamic_linker" >&6
17459 test "$dynamic_linker" = no && can_build_shared=no
17460
17461 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17462 if test "$GCC" = yes; then
17463   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17464 fi
17465
17466 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17467 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17468 hardcode_action_GCJ=
17469 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17470    test -n "$runpath_var_GCJ" || \
17471    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17472
17473   # We can hardcode non-existant directories.
17474   if test "$hardcode_direct_GCJ" != no &&
17475      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17476      # have to relink, otherwise we might link with an installed library
17477      # when we should be linking with a yet-to-be-installed one
17478      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17479      test "$hardcode_minus_L_GCJ" != no; then
17480     # Linking always hardcodes the temporary library directory.
17481     hardcode_action_GCJ=relink
17482   else
17483     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17484     hardcode_action_GCJ=immediate
17485   fi
17486 else
17487   # We cannot hardcode anything, or else we can only hardcode existing
17488   # directories.
17489   hardcode_action_GCJ=unsupported
17490 fi
17491 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17492 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17493
17494 if test "$hardcode_action_GCJ" = relink; then
17495   # Fast installation is not supported
17496   enable_fast_install=no
17497 elif test "$shlibpath_overrides_runpath" = yes ||
17498      test "$enable_shared" = no; then
17499   # Fast installation is not necessary
17500   enable_fast_install=needless
17501 fi
17502
17503
17504 # The else clause should only fire when bootstrapping the
17505 # libtool distribution, otherwise you forgot to ship ltmain.sh
17506 # with your package, and you will get complaints that there are
17507 # no rules to generate ltmain.sh.
17508 if test -f "$ltmain"; then
17509   # See if we are running on zsh, and set the options which allow our commands through
17510   # without removal of \ escapes.
17511   if test -n "${ZSH_VERSION+set}" ; then
17512     setopt NO_GLOB_SUBST
17513   fi
17514   # Now quote all the things that may contain metacharacters while being
17515   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17516   # variables and quote the copies for generation of the libtool script.
17517   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17518     SED SHELL STRIP \
17519     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17520     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17521     deplibs_check_method reload_flag reload_cmds need_locks \
17522     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17523     lt_cv_sys_global_symbol_to_c_name_address \
17524     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17525     old_postinstall_cmds old_postuninstall_cmds \
17526     compiler_GCJ \
17527     CC_GCJ \
17528     LD_GCJ \
17529     lt_prog_compiler_wl_GCJ \
17530     lt_prog_compiler_pic_GCJ \
17531     lt_prog_compiler_static_GCJ \
17532     lt_prog_compiler_no_builtin_flag_GCJ \
17533     export_dynamic_flag_spec_GCJ \
17534     thread_safe_flag_spec_GCJ \
17535     whole_archive_flag_spec_GCJ \
17536     enable_shared_with_static_runtimes_GCJ \
17537     old_archive_cmds_GCJ \
17538     old_archive_from_new_cmds_GCJ \
17539     predep_objects_GCJ \
17540     postdep_objects_GCJ \
17541     predeps_GCJ \
17542     postdeps_GCJ \
17543     compiler_lib_search_path_GCJ \
17544     archive_cmds_GCJ \
17545     archive_expsym_cmds_GCJ \
17546     postinstall_cmds_GCJ \
17547     postuninstall_cmds_GCJ \
17548     old_archive_from_expsyms_cmds_GCJ \
17549     allow_undefined_flag_GCJ \
17550     no_undefined_flag_GCJ \
17551     export_symbols_cmds_GCJ \
17552     hardcode_libdir_flag_spec_GCJ \
17553     hardcode_libdir_flag_spec_ld_GCJ \
17554     hardcode_libdir_separator_GCJ \
17555     hardcode_automatic_GCJ \
17556     module_cmds_GCJ \
17557     module_expsym_cmds_GCJ \
17558     lt_cv_prog_compiler_c_o_GCJ \
17559     exclude_expsyms_GCJ \
17560     include_expsyms_GCJ; do
17561
17562     case $var in
17563     old_archive_cmds_GCJ | \
17564     old_archive_from_new_cmds_GCJ | \
17565     archive_cmds_GCJ | \
17566     archive_expsym_cmds_GCJ | \
17567     module_cmds_GCJ | \
17568     module_expsym_cmds_GCJ | \
17569     old_archive_from_expsyms_cmds_GCJ | \
17570     export_symbols_cmds_GCJ | \
17571     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17572     postinstall_cmds | postuninstall_cmds | \
17573     old_postinstall_cmds | old_postuninstall_cmds | \
17574     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17575       # Double-quote double-evaled strings.
17576       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17577       ;;
17578     *)
17579       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17580       ;;
17581     esac
17582   done
17583
17584   case $lt_echo in
17585   *'\$0 --fallback-echo"')
17586     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17587     ;;
17588   esac
17589
17590 cfgfile="$ofile"
17591
17592   cat <<__EOF__ >> "$cfgfile"
17593 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17594
17595 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17596
17597 # Shell to use when invoking shell scripts.
17598 SHELL=$lt_SHELL
17599
17600 # Whether or not to build shared libraries.
17601 build_libtool_libs=$enable_shared
17602
17603 # Whether or not to build static libraries.
17604 build_old_libs=$enable_static
17605
17606 # Whether or not to add -lc for building shared libraries.
17607 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17608
17609 # Whether or not to disallow shared libs when runtime libs are static
17610 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17611
17612 # Whether or not to optimize for fast installation.
17613 fast_install=$enable_fast_install
17614
17615 # The host system.
17616 host_alias=$host_alias
17617 host=$host
17618 host_os=$host_os
17619
17620 # The build system.
17621 build_alias=$build_alias
17622 build=$build
17623 build_os=$build_os
17624
17625 # An echo program that does not interpret backslashes.
17626 echo=$lt_echo
17627
17628 # The archiver.
17629 AR=$lt_AR
17630 AR_FLAGS=$lt_AR_FLAGS
17631
17632 # A C compiler.
17633 LTCC=$lt_LTCC
17634
17635 # LTCC compiler flags.
17636 LTCFLAGS=$lt_LTCFLAGS
17637
17638 # A language-specific compiler.
17639 CC=$lt_compiler_GCJ
17640
17641 # Is the compiler the GNU C compiler?
17642 with_gcc=$GCC_GCJ
17643
17644 # An ERE matcher.
17645 EGREP=$lt_EGREP
17646
17647 # The linker used to build libraries.
17648 LD=$lt_LD_GCJ
17649
17650 # Whether we need hard or soft links.
17651 LN_S=$lt_LN_S
17652
17653 # A BSD-compatible nm program.
17654 NM=$lt_NM
17655
17656 # A symbol stripping program
17657 STRIP=$lt_STRIP
17658
17659 # Used to examine libraries when file_magic_cmd begins "file"
17660 MAGIC_CMD=$MAGIC_CMD
17661
17662 # Used on cygwin: DLL creation program.
17663 DLLTOOL="$DLLTOOL"
17664
17665 # Used on cygwin: object dumper.
17666 OBJDUMP="$OBJDUMP"
17667
17668 # Used on cygwin: assembler.
17669 AS="$AS"
17670
17671 # The name of the directory that contains temporary libtool files.
17672 objdir=$objdir
17673
17674 # How to create reloadable object files.
17675 reload_flag=$lt_reload_flag
17676 reload_cmds=$lt_reload_cmds
17677
17678 # How to pass a linker flag through the compiler.
17679 wl=$lt_lt_prog_compiler_wl_GCJ
17680
17681 # Object file suffix (normally "o").
17682 objext="$ac_objext"
17683
17684 # Old archive suffix (normally "a").
17685 libext="$libext"
17686
17687 # Shared library suffix (normally ".so").
17688 shrext_cmds='$shrext_cmds'
17689
17690 # Executable file suffix (normally "").
17691 exeext="$exeext"
17692
17693 # Additional compiler flags for building library objects.
17694 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17695 pic_mode=$pic_mode
17696
17697 # What is the maximum length of a command?
17698 max_cmd_len=$lt_cv_sys_max_cmd_len
17699
17700 # Does compiler simultaneously support -c and -o options?
17701 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17702
17703 # Must we lock files when doing compilation?
17704 need_locks=$lt_need_locks
17705
17706 # Do we need the lib prefix for modules?
17707 need_lib_prefix=$need_lib_prefix
17708
17709 # Do we need a version for libraries?
17710 need_version=$need_version
17711
17712 # Whether dlopen is supported.
17713 dlopen_support=$enable_dlopen
17714
17715 # Whether dlopen of programs is supported.
17716 dlopen_self=$enable_dlopen_self
17717
17718 # Whether dlopen of statically linked programs is supported.
17719 dlopen_self_static=$enable_dlopen_self_static
17720
17721 # Compiler flag to prevent dynamic linking.
17722 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17723
17724 # Compiler flag to turn off builtin functions.
17725 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17726
17727 # Compiler flag to allow reflexive dlopens.
17728 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17729
17730 # Compiler flag to generate shared objects directly from archives.
17731 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17732
17733 # Compiler flag to generate thread-safe objects.
17734 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17735
17736 # Library versioning type.
17737 version_type=$version_type
17738
17739 # Format of library name prefix.
17740 libname_spec=$lt_libname_spec
17741
17742 # List of archive names.  First name is the real one, the rest are links.
17743 # The last name is the one that the linker finds with -lNAME.
17744 library_names_spec=$lt_library_names_spec
17745
17746 # The coded name of the library, if different from the real name.
17747 soname_spec=$lt_soname_spec
17748
17749 # Commands used to build and install an old-style archive.
17750 RANLIB=$lt_RANLIB
17751 old_archive_cmds=$lt_old_archive_cmds_GCJ
17752 old_postinstall_cmds=$lt_old_postinstall_cmds
17753 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17754
17755 # Create an old-style archive from a shared archive.
17756 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17757
17758 # Create a temporary old-style archive to link instead of a shared archive.
17759 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17760
17761 # Commands used to build and install a shared archive.
17762 archive_cmds=$lt_archive_cmds_GCJ
17763 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17764 postinstall_cmds=$lt_postinstall_cmds
17765 postuninstall_cmds=$lt_postuninstall_cmds
17766
17767 # Commands used to build a loadable module (assumed same as above if empty)
17768 module_cmds=$lt_module_cmds_GCJ
17769 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17770
17771 # Commands to strip libraries.
17772 old_striplib=$lt_old_striplib
17773 striplib=$lt_striplib
17774
17775 # Dependencies to place before the objects being linked to create a
17776 # shared library.
17777 predep_objects=$lt_predep_objects_GCJ
17778
17779 # Dependencies to place after the objects being linked to create a
17780 # shared library.
17781 postdep_objects=$lt_postdep_objects_GCJ
17782
17783 # Dependencies to place before the objects being linked to create a
17784 # shared library.
17785 predeps=$lt_predeps_GCJ
17786
17787 # Dependencies to place after the objects being linked to create a
17788 # shared library.
17789 postdeps=$lt_postdeps_GCJ
17790
17791 # The library search path used internally by the compiler when linking
17792 # a shared library.
17793 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17794
17795 # Method to check whether dependent libraries are shared objects.
17796 deplibs_check_method=$lt_deplibs_check_method
17797
17798 # Command to use when deplibs_check_method == file_magic.
17799 file_magic_cmd=$lt_file_magic_cmd
17800
17801 # Flag that allows shared libraries with undefined symbols to be built.
17802 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17803
17804 # Flag that forces no undefined symbols.
17805 no_undefined_flag=$lt_no_undefined_flag_GCJ
17806
17807 # Commands used to finish a libtool library installation in a directory.
17808 finish_cmds=$lt_finish_cmds
17809
17810 # Same as above, but a single script fragment to be evaled but not shown.
17811 finish_eval=$lt_finish_eval
17812
17813 # Take the output of nm and produce a listing of raw symbols and C names.
17814 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17815
17816 # Transform the output of nm in a proper C declaration
17817 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17818
17819 # Transform the output of nm in a C name address pair
17820 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17821
17822 # This is the shared library runtime path variable.
17823 runpath_var=$runpath_var
17824
17825 # This is the shared library path variable.
17826 shlibpath_var=$shlibpath_var
17827
17828 # Is shlibpath searched before the hard-coded library search path?
17829 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17830
17831 # How to hardcode a shared library path into an executable.
17832 hardcode_action=$hardcode_action_GCJ
17833
17834 # Whether we should hardcode library paths into libraries.
17835 hardcode_into_libs=$hardcode_into_libs
17836
17837 # Flag to hardcode \$libdir into a binary during linking.
17838 # This must work even if \$libdir does not exist.
17839 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17840
17841 # If ld is used when linking, flag to hardcode \$libdir into
17842 # a binary during linking. This must work even if \$libdir does
17843 # not exist.
17844 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17845
17846 # Whether we need a single -rpath flag with a separated argument.
17847 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17848
17849 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17850 # resulting binary.
17851 hardcode_direct=$hardcode_direct_GCJ
17852
17853 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17854 # resulting binary.
17855 hardcode_minus_L=$hardcode_minus_L_GCJ
17856
17857 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17858 # the resulting binary.
17859 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17860
17861 # Set to yes if building a shared library automatically hardcodes DIR into the library
17862 # and all subsequent libraries and executables linked against it.
17863 hardcode_automatic=$hardcode_automatic_GCJ
17864
17865 # Variables whose values should be saved in libtool wrapper scripts and
17866 # restored at relink time.
17867 variables_saved_for_relink="$variables_saved_for_relink"
17868
17869 # Whether libtool must link a program against all its dependency libraries.
17870 link_all_deplibs=$link_all_deplibs_GCJ
17871
17872 # Compile-time system search path for libraries
17873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17874
17875 # Run-time system search path for libraries
17876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17877
17878 # Fix the shell variable \$srcfile for the compiler.
17879 fix_srcfile_path="$fix_srcfile_path_GCJ"
17880
17881 # Set to yes if exported symbols are required.
17882 always_export_symbols=$always_export_symbols_GCJ
17883
17884 # The commands to list exported symbols.
17885 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17886
17887 # The commands to extract the exported symbol list from a shared archive.
17888 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17889
17890 # Symbols that should not be listed in the preloaded symbols.
17891 exclude_expsyms=$lt_exclude_expsyms_GCJ
17892
17893 # Symbols that must always be exported.
17894 include_expsyms=$lt_include_expsyms_GCJ
17895
17896 # ### END LIBTOOL TAG CONFIG: $tagname
17897
17898 __EOF__
17899
17900
17901 else
17902   # If there is no Makefile yet, we rely on a make rule to execute
17903   # `config.status --recheck' to rerun these tests and create the
17904   # libtool script then.
17905   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17906   if test -f "$ltmain_in"; then
17907     test -f Makefile && make "$ltmain"
17908   fi
17909 fi
17910
17911
17912 ac_ext=c
17913 ac_cpp='$CPP $CPPFLAGS'
17914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17917
17918 CC="$lt_save_CC"
17919
17920         else
17921           tagname=""
17922         fi
17923         ;;
17924
17925       RC)
17926
17927
17928
17929 # Source file extension for RC test sources.
17930 ac_ext=rc
17931
17932 # Object file extension for compiled RC test sources.
17933 objext=o
17934 objext_RC=$objext
17935
17936 # Code to be used in simple compile tests
17937 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17938
17939 # Code to be used in simple link tests
17940 lt_simple_link_test_code="$lt_simple_compile_test_code"
17941
17942 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17943
17944 # If no C compiler was specified, use CC.
17945 LTCC=${LTCC-"$CC"}
17946
17947 # If no C compiler flags were specified, use CFLAGS.
17948 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17949
17950 # Allow CC to be a program name with arguments.
17951 compiler=$CC
17952
17953
17954 # save warnings/boilerplate of simple test code
17955 ac_outfile=conftest.$ac_objext
17956 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17957 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17958 _lt_compiler_boilerplate=`cat conftest.err`
17959 $rm conftest*
17960
17961 ac_outfile=conftest.$ac_objext
17962 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17963 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17964 _lt_linker_boilerplate=`cat conftest.err`
17965 $rm conftest*
17966
17967
17968 # Allow CC to be a program name with arguments.
17969 lt_save_CC="$CC"
17970 CC=${RC-"windres"}
17971 compiler=$CC
17972 compiler_RC=$CC
17973 for cc_temp in $compiler""; do
17974   case $cc_temp in
17975     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17976     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17977     \-*) ;;
17978     *) break;;
17979   esac
17980 done
17981 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17982
17983 lt_cv_prog_compiler_c_o_RC=yes
17984
17985 # The else clause should only fire when bootstrapping the
17986 # libtool distribution, otherwise you forgot to ship ltmain.sh
17987 # with your package, and you will get complaints that there are
17988 # no rules to generate ltmain.sh.
17989 if test -f "$ltmain"; then
17990   # See if we are running on zsh, and set the options which allow our commands through
17991   # without removal of \ escapes.
17992   if test -n "${ZSH_VERSION+set}" ; then
17993     setopt NO_GLOB_SUBST
17994   fi
17995   # Now quote all the things that may contain metacharacters while being
17996   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17997   # variables and quote the copies for generation of the libtool script.
17998   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17999     SED SHELL STRIP \
18000     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18001     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18002     deplibs_check_method reload_flag reload_cmds need_locks \
18003     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18004     lt_cv_sys_global_symbol_to_c_name_address \
18005     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18006     old_postinstall_cmds old_postuninstall_cmds \
18007     compiler_RC \
18008     CC_RC \
18009     LD_RC \
18010     lt_prog_compiler_wl_RC \
18011     lt_prog_compiler_pic_RC \
18012     lt_prog_compiler_static_RC \
18013     lt_prog_compiler_no_builtin_flag_RC \
18014     export_dynamic_flag_spec_RC \
18015     thread_safe_flag_spec_RC \
18016     whole_archive_flag_spec_RC \
18017     enable_shared_with_static_runtimes_RC \
18018     old_archive_cmds_RC \
18019     old_archive_from_new_cmds_RC \
18020     predep_objects_RC \
18021     postdep_objects_RC \
18022     predeps_RC \
18023     postdeps_RC \
18024     compiler_lib_search_path_RC \
18025     archive_cmds_RC \
18026     archive_expsym_cmds_RC \
18027     postinstall_cmds_RC \
18028     postuninstall_cmds_RC \
18029     old_archive_from_expsyms_cmds_RC \
18030     allow_undefined_flag_RC \
18031     no_undefined_flag_RC \
18032     export_symbols_cmds_RC \
18033     hardcode_libdir_flag_spec_RC \
18034     hardcode_libdir_flag_spec_ld_RC \
18035     hardcode_libdir_separator_RC \
18036     hardcode_automatic_RC \
18037     module_cmds_RC \
18038     module_expsym_cmds_RC \
18039     lt_cv_prog_compiler_c_o_RC \
18040     exclude_expsyms_RC \
18041     include_expsyms_RC; do
18042
18043     case $var in
18044     old_archive_cmds_RC | \
18045     old_archive_from_new_cmds_RC | \
18046     archive_cmds_RC | \
18047     archive_expsym_cmds_RC | \
18048     module_cmds_RC | \
18049     module_expsym_cmds_RC | \
18050     old_archive_from_expsyms_cmds_RC | \
18051     export_symbols_cmds_RC | \
18052     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18053     postinstall_cmds | postuninstall_cmds | \
18054     old_postinstall_cmds | old_postuninstall_cmds | \
18055     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18056       # Double-quote double-evaled strings.
18057       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18058       ;;
18059     *)
18060       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18061       ;;
18062     esac
18063   done
18064
18065   case $lt_echo in
18066   *'\$0 --fallback-echo"')
18067     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18068     ;;
18069   esac
18070
18071 cfgfile="$ofile"
18072
18073   cat <<__EOF__ >> "$cfgfile"
18074 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18075
18076 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18077
18078 # Shell to use when invoking shell scripts.
18079 SHELL=$lt_SHELL
18080
18081 # Whether or not to build shared libraries.
18082 build_libtool_libs=$enable_shared
18083
18084 # Whether or not to build static libraries.
18085 build_old_libs=$enable_static
18086
18087 # Whether or not to add -lc for building shared libraries.
18088 build_libtool_need_lc=$archive_cmds_need_lc_RC
18089
18090 # Whether or not to disallow shared libs when runtime libs are static
18091 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18092
18093 # Whether or not to optimize for fast installation.
18094 fast_install=$enable_fast_install
18095
18096 # The host system.
18097 host_alias=$host_alias
18098 host=$host
18099 host_os=$host_os
18100
18101 # The build system.
18102 build_alias=$build_alias
18103 build=$build
18104 build_os=$build_os
18105
18106 # An echo program that does not interpret backslashes.
18107 echo=$lt_echo
18108
18109 # The archiver.
18110 AR=$lt_AR
18111 AR_FLAGS=$lt_AR_FLAGS
18112
18113 # A C compiler.
18114 LTCC=$lt_LTCC
18115
18116 # LTCC compiler flags.
18117 LTCFLAGS=$lt_LTCFLAGS
18118
18119 # A language-specific compiler.
18120 CC=$lt_compiler_RC
18121
18122 # Is the compiler the GNU C compiler?
18123 with_gcc=$GCC_RC
18124
18125 # An ERE matcher.
18126 EGREP=$lt_EGREP
18127
18128 # The linker used to build libraries.
18129 LD=$lt_LD_RC
18130
18131 # Whether we need hard or soft links.
18132 LN_S=$lt_LN_S
18133
18134 # A BSD-compatible nm program.
18135 NM=$lt_NM
18136
18137 # A symbol stripping program
18138 STRIP=$lt_STRIP
18139
18140 # Used to examine libraries when file_magic_cmd begins "file"
18141 MAGIC_CMD=$MAGIC_CMD
18142
18143 # Used on cygwin: DLL creation program.
18144 DLLTOOL="$DLLTOOL"
18145
18146 # Used on cygwin: object dumper.
18147 OBJDUMP="$OBJDUMP"
18148
18149 # Used on cygwin: assembler.
18150 AS="$AS"
18151
18152 # The name of the directory that contains temporary libtool files.
18153 objdir=$objdir
18154
18155 # How to create reloadable object files.
18156 reload_flag=$lt_reload_flag
18157 reload_cmds=$lt_reload_cmds
18158
18159 # How to pass a linker flag through the compiler.
18160 wl=$lt_lt_prog_compiler_wl_RC
18161
18162 # Object file suffix (normally "o").
18163 objext="$ac_objext"
18164
18165 # Old archive suffix (normally "a").
18166 libext="$libext"
18167
18168 # Shared library suffix (normally ".so").
18169 shrext_cmds='$shrext_cmds'
18170
18171 # Executable file suffix (normally "").
18172 exeext="$exeext"
18173
18174 # Additional compiler flags for building library objects.
18175 pic_flag=$lt_lt_prog_compiler_pic_RC
18176 pic_mode=$pic_mode
18177
18178 # What is the maximum length of a command?
18179 max_cmd_len=$lt_cv_sys_max_cmd_len
18180
18181 # Does compiler simultaneously support -c and -o options?
18182 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18183
18184 # Must we lock files when doing compilation?
18185 need_locks=$lt_need_locks
18186
18187 # Do we need the lib prefix for modules?
18188 need_lib_prefix=$need_lib_prefix
18189
18190 # Do we need a version for libraries?
18191 need_version=$need_version
18192
18193 # Whether dlopen is supported.
18194 dlopen_support=$enable_dlopen
18195
18196 # Whether dlopen of programs is supported.
18197 dlopen_self=$enable_dlopen_self
18198
18199 # Whether dlopen of statically linked programs is supported.
18200 dlopen_self_static=$enable_dlopen_self_static
18201
18202 # Compiler flag to prevent dynamic linking.
18203 link_static_flag=$lt_lt_prog_compiler_static_RC
18204
18205 # Compiler flag to turn off builtin functions.
18206 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18207
18208 # Compiler flag to allow reflexive dlopens.
18209 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18210
18211 # Compiler flag to generate shared objects directly from archives.
18212 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18213
18214 # Compiler flag to generate thread-safe objects.
18215 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18216
18217 # Library versioning type.
18218 version_type=$version_type
18219
18220 # Format of library name prefix.
18221 libname_spec=$lt_libname_spec
18222
18223 # List of archive names.  First name is the real one, the rest are links.
18224 # The last name is the one that the linker finds with -lNAME.
18225 library_names_spec=$lt_library_names_spec
18226
18227 # The coded name of the library, if different from the real name.
18228 soname_spec=$lt_soname_spec
18229
18230 # Commands used to build and install an old-style archive.
18231 RANLIB=$lt_RANLIB
18232 old_archive_cmds=$lt_old_archive_cmds_RC
18233 old_postinstall_cmds=$lt_old_postinstall_cmds
18234 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18235
18236 # Create an old-style archive from a shared archive.
18237 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18238
18239 # Create a temporary old-style archive to link instead of a shared archive.
18240 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18241
18242 # Commands used to build and install a shared archive.
18243 archive_cmds=$lt_archive_cmds_RC
18244 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18245 postinstall_cmds=$lt_postinstall_cmds
18246 postuninstall_cmds=$lt_postuninstall_cmds
18247
18248 # Commands used to build a loadable module (assumed same as above if empty)
18249 module_cmds=$lt_module_cmds_RC
18250 module_expsym_cmds=$lt_module_expsym_cmds_RC
18251
18252 # Commands to strip libraries.
18253 old_striplib=$lt_old_striplib
18254 striplib=$lt_striplib
18255
18256 # Dependencies to place before the objects being linked to create a
18257 # shared library.
18258 predep_objects=$lt_predep_objects_RC
18259
18260 # Dependencies to place after the objects being linked to create a
18261 # shared library.
18262 postdep_objects=$lt_postdep_objects_RC
18263
18264 # Dependencies to place before the objects being linked to create a
18265 # shared library.
18266 predeps=$lt_predeps_RC
18267
18268 # Dependencies to place after the objects being linked to create a
18269 # shared library.
18270 postdeps=$lt_postdeps_RC
18271
18272 # The library search path used internally by the compiler when linking
18273 # a shared library.
18274 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18275
18276 # Method to check whether dependent libraries are shared objects.
18277 deplibs_check_method=$lt_deplibs_check_method
18278
18279 # Command to use when deplibs_check_method == file_magic.
18280 file_magic_cmd=$lt_file_magic_cmd
18281
18282 # Flag that allows shared libraries with undefined symbols to be built.
18283 allow_undefined_flag=$lt_allow_undefined_flag_RC
18284
18285 # Flag that forces no undefined symbols.
18286 no_undefined_flag=$lt_no_undefined_flag_RC
18287
18288 # Commands used to finish a libtool library installation in a directory.
18289 finish_cmds=$lt_finish_cmds
18290
18291 # Same as above, but a single script fragment to be evaled but not shown.
18292 finish_eval=$lt_finish_eval
18293
18294 # Take the output of nm and produce a listing of raw symbols and C names.
18295 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18296
18297 # Transform the output of nm in a proper C declaration
18298 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18299
18300 # Transform the output of nm in a C name address pair
18301 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18302
18303 # This is the shared library runtime path variable.
18304 runpath_var=$runpath_var
18305
18306 # This is the shared library path variable.
18307 shlibpath_var=$shlibpath_var
18308
18309 # Is shlibpath searched before the hard-coded library search path?
18310 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18311
18312 # How to hardcode a shared library path into an executable.
18313 hardcode_action=$hardcode_action_RC
18314
18315 # Whether we should hardcode library paths into libraries.
18316 hardcode_into_libs=$hardcode_into_libs
18317
18318 # Flag to hardcode \$libdir into a binary during linking.
18319 # This must work even if \$libdir does not exist.
18320 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18321
18322 # If ld is used when linking, flag to hardcode \$libdir into
18323 # a binary during linking. This must work even if \$libdir does
18324 # not exist.
18325 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18326
18327 # Whether we need a single -rpath flag with a separated argument.
18328 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18329
18330 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18331 # resulting binary.
18332 hardcode_direct=$hardcode_direct_RC
18333
18334 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18335 # resulting binary.
18336 hardcode_minus_L=$hardcode_minus_L_RC
18337
18338 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18339 # the resulting binary.
18340 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18341
18342 # Set to yes if building a shared library automatically hardcodes DIR into the library
18343 # and all subsequent libraries and executables linked against it.
18344 hardcode_automatic=$hardcode_automatic_RC
18345
18346 # Variables whose values should be saved in libtool wrapper scripts and
18347 # restored at relink time.
18348 variables_saved_for_relink="$variables_saved_for_relink"
18349
18350 # Whether libtool must link a program against all its dependency libraries.
18351 link_all_deplibs=$link_all_deplibs_RC
18352
18353 # Compile-time system search path for libraries
18354 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18355
18356 # Run-time system search path for libraries
18357 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18358
18359 # Fix the shell variable \$srcfile for the compiler.
18360 fix_srcfile_path="$fix_srcfile_path_RC"
18361
18362 # Set to yes if exported symbols are required.
18363 always_export_symbols=$always_export_symbols_RC
18364
18365 # The commands to list exported symbols.
18366 export_symbols_cmds=$lt_export_symbols_cmds_RC
18367
18368 # The commands to extract the exported symbol list from a shared archive.
18369 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18370
18371 # Symbols that should not be listed in the preloaded symbols.
18372 exclude_expsyms=$lt_exclude_expsyms_RC
18373
18374 # Symbols that must always be exported.
18375 include_expsyms=$lt_include_expsyms_RC
18376
18377 # ### END LIBTOOL TAG CONFIG: $tagname
18378
18379 __EOF__
18380
18381
18382 else
18383   # If there is no Makefile yet, we rely on a make rule to execute
18384   # `config.status --recheck' to rerun these tests and create the
18385   # libtool script then.
18386   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18387   if test -f "$ltmain_in"; then
18388     test -f Makefile && make "$ltmain"
18389   fi
18390 fi
18391
18392
18393 ac_ext=c
18394 ac_cpp='$CPP $CPPFLAGS'
18395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18398
18399 CC="$lt_save_CC"
18400
18401         ;;
18402
18403       *)
18404         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18405 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18406    { (exit 1); exit 1; }; }
18407         ;;
18408       esac
18409
18410       # Append the new tag name to the list of available tags.
18411       if test -n "$tagname" ; then
18412       available_tags="$available_tags $tagname"
18413     fi
18414     fi
18415   done
18416   IFS="$lt_save_ifs"
18417
18418   # Now substitute the updated list of available tags.
18419   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18420     mv "${ofile}T" "$ofile"
18421     chmod +x "$ofile"
18422   else
18423     rm -f "${ofile}T"
18424     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18425 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18426    { (exit 1); exit 1; }; }
18427   fi
18428 fi
18429
18430
18431
18432 # This can be used to rebuild libtool when needed
18433 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18434
18435 # Always use our own libtool.
18436 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18437
18438 # Prevent multiple expansion
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461 #AC_CONFIG_HEADERS(sysdep.h)
18462 #AC_VERSION(6.72)
18463 #PACKAGE=gettext
18464 #VERSION=0.14.5
18465 #AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
18466 #AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
18467 #AC_SUBST(PACKAGE)
18468 #AC_SUBST(VERSION)
18469 #AM_INIT_AUTOMAKE(gettext, 0.14.5)
18470
18471
18472 #AC_CANONICAL_HOST
18473 # Find a good install program.  We prefer a C program (faster),
18474 # so one script is as good as another.  But avoid the broken or
18475 # incompatible versions:
18476 # SysV /etc/install, /usr/sbin/install
18477 # SunOS /usr/etc/install
18478 # IRIX /sbin/install
18479 # AIX /bin/install
18480 # AmigaOS /C/install, which installs bootblocks on floppy discs
18481 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18482 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18483 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18484 # OS/2's system install, which has a completely different semantic
18485 # ./install, which can be erroneously created by make from ./install.sh.
18486 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18487 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
18488 if test -z "$INSTALL"; then
18489 if test "${ac_cv_path_install+set}" = set; then
18490   echo $ECHO_N "(cached) $ECHO_C" >&6
18491 else
18492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18493 for as_dir in $PATH
18494 do
18495   IFS=$as_save_IFS
18496   test -z "$as_dir" && as_dir=.
18497   # Account for people who put trailing slashes in PATH elements.
18498 case $as_dir/ in
18499   ./ | .// | /cC/* | \
18500   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18501   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18502   /usr/ucb/* ) ;;
18503   *)
18504     # OSF1 and SCO ODT 3.0 have their own names for install.
18505     # Don't use installbsd from OSF since it installs stuff as root
18506     # by default.
18507     for ac_prog in ginstall scoinst install; do
18508       for ac_exec_ext in '' $ac_executable_extensions; do
18509         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18510           if test $ac_prog = install &&
18511             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18512             # AIX install.  It has an incompatible calling convention.
18513             :
18514           elif test $ac_prog = install &&
18515             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18516             # program-specific install script used by HP pwplus--don't use.
18517             :
18518           else
18519             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18520             break 3
18521           fi
18522         fi
18523       done
18524     done
18525     ;;
18526 esac
18527 done
18528
18529
18530 fi
18531   if test "${ac_cv_path_install+set}" = set; then
18532     INSTALL=$ac_cv_path_install
18533   else
18534     # As a last resort, use the slow shell script.  We don't cache a
18535     # path for INSTALL within a source directory, because that will
18536     # break other packages using the cache if that directory is
18537     # removed, or if the path is relative.
18538     INSTALL=$ac_install_sh
18539   fi
18540 fi
18541 echo "$as_me:$LINENO: result: $INSTALL" >&5
18542 echo "${ECHO_T}$INSTALL" >&6
18543
18544 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18545 # It thinks the first close brace ends the variable substitution.
18546 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18547
18548 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18549
18550 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18551
18552 # Extract the first word of "autoconf", so it can be a program name with args.
18553 set dummy autoconf; ac_word=$2
18554 echo "$as_me:$LINENO: checking for $ac_word" >&5
18555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18556 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
18557   echo $ECHO_N "(cached) $ECHO_C" >&6
18558 else
18559   if test -n "$AUTOCONF"; then
18560   ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
18561 else
18562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18563 for as_dir in $PATH
18564 do
18565   IFS=$as_save_IFS
18566   test -z "$as_dir" && as_dir=.
18567   for ac_exec_ext in '' $ac_executable_extensions; do
18568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18569     ac_cv_prog_AUTOCONF=""
18570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18571     break 2
18572   fi
18573 done
18574 done
18575
18576 fi
18577 fi
18578 AUTOCONF=$ac_cv_prog_AUTOCONF
18579 if test -n "$AUTOCONF"; then
18580   echo "$as_me:$LINENO: result: $AUTOCONF" >&5
18581 echo "${ECHO_T}$AUTOCONF" >&6
18582 else
18583   echo "$as_me:$LINENO: result: no" >&5
18584 echo "${ECHO_T}no" >&6
18585 fi
18586
18587 # Extract the first word of "sed", so it can be a program name with args.
18588 set dummy sed; ac_word=$2
18589 echo "$as_me:$LINENO: checking for $ac_word" >&5
18590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18591 if test "${ac_cv_prog_SED+set}" = set; then
18592   echo $ECHO_N "(cached) $ECHO_C" >&6
18593 else
18594   if test -n "$SED"; then
18595   ac_cv_prog_SED="$SED" # Let the user override the test.
18596 else
18597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18598 for as_dir in $PATH
18599 do
18600   IFS=$as_save_IFS
18601   test -z "$as_dir" && as_dir=.
18602   for ac_exec_ext in '' $ac_executable_extensions; do
18603   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18604     ac_cv_prog_SED="sed"
18605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18606     break 2
18607   fi
18608 done
18609 done
18610
18611   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
18612 fi
18613 fi
18614 SED=$ac_cv_prog_SED
18615 if test -n "$SED"; then
18616   echo "$as_me:$LINENO: result: $SED" >&5
18617 echo "${ECHO_T}$SED" >&6
18618 else
18619   echo "$as_me:$LINENO: result: no" >&5
18620 echo "${ECHO_T}no" >&6
18621 fi
18622
18623
18624
18625 #AC_ARG_WITH(with_libical, [  --with-libical          use libical calendaring library])
18626 #AC_ARG_WITH(with_zlib,    [  --with-zlib             use zlib compression if present])
18627 #AC_ARG_WITH(with_newt,    [  --with-newt             use newt window library])
18628 #AC_ARG_WITH(ssl,
18629 #       [  --with-ssl=PATH         Specify path to OpenSSL installation ],
18630 #       [
18631 #               if test "x$withval" != "xno" ; then
18632 #                       tryssldir=$withval
18633 #               fi
18634 #       ]
18635 #)
18636 #AC_DEFINE([HAVE_ICAL], [  --with-libical          use libical calendaring library])
18637
18638 cat >>confdefs.h <<\_ACEOF
18639 #define HAVE_OPENSSL 1
18640 _ACEOF
18641
18642
18643
18644 PTHREAD_DEFS=-D_REENTRANT
18645 case "$host" in
18646                                 alpha*-dec-osf*)
18647                 test -z "$CC" && CC=cc
18648                 LIBS=-pthread
18649         ;;
18650                 *-*-freebsd*)
18651                 LIBS=-pthread
18652                 PTHREAD_DEFS=-D_THREAD_SAFE
18653         ;;
18654         *-*-solaris*)
18655                 PTHREAD_DEFS='-D_REENTRANT -D_PTHREADS'
18656         ;;
18657 esac
18658
18659
18660 ac_ext=c
18661 ac_cpp='$CPP $CPPFLAGS'
18662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18665 if test -n "$ac_tool_prefix"; then
18666   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18667 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18668 echo "$as_me:$LINENO: checking for $ac_word" >&5
18669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18670 if test "${ac_cv_prog_CC+set}" = set; then
18671   echo $ECHO_N "(cached) $ECHO_C" >&6
18672 else
18673   if test -n "$CC"; then
18674   ac_cv_prog_CC="$CC" # Let the user override the test.
18675 else
18676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18677 for as_dir in $PATH
18678 do
18679   IFS=$as_save_IFS
18680   test -z "$as_dir" && as_dir=.
18681   for ac_exec_ext in '' $ac_executable_extensions; do
18682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18683     ac_cv_prog_CC="${ac_tool_prefix}gcc"
18684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18685     break 2
18686   fi
18687 done
18688 done
18689
18690 fi
18691 fi
18692 CC=$ac_cv_prog_CC
18693 if test -n "$CC"; then
18694   echo "$as_me:$LINENO: result: $CC" >&5
18695 echo "${ECHO_T}$CC" >&6
18696 else
18697   echo "$as_me:$LINENO: result: no" >&5
18698 echo "${ECHO_T}no" >&6
18699 fi
18700
18701 fi
18702 if test -z "$ac_cv_prog_CC"; then
18703   ac_ct_CC=$CC
18704   # Extract the first word of "gcc", so it can be a program name with args.
18705 set dummy gcc; ac_word=$2
18706 echo "$as_me:$LINENO: checking for $ac_word" >&5
18707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18708 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18709   echo $ECHO_N "(cached) $ECHO_C" >&6
18710 else
18711   if test -n "$ac_ct_CC"; then
18712   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18713 else
18714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18715 for as_dir in $PATH
18716 do
18717   IFS=$as_save_IFS
18718   test -z "$as_dir" && as_dir=.
18719   for ac_exec_ext in '' $ac_executable_extensions; do
18720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18721     ac_cv_prog_ac_ct_CC="gcc"
18722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18723     break 2
18724   fi
18725 done
18726 done
18727
18728 fi
18729 fi
18730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18731 if test -n "$ac_ct_CC"; then
18732   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18733 echo "${ECHO_T}$ac_ct_CC" >&6
18734 else
18735   echo "$as_me:$LINENO: result: no" >&5
18736 echo "${ECHO_T}no" >&6
18737 fi
18738
18739   CC=$ac_ct_CC
18740 else
18741   CC="$ac_cv_prog_CC"
18742 fi
18743
18744 if test -z "$CC"; then
18745   if test -n "$ac_tool_prefix"; then
18746   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18747 set dummy ${ac_tool_prefix}cc; ac_word=$2
18748 echo "$as_me:$LINENO: checking for $ac_word" >&5
18749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18750 if test "${ac_cv_prog_CC+set}" = set; then
18751   echo $ECHO_N "(cached) $ECHO_C" >&6
18752 else
18753   if test -n "$CC"; then
18754   ac_cv_prog_CC="$CC" # Let the user override the test.
18755 else
18756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18757 for as_dir in $PATH
18758 do
18759   IFS=$as_save_IFS
18760   test -z "$as_dir" && as_dir=.
18761   for ac_exec_ext in '' $ac_executable_extensions; do
18762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18763     ac_cv_prog_CC="${ac_tool_prefix}cc"
18764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18765     break 2
18766   fi
18767 done
18768 done
18769
18770 fi
18771 fi
18772 CC=$ac_cv_prog_CC
18773 if test -n "$CC"; then
18774   echo "$as_me:$LINENO: result: $CC" >&5
18775 echo "${ECHO_T}$CC" >&6
18776 else
18777   echo "$as_me:$LINENO: result: no" >&5
18778 echo "${ECHO_T}no" >&6
18779 fi
18780
18781 fi
18782 if test -z "$ac_cv_prog_CC"; then
18783   ac_ct_CC=$CC
18784   # Extract the first word of "cc", so it can be a program name with args.
18785 set dummy cc; ac_word=$2
18786 echo "$as_me:$LINENO: checking for $ac_word" >&5
18787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18789   echo $ECHO_N "(cached) $ECHO_C" >&6
18790 else
18791   if test -n "$ac_ct_CC"; then
18792   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18793 else
18794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18795 for as_dir in $PATH
18796 do
18797   IFS=$as_save_IFS
18798   test -z "$as_dir" && as_dir=.
18799   for ac_exec_ext in '' $ac_executable_extensions; do
18800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18801     ac_cv_prog_ac_ct_CC="cc"
18802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18803     break 2
18804   fi
18805 done
18806 done
18807
18808 fi
18809 fi
18810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18811 if test -n "$ac_ct_CC"; then
18812   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18813 echo "${ECHO_T}$ac_ct_CC" >&6
18814 else
18815   echo "$as_me:$LINENO: result: no" >&5
18816 echo "${ECHO_T}no" >&6
18817 fi
18818
18819   CC=$ac_ct_CC
18820 else
18821   CC="$ac_cv_prog_CC"
18822 fi
18823
18824 fi
18825 if test -z "$CC"; then
18826   # Extract the first word of "cc", so it can be a program name with args.
18827 set dummy cc; ac_word=$2
18828 echo "$as_me:$LINENO: checking for $ac_word" >&5
18829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18830 if test "${ac_cv_prog_CC+set}" = set; then
18831   echo $ECHO_N "(cached) $ECHO_C" >&6
18832 else
18833   if test -n "$CC"; then
18834   ac_cv_prog_CC="$CC" # Let the user override the test.
18835 else
18836   ac_prog_rejected=no
18837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18838 for as_dir in $PATH
18839 do
18840   IFS=$as_save_IFS
18841   test -z "$as_dir" && as_dir=.
18842   for ac_exec_ext in '' $ac_executable_extensions; do
18843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18844     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18845        ac_prog_rejected=yes
18846        continue
18847      fi
18848     ac_cv_prog_CC="cc"
18849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18850     break 2
18851   fi
18852 done
18853 done
18854
18855 if test $ac_prog_rejected = yes; then
18856   # We found a bogon in the path, so make sure we never use it.
18857   set dummy $ac_cv_prog_CC
18858   shift
18859   if test $# != 0; then
18860     # We chose a different compiler from the bogus one.
18861     # However, it has the same basename, so the bogon will be chosen
18862     # first if we set CC to just the basename; use the full file name.
18863     shift
18864     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18865   fi
18866 fi
18867 fi
18868 fi
18869 CC=$ac_cv_prog_CC
18870 if test -n "$CC"; then
18871   echo "$as_me:$LINENO: result: $CC" >&5
18872 echo "${ECHO_T}$CC" >&6
18873 else
18874   echo "$as_me:$LINENO: result: no" >&5
18875 echo "${ECHO_T}no" >&6
18876 fi
18877
18878 fi
18879 if test -z "$CC"; then
18880   if test -n "$ac_tool_prefix"; then
18881   for ac_prog in cl
18882   do
18883     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18885 echo "$as_me:$LINENO: checking for $ac_word" >&5
18886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18887 if test "${ac_cv_prog_CC+set}" = set; then
18888   echo $ECHO_N "(cached) $ECHO_C" >&6
18889 else
18890   if test -n "$CC"; then
18891   ac_cv_prog_CC="$CC" # Let the user override the test.
18892 else
18893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18894 for as_dir in $PATH
18895 do
18896   IFS=$as_save_IFS
18897   test -z "$as_dir" && as_dir=.
18898   for ac_exec_ext in '' $ac_executable_extensions; do
18899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18900     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18902     break 2
18903   fi
18904 done
18905 done
18906
18907 fi
18908 fi
18909 CC=$ac_cv_prog_CC
18910 if test -n "$CC"; then
18911   echo "$as_me:$LINENO: result: $CC" >&5
18912 echo "${ECHO_T}$CC" >&6
18913 else
18914   echo "$as_me:$LINENO: result: no" >&5
18915 echo "${ECHO_T}no" >&6
18916 fi
18917
18918     test -n "$CC" && break
18919   done
18920 fi
18921 if test -z "$CC"; then
18922   ac_ct_CC=$CC
18923   for ac_prog in cl
18924 do
18925   # Extract the first word of "$ac_prog", so it can be a program name with args.
18926 set dummy $ac_prog; ac_word=$2
18927 echo "$as_me:$LINENO: checking for $ac_word" >&5
18928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18929 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18930   echo $ECHO_N "(cached) $ECHO_C" >&6
18931 else
18932   if test -n "$ac_ct_CC"; then
18933   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18934 else
18935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18936 for as_dir in $PATH
18937 do
18938   IFS=$as_save_IFS
18939   test -z "$as_dir" && as_dir=.
18940   for ac_exec_ext in '' $ac_executable_extensions; do
18941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18942     ac_cv_prog_ac_ct_CC="$ac_prog"
18943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18944     break 2
18945   fi
18946 done
18947 done
18948
18949 fi
18950 fi
18951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18952 if test -n "$ac_ct_CC"; then
18953   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18954 echo "${ECHO_T}$ac_ct_CC" >&6
18955 else
18956   echo "$as_me:$LINENO: result: no" >&5
18957 echo "${ECHO_T}no" >&6
18958 fi
18959
18960   test -n "$ac_ct_CC" && break
18961 done
18962
18963   CC=$ac_ct_CC
18964 fi
18965
18966 fi
18967
18968
18969 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18970 See \`config.log' for more details." >&5
18971 echo "$as_me: error: no acceptable C compiler found in \$PATH
18972 See \`config.log' for more details." >&2;}
18973    { (exit 1); exit 1; }; }
18974
18975 # Provide some information about the compiler.
18976 echo "$as_me:$LINENO:" \
18977      "checking for C compiler version" >&5
18978 ac_compiler=`set X $ac_compile; echo $2`
18979 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18980   (eval $ac_compiler --version </dev/null >&5) 2>&5
18981   ac_status=$?
18982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983   (exit $ac_status); }
18984 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18985   (eval $ac_compiler -v </dev/null >&5) 2>&5
18986   ac_status=$?
18987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988   (exit $ac_status); }
18989 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
18990   (eval $ac_compiler -V </dev/null >&5) 2>&5
18991   ac_status=$?
18992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993   (exit $ac_status); }
18994
18995 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
18996 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
18997 if test "${ac_cv_c_compiler_gnu+set}" = set; then
18998   echo $ECHO_N "(cached) $ECHO_C" >&6
18999 else
19000   cat >conftest.$ac_ext <<_ACEOF
19001 /* confdefs.h.  */
19002 _ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h.  */
19006
19007 int
19008 main ()
19009 {
19010 #ifndef __GNUC__
19011        choke me
19012 #endif
19013
19014   ;
19015   return 0;
19016 }
19017 _ACEOF
19018 rm -f conftest.$ac_objext
19019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19020   (eval $ac_compile) 2>conftest.er1
19021   ac_status=$?
19022   grep -v '^ *+' conftest.er1 >conftest.err
19023   rm -f conftest.er1
19024   cat conftest.err >&5
19025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026   (exit $ac_status); } &&
19027          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029   (eval $ac_try) 2>&5
19030   ac_status=$?
19031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032   (exit $ac_status); }; } &&
19033          { ac_try='test -s conftest.$ac_objext'
19034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035   (eval $ac_try) 2>&5
19036   ac_status=$?
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); }; }; then
19039   ac_compiler_gnu=yes
19040 else
19041   echo "$as_me: failed program was:" >&5
19042 sed 's/^/| /' conftest.$ac_ext >&5
19043
19044 ac_compiler_gnu=no
19045 fi
19046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19048
19049 fi
19050 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19051 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19052 GCC=`test $ac_compiler_gnu = yes && echo yes`
19053 ac_test_CFLAGS=${CFLAGS+set}
19054 ac_save_CFLAGS=$CFLAGS
19055 CFLAGS="-g"
19056 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19057 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19058 if test "${ac_cv_prog_cc_g+set}" = set; then
19059   echo $ECHO_N "(cached) $ECHO_C" >&6
19060 else
19061   cat >conftest.$ac_ext <<_ACEOF
19062 /* confdefs.h.  */
19063 _ACEOF
19064 cat confdefs.h >>conftest.$ac_ext
19065 cat >>conftest.$ac_ext <<_ACEOF
19066 /* end confdefs.h.  */
19067
19068 int
19069 main ()
19070 {
19071
19072   ;
19073   return 0;
19074 }
19075 _ACEOF
19076 rm -f conftest.$ac_objext
19077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19078   (eval $ac_compile) 2>conftest.er1
19079   ac_status=$?
19080   grep -v '^ *+' conftest.er1 >conftest.err
19081   rm -f conftest.er1
19082   cat conftest.err >&5
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); } &&
19085          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087   (eval $ac_try) 2>&5
19088   ac_status=$?
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); }; } &&
19091          { ac_try='test -s conftest.$ac_objext'
19092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093   (eval $ac_try) 2>&5
19094   ac_status=$?
19095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096   (exit $ac_status); }; }; then
19097   ac_cv_prog_cc_g=yes
19098 else
19099   echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19101
19102 ac_cv_prog_cc_g=no
19103 fi
19104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19105 fi
19106 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19107 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19108 if test "$ac_test_CFLAGS" = set; then
19109   CFLAGS=$ac_save_CFLAGS
19110 elif test $ac_cv_prog_cc_g = yes; then
19111   if test "$GCC" = yes; then
19112     CFLAGS="-g -O2"
19113   else
19114     CFLAGS="-g"
19115   fi
19116 else
19117   if test "$GCC" = yes; then
19118     CFLAGS="-O2"
19119   else
19120     CFLAGS=
19121   fi
19122 fi
19123 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19124 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19125 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19126   echo $ECHO_N "(cached) $ECHO_C" >&6
19127 else
19128   ac_cv_prog_cc_stdc=no
19129 ac_save_CC=$CC
19130 cat >conftest.$ac_ext <<_ACEOF
19131 /* confdefs.h.  */
19132 _ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h.  */
19136 #include <stdarg.h>
19137 #include <stdio.h>
19138 #include <sys/types.h>
19139 #include <sys/stat.h>
19140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19141 struct buf { int x; };
19142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19143 static char *e (p, i)
19144      char **p;
19145      int i;
19146 {
19147   return p[i];
19148 }
19149 static char *f (char * (*g) (char **, int), char **p, ...)
19150 {
19151   char *s;
19152   va_list v;
19153   va_start (v,p);
19154   s = g (p, va_arg (v,int));
19155   va_end (v);
19156   return s;
19157 }
19158
19159 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19160    function prototypes and stuff, but not '\xHH' hex character constants.
19161    These don't provoke an error unfortunately, instead are silently treated
19162    as 'x'.  The following induces an error, until -std1 is added to get
19163    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19164    array size at least.  It's necessary to write '\x00'==0 to get something
19165    that's true only with -std1.  */
19166 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19167
19168 int test (int i, double x);
19169 struct s1 {int (*f) (int a);};
19170 struct s2 {int (*f) (double a);};
19171 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19172 int argc;
19173 char **argv;
19174 int
19175 main ()
19176 {
19177 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19178   ;
19179   return 0;
19180 }
19181 _ACEOF
19182 # Don't try gcc -ansi; that turns off useful extensions and
19183 # breaks some systems' header files.
19184 # AIX                   -qlanglvl=ansi
19185 # Ultrix and OSF/1      -std1
19186 # HP-UX 10.20 and later -Ae
19187 # HP-UX older versions  -Aa -D_HPUX_SOURCE
19188 # SVR4                  -Xc -D__EXTENSIONS__
19189 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19190 do
19191   CC="$ac_save_CC $ac_arg"
19192   rm -f conftest.$ac_objext
19193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19194   (eval $ac_compile) 2>conftest.er1
19195   ac_status=$?
19196   grep -v '^ *+' conftest.er1 >conftest.err
19197   rm -f conftest.er1
19198   cat conftest.err >&5
19199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200   (exit $ac_status); } &&
19201          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203   (eval $ac_try) 2>&5
19204   ac_status=$?
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); }; } &&
19207          { ac_try='test -s conftest.$ac_objext'
19208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19209   (eval $ac_try) 2>&5
19210   ac_status=$?
19211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212   (exit $ac_status); }; }; then
19213   ac_cv_prog_cc_stdc=$ac_arg
19214 break
19215 else
19216   echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19218
19219 fi
19220 rm -f conftest.err conftest.$ac_objext
19221 done
19222 rm -f conftest.$ac_ext conftest.$ac_objext
19223 CC=$ac_save_CC
19224
19225 fi
19226
19227 case "x$ac_cv_prog_cc_stdc" in
19228   x|xno)
19229     echo "$as_me:$LINENO: result: none needed" >&5
19230 echo "${ECHO_T}none needed" >&6 ;;
19231   *)
19232     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19233 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19234     CC="$CC $ac_cv_prog_cc_stdc" ;;
19235 esac
19236
19237 # Some people use a C++ compiler to compile C.  Since we use `exit',
19238 # in C++ we need to declare it.  In case someone uses the same compiler
19239 # for both compiling C and C++ we need to have the C++ compiler decide
19240 # the declaration of exit, since it's the most demanding environment.
19241 cat >conftest.$ac_ext <<_ACEOF
19242 #ifndef __cplusplus
19243   choke me
19244 #endif
19245 _ACEOF
19246 rm -f conftest.$ac_objext
19247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19248   (eval $ac_compile) 2>conftest.er1
19249   ac_status=$?
19250   grep -v '^ *+' conftest.er1 >conftest.err
19251   rm -f conftest.er1
19252   cat conftest.err >&5
19253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254   (exit $ac_status); } &&
19255          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257   (eval $ac_try) 2>&5
19258   ac_status=$?
19259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260   (exit $ac_status); }; } &&
19261          { ac_try='test -s conftest.$ac_objext'
19262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263   (eval $ac_try) 2>&5
19264   ac_status=$?
19265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); }; }; then
19267   for ac_declaration in \
19268    '' \
19269    'extern "C" void std::exit (int) throw (); using std::exit;' \
19270    'extern "C" void std::exit (int); using std::exit;' \
19271    'extern "C" void exit (int) throw ();' \
19272    'extern "C" void exit (int);' \
19273    'void exit (int);'
19274 do
19275   cat >conftest.$ac_ext <<_ACEOF
19276 /* confdefs.h.  */
19277 _ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h.  */
19281 $ac_declaration
19282 #include <stdlib.h>
19283 int
19284 main ()
19285 {
19286 exit (42);
19287   ;
19288   return 0;
19289 }
19290 _ACEOF
19291 rm -f conftest.$ac_objext
19292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19293   (eval $ac_compile) 2>conftest.er1
19294   ac_status=$?
19295   grep -v '^ *+' conftest.er1 >conftest.err
19296   rm -f conftest.er1
19297   cat conftest.err >&5
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); } &&
19300          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302   (eval $ac_try) 2>&5
19303   ac_status=$?
19304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305   (exit $ac_status); }; } &&
19306          { ac_try='test -s conftest.$ac_objext'
19307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308   (eval $ac_try) 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; }; then
19312   :
19313 else
19314   echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19316
19317 continue
19318 fi
19319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19320   cat >conftest.$ac_ext <<_ACEOF
19321 /* confdefs.h.  */
19322 _ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h.  */
19326 $ac_declaration
19327 int
19328 main ()
19329 {
19330 exit (42);
19331   ;
19332   return 0;
19333 }
19334 _ACEOF
19335 rm -f conftest.$ac_objext
19336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19337   (eval $ac_compile) 2>conftest.er1
19338   ac_status=$?
19339   grep -v '^ *+' conftest.er1 >conftest.err
19340   rm -f conftest.er1
19341   cat conftest.err >&5
19342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343   (exit $ac_status); } &&
19344          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19346   (eval $ac_try) 2>&5
19347   ac_status=$?
19348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349   (exit $ac_status); }; } &&
19350          { ac_try='test -s conftest.$ac_objext'
19351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19352   (eval $ac_try) 2>&5
19353   ac_status=$?
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); }; }; then
19356   break
19357 else
19358   echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19360
19361 fi
19362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19363 done
19364 rm -f conftest*
19365 if test -n "$ac_declaration"; then
19366   echo '#ifdef __cplusplus' >>confdefs.h
19367   echo $ac_declaration      >>confdefs.h
19368   echo '#endif'             >>confdefs.h
19369 fi
19370
19371 else
19372   echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19374
19375 fi
19376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19377 ac_ext=c
19378 ac_cpp='$CPP $CPPFLAGS'
19379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19382
19383 depcc="$CC"   am_compiler_list=
19384
19385 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19386 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19387 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19388   echo $ECHO_N "(cached) $ECHO_C" >&6
19389 else
19390   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19391   # We make a subdir and do the tests there.  Otherwise we can end up
19392   # making bogus files that we don't know about and never remove.  For
19393   # instance it was reported that on HP-UX the gcc test will end up
19394   # making a dummy file named `D' -- because `-MD' means `put the output
19395   # in D'.
19396   mkdir conftest.dir
19397   # Copy depcomp to subdir because otherwise we won't find it if we're
19398   # using a relative directory.
19399   cp "$am_depcomp" conftest.dir
19400   cd conftest.dir
19401   # We will build objects and dependencies in a subdirectory because
19402   # it helps to detect inapplicable dependency modes.  For instance
19403   # both Tru64's cc and ICC support -MD to output dependencies as a
19404   # side effect of compilation, but ICC will put the dependencies in
19405   # the current directory while Tru64 will put them in the object
19406   # directory.
19407   mkdir sub
19408
19409   am_cv_CC_dependencies_compiler_type=none
19410   if test "$am_compiler_list" = ""; then
19411      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19412   fi
19413   for depmode in $am_compiler_list; do
19414     # Setup a source with many dependencies, because some compilers
19415     # like to wrap large dependency lists on column 80 (with \), and
19416     # we should not choose a depcomp mode which is confused by this.
19417     #
19418     # We need to recreate these files for each test, as the compiler may
19419     # overwrite some of them when testing with obscure command lines.
19420     # This happens at least with the AIX C compiler.
19421     : > sub/conftest.c
19422     for i in 1 2 3 4 5 6; do
19423       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19424       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19425       # Solaris 8's {/usr,}/bin/sh.
19426       touch sub/conftst$i.h
19427     done
19428     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19429
19430     case $depmode in
19431     nosideeffect)
19432       # after this tag, mechanisms are not by side-effect, so they'll
19433       # only be used when explicitly requested
19434       if test "x$enable_dependency_tracking" = xyes; then
19435         continue
19436       else
19437         break
19438       fi
19439       ;;
19440     none) break ;;
19441     esac
19442     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19443     # mode.  It turns out that the SunPro C++ compiler does not properly
19444     # handle `-M -o', and we need to detect this.
19445     if depmode=$depmode \
19446        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19447        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19448        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19449          >/dev/null 2>conftest.err &&
19450        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19451        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19452        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19453       # icc doesn't choke on unknown options, it will just issue warnings
19454       # or remarks (even with -Werror).  So we grep stderr for any message
19455       # that says an option was ignored or not supported.
19456       # When given -MP, icc 7.0 and 7.1 complain thusly:
19457       #   icc: Command line warning: ignoring option '-M'; no argument required
19458       # The diagnosis changed in icc 8.0:
19459       #   icc: Command line remark: option '-MP' not supported
19460       if (grep 'ignoring option' conftest.err ||
19461           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19462         am_cv_CC_dependencies_compiler_type=$depmode
19463         break
19464       fi
19465     fi
19466   done
19467
19468   cd ..
19469   rm -rf conftest.dir
19470 else
19471   am_cv_CC_dependencies_compiler_type=none
19472 fi
19473
19474 fi
19475 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19476 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19477 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19478
19479
19480
19481 if
19482   test "x$enable_dependency_tracking" != xno \
19483   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19484   am__fastdepCC_TRUE=
19485   am__fastdepCC_FALSE='#'
19486 else
19487   am__fastdepCC_TRUE='#'
19488   am__fastdepCC_FALSE=
19489 fi
19490
19491
19492
19493 if test "$GCC" = yes; then
19494         case "$host" in
19495                 *-*-solaris*)
19496                         CFLAGS="$CFLAGS -Wall -Wno-char-subscripts"
19497                 ;;
19498                 *)
19499                         CFLAGS="$CFLAGS -Wall"
19500                 ;;
19501         esac
19502 fi
19503
19504 # missing_dir=`cd $ac_aux_dir && pwd`
19505 # AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
19506
19507 if test "$LIBS" != -pthread; then
19508
19509 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19510 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19511 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19512   echo $ECHO_N "(cached) $ECHO_C" >&6
19513 else
19514   ac_check_lib_save_LIBS=$LIBS
19515 LIBS="-lpthread  $LIBS"
19516 cat >conftest.$ac_ext <<_ACEOF
19517 /* confdefs.h.  */
19518 _ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h.  */
19522
19523 /* Override any gcc2 internal prototype to avoid an error.  */
19524 #ifdef __cplusplus
19525 extern "C"
19526 #endif
19527 /* We use char because int might match the return type of a gcc2
19528    builtin and then its argument prototype would still apply.  */
19529 char pthread_create ();
19530 int
19531 main ()
19532 {
19533 pthread_create ();
19534   ;
19535   return 0;
19536 }
19537 _ACEOF
19538 rm -f conftest.$ac_objext conftest$ac_exeext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19540   (eval $ac_link) 2>conftest.er1
19541   ac_status=$?
19542   grep -v '^ *+' conftest.er1 >conftest.err
19543   rm -f conftest.er1
19544   cat conftest.err >&5
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); } &&
19547          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549   (eval $ac_try) 2>&5
19550   ac_status=$?
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   (exit $ac_status); }; } &&
19553          { ac_try='test -s conftest$ac_exeext'
19554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555   (eval $ac_try) 2>&5
19556   ac_status=$?
19557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558   (exit $ac_status); }; }; then
19559   ac_cv_lib_pthread_pthread_create=yes
19560 else
19561   echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19563
19564 ac_cv_lib_pthread_pthread_create=no
19565 fi
19566 rm -f conftest.err conftest.$ac_objext \
19567       conftest$ac_exeext conftest.$ac_ext
19568 LIBS=$ac_check_lib_save_LIBS
19569 fi
19570 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19571 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19572 if test $ac_cv_lib_pthread_pthread_create = yes; then
19573   cat >>confdefs.h <<_ACEOF
19574 #define HAVE_LIBPTHREAD 1
19575 _ACEOF
19576
19577   LIBS="-lpthread $LIBS"
19578
19579 fi
19580
19581
19582 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
19583 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
19584 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
19585   echo $ECHO_N "(cached) $ECHO_C" >&6
19586 else
19587   ac_check_lib_save_LIBS=$LIBS
19588 LIBS="-lpthreads  $LIBS"
19589 cat >conftest.$ac_ext <<_ACEOF
19590 /* confdefs.h.  */
19591 _ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h.  */
19595
19596 /* Override any gcc2 internal prototype to avoid an error.  */
19597 #ifdef __cplusplus
19598 extern "C"
19599 #endif
19600 /* We use char because int might match the return type of a gcc2
19601    builtin and then its argument prototype would still apply.  */
19602 char pthread_create ();
19603 int
19604 main ()
19605 {
19606 pthread_create ();
19607   ;
19608   return 0;
19609 }
19610 _ACEOF
19611 rm -f conftest.$ac_objext conftest$ac_exeext
19612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19613   (eval $ac_link) 2>conftest.er1
19614   ac_status=$?
19615   grep -v '^ *+' conftest.er1 >conftest.err
19616   rm -f conftest.er1
19617   cat conftest.err >&5
19618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619   (exit $ac_status); } &&
19620          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19622   (eval $ac_try) 2>&5
19623   ac_status=$?
19624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625   (exit $ac_status); }; } &&
19626          { ac_try='test -s conftest$ac_exeext'
19627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19628   (eval $ac_try) 2>&5
19629   ac_status=$?
19630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631   (exit $ac_status); }; }; then
19632   ac_cv_lib_pthreads_pthread_create=yes
19633 else
19634   echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19636
19637 ac_cv_lib_pthreads_pthread_create=no
19638 fi
19639 rm -f conftest.err conftest.$ac_objext \
19640       conftest$ac_exeext conftest.$ac_ext
19641 LIBS=$ac_check_lib_save_LIBS
19642 fi
19643 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
19644 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
19645 if test $ac_cv_lib_pthreads_pthread_create = yes; then
19646   cat >>confdefs.h <<_ACEOF
19647 #define HAVE_LIBPTHREADS 1
19648 _ACEOF
19649
19650   LIBS="-lpthreads $LIBS"
19651
19652 fi
19653
19654 fi
19655 echo "$as_me:$LINENO: checking for libiconv in -liconv" >&5
19656 echo $ECHO_N "checking for libiconv in -liconv... $ECHO_C" >&6
19657 if test "${ac_cv_lib_iconv_libiconv+set}" = set; then
19658   echo $ECHO_N "(cached) $ECHO_C" >&6
19659 else
19660   ac_check_lib_save_LIBS=$LIBS
19661 LIBS="-liconv  $LIBS"
19662 cat >conftest.$ac_ext <<_ACEOF
19663 /* confdefs.h.  */
19664 _ACEOF
19665 cat confdefs.h >>conftest.$ac_ext
19666 cat >>conftest.$ac_ext <<_ACEOF
19667 /* end confdefs.h.  */
19668
19669 /* Override any gcc2 internal prototype to avoid an error.  */
19670 #ifdef __cplusplus
19671 extern "C"
19672 #endif
19673 /* We use char because int might match the return type of a gcc2
19674    builtin and then its argument prototype would still apply.  */
19675 char libiconv ();
19676 int
19677 main ()
19678 {
19679 libiconv ();
19680   ;
19681   return 0;
19682 }
19683 _ACEOF
19684 rm -f conftest.$ac_objext conftest$ac_exeext
19685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19686   (eval $ac_link) 2>conftest.er1
19687   ac_status=$?
19688   grep -v '^ *+' conftest.er1 >conftest.err
19689   rm -f conftest.er1
19690   cat conftest.err >&5
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); } &&
19693          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695   (eval $ac_try) 2>&5
19696   ac_status=$?
19697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698   (exit $ac_status); }; } &&
19699          { ac_try='test -s conftest$ac_exeext'
19700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701   (eval $ac_try) 2>&5
19702   ac_status=$?
19703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704   (exit $ac_status); }; }; then
19705   ac_cv_lib_iconv_libiconv=yes
19706 else
19707   echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19709
19710 ac_cv_lib_iconv_libiconv=no
19711 fi
19712 rm -f conftest.err conftest.$ac_objext \
19713       conftest$ac_exeext conftest.$ac_ext
19714 LIBS=$ac_check_lib_save_LIBS
19715 fi
19716 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv" >&5
19717 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv" >&6
19718 if test $ac_cv_lib_iconv_libiconv = yes; then
19719   LIBS="$LIBS -liconv"
19720 fi
19721
19722 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
19723 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
19724 if test "${ac_cv_search_gethostbyname+set}" = set; then
19725   echo $ECHO_N "(cached) $ECHO_C" >&6
19726 else
19727   ac_func_search_save_LIBS=$LIBS
19728 ac_cv_search_gethostbyname=no
19729 cat >conftest.$ac_ext <<_ACEOF
19730 /* confdefs.h.  */
19731 _ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h.  */
19735
19736 /* Override any gcc2 internal prototype to avoid an error.  */
19737 #ifdef __cplusplus
19738 extern "C"
19739 #endif
19740 /* We use char because int might match the return type of a gcc2
19741    builtin and then its argument prototype would still apply.  */
19742 char gethostbyname ();
19743 int
19744 main ()
19745 {
19746 gethostbyname ();
19747   ;
19748   return 0;
19749 }
19750 _ACEOF
19751 rm -f conftest.$ac_objext conftest$ac_exeext
19752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19753   (eval $ac_link) 2>conftest.er1
19754   ac_status=$?
19755   grep -v '^ *+' conftest.er1 >conftest.err
19756   rm -f conftest.er1
19757   cat conftest.err >&5
19758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759   (exit $ac_status); } &&
19760          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19762   (eval $ac_try) 2>&5
19763   ac_status=$?
19764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765   (exit $ac_status); }; } &&
19766          { ac_try='test -s conftest$ac_exeext'
19767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19768   (eval $ac_try) 2>&5
19769   ac_status=$?
19770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771   (exit $ac_status); }; }; then
19772   ac_cv_search_gethostbyname="none required"
19773 else
19774   echo "$as_me: failed program was:" >&5
19775 sed 's/^/| /' conftest.$ac_ext >&5
19776
19777 fi
19778 rm -f conftest.err conftest.$ac_objext \
19779       conftest$ac_exeext conftest.$ac_ext
19780 if test "$ac_cv_search_gethostbyname" = no; then
19781   for ac_lib in nsl; do
19782     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19783     cat >conftest.$ac_ext <<_ACEOF
19784 /* confdefs.h.  */
19785 _ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h.  */
19789
19790 /* Override any gcc2 internal prototype to avoid an error.  */
19791 #ifdef __cplusplus
19792 extern "C"
19793 #endif
19794 /* We use char because int might match the return type of a gcc2
19795    builtin and then its argument prototype would still apply.  */
19796 char gethostbyname ();
19797 int
19798 main ()
19799 {
19800 gethostbyname ();
19801   ;
19802   return 0;
19803 }
19804 _ACEOF
19805 rm -f conftest.$ac_objext conftest$ac_exeext
19806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19807   (eval $ac_link) 2>conftest.er1
19808   ac_status=$?
19809   grep -v '^ *+' conftest.er1 >conftest.err
19810   rm -f conftest.er1
19811   cat conftest.err >&5
19812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813   (exit $ac_status); } &&
19814          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816   (eval $ac_try) 2>&5
19817   ac_status=$?
19818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819   (exit $ac_status); }; } &&
19820          { ac_try='test -s conftest$ac_exeext'
19821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822   (eval $ac_try) 2>&5
19823   ac_status=$?
19824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825   (exit $ac_status); }; }; then
19826   ac_cv_search_gethostbyname="-l$ac_lib"
19827 break
19828 else
19829   echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19831
19832 fi
19833 rm -f conftest.err conftest.$ac_objext \
19834       conftest$ac_exeext conftest.$ac_ext
19835   done
19836 fi
19837 LIBS=$ac_func_search_save_LIBS
19838 fi
19839 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
19840 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
19841 if test "$ac_cv_search_gethostbyname" != no; then
19842   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
19843
19844 fi
19845
19846 echo "$as_me:$LINENO: checking for library containing connect" >&5
19847 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
19848 if test "${ac_cv_search_connect+set}" = set; then
19849   echo $ECHO_N "(cached) $ECHO_C" >&6
19850 else
19851   ac_func_search_save_LIBS=$LIBS
19852 ac_cv_search_connect=no
19853 cat >conftest.$ac_ext <<_ACEOF
19854 /* confdefs.h.  */
19855 _ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h.  */
19859
19860 /* Override any gcc2 internal prototype to avoid an error.  */
19861 #ifdef __cplusplus
19862 extern "C"
19863 #endif
19864 /* We use char because int might match the return type of a gcc2
19865    builtin and then its argument prototype would still apply.  */
19866 char connect ();
19867 int
19868 main ()
19869 {
19870 connect ();
19871   ;
19872   return 0;
19873 }
19874 _ACEOF
19875 rm -f conftest.$ac_objext conftest$ac_exeext
19876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19877   (eval $ac_link) 2>conftest.er1
19878   ac_status=$?
19879   grep -v '^ *+' conftest.er1 >conftest.err
19880   rm -f conftest.er1
19881   cat conftest.err >&5
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); } &&
19884          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886   (eval $ac_try) 2>&5
19887   ac_status=$?
19888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889   (exit $ac_status); }; } &&
19890          { ac_try='test -s conftest$ac_exeext'
19891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19892   (eval $ac_try) 2>&5
19893   ac_status=$?
19894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895   (exit $ac_status); }; }; then
19896   ac_cv_search_connect="none required"
19897 else
19898   echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19900
19901 fi
19902 rm -f conftest.err conftest.$ac_objext \
19903       conftest$ac_exeext conftest.$ac_ext
19904 if test "$ac_cv_search_connect" = no; then
19905   for ac_lib in socket; do
19906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19907     cat >conftest.$ac_ext <<_ACEOF
19908 /* confdefs.h.  */
19909 _ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h.  */
19913
19914 /* Override any gcc2 internal prototype to avoid an error.  */
19915 #ifdef __cplusplus
19916 extern "C"
19917 #endif
19918 /* We use char because int might match the return type of a gcc2
19919    builtin and then its argument prototype would still apply.  */
19920 char connect ();
19921 int
19922 main ()
19923 {
19924 connect ();
19925   ;
19926   return 0;
19927 }
19928 _ACEOF
19929 rm -f conftest.$ac_objext conftest$ac_exeext
19930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19931   (eval $ac_link) 2>conftest.er1
19932   ac_status=$?
19933   grep -v '^ *+' conftest.er1 >conftest.err
19934   rm -f conftest.er1
19935   cat conftest.err >&5
19936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937   (exit $ac_status); } &&
19938          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940   (eval $ac_try) 2>&5
19941   ac_status=$?
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); }; } &&
19944          { ac_try='test -s conftest$ac_exeext'
19945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946   (eval $ac_try) 2>&5
19947   ac_status=$?
19948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949   (exit $ac_status); }; }; then
19950   ac_cv_search_connect="-l$ac_lib"
19951 break
19952 else
19953   echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19955
19956 fi
19957 rm -f conftest.err conftest.$ac_objext \
19958       conftest$ac_exeext conftest.$ac_ext
19959   done
19960 fi
19961 LIBS=$ac_func_search_save_LIBS
19962 fi
19963 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
19964 echo "${ECHO_T}$ac_cv_search_connect" >&6
19965 if test "$ac_cv_search_connect" != no; then
19966   test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
19967
19968 fi
19969
19970
19971 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19972 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19973 if test "${ac_cv_header_stdc+set}" = set; then
19974   echo $ECHO_N "(cached) $ECHO_C" >&6
19975 else
19976   cat >conftest.$ac_ext <<_ACEOF
19977 /* confdefs.h.  */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h.  */
19982 #include <stdlib.h>
19983 #include <stdarg.h>
19984 #include <string.h>
19985 #include <float.h>
19986
19987 int
19988 main ()
19989 {
19990
19991   ;
19992   return 0;
19993 }
19994 _ACEOF
19995 rm -f conftest.$ac_objext
19996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19997   (eval $ac_compile) 2>conftest.er1
19998   ac_status=$?
19999   grep -v '^ *+' conftest.er1 >conftest.err
20000   rm -f conftest.er1
20001   cat conftest.err >&5
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); } &&
20004          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006   (eval $ac_try) 2>&5
20007   ac_status=$?
20008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009   (exit $ac_status); }; } &&
20010          { ac_try='test -s conftest.$ac_objext'
20011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012   (eval $ac_try) 2>&5
20013   ac_status=$?
20014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015   (exit $ac_status); }; }; then
20016   ac_cv_header_stdc=yes
20017 else
20018   echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20020
20021 ac_cv_header_stdc=no
20022 fi
20023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20024
20025 if test $ac_cv_header_stdc = yes; then
20026   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20027   cat >conftest.$ac_ext <<_ACEOF
20028 /* confdefs.h.  */
20029 _ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h.  */
20033 #include <string.h>
20034
20035 _ACEOF
20036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20037   $EGREP "memchr" >/dev/null 2>&1; then
20038   :
20039 else
20040   ac_cv_header_stdc=no
20041 fi
20042 rm -f conftest*
20043
20044 fi
20045
20046 if test $ac_cv_header_stdc = yes; then
20047   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20048   cat >conftest.$ac_ext <<_ACEOF
20049 /* confdefs.h.  */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h.  */
20054 #include <stdlib.h>
20055
20056 _ACEOF
20057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20058   $EGREP "free" >/dev/null 2>&1; then
20059   :
20060 else
20061   ac_cv_header_stdc=no
20062 fi
20063 rm -f conftest*
20064
20065 fi
20066
20067 if test $ac_cv_header_stdc = yes; then
20068   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20069   if test "$cross_compiling" = yes; then
20070   :
20071 else
20072   cat >conftest.$ac_ext <<_ACEOF
20073 /* confdefs.h.  */
20074 _ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h.  */
20078 #include <ctype.h>
20079 #if ((' ' & 0x0FF) == 0x020)
20080 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20081 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20082 #else
20083 # define ISLOWER(c) \
20084                    (('a' <= (c) && (c) <= 'i') \
20085                      || ('j' <= (c) && (c) <= 'r') \
20086                      || ('s' <= (c) && (c) <= 'z'))
20087 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20088 #endif
20089
20090 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20091 int
20092 main ()
20093 {
20094   int i;
20095   for (i = 0; i < 256; i++)
20096     if (XOR (islower (i), ISLOWER (i))
20097         || toupper (i) != TOUPPER (i))
20098       exit(2);
20099   exit (0);
20100 }
20101 _ACEOF
20102 rm -f conftest$ac_exeext
20103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20104   (eval $ac_link) 2>&5
20105   ac_status=$?
20106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109   (eval $ac_try) 2>&5
20110   ac_status=$?
20111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112   (exit $ac_status); }; }; then
20113   :
20114 else
20115   echo "$as_me: program exited with status $ac_status" >&5
20116 echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20118
20119 ( exit $ac_status )
20120 ac_cv_header_stdc=no
20121 fi
20122 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20123 fi
20124 fi
20125 fi
20126 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20127 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20128 if test $ac_cv_header_stdc = yes; then
20129
20130 cat >>confdefs.h <<\_ACEOF
20131 #define STDC_HEADERS 1
20132 _ACEOF
20133
20134 fi
20135
20136
20137
20138
20139
20140 for ac_header in fcntl.h limits.h sys/time.h unistd.h
20141 do
20142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20144   echo "$as_me:$LINENO: checking for $ac_header" >&5
20145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20147   echo $ECHO_N "(cached) $ECHO_C" >&6
20148 fi
20149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20151 else
20152   # Is the header compilable?
20153 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20155 cat >conftest.$ac_ext <<_ACEOF
20156 /* confdefs.h.  */
20157 _ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h.  */
20161 $ac_includes_default
20162 #include <$ac_header>
20163 _ACEOF
20164 rm -f conftest.$ac_objext
20165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20166   (eval $ac_compile) 2>conftest.er1
20167   ac_status=$?
20168   grep -v '^ *+' conftest.er1 >conftest.err
20169   rm -f conftest.er1
20170   cat conftest.err >&5
20171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172   (exit $ac_status); } &&
20173          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20175   (eval $ac_try) 2>&5
20176   ac_status=$?
20177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178   (exit $ac_status); }; } &&
20179          { ac_try='test -s conftest.$ac_objext'
20180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20181   (eval $ac_try) 2>&5
20182   ac_status=$?
20183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184   (exit $ac_status); }; }; then
20185   ac_header_compiler=yes
20186 else
20187   echo "$as_me: failed program was:" >&5
20188 sed 's/^/| /' conftest.$ac_ext >&5
20189
20190 ac_header_compiler=no
20191 fi
20192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20194 echo "${ECHO_T}$ac_header_compiler" >&6
20195
20196 # Is the header present?
20197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20199 cat >conftest.$ac_ext <<_ACEOF
20200 /* confdefs.h.  */
20201 _ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h.  */
20205 #include <$ac_header>
20206 _ACEOF
20207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20208   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20209   ac_status=$?
20210   grep -v '^ *+' conftest.er1 >conftest.err
20211   rm -f conftest.er1
20212   cat conftest.err >&5
20213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214   (exit $ac_status); } >/dev/null; then
20215   if test -s conftest.err; then
20216     ac_cpp_err=$ac_c_preproc_warn_flag
20217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20218   else
20219     ac_cpp_err=
20220   fi
20221 else
20222   ac_cpp_err=yes
20223 fi
20224 if test -z "$ac_cpp_err"; then
20225   ac_header_preproc=yes
20226 else
20227   echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20229
20230   ac_header_preproc=no
20231 fi
20232 rm -f conftest.err conftest.$ac_ext
20233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20234 echo "${ECHO_T}$ac_header_preproc" >&6
20235
20236 # So?  What about this header?
20237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20238   yes:no: )
20239     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20243     ac_header_preproc=yes
20244     ;;
20245   no:yes:* )
20246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20248     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20249 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20250     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20252     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20253 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20256     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20258     (
20259       cat <<\_ASBOX
20260 ## ------------------------------------- ##
20261 ## Report this to uncensored.citadel.org ##
20262 ## ------------------------------------- ##
20263 _ASBOX
20264     ) |
20265       sed "s/^/$as_me: WARNING:     /" >&2
20266     ;;
20267 esac
20268 echo "$as_me:$LINENO: checking for $ac_header" >&5
20269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20271   echo $ECHO_N "(cached) $ECHO_C" >&6
20272 else
20273   eval "$as_ac_Header=\$ac_header_preproc"
20274 fi
20275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20277
20278 fi
20279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20280   cat >>confdefs.h <<_ACEOF
20281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20282 _ACEOF
20283
20284 fi
20285
20286 done
20287
20288
20289
20290
20291
20292 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20293 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20294 if test "${ac_cv_c_const+set}" = set; then
20295   echo $ECHO_N "(cached) $ECHO_C" >&6
20296 else
20297   cat >conftest.$ac_ext <<_ACEOF
20298 /* confdefs.h.  */
20299 _ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h.  */
20303
20304 int
20305 main ()
20306 {
20307 /* FIXME: Include the comments suggested by Paul. */
20308 #ifndef __cplusplus
20309   /* Ultrix mips cc rejects this.  */
20310   typedef int charset[2];
20311   const charset x;
20312   /* SunOS 4.1.1 cc rejects this.  */
20313   char const *const *ccp;
20314   char **p;
20315   /* NEC SVR4.0.2 mips cc rejects this.  */
20316   struct point {int x, y;};
20317   static struct point const zero = {0,0};
20318   /* AIX XL C 1.02.0.0 rejects this.
20319      It does not let you subtract one const X* pointer from another in
20320      an arm of an if-expression whose if-part is not a constant
20321      expression */
20322   const char *g = "string";
20323   ccp = &g + (g ? g-g : 0);
20324   /* HPUX 7.0 cc rejects these. */
20325   ++ccp;
20326   p = (char**) ccp;
20327   ccp = (char const *const *) p;
20328   { /* SCO 3.2v4 cc rejects this.  */
20329     char *t;
20330     char const *s = 0 ? (char *) 0 : (char const *) 0;
20331
20332     *t++ = 0;
20333   }
20334   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20335     int x[] = {25, 17};
20336     const int *foo = &x[0];
20337     ++foo;
20338   }
20339   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20340     typedef const int *iptr;
20341     iptr p = 0;
20342     ++p;
20343   }
20344   { /* AIX XL C 1.02.0.0 rejects this saying
20345        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20346     struct s { int j; const int *ap[3]; };
20347     struct s *b; b->j = 5;
20348   }
20349   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20350     const int foo = 10;
20351   }
20352 #endif
20353
20354   ;
20355   return 0;
20356 }
20357 _ACEOF
20358 rm -f conftest.$ac_objext
20359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20360   (eval $ac_compile) 2>conftest.er1
20361   ac_status=$?
20362   grep -v '^ *+' conftest.er1 >conftest.err
20363   rm -f conftest.er1
20364   cat conftest.err >&5
20365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366   (exit $ac_status); } &&
20367          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369   (eval $ac_try) 2>&5
20370   ac_status=$?
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); }; } &&
20373          { ac_try='test -s conftest.$ac_objext'
20374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375   (eval $ac_try) 2>&5
20376   ac_status=$?
20377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   (exit $ac_status); }; }; then
20379   ac_cv_c_const=yes
20380 else
20381   echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20383
20384 ac_cv_c_const=no
20385 fi
20386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20387 fi
20388 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20389 echo "${ECHO_T}$ac_cv_c_const" >&6
20390 if test $ac_cv_c_const = no; then
20391
20392 cat >>confdefs.h <<\_ACEOF
20393 #define const
20394 _ACEOF
20395
20396 fi
20397
20398 echo "$as_me:$LINENO: checking for off_t" >&5
20399 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20400 if test "${ac_cv_type_off_t+set}" = set; then
20401   echo $ECHO_N "(cached) $ECHO_C" >&6
20402 else
20403   cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h.  */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h.  */
20409 $ac_includes_default
20410 int
20411 main ()
20412 {
20413 if ((off_t *) 0)
20414   return 0;
20415 if (sizeof (off_t))
20416   return 0;
20417   ;
20418   return 0;
20419 }
20420 _ACEOF
20421 rm -f conftest.$ac_objext
20422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20423   (eval $ac_compile) 2>conftest.er1
20424   ac_status=$?
20425   grep -v '^ *+' conftest.er1 >conftest.err
20426   rm -f conftest.er1
20427   cat conftest.err >&5
20428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429   (exit $ac_status); } &&
20430          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432   (eval $ac_try) 2>&5
20433   ac_status=$?
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); }; } &&
20436          { ac_try='test -s conftest.$ac_objext'
20437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438   (eval $ac_try) 2>&5
20439   ac_status=$?
20440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441   (exit $ac_status); }; }; then
20442   ac_cv_type_off_t=yes
20443 else
20444   echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20446
20447 ac_cv_type_off_t=no
20448 fi
20449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20450 fi
20451 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20452 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20453 if test $ac_cv_type_off_t = yes; then
20454   :
20455 else
20456
20457 cat >>confdefs.h <<_ACEOF
20458 #define off_t long
20459 _ACEOF
20460
20461 fi
20462
20463 echo "$as_me:$LINENO: checking for size_t" >&5
20464 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20465 if test "${ac_cv_type_size_t+set}" = set; then
20466   echo $ECHO_N "(cached) $ECHO_C" >&6
20467 else
20468   cat >conftest.$ac_ext <<_ACEOF
20469 /* confdefs.h.  */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h.  */
20474 $ac_includes_default
20475 int
20476 main ()
20477 {
20478 if ((size_t *) 0)
20479   return 0;
20480 if (sizeof (size_t))
20481   return 0;
20482   ;
20483   return 0;
20484 }
20485 _ACEOF
20486 rm -f conftest.$ac_objext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20488   (eval $ac_compile) 2>conftest.er1
20489   ac_status=$?
20490   grep -v '^ *+' conftest.er1 >conftest.err
20491   rm -f conftest.er1
20492   cat conftest.err >&5
20493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494   (exit $ac_status); } &&
20495          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497   (eval $ac_try) 2>&5
20498   ac_status=$?
20499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500   (exit $ac_status); }; } &&
20501          { ac_try='test -s conftest.$ac_objext'
20502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503   (eval $ac_try) 2>&5
20504   ac_status=$?
20505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506   (exit $ac_status); }; }; then
20507   ac_cv_type_size_t=yes
20508 else
20509   echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20511
20512 ac_cv_type_size_t=no
20513 fi
20514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20515 fi
20516 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20517 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20518 if test $ac_cv_type_size_t = yes; then
20519   :
20520 else
20521
20522 cat >>confdefs.h <<_ACEOF
20523 #define size_t unsigned
20524 _ACEOF
20525
20526 fi
20527
20528
20529 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20530 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20531 if test "${ac_cv_type_signal+set}" = set; then
20532   echo $ECHO_N "(cached) $ECHO_C" >&6
20533 else
20534   cat >conftest.$ac_ext <<_ACEOF
20535 /* confdefs.h.  */
20536 _ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h.  */
20540 #include <sys/types.h>
20541 #include <signal.h>
20542 #ifdef signal
20543 # undef signal
20544 #endif
20545 #ifdef __cplusplus
20546 extern "C" void (*signal (int, void (*)(int)))(int);
20547 #else
20548 void (*signal ()) ();
20549 #endif
20550
20551 int
20552 main ()
20553 {
20554 int i;
20555   ;
20556   return 0;
20557 }
20558 _ACEOF
20559 rm -f conftest.$ac_objext
20560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20561   (eval $ac_compile) 2>conftest.er1
20562   ac_status=$?
20563   grep -v '^ *+' conftest.er1 >conftest.err
20564   rm -f conftest.er1
20565   cat conftest.err >&5
20566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567   (exit $ac_status); } &&
20568          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570   (eval $ac_try) 2>&5
20571   ac_status=$?
20572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573   (exit $ac_status); }; } &&
20574          { ac_try='test -s conftest.$ac_objext'
20575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576   (eval $ac_try) 2>&5
20577   ac_status=$?
20578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579   (exit $ac_status); }; }; then
20580   ac_cv_type_signal=void
20581 else
20582   echo "$as_me: failed program was:" >&5
20583 sed 's/^/| /' conftest.$ac_ext >&5
20584
20585 ac_cv_type_signal=int
20586 fi
20587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20588 fi
20589 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20590 echo "${ECHO_T}$ac_cv_type_signal" >&6
20591
20592 cat >>confdefs.h <<_ACEOF
20593 #define RETSIGTYPE $ac_cv_type_signal
20594 _ACEOF
20595
20596
20597
20598 for ac_func in backtrace
20599 do
20600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20601 echo "$as_me:$LINENO: checking for $ac_func" >&5
20602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20603 if eval "test \"\${$as_ac_var+set}\" = set"; then
20604   echo $ECHO_N "(cached) $ECHO_C" >&6
20605 else
20606   cat >conftest.$ac_ext <<_ACEOF
20607 /* confdefs.h.  */
20608 _ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h.  */
20612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20614 #define $ac_func innocuous_$ac_func
20615
20616 /* System header to define __stub macros and hopefully few prototypes,
20617     which can conflict with char $ac_func (); below.
20618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20619     <limits.h> exists even on freestanding compilers.  */
20620
20621 #ifdef __STDC__
20622 # include <limits.h>
20623 #else
20624 # include <assert.h>
20625 #endif
20626
20627 #undef $ac_func
20628
20629 /* Override any gcc2 internal prototype to avoid an error.  */
20630 #ifdef __cplusplus
20631 extern "C"
20632 {
20633 #endif
20634 /* We use char because int might match the return type of a gcc2
20635    builtin and then its argument prototype would still apply.  */
20636 char $ac_func ();
20637 /* The GNU C library defines this for functions which it implements
20638     to always fail with ENOSYS.  Some functions are actually named
20639     something starting with __ and the normal name is an alias.  */
20640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20641 choke me
20642 #else
20643 char (*f) () = $ac_func;
20644 #endif
20645 #ifdef __cplusplus
20646 }
20647 #endif
20648
20649 int
20650 main ()
20651 {
20652 return f != $ac_func;
20653   ;
20654   return 0;
20655 }
20656 _ACEOF
20657 rm -f conftest.$ac_objext conftest$ac_exeext
20658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20659   (eval $ac_link) 2>conftest.er1
20660   ac_status=$?
20661   grep -v '^ *+' conftest.er1 >conftest.err
20662   rm -f conftest.er1
20663   cat conftest.err >&5
20664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); } &&
20666          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668   (eval $ac_try) 2>&5
20669   ac_status=$?
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); }; } &&
20672          { ac_try='test -s conftest$ac_exeext'
20673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674   (eval $ac_try) 2>&5
20675   ac_status=$?
20676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677   (exit $ac_status); }; }; then
20678   eval "$as_ac_var=yes"
20679 else
20680   echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20682
20683 eval "$as_ac_var=no"
20684 fi
20685 rm -f conftest.err conftest.$ac_objext \
20686       conftest$ac_exeext conftest.$ac_ext
20687 fi
20688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20689 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20690 if test `eval echo '${'$as_ac_var'}'` = yes; then
20691   cat >>confdefs.h <<_ACEOF
20692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20693 _ACEOF
20694
20695 fi
20696 done
20697
20698
20699 for ac_func in snprintf
20700 do
20701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20702 echo "$as_me:$LINENO: checking for $ac_func" >&5
20703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20704 if eval "test \"\${$as_ac_var+set}\" = set"; then
20705   echo $ECHO_N "(cached) $ECHO_C" >&6
20706 else
20707   cat >conftest.$ac_ext <<_ACEOF
20708 /* confdefs.h.  */
20709 _ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h.  */
20713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20715 #define $ac_func innocuous_$ac_func
20716
20717 /* System header to define __stub macros and hopefully few prototypes,
20718     which can conflict with char $ac_func (); below.
20719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20720     <limits.h> exists even on freestanding compilers.  */
20721
20722 #ifdef __STDC__
20723 # include <limits.h>
20724 #else
20725 # include <assert.h>
20726 #endif
20727
20728 #undef $ac_func
20729
20730 /* Override any gcc2 internal prototype to avoid an error.  */
20731 #ifdef __cplusplus
20732 extern "C"
20733 {
20734 #endif
20735 /* We use char because int might match the return type of a gcc2
20736    builtin and then its argument prototype would still apply.  */
20737 char $ac_func ();
20738 /* The GNU C library defines this for functions which it implements
20739     to always fail with ENOSYS.  Some functions are actually named
20740     something starting with __ and the normal name is an alias.  */
20741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20742 choke me
20743 #else
20744 char (*f) () = $ac_func;
20745 #endif
20746 #ifdef __cplusplus
20747 }
20748 #endif
20749
20750 int
20751 main ()
20752 {
20753 return f != $ac_func;
20754   ;
20755   return 0;
20756 }
20757 _ACEOF
20758 rm -f conftest.$ac_objext conftest$ac_exeext
20759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20760   (eval $ac_link) 2>conftest.er1
20761   ac_status=$?
20762   grep -v '^ *+' conftest.er1 >conftest.err
20763   rm -f conftest.er1
20764   cat conftest.err >&5
20765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766   (exit $ac_status); } &&
20767          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769   (eval $ac_try) 2>&5
20770   ac_status=$?
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); }; } &&
20773          { ac_try='test -s conftest$ac_exeext'
20774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775   (eval $ac_try) 2>&5
20776   ac_status=$?
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); }; }; then
20779   eval "$as_ac_var=yes"
20780 else
20781   echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20783
20784 eval "$as_ac_var=no"
20785 fi
20786 rm -f conftest.err conftest.$ac_objext \
20787       conftest$ac_exeext conftest.$ac_ext
20788 fi
20789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20791 if test `eval echo '${'$as_ac_var'}'` = yes; then
20792   cat >>confdefs.h <<_ACEOF
20793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20794 _ACEOF
20795
20796 else
20797   case $LIBOBJS in
20798     "$ac_func.$ac_objext"   | \
20799   *" $ac_func.$ac_objext"   | \
20800     "$ac_func.$ac_objext "* | \
20801   *" $ac_func.$ac_objext "* ) ;;
20802   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20803 esac
20804
20805 fi
20806 done
20807
20808
20809
20810
20811 cat >>confdefs.h <<\_ACEOF
20812 #define HAVE_LIBICAL 1
20813 _ACEOF
20814
20815
20816 if test "x$with_libical" != xno ; then
20817
20818 for ac_header in ical.h
20819 do
20820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20822   echo "$as_me:$LINENO: checking for $ac_header" >&5
20823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20825   echo $ECHO_N "(cached) $ECHO_C" >&6
20826 fi
20827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20829 else
20830   # Is the header compilable?
20831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20833 cat >conftest.$ac_ext <<_ACEOF
20834 /* confdefs.h.  */
20835 _ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h.  */
20839 $ac_includes_default
20840 #include <$ac_header>
20841 _ACEOF
20842 rm -f conftest.$ac_objext
20843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20844   (eval $ac_compile) 2>conftest.er1
20845   ac_status=$?
20846   grep -v '^ *+' conftest.er1 >conftest.err
20847   rm -f conftest.er1
20848   cat conftest.err >&5
20849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850   (exit $ac_status); } &&
20851          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853   (eval $ac_try) 2>&5
20854   ac_status=$?
20855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856   (exit $ac_status); }; } &&
20857          { ac_try='test -s conftest.$ac_objext'
20858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859   (eval $ac_try) 2>&5
20860   ac_status=$?
20861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862   (exit $ac_status); }; }; then
20863   ac_header_compiler=yes
20864 else
20865   echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20867
20868 ac_header_compiler=no
20869 fi
20870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20872 echo "${ECHO_T}$ac_header_compiler" >&6
20873
20874 # Is the header present?
20875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20877 cat >conftest.$ac_ext <<_ACEOF
20878 /* confdefs.h.  */
20879 _ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h.  */
20883 #include <$ac_header>
20884 _ACEOF
20885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20887   ac_status=$?
20888   grep -v '^ *+' conftest.er1 >conftest.err
20889   rm -f conftest.er1
20890   cat conftest.err >&5
20891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892   (exit $ac_status); } >/dev/null; then
20893   if test -s conftest.err; then
20894     ac_cpp_err=$ac_c_preproc_warn_flag
20895     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20896   else
20897     ac_cpp_err=
20898   fi
20899 else
20900   ac_cpp_err=yes
20901 fi
20902 if test -z "$ac_cpp_err"; then
20903   ac_header_preproc=yes
20904 else
20905   echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20907
20908   ac_header_preproc=no
20909 fi
20910 rm -f conftest.err conftest.$ac_ext
20911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20912 echo "${ECHO_T}$ac_header_preproc" >&6
20913
20914 # So?  What about this header?
20915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20916   yes:no: )
20917     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20921     ac_header_preproc=yes
20922     ;;
20923   no:yes:* )
20924     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20926     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20927 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20928     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20930     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20931 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20934     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20936     (
20937       cat <<\_ASBOX
20938 ## ------------------------------------- ##
20939 ## Report this to uncensored.citadel.org ##
20940 ## ------------------------------------- ##
20941 _ASBOX
20942     ) |
20943       sed "s/^/$as_me: WARNING:     /" >&2
20944     ;;
20945 esac
20946 echo "$as_me:$LINENO: checking for $ac_header" >&5
20947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20949   echo $ECHO_N "(cached) $ECHO_C" >&6
20950 else
20951   eval "$as_ac_Header=\$ac_header_preproc"
20952 fi
20953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20955
20956 fi
20957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20958   cat >>confdefs.h <<_ACEOF
20959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20960 _ACEOF
20961  echo "$as_me:$LINENO: checking for icalcomponent_new in -lical" >&5
20962 echo $ECHO_N "checking for icalcomponent_new in -lical... $ECHO_C" >&6
20963 if test "${ac_cv_lib_ical_icalcomponent_new+set}" = set; then
20964   echo $ECHO_N "(cached) $ECHO_C" >&6
20965 else
20966   ac_check_lib_save_LIBS=$LIBS
20967 LIBS="-lical  $LIBS"
20968 cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h.  */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h.  */
20974
20975 /* Override any gcc2 internal prototype to avoid an error.  */
20976 #ifdef __cplusplus
20977 extern "C"
20978 #endif
20979 /* We use char because int might match the return type of a gcc2
20980    builtin and then its argument prototype would still apply.  */
20981 char icalcomponent_new ();
20982 int
20983 main ()
20984 {
20985 icalcomponent_new ();
20986   ;
20987   return 0;
20988 }
20989 _ACEOF
20990 rm -f conftest.$ac_objext conftest$ac_exeext
20991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20992   (eval $ac_link) 2>conftest.er1
20993   ac_status=$?
20994   grep -v '^ *+' conftest.er1 >conftest.err
20995   rm -f conftest.er1
20996   cat conftest.err >&5
20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); } &&
20999          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001   (eval $ac_try) 2>&5
21002   ac_status=$?
21003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004   (exit $ac_status); }; } &&
21005          { ac_try='test -s conftest$ac_exeext'
21006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007   (eval $ac_try) 2>&5
21008   ac_status=$?
21009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010   (exit $ac_status); }; }; then
21011   ac_cv_lib_ical_icalcomponent_new=yes
21012 else
21013   echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.$ac_ext >&5
21015
21016 ac_cv_lib_ical_icalcomponent_new=no
21017 fi
21018 rm -f conftest.err conftest.$ac_objext \
21019       conftest$ac_exeext conftest.$ac_ext
21020 LIBS=$ac_check_lib_save_LIBS
21021 fi
21022 echo "$as_me:$LINENO: result: $ac_cv_lib_ical_icalcomponent_new" >&5
21023 echo "${ECHO_T}$ac_cv_lib_ical_icalcomponent_new" >&6
21024 if test $ac_cv_lib_ical_icalcomponent_new = yes; then
21025   ok_libical=yes
21026 fi
21027
21028 fi
21029
21030 done
21031
21032 fi
21033
21034 if test "x$ok_libical" = xyes ; then
21035
21036         if test "$cross_compiling" = yes; then
21037   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21038 See \`config.log' for more details." >&5
21039 echo "$as_me: error: cannot run test program while cross compiling
21040 See \`config.log' for more details." >&2;}
21041    { (exit 1); exit 1; }; }
21042 else
21043   cat >conftest.$ac_ext <<_ACEOF
21044 /* confdefs.h.  */
21045 _ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h.  */
21049
21050 #include <ical.h>
21051 main() {
21052         int major, minor, v;
21053         sscanf(ICAL_VERSION, "%d.%d", &major, &minor);
21054         v = 100*major + minor;
21055         printf("libical version: %i\n", v);
21056         if (v >= 24) {
21057                 printf("This version is ok.\n");
21058                 return(0);
21059         }
21060         printf("libical 0.24 or newer required.\n");
21061         printf("Citadel will be built without calendar support.\n");
21062         return(1);
21063 }
21064
21065 _ACEOF
21066 rm -f conftest$ac_exeext
21067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21068   (eval $ac_link) 2>&5
21069   ac_status=$?
21070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073   (eval $ac_try) 2>&5
21074   ac_status=$?
21075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076   (exit $ac_status); }; }; then
21077
21078                         LIBS="-lical $LIBS"
21079                         cat >>confdefs.h <<\_ACEOF
21080 #define HAVE_LIBICAL 1
21081 _ACEOF
21082
21083
21084
21085 else
21086   echo "$as_me: program exited with status $ac_status" >&5
21087 echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21089
21090 fi
21091 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21092 fi
21093 fi
21094
21095
21096
21097
21098 cat >>confdefs.h <<\_ACEOF
21099 #define with_zlib 1
21100 _ACEOF
21101
21102
21103 if test "x$ok_zlib" = xyes ; then
21104         LIBS="-lz $LIBS"
21105 fi
21106
21107
21108 # Check whether --with-ok_newt or --without-ok_newt was given.
21109 if test "${with_ok_newt+set}" = set; then
21110   withval="$with_ok_newt"
21111   ok_newt=no
21112 else
21113
21114 for ac_header in newt.h
21115 do
21116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21118   echo "$as_me:$LINENO: checking for $ac_header" >&5
21119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21121   echo $ECHO_N "(cached) $ECHO_C" >&6
21122 fi
21123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21125 else
21126   # Is the header compilable?
21127 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21129 cat >conftest.$ac_ext <<_ACEOF
21130 /* confdefs.h.  */
21131 _ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h.  */
21135 $ac_includes_default
21136 #include <$ac_header>
21137 _ACEOF
21138 rm -f conftest.$ac_objext
21139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21140   (eval $ac_compile) 2>conftest.er1
21141   ac_status=$?
21142   grep -v '^ *+' conftest.er1 >conftest.err
21143   rm -f conftest.er1
21144   cat conftest.err >&5
21145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); } &&
21147          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149   (eval $ac_try) 2>&5
21150   ac_status=$?
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); }; } &&
21153          { ac_try='test -s conftest.$ac_objext'
21154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21155   (eval $ac_try) 2>&5
21156   ac_status=$?
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); }; }; then
21159   ac_header_compiler=yes
21160 else
21161   echo "$as_me: failed program was:" >&5
21162 sed 's/^/| /' conftest.$ac_ext >&5
21163
21164 ac_header_compiler=no
21165 fi
21166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21168 echo "${ECHO_T}$ac_header_compiler" >&6
21169
21170 # Is the header present?
21171 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21173 cat >conftest.$ac_ext <<_ACEOF
21174 /* confdefs.h.  */
21175 _ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h.  */
21179 #include <$ac_header>
21180 _ACEOF
21181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21182   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21183   ac_status=$?
21184   grep -v '^ *+' conftest.er1 >conftest.err
21185   rm -f conftest.er1
21186   cat conftest.err >&5
21187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188   (exit $ac_status); } >/dev/null; then
21189   if test -s conftest.err; then
21190     ac_cpp_err=$ac_c_preproc_warn_flag
21191     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21192   else
21193     ac_cpp_err=
21194   fi
21195 else
21196   ac_cpp_err=yes
21197 fi
21198 if test -z "$ac_cpp_err"; then
21199   ac_header_preproc=yes
21200 else
21201   echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21203
21204   ac_header_preproc=no
21205 fi
21206 rm -f conftest.err conftest.$ac_ext
21207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21208 echo "${ECHO_T}$ac_header_preproc" >&6
21209
21210 # So?  What about this header?
21211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21212   yes:no: )
21213     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21217     ac_header_preproc=yes
21218     ;;
21219   no:yes:* )
21220     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21222     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21223 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21224     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21226     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21227 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21228     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21230     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21232     (
21233       cat <<\_ASBOX
21234 ## ------------------------------------- ##
21235 ## Report this to uncensored.citadel.org ##
21236 ## ------------------------------------- ##
21237 _ASBOX
21238     ) |
21239       sed "s/^/$as_me: WARNING:     /" >&2
21240     ;;
21241 esac
21242 echo "$as_me:$LINENO: checking for $ac_header" >&5
21243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21245   echo $ECHO_N "(cached) $ECHO_C" >&6
21246 else
21247   eval "$as_ac_Header=\$ac_header_preproc"
21248 fi
21249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21251
21252 fi
21253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21254   cat >>confdefs.h <<_ACEOF
21255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21256 _ACEOF
21257  echo "$as_me:$LINENO: checking for newtInit in -lnewt" >&5
21258 echo $ECHO_N "checking for newtInit in -lnewt... $ECHO_C" >&6
21259 if test "${ac_cv_lib_newt_newtInit+set}" = set; then
21260   echo $ECHO_N "(cached) $ECHO_C" >&6
21261 else
21262   ac_check_lib_save_LIBS=$LIBS
21263 LIBS="-lnewt  $LIBS"
21264 cat >conftest.$ac_ext <<_ACEOF
21265 /* confdefs.h.  */
21266 _ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h.  */
21270
21271 /* Override any gcc2 internal prototype to avoid an error.  */
21272 #ifdef __cplusplus
21273 extern "C"
21274 #endif
21275 /* We use char because int might match the return type of a gcc2
21276    builtin and then its argument prototype would still apply.  */
21277 char newtInit ();
21278 int
21279 main ()
21280 {
21281 newtInit ();
21282   ;
21283   return 0;
21284 }
21285 _ACEOF
21286 rm -f conftest.$ac_objext conftest$ac_exeext
21287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21288   (eval $ac_link) 2>conftest.er1
21289   ac_status=$?
21290   grep -v '^ *+' conftest.er1 >conftest.err
21291   rm -f conftest.er1
21292   cat conftest.err >&5
21293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294   (exit $ac_status); } &&
21295          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297   (eval $ac_try) 2>&5
21298   ac_status=$?
21299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300   (exit $ac_status); }; } &&
21301          { ac_try='test -s conftest$ac_exeext'
21302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303   (eval $ac_try) 2>&5
21304   ac_status=$?
21305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306   (exit $ac_status); }; }; then
21307   ac_cv_lib_newt_newtInit=yes
21308 else
21309   echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21311
21312 ac_cv_lib_newt_newtInit=no
21313 fi
21314 rm -f conftest.err conftest.$ac_objext \
21315       conftest$ac_exeext conftest.$ac_ext
21316 LIBS=$ac_check_lib_save_LIBS
21317 fi
21318 echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtInit" >&5
21319 echo "${ECHO_T}$ac_cv_lib_newt_newtInit" >&6
21320 if test $ac_cv_lib_newt_newtInit = yes; then
21321   ok_newt=yes
21322 else
21323   ok_newt=no
21324 fi
21325
21326
21327 fi
21328
21329 done
21330
21331
21332
21333 fi;
21334 if test "x$ok_newt" = xyes ; then
21335         SETUP_LIBS="-lnewt $SETUP_LIBS"
21336 fi
21337
21338 # The big search for OpenSSL
21339 if test "$with_ssl" != "no"; then
21340         saved_LIBS="$LIBS"
21341         saved_LDFLAGS="$LDFLAGS"
21342         saved_CFLAGS="$CFLAGS"
21343         if test "x$prefix" != "xNONE"; then
21344                 tryssldir="$tryssldir $prefix"
21345         fi
21346         echo "$as_me:$LINENO: checking for OpenSSL" >&5
21347 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
21348 if test "${ac_cv_openssldir+set}" = set; then
21349   echo $ECHO_N "(cached) $ECHO_C" >&6
21350 else
21351
21352                 for ssldir in $tryssldir "" /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
21353                         CFLAGS="$saved_CFLAGS"
21354                         LDFLAGS="$saved_LDFLAGS"
21355                         LIBS="$saved_LIBS -lssl -lcrypto"
21356
21357                         # Skip directories if they don't exist
21358                         if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
21359                                 continue;
21360                         fi
21361                         if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
21362                                 # Try to use $ssldir/lib if it exists, otherwise
21363                                 # $ssldir
21364                                 if test -d "$ssldir/lib" ; then
21365                                         LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
21366                                         if test ! -z "$need_dash_r" ; then
21367                                                 LDFLAGS="-R$ssldir/lib $LDFLAGS"
21368                                         fi
21369                                 else
21370                                         LDFLAGS="-L$ssldir $saved_LDFLAGS"
21371                                         if test ! -z "$need_dash_r" ; then
21372                                                 LDFLAGS="-R$ssldir $LDFLAGS"
21373                                         fi
21374                                 fi
21375                                 # Try to use $ssldir/include if it exists, otherwise
21376                                 # $ssldir
21377                                 if test -d "$ssldir/include" ; then
21378                                         CFLAGS="-I$ssldir/include $saved_CFLAGS"
21379                                 else
21380                                         CFLAGS="-I$ssldir $saved_CFLAGS"
21381                                 fi
21382                         fi
21383
21384                         # Basic test to check for compatible version and correct linking
21385                         # *does not* test for RSA - that comes later.
21386                         if test "$cross_compiling" = yes; then
21387   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21388 See \`config.log' for more details." >&5
21389 echo "$as_me: error: cannot run test program while cross compiling
21390 See \`config.log' for more details." >&2;}
21391    { (exit 1); exit 1; }; }
21392 else
21393   cat >conftest.$ac_ext <<_ACEOF
21394 /* confdefs.h.  */
21395 _ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h.  */
21399
21400         #include <string.h>
21401         #include <openssl/rand.h>
21402         int main(void)
21403         {
21404                 char a[2048];
21405                 memset(a, 0, sizeof(a));
21406                 RAND_add(a, sizeof(a), sizeof(a));
21407                 return(RAND_status() <= 0);
21408         }
21409
21410 _ACEOF
21411 rm -f conftest$ac_exeext
21412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21413   (eval $ac_link) 2>&5
21414   ac_status=$?
21415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21418   (eval $ac_try) 2>&5
21419   ac_status=$?
21420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421   (exit $ac_status); }; }; then
21422
21423                                         found_crypto=1
21424                                         break;
21425
21426 else
21427   echo "$as_me: program exited with status $ac_status" >&5
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431 ( exit $ac_status )
21432
21433
21434 fi
21435 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21436 fi
21437
21438                         if test ! -z "$found_crypto" ; then
21439                                 break;
21440                         fi
21441                 done
21442
21443                 if test -z "$ssldir" ; then
21444                         ssldir="(system)"
21445                 fi
21446
21447                 if test ! -z "$found_crypto" ; then
21448                         ac_cv_openssldir=$ssldir
21449                 else
21450                         ac_cv_openssldir="no"
21451                 fi
21452
21453 fi
21454 echo "$as_me:$LINENO: result: $ac_cv_openssldir" >&5
21455 echo "${ECHO_T}$ac_cv_openssldir" >&6
21456         LIBS="$saved_LIBS"
21457         LDFLAGS="$saved_LDFLAGS"
21458         CFLAGS="$saved_CFLAGS"
21459
21460         if test "x$ac_cv_openssldir" != "xno" ; then
21461                 cat >>confdefs.h <<\_ACEOF
21462 #define HAVE_OPENSSL 1
21463 _ACEOF
21464
21465                 LIBS="-lssl -lcrypto $LIBS"
21466                                 ssldir=$ac_cv_openssldir
21467                 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr" -a "x$ssldir" != "x(system)"; then
21468                         # Try to use $ssldir/lib if it exists, otherwise
21469                         # $ssldir
21470                         if test -d "$ssldir/lib" ; then
21471                                 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
21472                                 if test ! -z "$need_dash_r" ; then
21473                                         LDFLAGS="-R$ssldir/lib $LDFLAGS"
21474                                 fi
21475                         else
21476                                 LDFLAGS="-L$ssldir $saved_LDFLAGS"
21477                                 if test ! -z "$need_dash_r" ; then
21478                                         LDFLAGS="-R$ssldir $LDFLAGS"
21479                                 fi
21480                         fi
21481                         # Try to use $ssldir/include if it exists, otherwise
21482                         # $ssldir
21483                         if test -d "$ssldir/include" ; then
21484                                 CFLAGS="-I$ssldir/include $saved_CFLAGS"
21485                         else
21486                                 CFLAGS="-I$ssldir $saved_CFLAGS"
21487                         fi
21488                 fi
21489         fi
21490 fi
21491
21492
21493
21494 cat >>confdefs.h <<\_ACEOF
21495 #define HAVE_ICONV 1
21496 _ACEOF
21497
21498
21499 if test "$ok_nls" != "no"; then
21500         echo "$as_me:$LINENO: result: Checking to see if your system supports iconv..." >&5
21501 echo "${ECHO_T}Checking to see if your system supports iconv..." >&6
21502         if test "$cross_compiling" = yes; then
21503   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21504 See \`config.log' for more details." >&5
21505 echo "$as_me: error: cannot run test program while cross compiling
21506 See \`config.log' for more details." >&2;}
21507    { (exit 1); exit 1; }; }
21508 else
21509   cat >conftest.$ac_ext <<_ACEOF
21510 /* confdefs.h.  */
21511 _ACEOF
21512 cat confdefs.h >>conftest.$ac_ext
21513 cat >>conftest.$ac_ext <<_ACEOF
21514 /* end confdefs.h.  */
21515
21516                 #include <iconv.h>
21517                 main() {
21518                         iconv_t ic = (iconv_t)(-1) ;
21519                         ic = iconv_open("UTF-8", "us-ascii");
21520                         iconv_close(ic);
21521                         exit(0);
21522                 }
21523
21524 _ACEOF
21525 rm -f conftest$ac_exeext
21526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21527   (eval $ac_link) 2>&5
21528   ac_status=$?
21529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21532   (eval $ac_try) 2>&5
21533   ac_status=$?
21534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535   (exit $ac_status); }; }; then
21536   ok_iconv=yes
21537 else
21538   echo "$as_me: program exited with status $ac_status" >&5
21539 echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21541
21542 ( exit $ac_status )
21543 ok_iconv=no
21544
21545 fi
21546 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21547 fi
21548 fi
21549
21550 if test "$ok_iconv" != "no"; then
21551         echo "$as_me:$LINENO: result: WebCit will be built with character set conversion." >&5
21552 echo "${ECHO_T}WebCit will be built with character set conversion." >&6
21553         cat >>confdefs.h <<\_ACEOF
21554 #define HAVE_ICONV 1
21555 _ACEOF
21556
21557 else
21558         echo "$as_me:$LINENO: result: WebCit will be built without character set conversion." >&5
21559 echo "${ECHO_T}WebCit will be built without character set conversion." >&6
21560 fi
21561
21562
21563 cat >>confdefs.h <<_ACEOF
21564 #define PREFIX "$prefix"
21565 _ACEOF
21566
21567
21568
21569
21570 #AM_GNU_GETTEXT
21571 # if we have intl/...
21572
21573 case "$am__api_version" in
21574     1.01234)
21575         { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
21576 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
21577    { (exit 1); exit 1; }; }
21578     ;;
21579     *)
21580     ;;
21581 esac
21582
21583 if test -n ""; then
21584     echo "$as_me:$LINENO: checking for intltool >= " >&5
21585 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
21586
21587     INTLTOOL_REQUIRED_VERSION_AS_INT=`echo  | awk -F. '{ print $ 1 * 100 + $ 2; }'`
21588     INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
21589     INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 100 + VERSION[2];}' ${ac_aux_dir}/intltool-update.in`
21590
21591     echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
21592 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
21593     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
21594         { { echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool  or later." >&5
21595 echo "$as_me: error: Your intltool is too old.  You need intltool  or later." >&2;}
21596    { (exit 1); exit 1; }; }
21597 fi
21598
21599   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21600 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21601      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21602      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21603       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
21604      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21605    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21606     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21607 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21608        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21609       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21610       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
21611       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21612       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21613     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21614   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21615     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21616     INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637 # Use the tools built into the package, not the ones that are installed.
21638 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
21639
21640 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
21641
21642 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
21643
21644
21645 # Extract the first word of "perl", so it can be a program name with args.
21646 set dummy perl; ac_word=$2
21647 echo "$as_me:$LINENO: checking for $ac_word" >&5
21648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21649 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
21650   echo $ECHO_N "(cached) $ECHO_C" >&6
21651 else
21652   case $INTLTOOL_PERL in
21653   [\\/]* | ?:[\\/]*)
21654   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
21655   ;;
21656   *)
21657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21658 for as_dir in $PATH
21659 do
21660   IFS=$as_save_IFS
21661   test -z "$as_dir" && as_dir=.
21662   for ac_exec_ext in '' $ac_executable_extensions; do
21663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21664     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
21665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21666     break 2
21667   fi
21668 done
21669 done
21670
21671   ;;
21672 esac
21673 fi
21674 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
21675
21676 if test -n "$INTLTOOL_PERL"; then
21677   echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
21678 echo "${ECHO_T}$INTLTOOL_PERL" >&6
21679 else
21680   echo "$as_me:$LINENO: result: no" >&5
21681 echo "${ECHO_T}no" >&6
21682 fi
21683
21684 if test -z "$INTLTOOL_PERL"; then
21685    { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
21686 echo "$as_me: error: perl not found; required for intltool" >&2;}
21687    { (exit 1); exit 1; }; }
21688 fi
21689 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
21690    { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
21691 echo "$as_me: error: perl 5.x required for intltool" >&2;}
21692    { (exit 1); exit 1; }; }
21693 fi
21694 if test "x" != "xno-xml"; then
21695    echo "$as_me:$LINENO: checking for XML::Parser" >&5
21696 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6
21697    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
21698        echo "$as_me:$LINENO: result: ok" >&5
21699 echo "${ECHO_T}ok" >&6
21700    else
21701        { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
21702 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
21703    { (exit 1); exit 1; }; }
21704    fi
21705 fi
21706
21707 # Extract the first word of "iconv", so it can be a program name with args.
21708 set dummy iconv; ac_word=$2
21709 echo "$as_me:$LINENO: checking for $ac_word" >&5
21710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21711 if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then
21712   echo $ECHO_N "(cached) $ECHO_C" >&6
21713 else
21714   case $INTLTOOL_ICONV in
21715   [\\/]* | ?:[\\/]*)
21716   ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path.
21717   ;;
21718   *)
21719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21720 for as_dir in $PATH
21721 do
21722   IFS=$as_save_IFS
21723   test -z "$as_dir" && as_dir=.
21724   for ac_exec_ext in '' $ac_executable_extensions; do
21725   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21726     ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext"
21727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21728     break 2
21729   fi
21730 done
21731 done
21732
21733   test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv"
21734   ;;
21735 esac
21736 fi
21737 INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV
21738
21739 if test -n "$INTLTOOL_ICONV"; then
21740   echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5
21741 echo "${ECHO_T}$INTLTOOL_ICONV" >&6
21742 else
21743   echo "$as_me:$LINENO: result: no" >&5
21744 echo "${ECHO_T}no" >&6
21745 fi
21746
21747 # Extract the first word of "msgfmt", so it can be a program name with args.
21748 set dummy msgfmt; ac_word=$2
21749 echo "$as_me:$LINENO: checking for $ac_word" >&5
21750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21751 if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then
21752   echo $ECHO_N "(cached) $ECHO_C" >&6
21753 else
21754   case $INTLTOOL_MSGFMT in
21755   [\\/]* | ?:[\\/]*)
21756   ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path.
21757   ;;
21758   *)
21759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21760 for as_dir in $PATH
21761 do
21762   IFS=$as_save_IFS
21763   test -z "$as_dir" && as_dir=.
21764   for ac_exec_ext in '' $ac_executable_extensions; do
21765   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21766     ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
21767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21768     break 2
21769   fi
21770 done
21771 done
21772
21773   test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt"
21774   ;;
21775 esac
21776 fi
21777 INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT
21778
21779 if test -n "$INTLTOOL_MSGFMT"; then
21780   echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5
21781 echo "${ECHO_T}$INTLTOOL_MSGFMT" >&6
21782 else
21783   echo "$as_me:$LINENO: result: no" >&5
21784 echo "${ECHO_T}no" >&6
21785 fi
21786
21787 # Extract the first word of "msgmerge", so it can be a program name with args.
21788 set dummy msgmerge; ac_word=$2
21789 echo "$as_me:$LINENO: checking for $ac_word" >&5
21790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21791 if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then
21792   echo $ECHO_N "(cached) $ECHO_C" >&6
21793 else
21794   case $INTLTOOL_MSGMERGE in
21795   [\\/]* | ?:[\\/]*)
21796   ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path.
21797   ;;
21798   *)
21799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21800 for as_dir in $PATH
21801 do
21802   IFS=$as_save_IFS
21803   test -z "$as_dir" && as_dir=.
21804   for ac_exec_ext in '' $ac_executable_extensions; do
21805   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21806     ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
21807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21808     break 2
21809   fi
21810 done
21811 done
21812
21813   test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge"
21814   ;;
21815 esac
21816 fi
21817 INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE
21818
21819 if test -n "$INTLTOOL_MSGMERGE"; then
21820   echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5
21821 echo "${ECHO_T}$INTLTOOL_MSGMERGE" >&6
21822 else
21823   echo "$as_me:$LINENO: result: no" >&5
21824 echo "${ECHO_T}no" >&6
21825 fi
21826
21827 # Extract the first word of "xgettext", so it can be a program name with args.
21828 set dummy xgettext; ac_word=$2
21829 echo "$as_me:$LINENO: checking for $ac_word" >&5
21830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21831 if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then
21832   echo $ECHO_N "(cached) $ECHO_C" >&6
21833 else
21834   case $INTLTOOL_XGETTEXT in
21835   [\\/]* | ?:[\\/]*)
21836   ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path.
21837   ;;
21838   *)
21839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21840 for as_dir in $PATH
21841 do
21842   IFS=$as_save_IFS
21843   test -z "$as_dir" && as_dir=.
21844   for ac_exec_ext in '' $ac_executable_extensions; do
21845   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21846     ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
21847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21848     break 2
21849   fi
21850 done
21851 done
21852
21853   test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext"
21854   ;;
21855 esac
21856 fi
21857 INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT
21858
21859 if test -n "$INTLTOOL_XGETTEXT"; then
21860   echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5
21861 echo "${ECHO_T}$INTLTOOL_XGETTEXT" >&6
21862 else
21863   echo "$as_me:$LINENO: result: no" >&5
21864 echo "${ECHO_T}no" >&6
21865 fi
21866
21867
21868
21869
21870
21871           ac_config_commands="$ac_config_commands intltool"
21872
21873
21874
21875
21876         MKINSTALLDIRS=
21877   if test -n "$ac_aux_dir"; then
21878     case "$ac_aux_dir" in
21879       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
21880       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
21881     esac
21882   fi
21883   if test -z "$MKINSTALLDIRS"; then
21884     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
21885   fi
21886
21887
21888
21889   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
21890 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
21891     # Check whether --enable-nls or --disable-nls was given.
21892 if test "${enable_nls+set}" = set; then
21893   enableval="$enable_nls"
21894   USE_NLS=$enableval
21895 else
21896   USE_NLS=yes
21897 fi;
21898   echo "$as_me:$LINENO: result: $USE_NLS" >&5
21899 echo "${ECHO_T}$USE_NLS" >&6
21900
21901
21902
21903
21904
21905
21906 # Prepare PATH_SEPARATOR.
21907 # The user is always right.
21908 if test "${PATH_SEPARATOR+set}" != set; then
21909   echo "#! /bin/sh" >conf$$.sh
21910   echo  "exit 0"   >>conf$$.sh
21911   chmod +x conf$$.sh
21912   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21913     PATH_SEPARATOR=';'
21914   else
21915     PATH_SEPARATOR=:
21916   fi
21917   rm -f conf$$.sh
21918 fi
21919
21920 # Find out how to test for executable files. Don't use a zero-byte file,
21921 # as systems may use methods other than mode bits to determine executability.
21922 cat >conf$$.file <<_ASEOF
21923 #! /bin/sh
21924 exit 0
21925 _ASEOF
21926 chmod +x conf$$.file
21927 if test -x conf$$.file >/dev/null 2>&1; then
21928   ac_executable_p="test -x"
21929 else
21930   ac_executable_p="test -f"
21931 fi
21932 rm -f conf$$.file
21933
21934 # Extract the first word of "msgfmt", so it can be a program name with args.
21935 set dummy msgfmt; ac_word=$2
21936 echo "$as_me:$LINENO: checking for $ac_word" >&5
21937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21938 if test "${ac_cv_path_MSGFMT+set}" = set; then
21939   echo $ECHO_N "(cached) $ECHO_C" >&6
21940 else
21941   case "$MSGFMT" in
21942   [\\/]* | ?:[\\/]*)
21943     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21944     ;;
21945   *)
21946     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21947     for ac_dir in $PATH; do
21948       IFS="$ac_save_IFS"
21949       test -z "$ac_dir" && ac_dir=.
21950       for ac_exec_ext in '' $ac_executable_extensions; do
21951         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21952           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
21953      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21954             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
21955             break 2
21956           fi
21957         fi
21958       done
21959     done
21960     IFS="$ac_save_IFS"
21961   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
21962     ;;
21963 esac
21964 fi
21965 MSGFMT="$ac_cv_path_MSGFMT"
21966 if test "$MSGFMT" != ":"; then
21967   echo "$as_me:$LINENO: result: $MSGFMT" >&5
21968 echo "${ECHO_T}$MSGFMT" >&6
21969 else
21970   echo "$as_me:$LINENO: result: no" >&5
21971 echo "${ECHO_T}no" >&6
21972 fi
21973
21974   # Extract the first word of "gmsgfmt", so it can be a program name with args.
21975 set dummy gmsgfmt; ac_word=$2
21976 echo "$as_me:$LINENO: checking for $ac_word" >&5
21977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21978 if test "${ac_cv_path_GMSGFMT+set}" = set; then
21979   echo $ECHO_N "(cached) $ECHO_C" >&6
21980 else
21981   case $GMSGFMT in
21982   [\\/]* | ?:[\\/]*)
21983   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21984   ;;
21985   *)
21986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21987 for as_dir in $PATH
21988 do
21989   IFS=$as_save_IFS
21990   test -z "$as_dir" && as_dir=.
21991   for ac_exec_ext in '' $ac_executable_extensions; do
21992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21993     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
21994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21995     break 2
21996   fi
21997 done
21998 done
21999
22000   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22001   ;;
22002 esac
22003 fi
22004 GMSGFMT=$ac_cv_path_GMSGFMT
22005
22006 if test -n "$GMSGFMT"; then
22007   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22008 echo "${ECHO_T}$GMSGFMT" >&6
22009 else
22010   echo "$as_me:$LINENO: result: no" >&5
22011 echo "${ECHO_T}no" >&6
22012 fi
22013
22014
22015
22016 # Prepare PATH_SEPARATOR.
22017 # The user is always right.
22018 if test "${PATH_SEPARATOR+set}" != set; then
22019   echo "#! /bin/sh" >conf$$.sh
22020   echo  "exit 0"   >>conf$$.sh
22021   chmod +x conf$$.sh
22022   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22023     PATH_SEPARATOR=';'
22024   else
22025     PATH_SEPARATOR=:
22026   fi
22027   rm -f conf$$.sh
22028 fi
22029
22030 # Find out how to test for executable files. Don't use a zero-byte file,
22031 # as systems may use methods other than mode bits to determine executability.
22032 cat >conf$$.file <<_ASEOF
22033 #! /bin/sh
22034 exit 0
22035 _ASEOF
22036 chmod +x conf$$.file
22037 if test -x conf$$.file >/dev/null 2>&1; then
22038   ac_executable_p="test -x"
22039 else
22040   ac_executable_p="test -f"
22041 fi
22042 rm -f conf$$.file
22043
22044 # Extract the first word of "xgettext", so it can be a program name with args.
22045 set dummy xgettext; ac_word=$2
22046 echo "$as_me:$LINENO: checking for $ac_word" >&5
22047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22048 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22049   echo $ECHO_N "(cached) $ECHO_C" >&6
22050 else
22051   case "$XGETTEXT" in
22052   [\\/]* | ?:[\\/]*)
22053     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22054     ;;
22055   *)
22056     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22057     for ac_dir in $PATH; do
22058       IFS="$ac_save_IFS"
22059       test -z "$ac_dir" && ac_dir=.
22060       for ac_exec_ext in '' $ac_executable_extensions; do
22061         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22062           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22063      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22064             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22065             break 2
22066           fi
22067         fi
22068       done
22069     done
22070     IFS="$ac_save_IFS"
22071   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22072     ;;
22073 esac
22074 fi
22075 XGETTEXT="$ac_cv_path_XGETTEXT"
22076 if test "$XGETTEXT" != ":"; then
22077   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22078 echo "${ECHO_T}$XGETTEXT" >&6
22079 else
22080   echo "$as_me:$LINENO: result: no" >&5
22081 echo "${ECHO_T}no" >&6
22082 fi
22083
22084     rm -f messages.po
22085
22086
22087 # Prepare PATH_SEPARATOR.
22088 # The user is always right.
22089 if test "${PATH_SEPARATOR+set}" != set; then
22090   echo "#! /bin/sh" >conf$$.sh
22091   echo  "exit 0"   >>conf$$.sh
22092   chmod +x conf$$.sh
22093   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22094     PATH_SEPARATOR=';'
22095   else
22096     PATH_SEPARATOR=:
22097   fi
22098   rm -f conf$$.sh
22099 fi
22100
22101 # Find out how to test for executable files. Don't use a zero-byte file,
22102 # as systems may use methods other than mode bits to determine executability.
22103 cat >conf$$.file <<_ASEOF
22104 #! /bin/sh
22105 exit 0
22106 _ASEOF
22107 chmod +x conf$$.file
22108 if test -x conf$$.file >/dev/null 2>&1; then
22109   ac_executable_p="test -x"
22110 else
22111   ac_executable_p="test -f"
22112 fi
22113 rm -f conf$$.file
22114
22115 # Extract the first word of "msgmerge", so it can be a program name with args.
22116 set dummy msgmerge; ac_word=$2
22117 echo "$as_me:$LINENO: checking for $ac_word" >&5
22118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22119 if test "${ac_cv_path_MSGMERGE+set}" = set; then
22120   echo $ECHO_N "(cached) $ECHO_C" >&6
22121 else
22122   case "$MSGMERGE" in
22123   [\\/]* | ?:[\\/]*)
22124     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
22125     ;;
22126   *)
22127     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22128     for ac_dir in $PATH; do
22129       IFS="$ac_save_IFS"
22130       test -z "$ac_dir" && ac_dir=.
22131       for ac_exec_ext in '' $ac_executable_extensions; do
22132         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22133           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
22134             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
22135             break 2
22136           fi
22137         fi
22138       done
22139     done
22140     IFS="$ac_save_IFS"
22141   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
22142     ;;
22143 esac
22144 fi
22145 MSGMERGE="$ac_cv_path_MSGMERGE"
22146 if test "$MSGMERGE" != ":"; then
22147   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22148 echo "${ECHO_T}$MSGMERGE" >&6
22149 else
22150   echo "$as_me:$LINENO: result: no" >&5
22151 echo "${ECHO_T}no" >&6
22152 fi
22153
22154
22155       if test "$GMSGFMT" != ":"; then
22156             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
22157        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22158       : ;
22159     else
22160       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
22161       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
22162 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
22163       GMSGFMT=":"
22164     fi
22165   fi
22166
22167       if test "$XGETTEXT" != ":"; then
22168             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22169        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22170       : ;
22171     else
22172       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
22173 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
22174       XGETTEXT=":"
22175     fi
22176         rm -f messages.po
22177   fi
22178
22179             ac_config_commands="$ac_config_commands default-1"
22180
22181
22182
22183       if test "X$prefix" = "XNONE"; then
22184     acl_final_prefix="$ac_default_prefix"
22185   else
22186     acl_final_prefix="$prefix"
22187   fi
22188   if test "X$exec_prefix" = "XNONE"; then
22189     acl_final_exec_prefix='${prefix}'
22190   else
22191     acl_final_exec_prefix="$exec_prefix"
22192   fi
22193   acl_save_prefix="$prefix"
22194   prefix="$acl_final_prefix"
22195   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22196   prefix="$acl_save_prefix"
22197
22198
22199 # Check whether --with-gnu-ld or --without-gnu-ld was given.
22200 if test "${with_gnu_ld+set}" = set; then
22201   withval="$with_gnu_ld"
22202   test "$withval" = no || with_gnu_ld=yes
22203 else
22204   with_gnu_ld=no
22205 fi;
22206 # Prepare PATH_SEPARATOR.
22207 # The user is always right.
22208 if test "${PATH_SEPARATOR+set}" != set; then
22209   echo "#! /bin/sh" >conf$$.sh
22210   echo  "exit 0"   >>conf$$.sh
22211   chmod +x conf$$.sh
22212   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22213     PATH_SEPARATOR=';'
22214   else
22215     PATH_SEPARATOR=:
22216   fi
22217   rm -f conf$$.sh
22218 fi
22219 ac_prog=ld
22220 if test "$GCC" = yes; then
22221   # Check if gcc -print-prog-name=ld gives a path.
22222   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
22223 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
22224   case $host in
22225   *-*-mingw*)
22226     # gcc leaves a trailing carriage return which upsets mingw
22227     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22228   *)
22229     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22230   esac
22231   case $ac_prog in
22232     # Accept absolute paths.
22233     [\\/]* | [A-Za-z]:[\\/]*)
22234       re_direlt='/[^/][^/]*/\.\./'
22235       # Canonicalize the path of ld
22236       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
22237       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22238         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
22239       done
22240       test -z "$LD" && LD="$ac_prog"
22241       ;;
22242   "")
22243     # If it fails, then pretend we aren't using GCC.
22244     ac_prog=ld
22245     ;;
22246   *)
22247     # If it is relative, then search for the first ld in PATH.
22248     with_gnu_ld=unknown
22249     ;;
22250   esac
22251 elif test "$with_gnu_ld" = yes; then
22252   echo "$as_me:$LINENO: checking for GNU ld" >&5
22253 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
22254 else
22255   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22256 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
22257 fi
22258 if test "${acl_cv_path_LD+set}" = set; then
22259   echo $ECHO_N "(cached) $ECHO_C" >&6
22260 else
22261   if test -z "$LD"; then
22262   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
22263   for ac_dir in $PATH; do
22264     test -z "$ac_dir" && ac_dir=.
22265     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22266       acl_cv_path_LD="$ac_dir/$ac_prog"
22267       # Check to see if the program is GNU ld.  I'd rather use --version,
22268       # but apparently some GNU ld's only accept -v.
22269       # Break only if it was the GNU/non-GNU ld that we prefer.
22270       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
22271       *GNU* | *'with BFD'*)
22272         test "$with_gnu_ld" != no && break ;;
22273       *)
22274         test "$with_gnu_ld" != yes && break ;;
22275       esac
22276     fi
22277   done
22278   IFS="$ac_save_ifs"
22279 else
22280   acl_cv_path_LD="$LD" # Let the user override the test with a path.
22281 fi
22282 fi
22283
22284 LD="$acl_cv_path_LD"
22285 if test -n "$LD"; then
22286   echo "$as_me:$LINENO: result: $LD" >&5
22287 echo "${ECHO_T}$LD" >&6
22288 else
22289   echo "$as_me:$LINENO: result: no" >&5
22290 echo "${ECHO_T}no" >&6
22291 fi
22292 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22293 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22294    { (exit 1); exit 1; }; }
22295 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22296 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
22297 if test "${acl_cv_prog_gnu_ld+set}" = set; then
22298   echo $ECHO_N "(cached) $ECHO_C" >&6
22299 else
22300   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
22301 case `$LD -v 2>&1 </dev/null` in
22302 *GNU* | *'with BFD'*)
22303   acl_cv_prog_gnu_ld=yes ;;
22304 *)
22305   acl_cv_prog_gnu_ld=no ;;
22306 esac
22307 fi
22308 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
22309 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
22310 with_gnu_ld=$acl_cv_prog_gnu_ld
22311
22312
22313
22314                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
22315 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
22316 if test "${acl_cv_rpath+set}" = set; then
22317   echo $ECHO_N "(cached) $ECHO_C" >&6
22318 else
22319
22320     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22321     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22322     . ./conftest.sh
22323     rm -f ./conftest.sh
22324     acl_cv_rpath=done
22325
22326 fi
22327 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
22328 echo "${ECHO_T}$acl_cv_rpath" >&6
22329   wl="$acl_cv_wl"
22330   libext="$acl_cv_libext"
22331   shlibext="$acl_cv_shlibext"
22332   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22333   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22334   hardcode_direct="$acl_cv_hardcode_direct"
22335   hardcode_minus_L="$acl_cv_hardcode_minus_L"
22336     # Check whether --enable-rpath or --disable-rpath was given.
22337 if test "${enable_rpath+set}" = set; then
22338   enableval="$enable_rpath"
22339   :
22340 else
22341   enable_rpath=yes
22342 fi;
22343
22344
22345
22346
22347
22348
22349
22350     use_additional=yes
22351
22352   acl_save_prefix="$prefix"
22353   prefix="$acl_final_prefix"
22354   acl_save_exec_prefix="$exec_prefix"
22355   exec_prefix="$acl_final_exec_prefix"
22356
22357     eval additional_includedir=\"$includedir\"
22358     eval additional_libdir=\"$libdir\"
22359
22360   exec_prefix="$acl_save_exec_prefix"
22361   prefix="$acl_save_prefix"
22362
22363
22364 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
22365 if test "${with_libiconv_prefix+set}" = set; then
22366   withval="$with_libiconv_prefix"
22367
22368     if test "X$withval" = "Xno"; then
22369       use_additional=no
22370     else
22371       if test "X$withval" = "X"; then
22372
22373   acl_save_prefix="$prefix"
22374   prefix="$acl_final_prefix"
22375   acl_save_exec_prefix="$exec_prefix"
22376   exec_prefix="$acl_final_exec_prefix"
22377
22378           eval additional_includedir=\"$includedir\"
22379           eval additional_libdir=\"$libdir\"
22380
22381   exec_prefix="$acl_save_exec_prefix"
22382   prefix="$acl_save_prefix"
22383
22384       else
22385         additional_includedir="$withval/include"
22386         additional_libdir="$withval/lib"
22387       fi
22388     fi
22389
22390 fi;
22391       LIBICONV=
22392   LTLIBICONV=
22393   INCICONV=
22394   rpathdirs=
22395   ltrpathdirs=
22396   names_already_handled=
22397   names_next_round='iconv '
22398   while test -n "$names_next_round"; do
22399     names_this_round="$names_next_round"
22400     names_next_round=
22401     for name in $names_this_round; do
22402       already_handled=
22403       for n in $names_already_handled; do
22404         if test "$n" = "$name"; then
22405           already_handled=yes
22406           break
22407         fi
22408       done
22409       if test -z "$already_handled"; then
22410         names_already_handled="$names_already_handled $name"
22411                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22412         eval value=\"\$HAVE_LIB$uppername\"
22413         if test -n "$value"; then
22414           if test "$value" = yes; then
22415             eval value=\"\$LIB$uppername\"
22416             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22417             eval value=\"\$LTLIB$uppername\"
22418             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22419           else
22420                                     :
22421           fi
22422         else
22423                               found_dir=
22424           found_la=
22425           found_so=
22426           found_a=
22427           if test $use_additional = yes; then
22428             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
22429               found_dir="$additional_libdir"
22430               found_so="$additional_libdir/lib$name.$shlibext"
22431               if test -f "$additional_libdir/lib$name.la"; then
22432                 found_la="$additional_libdir/lib$name.la"
22433               fi
22434             else
22435               if test -f "$additional_libdir/lib$name.$libext"; then
22436                 found_dir="$additional_libdir"
22437                 found_a="$additional_libdir/lib$name.$libext"
22438                 if test -f "$additional_libdir/lib$name.la"; then
22439                   found_la="$additional_libdir/lib$name.la"
22440                 fi
22441               fi
22442             fi
22443           fi
22444           if test "X$found_dir" = "X"; then
22445             for x in $LDFLAGS $LTLIBICONV; do
22446
22447   acl_save_prefix="$prefix"
22448   prefix="$acl_final_prefix"
22449   acl_save_exec_prefix="$exec_prefix"
22450   exec_prefix="$acl_final_exec_prefix"
22451   eval x=\"$x\"
22452   exec_prefix="$acl_save_exec_prefix"
22453   prefix="$acl_save_prefix"
22454
22455               case "$x" in
22456                 -L*)
22457                   dir=`echo "X$x" | sed -e 's/^X-L//'`
22458                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22459                     found_dir="$dir"
22460                     found_so="$dir/lib$name.$shlibext"
22461                     if test -f "$dir/lib$name.la"; then
22462                       found_la="$dir/lib$name.la"
22463                     fi
22464                   else
22465                     if test -f "$dir/lib$name.$libext"; then
22466                       found_dir="$dir"
22467                       found_a="$dir/lib$name.$libext"
22468                       if test -f "$dir/lib$name.la"; then
22469                         found_la="$dir/lib$name.la"
22470                       fi
22471                     fi
22472                   fi
22473                   ;;
22474               esac
22475               if test "X$found_dir" != "X"; then
22476                 break
22477               fi
22478             done
22479           fi
22480           if test "X$found_dir" != "X"; then
22481                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22482             if test "X$found_so" != "X"; then
22483                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22484                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22485               else
22486                                                                                 haveit=
22487                 for x in $ltrpathdirs; do
22488                   if test "X$x" = "X$found_dir"; then
22489                     haveit=yes
22490                     break
22491                   fi
22492                 done
22493                 if test -z "$haveit"; then
22494                   ltrpathdirs="$ltrpathdirs $found_dir"
22495                 fi
22496                                 if test "$hardcode_direct" = yes; then
22497                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22498                 else
22499                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22500                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22501                                                             haveit=
22502                     for x in $rpathdirs; do
22503                       if test "X$x" = "X$found_dir"; then
22504                         haveit=yes
22505                         break
22506                       fi
22507                     done
22508                     if test -z "$haveit"; then
22509                       rpathdirs="$rpathdirs $found_dir"
22510                     fi
22511                   else
22512                                                                                 haveit=
22513                     for x in $LDFLAGS $LIBICONV; do
22514
22515   acl_save_prefix="$prefix"
22516   prefix="$acl_final_prefix"
22517   acl_save_exec_prefix="$exec_prefix"
22518   exec_prefix="$acl_final_exec_prefix"
22519   eval x=\"$x\"
22520   exec_prefix="$acl_save_exec_prefix"
22521   prefix="$acl_save_prefix"
22522
22523                       if test "X$x" = "X-L$found_dir"; then
22524                         haveit=yes
22525                         break
22526                       fi
22527                     done
22528                     if test -z "$haveit"; then
22529                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22530                     fi
22531                     if test "$hardcode_minus_L" != no; then
22532                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22533                     else
22534                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22535                     fi
22536                   fi
22537                 fi
22538               fi
22539             else
22540               if test "X$found_a" != "X"; then
22541                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22542               else
22543                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22544               fi
22545             fi
22546                         additional_includedir=
22547             case "$found_dir" in
22548               */lib | */lib/)
22549                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22550                 additional_includedir="$basedir/include"
22551                 ;;
22552             esac
22553             if test "X$additional_includedir" != "X"; then
22554                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
22555                 haveit=
22556                 if test "X$additional_includedir" = "X/usr/local/include"; then
22557                   if test -n "$GCC"; then
22558                     case $host_os in
22559                       linux*) haveit=yes;;
22560                     esac
22561                   fi
22562                 fi
22563                 if test -z "$haveit"; then
22564                   for x in $CPPFLAGS $INCICONV; do
22565
22566   acl_save_prefix="$prefix"
22567   prefix="$acl_final_prefix"
22568   acl_save_exec_prefix="$exec_prefix"
22569   exec_prefix="$acl_final_exec_prefix"
22570   eval x=\"$x\"
22571   exec_prefix="$acl_save_exec_prefix"
22572   prefix="$acl_save_prefix"
22573
22574                     if test "X$x" = "X-I$additional_includedir"; then
22575                       haveit=yes
22576                       break
22577                     fi
22578                   done
22579                   if test -z "$haveit"; then
22580                     if test -d "$additional_includedir"; then
22581                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22582                     fi
22583                   fi
22584                 fi
22585               fi
22586             fi
22587                         if test -n "$found_la"; then
22588                                                         save_libdir="$libdir"
22589               case "$found_la" in
22590                 */* | *\\*) . "$found_la" ;;
22591                 *) . "./$found_la" ;;
22592               esac
22593               libdir="$save_libdir"
22594                             for dep in $dependency_libs; do
22595                 case "$dep" in
22596                   -L*)
22597                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22598                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
22599                       haveit=
22600                       if test "X$additional_libdir" = "X/usr/local/lib"; then
22601                         if test -n "$GCC"; then
22602                           case $host_os in
22603                             linux*) haveit=yes;;
22604                           esac
22605                         fi
22606                       fi
22607                       if test -z "$haveit"; then
22608                         haveit=
22609                         for x in $LDFLAGS $LIBICONV; do
22610
22611   acl_save_prefix="$prefix"
22612   prefix="$acl_final_prefix"
22613   acl_save_exec_prefix="$exec_prefix"
22614   exec_prefix="$acl_final_exec_prefix"
22615   eval x=\"$x\"
22616   exec_prefix="$acl_save_exec_prefix"
22617   prefix="$acl_save_prefix"
22618
22619                           if test "X$x" = "X-L$additional_libdir"; then
22620                             haveit=yes
22621                             break
22622                           fi
22623                         done
22624                         if test -z "$haveit"; then
22625                           if test -d "$additional_libdir"; then
22626                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22627                           fi
22628                         fi
22629                         haveit=
22630                         for x in $LDFLAGS $LTLIBICONV; do
22631
22632   acl_save_prefix="$prefix"
22633   prefix="$acl_final_prefix"
22634   acl_save_exec_prefix="$exec_prefix"
22635   exec_prefix="$acl_final_exec_prefix"
22636   eval x=\"$x\"
22637   exec_prefix="$acl_save_exec_prefix"
22638   prefix="$acl_save_prefix"
22639
22640                           if test "X$x" = "X-L$additional_libdir"; then
22641                             haveit=yes
22642                             break
22643                           fi
22644                         done
22645                         if test -z "$haveit"; then
22646                           if test -d "$additional_libdir"; then
22647                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22648                           fi
22649                         fi
22650                       fi
22651                     fi
22652                     ;;
22653                   -R*)
22654                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
22655                     if test "$enable_rpath" != no; then
22656                                                                   haveit=
22657                       for x in $rpathdirs; do
22658                         if test "X$x" = "X$dir"; then
22659                           haveit=yes
22660                           break
22661                         fi
22662                       done
22663                       if test -z "$haveit"; then
22664                         rpathdirs="$rpathdirs $dir"
22665                       fi
22666                                                                   haveit=
22667                       for x in $ltrpathdirs; do
22668                         if test "X$x" = "X$dir"; then
22669                           haveit=yes
22670                           break
22671                         fi
22672                       done
22673                       if test -z "$haveit"; then
22674                         ltrpathdirs="$ltrpathdirs $dir"
22675                       fi
22676                     fi
22677                     ;;
22678                   -l*)
22679                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22680                     ;;
22681                   *.la)
22682                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22683                     ;;
22684                   *)
22685                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22686                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22687                     ;;
22688                 esac
22689               done
22690             fi
22691           else
22692                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22693             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22694           fi
22695         fi
22696       fi
22697     done
22698   done
22699   if test "X$rpathdirs" != "X"; then
22700     if test -n "$hardcode_libdir_separator"; then
22701                         alldirs=
22702       for found_dir in $rpathdirs; do
22703         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22704       done
22705             acl_save_libdir="$libdir"
22706       libdir="$alldirs"
22707       eval flag=\"$hardcode_libdir_flag_spec\"
22708       libdir="$acl_save_libdir"
22709       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22710     else
22711             for found_dir in $rpathdirs; do
22712         acl_save_libdir="$libdir"
22713         libdir="$found_dir"
22714         eval flag=\"$hardcode_libdir_flag_spec\"
22715         libdir="$acl_save_libdir"
22716         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22717       done
22718     fi
22719   fi
22720   if test "X$ltrpathdirs" != "X"; then
22721             for found_dir in $ltrpathdirs; do
22722       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22723     done
22724   fi
22725
22726
22727 cat >conftest.$ac_ext <<_ACEOF
22728 /* confdefs.h.  */
22729 _ACEOF
22730 cat confdefs.h >>conftest.$ac_ext
22731 cat >>conftest.$ac_ext <<_ACEOF
22732 /* end confdefs.h.  */
22733 #include <locale.h>
22734 int
22735 main ()
22736 {
22737  extern locale_t wc_locales[]
22738   ;
22739   return 0;
22740 }
22741 _ACEOF
22742 rm -f conftest.$ac_objext
22743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22744   (eval $ac_compile) 2>conftest.er1
22745   ac_status=$?
22746   grep -v '^ *+' conftest.er1 >conftest.err
22747   rm -f conftest.er1
22748   cat conftest.err >&5
22749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750   (exit $ac_status); } &&
22751          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753   (eval $ac_try) 2>&5
22754   ac_status=$?
22755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756   (exit $ac_status); }; } &&
22757          { ac_try='test -s conftest.$ac_objext'
22758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22759   (eval $ac_try) 2>&5
22760   ac_status=$?
22761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762   (exit $ac_status); }; }; then
22763
22764                         _nls_avail=yes
22765
22766
22767
22768
22769
22770
22771
22772
22773
22774
22775
22776
22777
22778
22779
22780
22781   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22782 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
22783     # Check whether --enable-nls or --disable-nls was given.
22784 if test "${enable_nls+set}" = set; then
22785   enableval="$enable_nls"
22786   USE_NLS=$enableval
22787 else
22788   USE_NLS=yes
22789 fi;
22790   echo "$as_me:$LINENO: result: $USE_NLS" >&5
22791 echo "${ECHO_T}$USE_NLS" >&6
22792
22793
22794
22795
22796   LIBINTL=
22797   LTLIBINTL=
22798   POSUB=
22799
22800     if test "$USE_NLS" = "yes"; then
22801     gt_use_preinstalled_gnugettext=no
22802
22803
22804
22805
22806
22807
22808         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
22809 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
22810 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
22811   echo $ECHO_N "(cached) $ECHO_C" >&6
22812 else
22813   cat >conftest.$ac_ext <<_ACEOF
22814 /* confdefs.h.  */
22815 _ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h.  */
22819 #include <libintl.h>
22820 extern int _nl_msg_cat_cntr;
22821 extern int *_nl_domain_bindings;
22822 int
22823 main ()
22824 {
22825 bindtextdomain ("", "");
22826 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
22827   ;
22828   return 0;
22829 }
22830 _ACEOF
22831 rm -f conftest.$ac_objext conftest$ac_exeext
22832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22833   (eval $ac_link) 2>conftest.er1
22834   ac_status=$?
22835   grep -v '^ *+' conftest.er1 >conftest.err
22836   rm -f conftest.er1
22837   cat conftest.err >&5
22838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839   (exit $ac_status); } &&
22840          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22842   (eval $ac_try) 2>&5
22843   ac_status=$?
22844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845   (exit $ac_status); }; } &&
22846          { ac_try='test -s conftest$ac_exeext'
22847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22848   (eval $ac_try) 2>&5
22849   ac_status=$?
22850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851   (exit $ac_status); }; }; then
22852   gt_cv_func_gnugettext2_libc=yes
22853 else
22854   echo "$as_me: failed program was:" >&5
22855 sed 's/^/| /' conftest.$ac_ext >&5
22856
22857 gt_cv_func_gnugettext2_libc=no
22858 fi
22859 rm -f conftest.err conftest.$ac_objext \
22860       conftest$ac_exeext conftest.$ac_ext
22861 fi
22862 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
22863 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
22864
22865         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
22866
22867
22868
22869
22870
22871           am_save_CPPFLAGS="$CPPFLAGS"
22872
22873   for element in $INCICONV; do
22874     haveit=
22875     for x in $CPPFLAGS; do
22876
22877   acl_save_prefix="$prefix"
22878   prefix="$acl_final_prefix"
22879   acl_save_exec_prefix="$exec_prefix"
22880   exec_prefix="$acl_final_exec_prefix"
22881   eval x=\"$x\"
22882   exec_prefix="$acl_save_exec_prefix"
22883   prefix="$acl_save_prefix"
22884
22885       if test "X$x" = "X$element"; then
22886         haveit=yes
22887         break
22888       fi
22889     done
22890     if test -z "$haveit"; then
22891       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22892     fi
22893   done
22894
22895
22896   echo "$as_me:$LINENO: checking for iconv" >&5
22897 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22898 if test "${am_cv_func_iconv+set}" = set; then
22899   echo $ECHO_N "(cached) $ECHO_C" >&6
22900 else
22901
22902     am_cv_func_iconv="no, consider installing GNU libiconv"
22903     am_cv_lib_iconv=no
22904     cat >conftest.$ac_ext <<_ACEOF
22905 /* confdefs.h.  */
22906 _ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h.  */
22910 #include <stdlib.h>
22911 #include <iconv.h>
22912 int
22913 main ()
22914 {
22915 iconv_t cd = iconv_open("","");
22916        iconv(cd,NULL,NULL,NULL,NULL);
22917        iconv_close(cd);
22918   ;
22919   return 0;
22920 }
22921 _ACEOF
22922 rm -f conftest.$ac_objext conftest$ac_exeext
22923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22924   (eval $ac_link) 2>conftest.er1
22925   ac_status=$?
22926   grep -v '^ *+' conftest.er1 >conftest.err
22927   rm -f conftest.er1
22928   cat conftest.err >&5
22929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930   (exit $ac_status); } &&
22931          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22933   (eval $ac_try) 2>&5
22934   ac_status=$?
22935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936   (exit $ac_status); }; } &&
22937          { ac_try='test -s conftest$ac_exeext'
22938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22939   (eval $ac_try) 2>&5
22940   ac_status=$?
22941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942   (exit $ac_status); }; }; then
22943   am_cv_func_iconv=yes
22944 else
22945   echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22947
22948 fi
22949 rm -f conftest.err conftest.$ac_objext \
22950       conftest$ac_exeext conftest.$ac_ext
22951     if test "$am_cv_func_iconv" != yes; then
22952       am_save_LIBS="$LIBS"
22953       LIBS="$LIBS $LIBICONV"
22954       cat >conftest.$ac_ext <<_ACEOF
22955 /* confdefs.h.  */
22956 _ACEOF
22957 cat confdefs.h >>conftest.$ac_ext
22958 cat >>conftest.$ac_ext <<_ACEOF
22959 /* end confdefs.h.  */
22960 #include <stdlib.h>
22961 #include <iconv.h>
22962 int
22963 main ()
22964 {
22965 iconv_t cd = iconv_open("","");
22966          iconv(cd,NULL,NULL,NULL,NULL);
22967          iconv_close(cd);
22968   ;
22969   return 0;
22970 }
22971 _ACEOF
22972 rm -f conftest.$ac_objext conftest$ac_exeext
22973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22974   (eval $ac_link) 2>conftest.er1
22975   ac_status=$?
22976   grep -v '^ *+' conftest.er1 >conftest.err
22977   rm -f conftest.er1
22978   cat conftest.err >&5
22979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980   (exit $ac_status); } &&
22981          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22983   (eval $ac_try) 2>&5
22984   ac_status=$?
22985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986   (exit $ac_status); }; } &&
22987          { ac_try='test -s conftest$ac_exeext'
22988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22989   (eval $ac_try) 2>&5
22990   ac_status=$?
22991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992   (exit $ac_status); }; }; then
22993   am_cv_lib_iconv=yes
22994         am_cv_func_iconv=yes
22995 else
22996   echo "$as_me: failed program was:" >&5
22997 sed 's/^/| /' conftest.$ac_ext >&5
22998
22999 fi
23000 rm -f conftest.err conftest.$ac_objext \
23001       conftest$ac_exeext conftest.$ac_ext
23002       LIBS="$am_save_LIBS"
23003     fi
23004
23005 fi
23006 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23007 echo "${ECHO_T}$am_cv_func_iconv" >&6
23008   if test "$am_cv_func_iconv" = yes; then
23009
23010 cat >>confdefs.h <<\_ACEOF
23011 #define HAVE_ICONV 1
23012 _ACEOF
23013
23014   fi
23015   if test "$am_cv_lib_iconv" = yes; then
23016     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23017 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
23018     echo "$as_me:$LINENO: result: $LIBICONV" >&5
23019 echo "${ECHO_T}$LIBICONV" >&6
23020   else
23021             CPPFLAGS="$am_save_CPPFLAGS"
23022     LIBICONV=
23023     LTLIBICONV=
23024   fi
23025
23026
23027
23028
23029
23030
23031     use_additional=yes
23032
23033   acl_save_prefix="$prefix"
23034   prefix="$acl_final_prefix"
23035   acl_save_exec_prefix="$exec_prefix"
23036   exec_prefix="$acl_final_exec_prefix"
23037
23038     eval additional_includedir=\"$includedir\"
23039     eval additional_libdir=\"$libdir\"
23040
23041   exec_prefix="$acl_save_exec_prefix"
23042   prefix="$acl_save_prefix"
23043
23044
23045 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
23046 if test "${with_libintl_prefix+set}" = set; then
23047   withval="$with_libintl_prefix"
23048
23049     if test "X$withval" = "Xno"; then
23050       use_additional=no
23051     else
23052       if test "X$withval" = "X"; then
23053
23054   acl_save_prefix="$prefix"
23055   prefix="$acl_final_prefix"
23056   acl_save_exec_prefix="$exec_prefix"
23057   exec_prefix="$acl_final_exec_prefix"
23058
23059           eval additional_includedir=\"$includedir\"
23060           eval additional_libdir=\"$libdir\"
23061
23062   exec_prefix="$acl_save_exec_prefix"
23063   prefix="$acl_save_prefix"
23064
23065       else
23066         additional_includedir="$withval/include"
23067         additional_libdir="$withval/lib"
23068       fi
23069     fi
23070
23071 fi;
23072       LIBINTL=
23073   LTLIBINTL=
23074   INCINTL=
23075   rpathdirs=
23076   ltrpathdirs=
23077   names_already_handled=
23078   names_next_round='intl '
23079   while test -n "$names_next_round"; do
23080     names_this_round="$names_next_round"
23081     names_next_round=
23082     for name in $names_this_round; do
23083       already_handled=
23084       for n in $names_already_handled; do
23085         if test "$n" = "$name"; then
23086           already_handled=yes
23087           break
23088         fi
23089       done
23090       if test -z "$already_handled"; then
23091         names_already_handled="$names_already_handled $name"
23092                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23093         eval value=\"\$HAVE_LIB$uppername\"
23094         if test -n "$value"; then
23095           if test "$value" = yes; then
23096             eval value=\"\$LIB$uppername\"
23097             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23098             eval value=\"\$LTLIB$uppername\"
23099             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23100           else
23101                                     :
23102           fi
23103         else
23104                               found_dir=
23105           found_la=
23106           found_so=
23107           found_a=
23108           if test $use_additional = yes; then
23109             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23110               found_dir="$additional_libdir"
23111               found_so="$additional_libdir/lib$name.$shlibext"
23112               if test -f "$additional_libdir/lib$name.la"; then
23113                 found_la="$additional_libdir/lib$name.la"
23114               fi
23115             else
23116               if test -f "$additional_libdir/lib$name.$libext"; then
23117                 found_dir="$additional_libdir"
23118                 found_a="$additional_libdir/lib$name.$libext"
23119                 if test -f "$additional_libdir/lib$name.la"; then
23120                   found_la="$additional_libdir/lib$name.la"
23121                 fi
23122               fi
23123             fi
23124           fi
23125           if test "X$found_dir" = "X"; then
23126             for x in $LDFLAGS $LTLIBINTL; do
23127
23128   acl_save_prefix="$prefix"
23129   prefix="$acl_final_prefix"
23130   acl_save_exec_prefix="$exec_prefix"
23131   exec_prefix="$acl_final_exec_prefix"
23132   eval x=\"$x\"
23133   exec_prefix="$acl_save_exec_prefix"
23134   prefix="$acl_save_prefix"
23135
23136               case "$x" in
23137                 -L*)
23138                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23139                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23140                     found_dir="$dir"
23141                     found_so="$dir/lib$name.$shlibext"
23142                     if test -f "$dir/lib$name.la"; then
23143                       found_la="$dir/lib$name.la"
23144                     fi
23145                   else
23146                     if test -f "$dir/lib$name.$libext"; then
23147                       found_dir="$dir"
23148                       found_a="$dir/lib$name.$libext"
23149                       if test -f "$dir/lib$name.la"; then
23150                         found_la="$dir/lib$name.la"
23151                       fi
23152                     fi
23153                   fi
23154                   ;;
23155               esac
23156               if test "X$found_dir" != "X"; then
23157                 break
23158               fi
23159             done
23160           fi
23161           if test "X$found_dir" != "X"; then
23162                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23163             if test "X$found_so" != "X"; then
23164                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23165                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23166               else
23167                                                                                 haveit=
23168                 for x in $ltrpathdirs; do
23169                   if test "X$x" = "X$found_dir"; then
23170                     haveit=yes
23171                     break
23172                   fi
23173                 done
23174                 if test -z "$haveit"; then
23175                   ltrpathdirs="$ltrpathdirs $found_dir"
23176                 fi
23177                                 if test "$hardcode_direct" = yes; then
23178                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23179                 else
23180                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23181                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23182                                                             haveit=
23183                     for x in $rpathdirs; do
23184                       if test "X$x" = "X$found_dir"; then
23185                         haveit=yes
23186                         break
23187                       fi
23188                     done
23189                     if test -z "$haveit"; then
23190                       rpathdirs="$rpathdirs $found_dir"
23191                     fi
23192                   else
23193                                                                                 haveit=
23194                     for x in $LDFLAGS $LIBINTL; do
23195
23196   acl_save_prefix="$prefix"
23197   prefix="$acl_final_prefix"
23198   acl_save_exec_prefix="$exec_prefix"
23199   exec_prefix="$acl_final_exec_prefix"
23200   eval x=\"$x\"
23201   exec_prefix="$acl_save_exec_prefix"
23202   prefix="$acl_save_prefix"
23203
23204                       if test "X$x" = "X-L$found_dir"; then
23205                         haveit=yes
23206                         break
23207                       fi
23208                     done
23209                     if test -z "$haveit"; then
23210                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23211                     fi
23212                     if test "$hardcode_minus_L" != no; then
23213                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23214                     else
23215                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23216                     fi
23217                   fi
23218                 fi
23219               fi
23220             else
23221               if test "X$found_a" != "X"; then
23222                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23223               else
23224                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23225               fi
23226             fi
23227                         additional_includedir=
23228             case "$found_dir" in
23229               */lib | */lib/)
23230                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23231                 additional_includedir="$basedir/include"
23232                 ;;
23233             esac
23234             if test "X$additional_includedir" != "X"; then
23235                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23236                 haveit=
23237                 if test "X$additional_includedir" = "X/usr/local/include"; then
23238                   if test -n "$GCC"; then
23239                     case $host_os in
23240                       linux*) haveit=yes;;
23241                     esac
23242                   fi
23243                 fi
23244                 if test -z "$haveit"; then
23245                   for x in $CPPFLAGS $INCINTL; do
23246
23247   acl_save_prefix="$prefix"
23248   prefix="$acl_final_prefix"
23249   acl_save_exec_prefix="$exec_prefix"
23250   exec_prefix="$acl_final_exec_prefix"
23251   eval x=\"$x\"
23252   exec_prefix="$acl_save_exec_prefix"
23253   prefix="$acl_save_prefix"
23254
23255                     if test "X$x" = "X-I$additional_includedir"; then
23256                       haveit=yes
23257                       break
23258                     fi
23259                   done
23260                   if test -z "$haveit"; then
23261                     if test -d "$additional_includedir"; then
23262                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23263                     fi
23264                   fi
23265                 fi
23266               fi
23267             fi
23268                         if test -n "$found_la"; then
23269                                                         save_libdir="$libdir"
23270               case "$found_la" in
23271                 */* | *\\*) . "$found_la" ;;
23272                 *) . "./$found_la" ;;
23273               esac
23274               libdir="$save_libdir"
23275                             for dep in $dependency_libs; do
23276                 case "$dep" in
23277                   -L*)
23278                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23279                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23280                       haveit=
23281                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23282                         if test -n "$GCC"; then
23283                           case $host_os in
23284                             linux*) haveit=yes;;
23285                           esac
23286                         fi
23287                       fi
23288                       if test -z "$haveit"; then
23289                         haveit=
23290                         for x in $LDFLAGS $LIBINTL; do
23291
23292   acl_save_prefix="$prefix"
23293   prefix="$acl_final_prefix"
23294   acl_save_exec_prefix="$exec_prefix"
23295   exec_prefix="$acl_final_exec_prefix"
23296   eval x=\"$x\"
23297   exec_prefix="$acl_save_exec_prefix"
23298   prefix="$acl_save_prefix"
23299
23300                           if test "X$x" = "X-L$additional_libdir"; then
23301                             haveit=yes
23302                             break
23303                           fi
23304                         done
23305                         if test -z "$haveit"; then
23306                           if test -d "$additional_libdir"; then
23307                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23308                           fi
23309                         fi
23310                         haveit=
23311                         for x in $LDFLAGS $LTLIBINTL; do
23312
23313   acl_save_prefix="$prefix"
23314   prefix="$acl_final_prefix"
23315   acl_save_exec_prefix="$exec_prefix"
23316   exec_prefix="$acl_final_exec_prefix"
23317   eval x=\"$x\"
23318   exec_prefix="$acl_save_exec_prefix"
23319   prefix="$acl_save_prefix"
23320
23321                           if test "X$x" = "X-L$additional_libdir"; then
23322                             haveit=yes
23323                             break
23324                           fi
23325                         done
23326                         if test -z "$haveit"; then
23327                           if test -d "$additional_libdir"; then
23328                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23329                           fi
23330                         fi
23331                       fi
23332                     fi
23333                     ;;
23334                   -R*)
23335                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23336                     if test "$enable_rpath" != no; then
23337                                                                   haveit=
23338                       for x in $rpathdirs; do
23339                         if test "X$x" = "X$dir"; then
23340                           haveit=yes
23341                           break
23342                         fi
23343                       done
23344                       if test -z "$haveit"; then
23345                         rpathdirs="$rpathdirs $dir"
23346                       fi
23347                                                                   haveit=
23348                       for x in $ltrpathdirs; do
23349                         if test "X$x" = "X$dir"; then
23350                           haveit=yes
23351                           break
23352                         fi
23353                       done
23354                       if test -z "$haveit"; then
23355                         ltrpathdirs="$ltrpathdirs $dir"
23356                       fi
23357                     fi
23358                     ;;
23359                   -l*)
23360                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23361                     ;;
23362                   *.la)
23363                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23364                     ;;
23365                   *)
23366                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23367                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23368                     ;;
23369                 esac
23370               done
23371             fi
23372           else
23373                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23374             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23375           fi
23376         fi
23377       fi
23378     done
23379   done
23380   if test "X$rpathdirs" != "X"; then
23381     if test -n "$hardcode_libdir_separator"; then
23382                         alldirs=
23383       for found_dir in $rpathdirs; do
23384         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23385       done
23386             acl_save_libdir="$libdir"
23387       libdir="$alldirs"
23388       eval flag=\"$hardcode_libdir_flag_spec\"
23389       libdir="$acl_save_libdir"
23390       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23391     else
23392             for found_dir in $rpathdirs; do
23393         acl_save_libdir="$libdir"
23394         libdir="$found_dir"
23395         eval flag=\"$hardcode_libdir_flag_spec\"
23396         libdir="$acl_save_libdir"
23397         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23398       done
23399     fi
23400   fi
23401   if test "X$ltrpathdirs" != "X"; then
23402             for found_dir in $ltrpathdirs; do
23403       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23404     done
23405   fi
23406
23407           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23408 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
23409 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
23410   echo $ECHO_N "(cached) $ECHO_C" >&6
23411 else
23412   gt_save_CPPFLAGS="$CPPFLAGS"
23413             CPPFLAGS="$CPPFLAGS $INCINTL"
23414             gt_save_LIBS="$LIBS"
23415             LIBS="$LIBS $LIBINTL"
23416                         cat >conftest.$ac_ext <<_ACEOF
23417 /* confdefs.h.  */
23418 _ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h.  */
23422 #include <libintl.h>
23423 extern int _nl_msg_cat_cntr;
23424 extern
23425 #ifdef __cplusplus
23426 "C"
23427 #endif
23428 const char *_nl_expand_alias ();
23429 int
23430 main ()
23431 {
23432 bindtextdomain ("", "");
23433 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23434   ;
23435   return 0;
23436 }
23437 _ACEOF
23438 rm -f conftest.$ac_objext conftest$ac_exeext
23439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23440   (eval $ac_link) 2>conftest.er1
23441   ac_status=$?
23442   grep -v '^ *+' conftest.er1 >conftest.err
23443   rm -f conftest.er1
23444   cat conftest.err >&5
23445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446   (exit $ac_status); } &&
23447          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23449   (eval $ac_try) 2>&5
23450   ac_status=$?
23451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452   (exit $ac_status); }; } &&
23453          { ac_try='test -s conftest$ac_exeext'
23454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23455   (eval $ac_try) 2>&5
23456   ac_status=$?
23457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458   (exit $ac_status); }; }; then
23459   gt_cv_func_gnugettext2_libintl=yes
23460 else
23461   echo "$as_me: failed program was:" >&5
23462 sed 's/^/| /' conftest.$ac_ext >&5
23463
23464 gt_cv_func_gnugettext2_libintl=no
23465 fi
23466 rm -f conftest.err conftest.$ac_objext \
23467       conftest$ac_exeext conftest.$ac_ext
23468                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
23469               LIBS="$LIBS $LIBICONV"
23470               cat >conftest.$ac_ext <<_ACEOF
23471 /* confdefs.h.  */
23472 _ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h.  */
23476 #include <libintl.h>
23477 extern int _nl_msg_cat_cntr;
23478 extern
23479 #ifdef __cplusplus
23480 "C"
23481 #endif
23482 const char *_nl_expand_alias ();
23483 int
23484 main ()
23485 {
23486 bindtextdomain ("", "");
23487 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23488   ;
23489   return 0;
23490 }
23491 _ACEOF
23492 rm -f conftest.$ac_objext conftest$ac_exeext
23493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23494   (eval $ac_link) 2>conftest.er1
23495   ac_status=$?
23496   grep -v '^ *+' conftest.er1 >conftest.err
23497   rm -f conftest.er1
23498   cat conftest.err >&5
23499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500   (exit $ac_status); } &&
23501          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23503   (eval $ac_try) 2>&5
23504   ac_status=$?
23505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506   (exit $ac_status); }; } &&
23507          { ac_try='test -s conftest$ac_exeext'
23508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23509   (eval $ac_try) 2>&5
23510   ac_status=$?
23511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512   (exit $ac_status); }; }; then
23513   LIBINTL="$LIBINTL $LIBICONV"
23514                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23515                 gt_cv_func_gnugettext2_libintl=yes
23516
23517 else
23518   echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23520
23521 fi
23522 rm -f conftest.err conftest.$ac_objext \
23523       conftest$ac_exeext conftest.$ac_ext
23524             fi
23525             CPPFLAGS="$gt_save_CPPFLAGS"
23526             LIBS="$gt_save_LIBS"
23527 fi
23528 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
23529 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
23530         fi
23531
23532                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
23533            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
23534                 && test "$PACKAGE" != gettext-runtime \
23535                 && test "$PACKAGE" != gettext-tools; }; then
23536           gt_use_preinstalled_gnugettext=yes
23537         else
23538                     LIBINTL=
23539           LTLIBINTL=
23540           INCINTL=
23541         fi
23542
23543
23544
23545     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23546        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23547
23548 cat >>confdefs.h <<\_ACEOF
23549 #define ENABLE_NLS 1
23550 _ACEOF
23551
23552     else
23553       USE_NLS=no
23554     fi
23555   fi
23556
23557   echo "$as_me:$LINENO: checking whether to use NLS" >&5
23558 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
23559   echo "$as_me:$LINENO: result: $USE_NLS" >&5
23560 echo "${ECHO_T}$USE_NLS" >&6
23561   if test "$USE_NLS" = "yes"; then
23562     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23563 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
23564     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23565       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23566         gt_source="external libintl"
23567       else
23568         gt_source="libc"
23569       fi
23570     else
23571       gt_source="included intl directory"
23572     fi
23573     echo "$as_me:$LINENO: result: $gt_source" >&5
23574 echo "${ECHO_T}$gt_source" >&6
23575   fi
23576
23577   if test "$USE_NLS" = "yes"; then
23578
23579     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23580       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23581         echo "$as_me:$LINENO: checking how to link with libintl" >&5
23582 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
23583         echo "$as_me:$LINENO: result: $LIBINTL" >&5
23584 echo "${ECHO_T}$LIBINTL" >&6
23585
23586   for element in $INCINTL; do
23587     haveit=
23588     for x in $CPPFLAGS; do
23589
23590   acl_save_prefix="$prefix"
23591   prefix="$acl_final_prefix"
23592   acl_save_exec_prefix="$exec_prefix"
23593   exec_prefix="$acl_final_exec_prefix"
23594   eval x=\"$x\"
23595   exec_prefix="$acl_save_exec_prefix"
23596   prefix="$acl_save_prefix"
23597
23598       if test "X$x" = "X$element"; then
23599         haveit=yes
23600         break
23601       fi
23602     done
23603     if test -z "$haveit"; then
23604       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23605     fi
23606   done
23607
23608       fi
23609
23610
23611 cat >>confdefs.h <<\_ACEOF
23612 #define HAVE_GETTEXT 1
23613 _ACEOF
23614
23615
23616 cat >>confdefs.h <<\_ACEOF
23617 #define HAVE_DCGETTEXT 1
23618 _ACEOF
23619
23620     fi
23621
23622         POSUB=po
23623   fi
23624
23625
23626
23627     INTLLIBS="$LIBINTL"
23628
23629
23630
23631
23632
23633
23634
23635 else
23636   echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23638
23639 _nls_avail=no
23640 fi
23641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656 # Check whether --with-rundir or --without-rundir was given.
23657 if test "${with_rundir+set}" = set; then
23658   withval="$with_rundir"
23659    rundir=$withval
23660 else
23661    rundir=/usr/local/citadel
23662 fi;
23663
23664 cat >>confdefs.h <<_ACEOF
23665 #define RUNDIR "$rundir"
23666 _ACEOF
23667
23668
23669
23670
23671 # Check whether --with-staticdir or --without-staticdir was given.
23672 if test "${with_staticdir+set}" = set; then
23673   withval="$with_staticdir"
23674    staticdir=$withval
23675 else
23676    staticdir=$prefix
23677 fi;
23678
23679
23680
23681 # Check whether --with-staticrundir or --without-staticrundir was given.
23682 if test "${with_staticrundir+set}" = set; then
23683   withval="$with_staticrundir"
23684    staticrundir=$withval
23685 else
23686    staticrundir=$staticdir
23687 fi;
23688
23689
23690 cat >>confdefs.h <<_ACEOF
23691 #define DATADIR "$staticrundir"
23692 _ACEOF
23693
23694
23695
23696
23697 # Check whether --with-editordir or --without-editordir was given.
23698 if test "${with_editordir+set}" = set; then
23699   withval="$with_editordir"
23700    editordir=$withval
23701 else
23702    editordir=$staticrundir
23703 fi;
23704
23705
23706 cat >>confdefs.h <<_ACEOF
23707 #define EDITORDIR "$editordir"
23708 _ACEOF
23709
23710
23711
23712
23713                               ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"
23714 cat >confcache <<\_ACEOF
23715 # This file is a shell script that caches the results of configure
23716 # tests run on this system so they can be shared between configure
23717 # scripts and configure runs, see configure's option --config-cache.
23718 # It is not useful on other systems.  If it contains results you don't
23719 # want to keep, you may remove or edit it.
23720 #
23721 # config.status only pays attention to the cache file if you give it
23722 # the --recheck option to rerun configure.
23723 #
23724 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23725 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23726 # following values.
23727
23728 _ACEOF
23729
23730 # The following way of writing the cache mishandles newlines in values,
23731 # but we know of no workaround that is simple, portable, and efficient.
23732 # So, don't put newlines in cache variables' values.
23733 # Ultrix sh set writes to stderr and can't be redirected directly,
23734 # and sets the high bit in the cache file unless we assign to the vars.
23735 {
23736   (set) 2>&1 |
23737     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23738     *ac_space=\ *)
23739       # `set' does not quote correctly, so add quotes (double-quote
23740       # substitution turns \\\\ into \\, and sed turns \\ into \).
23741       sed -n \
23742         "s/'/'\\\\''/g;
23743           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23744       ;;
23745     *)
23746       # `set' quotes correctly as required by POSIX, so do not add quotes.
23747       sed -n \
23748         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23749       ;;
23750     esac;
23751 } |
23752   sed '
23753      t clear
23754      : clear
23755      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23756      t end
23757      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23758      : end' >>confcache
23759 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23760   if test -w $cache_file; then
23761     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23762     cat confcache >$cache_file
23763   else
23764     echo "not updating unwritable cache $cache_file"
23765   fi
23766 fi
23767 rm -f confcache
23768
23769 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23770 # Let make expand exec_prefix.
23771 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23772
23773 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23774 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23775 # trailing colons and then remove the whole line if VPATH becomes empty
23776 # (actually we leave an empty line to preserve line numbers).
23777 if test "x$srcdir" = x.; then
23778   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23779 s/:*\$(srcdir):*/:/;
23780 s/:*\${srcdir}:*/:/;
23781 s/:*@srcdir@:*/:/;
23782 s/^\([^=]*=[     ]*\):*/\1/;
23783 s/:*$//;
23784 s/^[^=]*=[       ]*$//;
23785 }'
23786 fi
23787
23788 DEFS=-DHAVE_CONFIG_H
23789
23790 ac_libobjs=
23791 ac_ltlibobjs=
23792 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23793   # 1. Remove the extension, and $U if already installed.
23794   ac_i=`echo "$ac_i" |
23795          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23796   # 2. Add them.
23797   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23798   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23799 done
23800 LIBOBJS=$ac_libobjs
23801
23802 LTLIBOBJS=$ac_ltlibobjs
23803
23804
23805 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23806   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23807 Usually this means the macro was only invoked conditionally." >&5
23808 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23809 Usually this means the macro was only invoked conditionally." >&2;}
23810    { (exit 1); exit 1; }; }
23811 fi
23812 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23813   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23814 Usually this means the macro was only invoked conditionally." >&5
23815 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23816 Usually this means the macro was only invoked conditionally." >&2;}
23817    { (exit 1); exit 1; }; }
23818 fi
23819 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23820   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23821 Usually this means the macro was only invoked conditionally." >&5
23822 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23823 Usually this means the macro was only invoked conditionally." >&2;}
23824    { (exit 1); exit 1; }; }
23825 fi
23826 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23827   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23828 Usually this means the macro was only invoked conditionally." >&5
23829 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23830 Usually this means the macro was only invoked conditionally." >&2;}
23831    { (exit 1); exit 1; }; }
23832 fi
23833
23834             ac_config_commands="$ac_config_commands po/stamp-it"
23835
23836
23837
23838 : ${CONFIG_STATUS=./config.status}
23839 ac_clean_files_save=$ac_clean_files
23840 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23841 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23842 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23843 cat >$CONFIG_STATUS <<_ACEOF
23844 #! $SHELL
23845 # Generated by $as_me.
23846 # Run this file to recreate the current configuration.
23847 # Compiler output produced by configure, useful for debugging
23848 # configure, is in config.log if it exists.
23849
23850 debug=false
23851 ac_cs_recheck=false
23852 ac_cs_silent=false
23853 SHELL=\${CONFIG_SHELL-$SHELL}
23854 _ACEOF
23855
23856 cat >>$CONFIG_STATUS <<\_ACEOF
23857 ## --------------------- ##
23858 ## M4sh Initialization.  ##
23859 ## --------------------- ##
23860
23861 # Be Bourne compatible
23862 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23863   emulate sh
23864   NULLCMD=:
23865   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23866   # is contrary to our usage.  Disable this feature.
23867   alias -g '${1+"$@"}'='"$@"'
23868 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23869   set -o posix
23870 fi
23871 DUALCASE=1; export DUALCASE # for MKS sh
23872
23873 # Support unset when possible.
23874 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23875   as_unset=unset
23876 else
23877   as_unset=false
23878 fi
23879
23880
23881 # Work around bugs in pre-3.0 UWIN ksh.
23882 $as_unset ENV MAIL MAILPATH
23883 PS1='$ '
23884 PS2='> '
23885 PS4='+ '
23886
23887 # NLS nuisances.
23888 for as_var in \
23889   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23890   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23891   LC_TELEPHONE LC_TIME
23892 do
23893   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23894     eval $as_var=C; export $as_var
23895   else
23896     $as_unset $as_var
23897   fi
23898 done
23899
23900 # Required to use basename.
23901 if expr a : '\(a\)' >/dev/null 2>&1; then
23902   as_expr=expr
23903 else
23904   as_expr=false
23905 fi
23906
23907 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23908   as_basename=basename
23909 else
23910   as_basename=false
23911 fi
23912
23913
23914 # Name of the executable.
23915 as_me=`$as_basename "$0" ||
23916 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23917          X"$0" : 'X\(//\)$' \| \
23918          X"$0" : 'X\(/\)$' \| \
23919          .     : '\(.\)' 2>/dev/null ||
23920 echo X/"$0" |
23921     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23922           /^X\/\(\/\/\)$/{ s//\1/; q; }
23923           /^X\/\(\/\).*/{ s//\1/; q; }
23924           s/.*/./; q'`
23925
23926
23927 # PATH needs CR, and LINENO needs CR and PATH.
23928 # Avoid depending upon Character Ranges.
23929 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23930 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23931 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23932 as_cr_digits='0123456789'
23933 as_cr_alnum=$as_cr_Letters$as_cr_digits
23934
23935 # The user is always right.
23936 if test "${PATH_SEPARATOR+set}" != set; then
23937   echo "#! /bin/sh" >conf$$.sh
23938   echo  "exit 0"   >>conf$$.sh
23939   chmod +x conf$$.sh
23940   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23941     PATH_SEPARATOR=';'
23942   else
23943     PATH_SEPARATOR=:
23944   fi
23945   rm -f conf$$.sh
23946 fi
23947
23948
23949   as_lineno_1=$LINENO
23950   as_lineno_2=$LINENO
23951   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23952   test "x$as_lineno_1" != "x$as_lineno_2" &&
23953   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23954   # Find who we are.  Look in the path if we contain no path at all
23955   # relative or not.
23956   case $0 in
23957     *[\\/]* ) as_myself=$0 ;;
23958     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23959 for as_dir in $PATH
23960 do
23961   IFS=$as_save_IFS
23962   test -z "$as_dir" && as_dir=.
23963   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23964 done
23965
23966        ;;
23967   esac
23968   # We did not find ourselves, most probably we were run as `sh COMMAND'
23969   # in which case we are not to be found in the path.
23970   if test "x$as_myself" = x; then
23971     as_myself=$0
23972   fi
23973   if test ! -f "$as_myself"; then
23974     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23975 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23976    { (exit 1); exit 1; }; }
23977   fi
23978   case $CONFIG_SHELL in
23979   '')
23980     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23981 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23982 do
23983   IFS=$as_save_IFS
23984   test -z "$as_dir" && as_dir=.
23985   for as_base in sh bash ksh sh5; do
23986          case $as_dir in
23987          /*)
23988            if ("$as_dir/$as_base" -c '
23989   as_lineno_1=$LINENO
23990   as_lineno_2=$LINENO
23991   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23992   test "x$as_lineno_1" != "x$as_lineno_2" &&
23993   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23994              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23995              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23996              CONFIG_SHELL=$as_dir/$as_base
23997              export CONFIG_SHELL
23998              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23999            fi;;
24000          esac
24001        done
24002 done
24003 ;;
24004   esac
24005
24006   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24007   # uniformly replaced by the line number.  The first 'sed' inserts a
24008   # line-number line before each line; the second 'sed' does the real
24009   # work.  The second script uses 'N' to pair each line-number line
24010   # with the numbered line, and appends trailing '-' during
24011   # substitution so that $LINENO is not a special case at line end.
24012   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24013   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24014   sed '=' <$as_myself |
24015     sed '
24016       N
24017       s,$,-,
24018       : loop
24019       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24020       t loop
24021       s,-$,,
24022       s,^['$as_cr_digits']*\n,,
24023     ' >$as_me.lineno &&
24024   chmod +x $as_me.lineno ||
24025     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24026 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24027    { (exit 1); exit 1; }; }
24028
24029   # Don't try to exec as it changes $[0], causing all sort of problems
24030   # (the dirname of $[0] is not the place where we might find the
24031   # original and so on.  Autoconf is especially sensible to this).
24032   . ./$as_me.lineno
24033   # Exit status is that of the last command.
24034   exit
24035 }
24036
24037
24038 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24039   *c*,-n*) ECHO_N= ECHO_C='
24040 ' ECHO_T='      ' ;;
24041   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24042   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24043 esac
24044
24045 if expr a : '\(a\)' >/dev/null 2>&1; then
24046   as_expr=expr
24047 else
24048   as_expr=false
24049 fi
24050
24051 rm -f conf$$ conf$$.exe conf$$.file
24052 echo >conf$$.file
24053 if ln -s conf$$.file conf$$ 2>/dev/null; then
24054   # We could just check for DJGPP; but this test a) works b) is more generic
24055   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24056   if test -f conf$$.exe; then
24057     # Don't use ln at all; we don't have any links
24058     as_ln_s='cp -p'
24059   else
24060     as_ln_s='ln -s'
24061   fi
24062 elif ln conf$$.file conf$$ 2>/dev/null; then
24063   as_ln_s=ln
24064 else
24065   as_ln_s='cp -p'
24066 fi
24067 rm -f conf$$ conf$$.exe conf$$.file
24068
24069 if mkdir -p . 2>/dev/null; then
24070   as_mkdir_p=:
24071 else
24072   test -d ./-p && rmdir ./-p
24073   as_mkdir_p=false
24074 fi
24075
24076 as_executable_p="test -f"
24077
24078 # Sed expression to map a string onto a valid CPP name.
24079 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24080
24081 # Sed expression to map a string onto a valid variable name.
24082 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24083
24084
24085 # IFS
24086 # We need space, tab and new line, in precisely that order.
24087 as_nl='
24088 '
24089 IFS="   $as_nl"
24090
24091 # CDPATH.
24092 $as_unset CDPATH
24093
24094 exec 6>&1
24095
24096 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24097 # report actual input values of CONFIG_FILES etc. instead of their
24098 # values after options handling.  Logging --version etc. is OK.
24099 exec 5>>config.log
24100 {
24101   echo
24102   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24103 ## Running $as_me. ##
24104 _ASBOX
24105 } >&5
24106 cat >&5 <<_CSEOF
24107
24108 This file was extended by webcit $as_me 6.80, which was
24109 generated by GNU Autoconf 2.59.  Invocation command line was
24110
24111   CONFIG_FILES    = $CONFIG_FILES
24112   CONFIG_HEADERS  = $CONFIG_HEADERS
24113   CONFIG_LINKS    = $CONFIG_LINKS
24114   CONFIG_COMMANDS = $CONFIG_COMMANDS
24115   $ $0 $@
24116
24117 _CSEOF
24118 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24119 echo >&5
24120 _ACEOF
24121
24122 # Files that config.status was made for.
24123 if test -n "$ac_config_files"; then
24124   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24125 fi
24126
24127 if test -n "$ac_config_headers"; then
24128   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24129 fi
24130
24131 if test -n "$ac_config_links"; then
24132   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24133 fi
24134
24135 if test -n "$ac_config_commands"; then
24136   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24137 fi
24138
24139 cat >>$CONFIG_STATUS <<\_ACEOF
24140
24141 ac_cs_usage="\
24142 \`$as_me' instantiates files from templates according to the
24143 current configuration.
24144
24145 Usage: $0 [OPTIONS] [FILE]...
24146
24147   -h, --help       print this help, then exit
24148   -V, --version    print version number, then exit
24149   -q, --quiet      do not print progress messages
24150   -d, --debug      don't remove temporary files
24151       --recheck    update $as_me by reconfiguring in the same conditions
24152   --file=FILE[:TEMPLATE]
24153                    instantiate the configuration file FILE
24154   --header=FILE[:TEMPLATE]
24155                    instantiate the configuration header FILE
24156
24157 Configuration files:
24158 $config_files
24159
24160 Configuration headers:
24161 $config_headers
24162
24163 Configuration commands:
24164 $config_commands
24165
24166 Report bugs to <bug-autoconf@gnu.org>."
24167 _ACEOF
24168
24169 cat >>$CONFIG_STATUS <<_ACEOF
24170 ac_cs_version="\\
24171 webcit config.status 6.80
24172 configured by $0, generated by GNU Autoconf 2.59,
24173   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24174
24175 Copyright (C) 2003 Free Software Foundation, Inc.
24176 This config.status script is free software; the Free Software Foundation
24177 gives unlimited permission to copy, distribute and modify it."
24178 srcdir=$srcdir
24179 INSTALL="$INSTALL"
24180 _ACEOF
24181
24182 cat >>$CONFIG_STATUS <<\_ACEOF
24183 # If no file are specified by the user, then we need to provide default
24184 # value.  By we need to know if files were specified by the user.
24185 ac_need_defaults=:
24186 while test $# != 0
24187 do
24188   case $1 in
24189   --*=*)
24190     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24191     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24192     ac_shift=:
24193     ;;
24194   -*)
24195     ac_option=$1
24196     ac_optarg=$2
24197     ac_shift=shift
24198     ;;
24199   *) # This is not an option, so the user has probably given explicit
24200      # arguments.
24201      ac_option=$1
24202      ac_need_defaults=false;;
24203   esac
24204
24205   case $ac_option in
24206   # Handling of the options.
24207 _ACEOF
24208 cat >>$CONFIG_STATUS <<\_ACEOF
24209   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24210     ac_cs_recheck=: ;;
24211   --version | --vers* | -V )
24212     echo "$ac_cs_version"; exit 0 ;;
24213   --he | --h)
24214     # Conflict between --help and --header
24215     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24216 Try \`$0 --help' for more information." >&5
24217 echo "$as_me: error: ambiguous option: $1
24218 Try \`$0 --help' for more information." >&2;}
24219    { (exit 1); exit 1; }; };;
24220   --help | --hel | -h )
24221     echo "$ac_cs_usage"; exit 0 ;;
24222   --debug | --d* | -d )
24223     debug=: ;;
24224   --file | --fil | --fi | --f )
24225     $ac_shift
24226     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24227     ac_need_defaults=false;;
24228   --header | --heade | --head | --hea )
24229     $ac_shift
24230     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24231     ac_need_defaults=false;;
24232   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24233   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24234     ac_cs_silent=: ;;
24235
24236   # This is an error.
24237   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24238 Try \`$0 --help' for more information." >&5
24239 echo "$as_me: error: unrecognized option: $1
24240 Try \`$0 --help' for more information." >&2;}
24241    { (exit 1); exit 1; }; } ;;
24242
24243   *) ac_config_targets="$ac_config_targets $1" ;;
24244
24245   esac
24246   shift
24247 done
24248
24249 ac_configure_extra_args=
24250
24251 if $ac_cs_silent; then
24252   exec 6>/dev/null
24253   ac_configure_extra_args="$ac_configure_extra_args --silent"
24254 fi
24255
24256 _ACEOF
24257 cat >>$CONFIG_STATUS <<_ACEOF
24258 if \$ac_cs_recheck; then
24259   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24260   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24261 fi
24262
24263 _ACEOF
24264
24265 cat >>$CONFIG_STATUS <<_ACEOF
24266 #
24267 # INIT-COMMANDS section.
24268 #
24269
24270 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24271 INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
24272 prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
24273 INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
24274 INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
24275 INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'
24276 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24277     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24278     # from automake.
24279     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24280     # Capture the value of LINGUAS because we need it to compute CATALOGS.
24281     LINGUAS="${LINGUAS-%UNSET%}"
24282
24283
24284 _ACEOF
24285
24286
24287
24288 cat >>$CONFIG_STATUS <<\_ACEOF
24289 for ac_config_target in $ac_config_targets
24290 do
24291   case "$ac_config_target" in
24292   # Handling of arguments.
24293   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24294   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24295   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24296   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24297   "intltool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
24298   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24299   "po/stamp-it" ) CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
24300   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24301   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24302 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24303    { (exit 1); exit 1; }; };;
24304   esac
24305 done
24306
24307 # If the user did not use the arguments to specify the items to instantiate,
24308 # then the envvar interface is used.  Set only those that are not.
24309 # We use the long form for the default assignment because of an extremely
24310 # bizarre bug on SunOS 4.1.3.
24311 if $ac_need_defaults; then
24312   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24313   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24314   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24315 fi
24316
24317 # Have a temporary directory for convenience.  Make it in the build tree
24318 # simply because there is no reason to put it here, and in addition,
24319 # creating and moving files from /tmp can sometimes cause problems.
24320 # Create a temporary directory, and hook for its removal unless debugging.
24321 $debug ||
24322 {
24323   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24324   trap '{ (exit 1); exit 1; }' 1 2 13 15
24325 }
24326
24327 # Create a (secure) tmp directory for tmp files.
24328
24329 {
24330   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24331   test -n "$tmp" && test -d "$tmp"
24332 }  ||
24333 {
24334   tmp=./confstat$$-$RANDOM
24335   (umask 077 && mkdir $tmp)
24336 } ||
24337 {
24338    echo "$me: cannot create a temporary directory in ." >&2
24339    { (exit 1); exit 1; }
24340 }
24341
24342 _ACEOF
24343
24344 cat >>$CONFIG_STATUS <<_ACEOF
24345
24346 #
24347 # CONFIG_FILES section.
24348 #
24349
24350 # No need to generate the scripts if there are no CONFIG_FILES.
24351 # This happens for instance when ./config.status config.h
24352 if test -n "\$CONFIG_FILES"; then
24353   # Protect against being on the right side of a sed subst in config.status.
24354   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24355    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24356 s,@SHELL@,$SHELL,;t t
24357 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24358 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24359 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24360 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24361 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24362 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24363 s,@exec_prefix@,$exec_prefix,;t t
24364 s,@prefix@,$prefix,;t t
24365 s,@program_transform_name@,$program_transform_name,;t t
24366 s,@bindir@,$bindir,;t t
24367 s,@sbindir@,$sbindir,;t t
24368 s,@libexecdir@,$libexecdir,;t t
24369 s,@datadir@,$datadir,;t t
24370 s,@sysconfdir@,$sysconfdir,;t t
24371 s,@sharedstatedir@,$sharedstatedir,;t t
24372 s,@localstatedir@,$localstatedir,;t t
24373 s,@libdir@,$libdir,;t t
24374 s,@includedir@,$includedir,;t t
24375 s,@oldincludedir@,$oldincludedir,;t t
24376 s,@infodir@,$infodir,;t t
24377 s,@mandir@,$mandir,;t t
24378 s,@build_alias@,$build_alias,;t t
24379 s,@host_alias@,$host_alias,;t t
24380 s,@target_alias@,$target_alias,;t t
24381 s,@DEFS@,$DEFS,;t t
24382 s,@ECHO_C@,$ECHO_C,;t t
24383 s,@ECHO_N@,$ECHO_N,;t t
24384 s,@ECHO_T@,$ECHO_T,;t t
24385 s,@LIBS@,$LIBS,;t t
24386 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24387 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24388 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24389 s,@CYGPATH_W@,$CYGPATH_W,;t t
24390 s,@PACKAGE@,$PACKAGE,;t t
24391 s,@VERSION@,$VERSION,;t t
24392 s,@ACLOCAL@,$ACLOCAL,;t t
24393 s,@AUTOCONF@,$AUTOCONF,;t t
24394 s,@AUTOMAKE@,$AUTOMAKE,;t t
24395 s,@AUTOHEADER@,$AUTOHEADER,;t t
24396 s,@MAKEINFO@,$MAKEINFO,;t t
24397 s,@install_sh@,$install_sh,;t t
24398 s,@STRIP@,$STRIP,;t t
24399 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24400 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24401 s,@mkdir_p@,$mkdir_p,;t t
24402 s,@AWK@,$AWK,;t t
24403 s,@SET_MAKE@,$SET_MAKE,;t t
24404 s,@am__leading_dot@,$am__leading_dot,;t t
24405 s,@AMTAR@,$AMTAR,;t t
24406 s,@am__tar@,$am__tar,;t t
24407 s,@am__untar@,$am__untar,;t t
24408 s,@build@,$build,;t t
24409 s,@build_cpu@,$build_cpu,;t t
24410 s,@build_vendor@,$build_vendor,;t t
24411 s,@build_os@,$build_os,;t t
24412 s,@host@,$host,;t t
24413 s,@host_cpu@,$host_cpu,;t t
24414 s,@host_vendor@,$host_vendor,;t t
24415 s,@host_os@,$host_os,;t t
24416 s,@CC@,$CC,;t t
24417 s,@CFLAGS@,$CFLAGS,;t t
24418 s,@LDFLAGS@,$LDFLAGS,;t t
24419 s,@CPPFLAGS@,$CPPFLAGS,;t t
24420 s,@ac_ct_CC@,$ac_ct_CC,;t t
24421 s,@EXEEXT@,$EXEEXT,;t t
24422 s,@OBJEXT@,$OBJEXT,;t t
24423 s,@DEPDIR@,$DEPDIR,;t t
24424 s,@am__include@,$am__include,;t t
24425 s,@am__quote@,$am__quote,;t t
24426 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24427 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24428 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24429 s,@CCDEPMODE@,$CCDEPMODE,;t t
24430 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24431 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24432 s,@EGREP@,$EGREP,;t t
24433 s,@LN_S@,$LN_S,;t t
24434 s,@ECHO@,$ECHO,;t t
24435 s,@AR@,$AR,;t t
24436 s,@ac_ct_AR@,$ac_ct_AR,;t t
24437 s,@RANLIB@,$RANLIB,;t t
24438 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24439 s,@CPP@,$CPP,;t t
24440 s,@CXX@,$CXX,;t t
24441 s,@CXXFLAGS@,$CXXFLAGS,;t t
24442 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24443 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24444 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24445 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24446 s,@CXXCPP@,$CXXCPP,;t t
24447 s,@F77@,$F77,;t t
24448 s,@FFLAGS@,$FFLAGS,;t t
24449 s,@ac_ct_F77@,$ac_ct_F77,;t t
24450 s,@LIBTOOL@,$LIBTOOL,;t t
24451 s,@PROG_SUBDIRS@,$PROG_SUBDIRS,;t t
24452 s,@SED@,$SED,;t t
24453 s,@PTHREAD_DEFS@,$PTHREAD_DEFS,;t t
24454 s,@LIBOBJS@,$LIBOBJS,;t t
24455 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
24456 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
24457 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
24458 s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t
24459 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
24460 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
24461 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
24462 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
24463 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
24464 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
24465 s,@INTLTOOL_XAM_RULE@,$INTLTOOL_XAM_RULE,;t t
24466 s,@INTLTOOL_KBD_RULE@,$INTLTOOL_KBD_RULE,;t t
24467 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
24468 s,@INTLTOOL_XML_NOMERGE_RULE@,$INTLTOOL_XML_NOMERGE_RULE,;t t
24469 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
24470 s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
24471 s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
24472 s,@INTLTOOL_SERVICE_RULE@,$INTLTOOL_SERVICE_RULE,;t t
24473 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
24474 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
24475 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
24476 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
24477 s,@INTLTOOL_ICONV@,$INTLTOOL_ICONV,;t t
24478 s,@INTLTOOL_MSGFMT@,$INTLTOOL_MSGFMT,;t t
24479 s,@INTLTOOL_MSGMERGE@,$INTLTOOL_MSGMERGE,;t t
24480 s,@INTLTOOL_XGETTEXT@,$INTLTOOL_XGETTEXT,;t t
24481 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24482 s,@USE_NLS@,$USE_NLS,;t t
24483 s,@MSGFMT@,$MSGFMT,;t t
24484 s,@GMSGFMT@,$GMSGFMT,;t t
24485 s,@XGETTEXT@,$XGETTEXT,;t t
24486 s,@MSGMERGE@,$MSGMERGE,;t t
24487 s,@LIBICONV@,$LIBICONV,;t t
24488 s,@LTLIBICONV@,$LTLIBICONV,;t t
24489 s,@INTLLIBS@,$INTLLIBS,;t t
24490 s,@LIBINTL@,$LIBINTL,;t t
24491 s,@LTLIBINTL@,$LTLIBINTL,;t t
24492 s,@POSUB@,$POSUB,;t t
24493 s,@SETUP_LIBS@,$SETUP_LIBS,;t t
24494 s,@staticdir@,$staticdir,;t t
24495 s,@editordir@,$editordir,;t t
24496 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24497 CEOF
24498
24499 _ACEOF
24500
24501   cat >>$CONFIG_STATUS <<\_ACEOF
24502   # Split the substitutions into bite-sized pieces for seds with
24503   # small command number limits, like on Digital OSF/1 and HP-UX.
24504   ac_max_sed_lines=48
24505   ac_sed_frag=1 # Number of current file.
24506   ac_beg=1 # First line for current file.
24507   ac_end=$ac_max_sed_lines # Line after last line for current file.
24508   ac_more_lines=:
24509   ac_sed_cmds=
24510   while $ac_more_lines; do
24511     if test $ac_beg -gt 1; then
24512       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24513     else
24514       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24515     fi
24516     if test ! -s $tmp/subs.frag; then
24517       ac_more_lines=false
24518     else
24519       # The purpose of the label and of the branching condition is to
24520       # speed up the sed processing (if there are no `@' at all, there
24521       # is no need to browse any of the substitutions).
24522       # These are the two extra sed commands mentioned above.
24523       (echo ':t
24524   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24525       if test -z "$ac_sed_cmds"; then
24526         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24527       else
24528         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24529       fi
24530       ac_sed_frag=`expr $ac_sed_frag + 1`
24531       ac_beg=$ac_end
24532       ac_end=`expr $ac_end + $ac_max_sed_lines`
24533     fi
24534   done
24535   if test -z "$ac_sed_cmds"; then
24536     ac_sed_cmds=cat
24537   fi
24538 fi # test -n "$CONFIG_FILES"
24539
24540 _ACEOF
24541 cat >>$CONFIG_STATUS <<\_ACEOF
24542 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24543   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24544   case $ac_file in
24545   - | *:- | *:-:* ) # input from stdin
24546         cat >$tmp/stdin
24547         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24548         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24549   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24550         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24551   * )   ac_file_in=$ac_file.in ;;
24552   esac
24553
24554   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24555   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24556 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24557          X"$ac_file" : 'X\(//\)[^/]' \| \
24558          X"$ac_file" : 'X\(//\)$' \| \
24559          X"$ac_file" : 'X\(/\)' \| \
24560          .     : '\(.\)' 2>/dev/null ||
24561 echo X"$ac_file" |
24562     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24563           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24564           /^X\(\/\/\)$/{ s//\1/; q; }
24565           /^X\(\/\).*/{ s//\1/; q; }
24566           s/.*/./; q'`
24567   { if $as_mkdir_p; then
24568     mkdir -p "$ac_dir"
24569   else
24570     as_dir="$ac_dir"
24571     as_dirs=
24572     while test ! -d "$as_dir"; do
24573       as_dirs="$as_dir $as_dirs"
24574       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24576          X"$as_dir" : 'X\(//\)[^/]' \| \
24577          X"$as_dir" : 'X\(//\)$' \| \
24578          X"$as_dir" : 'X\(/\)' \| \
24579          .     : '\(.\)' 2>/dev/null ||
24580 echo X"$as_dir" |
24581     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24582           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24583           /^X\(\/\/\)$/{ s//\1/; q; }
24584           /^X\(\/\).*/{ s//\1/; q; }
24585           s/.*/./; q'`
24586     done
24587     test ! -n "$as_dirs" || mkdir $as_dirs
24588   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24589 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24590    { (exit 1); exit 1; }; }; }
24591
24592   ac_builddir=.
24593
24594 if test "$ac_dir" != .; then
24595   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24596   # A "../" for each directory in $ac_dir_suffix.
24597   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24598 else
24599   ac_dir_suffix= ac_top_builddir=
24600 fi
24601
24602 case $srcdir in
24603   .)  # No --srcdir option.  We are building in place.
24604     ac_srcdir=.
24605     if test -z "$ac_top_builddir"; then
24606        ac_top_srcdir=.
24607     else
24608        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24609     fi ;;
24610   [\\/]* | ?:[\\/]* )  # Absolute path.
24611     ac_srcdir=$srcdir$ac_dir_suffix;
24612     ac_top_srcdir=$srcdir ;;
24613   *) # Relative path.
24614     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24615     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24616 esac
24617
24618 # Do not use `cd foo && pwd` to compute absolute paths, because
24619 # the directories may not exist.
24620 case `pwd` in
24621 .) ac_abs_builddir="$ac_dir";;
24622 *)
24623   case "$ac_dir" in
24624   .) ac_abs_builddir=`pwd`;;
24625   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24626   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24627   esac;;
24628 esac
24629 case $ac_abs_builddir in
24630 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24631 *)
24632   case ${ac_top_builddir}. in
24633   .) ac_abs_top_builddir=$ac_abs_builddir;;
24634   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24635   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24636   esac;;
24637 esac
24638 case $ac_abs_builddir in
24639 .) ac_abs_srcdir=$ac_srcdir;;
24640 *)
24641   case $ac_srcdir in
24642   .) ac_abs_srcdir=$ac_abs_builddir;;
24643   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24644   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24645   esac;;
24646 esac
24647 case $ac_abs_builddir in
24648 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24649 *)
24650   case $ac_top_srcdir in
24651   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24652   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24653   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24654   esac;;
24655 esac
24656
24657
24658   case $INSTALL in
24659   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24660   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24661   esac
24662
24663   # Let's still pretend it is `configure' which instantiates (i.e., don't
24664   # use $as_me), people would be surprised to read:
24665   #    /* config.h.  Generated by config.status.  */
24666   if test x"$ac_file" = x-; then
24667     configure_input=
24668   else
24669     configure_input="$ac_file.  "
24670   fi
24671   configure_input=$configure_input"Generated from `echo $ac_file_in |
24672                                      sed 's,.*/,,'` by configure."
24673
24674   # First look for the input files in the build tree, otherwise in the
24675   # src tree.
24676   ac_file_inputs=`IFS=:
24677     for f in $ac_file_in; do
24678       case $f in
24679       -) echo $tmp/stdin ;;
24680       [\\/$]*)
24681          # Absolute (can't be DOS-style, as IFS=:)
24682          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24683 echo "$as_me: error: cannot find input file: $f" >&2;}
24684    { (exit 1); exit 1; }; }
24685          echo "$f";;
24686       *) # Relative
24687          if test -f "$f"; then
24688            # Build tree
24689            echo "$f"
24690          elif test -f "$srcdir/$f"; then
24691            # Source tree
24692            echo "$srcdir/$f"
24693          else
24694            # /dev/null tree
24695            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24696 echo "$as_me: error: cannot find input file: $f" >&2;}
24697    { (exit 1); exit 1; }; }
24698          fi;;
24699       esac
24700     done` || { (exit 1); exit 1; }
24701
24702   if test x"$ac_file" != x-; then
24703     { echo "$as_me:$LINENO: creating $ac_file" >&5
24704 echo "$as_me: creating $ac_file" >&6;}
24705     rm -f "$ac_file"
24706   fi
24707 _ACEOF
24708 cat >>$CONFIG_STATUS <<_ACEOF
24709   sed "$ac_vpsub
24710 $extrasub
24711 _ACEOF
24712 cat >>$CONFIG_STATUS <<\_ACEOF
24713 :t
24714 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24715 s,@configure_input@,$configure_input,;t t
24716 s,@srcdir@,$ac_srcdir,;t t
24717 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24718 s,@top_srcdir@,$ac_top_srcdir,;t t
24719 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24720 s,@builddir@,$ac_builddir,;t t
24721 s,@abs_builddir@,$ac_abs_builddir,;t t
24722 s,@top_builddir@,$ac_top_builddir,;t t
24723 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24724 s,@INSTALL@,$ac_INSTALL,;t t
24725 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24726   rm -f $tmp/stdin
24727   if test x"$ac_file" != x-; then
24728     mv $tmp/out $ac_file
24729   else
24730     cat $tmp/out
24731     rm -f $tmp/out
24732   fi
24733
24734 done
24735 _ACEOF
24736 cat >>$CONFIG_STATUS <<\_ACEOF
24737
24738 #
24739 # CONFIG_HEADER section.
24740 #
24741
24742 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24743 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24744 #
24745 # ac_d sets the value in "#define NAME VALUE" lines.
24746 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24747 ac_dB='[         ].*$,\1#\2'
24748 ac_dC=' '
24749 ac_dD=',;t'
24750 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24751 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24752 ac_uB='$,\1#\2define\3'
24753 ac_uC=' '
24754 ac_uD=',;t'
24755
24756 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24757   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24758   case $ac_file in
24759   - | *:- | *:-:* ) # input from stdin
24760         cat >$tmp/stdin
24761         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24762         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24763   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24764         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24765   * )   ac_file_in=$ac_file.in ;;
24766   esac
24767
24768   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24769 echo "$as_me: creating $ac_file" >&6;}
24770
24771   # First look for the input files in the build tree, otherwise in the
24772   # src tree.
24773   ac_file_inputs=`IFS=:
24774     for f in $ac_file_in; do
24775       case $f in
24776       -) echo $tmp/stdin ;;
24777       [\\/$]*)
24778          # Absolute (can't be DOS-style, as IFS=:)
24779          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24780 echo "$as_me: error: cannot find input file: $f" >&2;}
24781    { (exit 1); exit 1; }; }
24782          # Do quote $f, to prevent DOS paths from being IFS'd.
24783          echo "$f";;
24784       *) # Relative
24785          if test -f "$f"; then
24786            # Build tree
24787            echo "$f"
24788          elif test -f "$srcdir/$f"; then
24789            # Source tree
24790            echo "$srcdir/$f"
24791          else
24792            # /dev/null tree
24793            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24794 echo "$as_me: error: cannot find input file: $f" >&2;}
24795    { (exit 1); exit 1; }; }
24796          fi;;
24797       esac
24798     done` || { (exit 1); exit 1; }
24799   # Remove the trailing spaces.
24800   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24801
24802 _ACEOF
24803
24804 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24805 # `conftest.undefs', that substitutes the proper values into
24806 # config.h.in to produce config.h.  The first handles `#define'
24807 # templates, and the second `#undef' templates.
24808 # And first: Protect against being on the right side of a sed subst in
24809 # config.status.  Protect against being in an unquoted here document
24810 # in config.status.
24811 rm -f conftest.defines conftest.undefs
24812 # Using a here document instead of a string reduces the quoting nightmare.
24813 # Putting comments in sed scripts is not portable.
24814 #
24815 # `end' is used to avoid that the second main sed command (meant for
24816 # 0-ary CPP macros) applies to n-ary macro definitions.
24817 # See the Autoconf documentation for `clear'.
24818 cat >confdef2sed.sed <<\_ACEOF
24819 s/[\\&,]/\\&/g
24820 s,[\\$`],\\&,g
24821 t clear
24822 : clear
24823 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24824 t end
24825 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24826 : end
24827 _ACEOF
24828 # If some macros were called several times there might be several times
24829 # the same #defines, which is useless.  Nevertheless, we may not want to
24830 # sort them, since we want the *last* AC-DEFINE to be honored.
24831 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24832 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24833 rm -f confdef2sed.sed
24834
24835 # This sed command replaces #undef with comments.  This is necessary, for
24836 # example, in the case of _POSIX_SOURCE, which is predefined and required
24837 # on some systems where configure will not decide to define it.
24838 cat >>conftest.undefs <<\_ACEOF
24839 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24840 _ACEOF
24841
24842 # Break up conftest.defines because some shells have a limit on the size
24843 # of here documents, and old seds have small limits too (100 cmds).
24844 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24845 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24846 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24847 echo '  :' >>$CONFIG_STATUS
24848 rm -f conftest.tail
24849 while grep . conftest.defines >/dev/null
24850 do
24851   # Write a limited-size here document to $tmp/defines.sed.
24852   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24853   # Speed up: don't consider the non `#define' lines.
24854   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24855   # Work around the forget-to-reset-the-flag bug.
24856   echo 't clr' >>$CONFIG_STATUS
24857   echo ': clr' >>$CONFIG_STATUS
24858   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24859   echo 'CEOF
24860   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24861   rm -f $tmp/in
24862   mv $tmp/out $tmp/in
24863 ' >>$CONFIG_STATUS
24864   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24865   rm -f conftest.defines
24866   mv conftest.tail conftest.defines
24867 done
24868 rm -f conftest.defines
24869 echo '  fi # grep' >>$CONFIG_STATUS
24870 echo >>$CONFIG_STATUS
24871
24872 # Break up conftest.undefs because some shells have a limit on the size
24873 # of here documents, and old seds have small limits too (100 cmds).
24874 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24875 rm -f conftest.tail
24876 while grep . conftest.undefs >/dev/null
24877 do
24878   # Write a limited-size here document to $tmp/undefs.sed.
24879   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24880   # Speed up: don't consider the non `#undef'
24881   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24882   # Work around the forget-to-reset-the-flag bug.
24883   echo 't clr' >>$CONFIG_STATUS
24884   echo ': clr' >>$CONFIG_STATUS
24885   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24886   echo 'CEOF
24887   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24888   rm -f $tmp/in
24889   mv $tmp/out $tmp/in
24890 ' >>$CONFIG_STATUS
24891   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24892   rm -f conftest.undefs
24893   mv conftest.tail conftest.undefs
24894 done
24895 rm -f conftest.undefs
24896
24897 cat >>$CONFIG_STATUS <<\_ACEOF
24898   # Let's still pretend it is `configure' which instantiates (i.e., don't
24899   # use $as_me), people would be surprised to read:
24900   #    /* config.h.  Generated by config.status.  */
24901   if test x"$ac_file" = x-; then
24902     echo "/* Generated by configure.  */" >$tmp/config.h
24903   else
24904     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24905   fi
24906   cat $tmp/in >>$tmp/config.h
24907   rm -f $tmp/in
24908   if test x"$ac_file" != x-; then
24909     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24910       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24911 echo "$as_me: $ac_file is unchanged" >&6;}
24912     else
24913       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24914 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24915          X"$ac_file" : 'X\(//\)[^/]' \| \
24916          X"$ac_file" : 'X\(//\)$' \| \
24917          X"$ac_file" : 'X\(/\)' \| \
24918          .     : '\(.\)' 2>/dev/null ||
24919 echo X"$ac_file" |
24920     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24921           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24922           /^X\(\/\/\)$/{ s//\1/; q; }
24923           /^X\(\/\).*/{ s//\1/; q; }
24924           s/.*/./; q'`
24925       { if $as_mkdir_p; then
24926     mkdir -p "$ac_dir"
24927   else
24928     as_dir="$ac_dir"
24929     as_dirs=
24930     while test ! -d "$as_dir"; do
24931       as_dirs="$as_dir $as_dirs"
24932       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24933 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24934          X"$as_dir" : 'X\(//\)[^/]' \| \
24935          X"$as_dir" : 'X\(//\)$' \| \
24936          X"$as_dir" : 'X\(/\)' \| \
24937          .     : '\(.\)' 2>/dev/null ||
24938 echo X"$as_dir" |
24939     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24940           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24941           /^X\(\/\/\)$/{ s//\1/; q; }
24942           /^X\(\/\).*/{ s//\1/; q; }
24943           s/.*/./; q'`
24944     done
24945     test ! -n "$as_dirs" || mkdir $as_dirs
24946   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24947 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24948    { (exit 1); exit 1; }; }; }
24949
24950       rm -f $ac_file
24951       mv $tmp/config.h $ac_file
24952     fi
24953   else
24954     cat $tmp/config.h
24955     rm -f $tmp/config.h
24956   fi
24957 # Compute $ac_file's index in $config_headers.
24958 _am_stamp_count=1
24959 for _am_header in $config_headers :; do
24960   case $_am_header in
24961     $ac_file | $ac_file:* )
24962       break ;;
24963     * )
24964       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24965   esac
24966 done
24967 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24968 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24969          X$ac_file : 'X\(//\)[^/]' \| \
24970          X$ac_file : 'X\(//\)$' \| \
24971          X$ac_file : 'X\(/\)' \| \
24972          .     : '\(.\)' 2>/dev/null ||
24973 echo X$ac_file |
24974     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24975           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24976           /^X\(\/\/\)$/{ s//\1/; q; }
24977           /^X\(\/\).*/{ s//\1/; q; }
24978           s/.*/./; q'`/stamp-h$_am_stamp_count
24979 done
24980 _ACEOF
24981 cat >>$CONFIG_STATUS <<\_ACEOF
24982
24983 #
24984 # CONFIG_COMMANDS section.
24985 #
24986 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24987   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24988   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24989   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24990 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24991          X"$ac_dest" : 'X\(//\)[^/]' \| \
24992          X"$ac_dest" : 'X\(//\)$' \| \
24993          X"$ac_dest" : 'X\(/\)' \| \
24994          .     : '\(.\)' 2>/dev/null ||
24995 echo X"$ac_dest" |
24996     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24997           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24998           /^X\(\/\/\)$/{ s//\1/; q; }
24999           /^X\(\/\).*/{ s//\1/; q; }
25000           s/.*/./; q'`
25001   { if $as_mkdir_p; then
25002     mkdir -p "$ac_dir"
25003   else
25004     as_dir="$ac_dir"
25005     as_dirs=
25006     while test ! -d "$as_dir"; do
25007       as_dirs="$as_dir $as_dirs"
25008       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25009 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25010          X"$as_dir" : 'X\(//\)[^/]' \| \
25011          X"$as_dir" : 'X\(//\)$' \| \
25012          X"$as_dir" : 'X\(/\)' \| \
25013          .     : '\(.\)' 2>/dev/null ||
25014 echo X"$as_dir" |
25015     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25016           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25017           /^X\(\/\/\)$/{ s//\1/; q; }
25018           /^X\(\/\).*/{ s//\1/; q; }
25019           s/.*/./; q'`
25020     done
25021     test ! -n "$as_dirs" || mkdir $as_dirs
25022   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25023 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25024    { (exit 1); exit 1; }; }; }
25025
25026   ac_builddir=.
25027
25028 if test "$ac_dir" != .; then
25029   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25030   # A "../" for each directory in $ac_dir_suffix.
25031   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25032 else
25033   ac_dir_suffix= ac_top_builddir=
25034 fi
25035
25036 case $srcdir in
25037   .)  # No --srcdir option.  We are building in place.
25038     ac_srcdir=.
25039     if test -z "$ac_top_builddir"; then
25040        ac_top_srcdir=.
25041     else
25042        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25043     fi ;;
25044   [\\/]* | ?:[\\/]* )  # Absolute path.
25045     ac_srcdir=$srcdir$ac_dir_suffix;
25046     ac_top_srcdir=$srcdir ;;
25047   *) # Relative path.
25048     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25049     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25050 esac
25051
25052 # Do not use `cd foo && pwd` to compute absolute paths, because
25053 # the directories may not exist.
25054 case `pwd` in
25055 .) ac_abs_builddir="$ac_dir";;
25056 *)
25057   case "$ac_dir" in
25058   .) ac_abs_builddir=`pwd`;;
25059   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25060   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25061   esac;;
25062 esac
25063 case $ac_abs_builddir in
25064 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25065 *)
25066   case ${ac_top_builddir}. in
25067   .) ac_abs_top_builddir=$ac_abs_builddir;;
25068   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25069   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25070   esac;;
25071 esac
25072 case $ac_abs_builddir in
25073 .) ac_abs_srcdir=$ac_srcdir;;
25074 *)
25075   case $ac_srcdir in
25076   .) ac_abs_srcdir=$ac_abs_builddir;;
25077   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25078   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25079   esac;;
25080 esac
25081 case $ac_abs_builddir in
25082 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25083 *)
25084   case $ac_top_srcdir in
25085   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25086   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25087   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25088   esac;;
25089 esac
25090
25091
25092   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25093 echo "$as_me: executing $ac_dest commands" >&6;}
25094   case $ac_dest in
25095     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25096   # Strip MF so we end up with the name of the file.
25097   mf=`echo "$mf" | sed -e 's/:.*$//'`
25098   # Check whether this is an Automake generated Makefile or not.
25099   # We used to match only the files named `Makefile.in', but
25100   # some people rename them; so instead we look at the file content.
25101   # Grep'ing the first line is not enough: some people post-process
25102   # each Makefile.in and add a new line on top of each file to say so.
25103   # So let's grep whole file.
25104   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25105     dirpart=`(dirname "$mf") 2>/dev/null ||
25106 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25107          X"$mf" : 'X\(//\)[^/]' \| \
25108          X"$mf" : 'X\(//\)$' \| \
25109          X"$mf" : 'X\(/\)' \| \
25110          .     : '\(.\)' 2>/dev/null ||
25111 echo X"$mf" |
25112     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25113           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25114           /^X\(\/\/\)$/{ s//\1/; q; }
25115           /^X\(\/\).*/{ s//\1/; q; }
25116           s/.*/./; q'`
25117   else
25118     continue
25119   fi
25120   # Extract the definition of DEPDIR, am__include, and am__quote
25121   # from the Makefile without running `make'.
25122   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25123   test -z "$DEPDIR" && continue
25124   am__include=`sed -n 's/^am__include = //p' < "$mf"`
25125   test -z "am__include" && continue
25126   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25127   # When using ansi2knr, U may be empty or an underscore; expand it
25128   U=`sed -n 's/^U = //p' < "$mf"`
25129   # Find all dependency output files, they are included files with
25130   # $(DEPDIR) in their names.  We invoke sed twice because it is the
25131   # simplest approach to changing $(DEPDIR) to its actual value in the
25132   # expansion.
25133   for file in `sed -n "
25134     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25135        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25136     # Make sure the directory exists.
25137     test -f "$dirpart/$file" && continue
25138     fdir=`(dirname "$file") 2>/dev/null ||
25139 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25140          X"$file" : 'X\(//\)[^/]' \| \
25141          X"$file" : 'X\(//\)$' \| \
25142          X"$file" : 'X\(/\)' \| \
25143          .     : '\(.\)' 2>/dev/null ||
25144 echo X"$file" |
25145     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25146           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25147           /^X\(\/\/\)$/{ s//\1/; q; }
25148           /^X\(\/\).*/{ s//\1/; q; }
25149           s/.*/./; q'`
25150     { if $as_mkdir_p; then
25151     mkdir -p $dirpart/$fdir
25152   else
25153     as_dir=$dirpart/$fdir
25154     as_dirs=
25155     while test ! -d "$as_dir"; do
25156       as_dirs="$as_dir $as_dirs"
25157       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25159          X"$as_dir" : 'X\(//\)[^/]' \| \
25160          X"$as_dir" : 'X\(//\)$' \| \
25161          X"$as_dir" : 'X\(/\)' \| \
25162          .     : '\(.\)' 2>/dev/null ||
25163 echo X"$as_dir" |
25164     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25165           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25166           /^X\(\/\/\)$/{ s//\1/; q; }
25167           /^X\(\/\).*/{ s//\1/; q; }
25168           s/.*/./; q'`
25169     done
25170     test ! -n "$as_dirs" || mkdir $as_dirs
25171   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25172 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25173    { (exit 1); exit 1; }; }; }
25174
25175     # echo "creating $dirpart/$file"
25176     echo '# dummy' > "$dirpart/$file"
25177   done
25178 done
25179  ;;
25180     intltool )
25181
25182 for file in intltool-extract intltool-merge intltool-update; do
25183   sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
25184       -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
25185       -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
25186       -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
25187       -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
25188       -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
25189       -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
25190         < ${ac_aux_dir}/${file}.in > ${file}.out
25191   if cmp -s ${file} ${file}.out 2>/dev/null; then
25192     rm -f ${file}.out
25193   else
25194     mv -f ${file}.out ${file}
25195   fi
25196   chmod ugo+x ${file}
25197   chmod u+w ${file}
25198 done
25199
25200  ;;
25201     default-1 )
25202     for ac_file in $CONFIG_FILES; do
25203       # Support "outfile[:infile[:infile...]]"
25204       case "$ac_file" in
25205         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25206       esac
25207       # PO directories have a Makefile.in generated from Makefile.in.in.
25208       case "$ac_file" in */Makefile.in)
25209         # Adjust a relative srcdir.
25210         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25211         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25212         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25213         # In autoconf-2.13 it is called $ac_given_srcdir.
25214         # In autoconf-2.50 it is called $srcdir.
25215         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25216         case "$ac_given_srcdir" in
25217           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25218           /*) top_srcdir="$ac_given_srcdir" ;;
25219           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
25220         esac
25221         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25222           rm -f "$ac_dir/POTFILES"
25223           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25224           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25225           POMAKEFILEDEPS="POTFILES.in"
25226           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25227           # on $ac_dir but don't depend on user-specified configuration
25228           # parameters.
25229           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25230             # The LINGUAS file contains the set of available languages.
25231             if test -n "$OBSOLETE_ALL_LINGUAS"; then
25232               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25233             fi
25234             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25235             # Hide the ALL_LINGUAS assigment from automake.
25236             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25237             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25238           else
25239             # The set of available languages was given in configure.in.
25240             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25241           fi
25242           # Compute POFILES
25243           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25244           # Compute UPDATEPOFILES
25245           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25246           # Compute DUMMYPOFILES
25247           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25248           # Compute GMOFILES
25249           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25250           case "$ac_given_srcdir" in
25251             .) srcdirpre= ;;
25252             *) srcdirpre='$(srcdir)/' ;;
25253           esac
25254           POFILES=
25255           UPDATEPOFILES=
25256           DUMMYPOFILES=
25257           GMOFILES=
25258           for lang in $ALL_LINGUAS; do
25259             POFILES="$POFILES $srcdirpre$lang.po"
25260             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25261             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25262             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25263           done
25264           # CATALOGS depends on both $ac_dir and the user's LINGUAS
25265           # environment variable.
25266           INST_LINGUAS=
25267           if test -n "$ALL_LINGUAS"; then
25268             for presentlang in $ALL_LINGUAS; do
25269               useit=no
25270               if test "%UNSET%" != "$LINGUAS"; then
25271                 desiredlanguages="$LINGUAS"
25272               else
25273                 desiredlanguages="$ALL_LINGUAS"
25274               fi
25275               for desiredlang in $desiredlanguages; do
25276                 # Use the presentlang catalog if desiredlang is
25277                 #   a. equal to presentlang, or
25278                 #   b. a variant of presentlang (because in this case,
25279                 #      presentlang can be used as a fallback for messages
25280                 #      which are not translated in the desiredlang catalog).
25281                 case "$desiredlang" in
25282                   "$presentlang"*) useit=yes;;
25283                 esac
25284               done
25285               if test $useit = yes; then
25286                 INST_LINGUAS="$INST_LINGUAS $presentlang"
25287               fi
25288             done
25289           fi
25290           CATALOGS=
25291           if test -n "$INST_LINGUAS"; then
25292             for lang in $INST_LINGUAS; do
25293               CATALOGS="$CATALOGS $lang.gmo"
25294             done
25295           fi
25296           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25297           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
25298           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25299             if test -f "$f"; then
25300               case "$f" in
25301                 *.orig | *.bak | *~) ;;
25302                 *) cat "$f" >> "$ac_dir/Makefile" ;;
25303               esac
25304             fi
25305           done
25306         fi
25307         ;;
25308       esac
25309     done ;;
25310     po/stamp-it )
25311     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
25312     >"po/stamp-it.tmp"
25313     sed '/^#/d
25314          s/^[[].*] *//
25315          /^[    ]*$/d
25316         '"s|^|  $ac_top_srcdir/|" \
25317       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
25318
25319     if test ! -f "po/Makefile"; then
25320       { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
25321 echo "$as_me: error: po/Makefile is not ready." >&2;}
25322    { (exit 1); exit 1; }; }
25323     fi
25324     mv "po/Makefile" "po/Makefile.tmp"
25325     sed '/^POTFILES =/,/[^\\]$/ {
25326                 /^POTFILES =/!d
25327                 r po/POTFILES
25328           }
25329          ' "po/Makefile.tmp" >"po/Makefile"
25330     rm -f "po/Makefile.tmp"
25331     mv "po/stamp-it.tmp" "po/stamp-it"
25332    ;;
25333   esac
25334 done
25335 _ACEOF
25336
25337 cat >>$CONFIG_STATUS <<\_ACEOF
25338
25339 { (exit 0); exit 0; }
25340 _ACEOF
25341 chmod +x $CONFIG_STATUS
25342 ac_clean_files=$ac_clean_files_save
25343
25344
25345 # configure is writing to config.log, and then calls config.status.
25346 # config.status does its own redirection, appending to config.log.
25347 # Unfortunately, on DOS this fails, as config.log is still kept open
25348 # by configure, so config.status won't be able to write to it; its
25349 # output is simply discarded.  So we exec the FD to /dev/null,
25350 # effectively closing config.log, so it can be properly (re)opened and
25351 # appended to by config.status.  When coming back to configure, we
25352 # need to make the FD available again.
25353 if test "$no_create" != yes; then
25354   ac_cs_success=:
25355   ac_config_status_args=
25356   test "$silent" = yes &&
25357     ac_config_status_args="$ac_config_status_args --quiet"
25358   exec 5>/dev/null
25359   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25360   exec 5>>config.log
25361   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25362   # would make configure fail if this is the last instruction.
25363   $ac_cs_success || { (exit 1); exit 1; }
25364 fi
25365
25366
25367
25368 echo ------------------------------------------------------------------------
25369 echo 'nls is available? '$_nls_avail
25370 echo 'zlib compression:                ' $ok_zlib
25371 echo 'Calendar support:                ' $ok_libical
25372 echo 'Character set conversion support:' $ok_iconv
25373 echo 'National language support:       ' $ok_nls
25374 echo