Update standards version to 3.8.3
[shibboleth/sp.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for shibboleth 2.2.1.
4 #
5 # Report bugs to <shibboleth-users@internet2.edu>.
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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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='shibboleth'
425 PACKAGE_TARNAME='shibboleth'
426 PACKAGE_VERSION='2.2.1'
427 PACKAGE_STRING='shibboleth 2.2.1'
428 PACKAGE_BUGREPORT='shibboleth-users@internet2.edu'
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_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 DX_PROJECT DX_CONFIG DX_DOCDIR DX_ENV DX_FLAG_doc DX_DOXYGEN ac_pt_DX_DOXYGEN DX_PERL ac_pt_DX_PERL DX_COND_doc_TRUE DX_COND_doc_FALSE DX_FLAG_dot DX_DOT ac_pt_DX_DOT DX_COND_dot_TRUE DX_COND_dot_FALSE DX_FLAG_man DX_COND_man_TRUE DX_COND_man_FALSE DX_FLAG_rtf DX_COND_rtf_TRUE DX_COND_rtf_FALSE DX_FLAG_xml DX_COND_xml_TRUE DX_COND_xml_FALSE DX_FLAG_chm DX_HHC ac_pt_DX_HHC DX_COND_chm_TRUE DX_COND_chm_FALSE DX_FLAG_chi DX_COND_chi_TRUE DX_COND_chi_FALSE DX_FLAG_html DX_COND_html_TRUE DX_COND_html_FALSE DX_FLAG_ps DX_LATEX ac_pt_DX_LATEX DX_MAKEINDEX ac_pt_DX_MAKEINDEX DX_DVIPS ac_pt_DX_DVIPS DX_EGREP ac_pt_DX_EGREP DX_COND_ps_TRUE DX_COND_ps_FALSE DX_FLAG_pdf DX_PDFLATEX ac_pt_DX_PDFLATEX DX_COND_pdf_TRUE DX_COND_pdf_FALSE DX_COND_latex_TRUE DX_COND_latex_FALSE DOXYGEN_PAPER_SIZE 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS PKG_CONFIG LOG4SHIB_CONFIG LOG4CPP_CONFIG XMLTOOLINGXMLDIR OPENSAMLXMLDIR LITE_LIBS XMLSEC_LIBS NSAPI_INCLUDE BUILD_NSAPI_TRUE BUILD_NSAPI_FALSE FASTCGI_INCLUDE FASTCGI_LDFLAGS FASTCGI_LIBS BUILD_FASTCGI_TRUE BUILD_FASTCGI_FALSE MEMCACHED_INCLUDE MEMCACHED_LDFLAGS MEMCACHED_LIBS BUILD_MEMCACHED_TRUE BUILD_MEMCACHED_FALSE xs APXS APXS_CFLAGS APXS_INCLUDE APXS2 APR_CONFIG APXS2_CFLAGS APXS2_INCLUDE APXS22 APR1_CONFIG APXS22_CFLAGS APXS22_INCLUDE BUILD_AP13_TRUE BUILD_AP13_FALSE BUILD_AP20_TRUE BUILD_AP20_FALSE BUILD_AP22_TRUE BUILD_AP22_FALSE ODBC_CONFIG ODBC_CFLAGS ODBC_LIBS WANT_SUBDIRS LIBOBJS LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_DOXYGEN_PAPER_SIZE_set=${DOXYGEN_PAPER_SIZE+set}
909 ac_env_DOXYGEN_PAPER_SIZE_value=$DOXYGEN_PAPER_SIZE
910 ac_cv_env_DOXYGEN_PAPER_SIZE_set=${DOXYGEN_PAPER_SIZE+set}
911 ac_cv_env_DOXYGEN_PAPER_SIZE_value=$DOXYGEN_PAPER_SIZE
912 ac_env_CC_set=${CC+set}
913 ac_env_CC_value=$CC
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXXCPP_set=${CXXCPP+set}
941 ac_env_CXXCPP_value=$CXXCPP
942 ac_cv_env_CXXCPP_set=${CXXCPP+set}
943 ac_cv_env_CXXCPP_value=$CXXCPP
944 ac_env_F77_set=${F77+set}
945 ac_env_F77_value=$F77
946 ac_cv_env_F77_set=${F77+set}
947 ac_cv_env_F77_value=$F77
948 ac_env_FFLAGS_set=${FFLAGS+set}
949 ac_env_FFLAGS_value=$FFLAGS
950 ac_cv_env_FFLAGS_set=${FFLAGS+set}
951 ac_cv_env_FFLAGS_value=$FFLAGS
952
953 #
954 # Report the --help message.
955 #
956 if test "$ac_init_help" = "long"; then
957   # Omit some internal or obsolete options to make the list less imposing.
958   # This message is too long to be a string in the A/UX 3.1 sh.
959   cat <<_ACEOF
960 \`configure' configures shibboleth 2.2.1 to adapt to many kinds of systems.
961
962 Usage: $0 [OPTION]... [VAR=VALUE]...
963
964 To assign environment variables (e.g., CC, CFLAGS...), specify them as
965 VAR=VALUE.  See below for descriptions of some of the useful variables.
966
967 Defaults for the options are specified in brackets.
968
969 Configuration:
970   -h, --help              display this help and exit
971       --help=short        display options specific to this package
972       --help=recursive    display the short help of all the included packages
973   -V, --version           display version information and exit
974   -q, --quiet, --silent   do not print \`checking...' messages
975       --cache-file=FILE   cache test results in FILE [disabled]
976   -C, --config-cache      alias for \`--cache-file=config.cache'
977   -n, --no-create         do not create output files
978       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
979
980 _ACEOF
981
982   cat <<_ACEOF
983 Installation directories:
984   --prefix=PREFIX         install architecture-independent files in PREFIX
985                           [$ac_default_prefix]
986   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
987                           [PREFIX]
988
989 By default, \`make install' will install all the files in
990 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
991 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
992 for instance \`--prefix=\$HOME'.
993
994 For better control, use the options below.
995
996 Fine tuning of the installation directories:
997   --bindir=DIR           user executables [EPREFIX/bin]
998   --sbindir=DIR          system admin executables [EPREFIX/sbin]
999   --libexecdir=DIR       program executables [EPREFIX/libexec]
1000   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1001   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1002   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1003   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1004   --libdir=DIR           object code libraries [EPREFIX/lib]
1005   --includedir=DIR       C header files [PREFIX/include]
1006   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1007   --infodir=DIR          info documentation [PREFIX/info]
1008   --mandir=DIR           man documentation [PREFIX/man]
1009 _ACEOF
1010
1011   cat <<\_ACEOF
1012
1013 Program names:
1014   --program-prefix=PREFIX            prepend PREFIX to installed program names
1015   --program-suffix=SUFFIX            append SUFFIX to installed program names
1016   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1017
1018 System types:
1019   --build=BUILD     configure for building on BUILD [guessed]
1020   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1021 _ACEOF
1022 fi
1023
1024 if test -n "$ac_init_help"; then
1025   case $ac_init_help in
1026      short | recursive ) echo "Configuration of shibboleth 2.2.1:";;
1027    esac
1028   cat <<\_ACEOF
1029
1030 Optional Features:
1031   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1032   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1033   --disable-doxygen-doc   don't generate any doxygen documentation
1034   --disable-doxygen-dot   don't generate graphics for doxygen documentation
1035   --enable-doxygen-man    generate doxygen manual pages
1036   --enable-doxygen-rtf    generate doxygen RTF documentation
1037   --enable-doxygen-xml    generate doxygen XML documentation
1038   --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1039   --enable-doxygen-chi    generate doxygen seperate compressed HTML help index
1040                           file
1041   --disable-doxygen-html  don't generate doxygen plain HTML documentation
1042   --enable-doxygen-ps     generate doxygen PostScript documentation
1043   --enable-doxygen-pdf    generate doxygen PDF documentation
1044   --enable-debug          Have GCC compile with symbols (Default = no)
1045   --disable-dependency-tracking  speeds up one-time build
1046   --enable-dependency-tracking   do not reject slow dependency extractors
1047   --enable-static[=PKGS]
1048                           build static libraries [default=no]
1049   --enable-shared[=PKGS]
1050                           build shared libraries [default=yes]
1051   --enable-fast-install[=PKGS]
1052                           optimize for fast installation [default=yes]
1053   --disable-libtool-lock  avoid locking (might break parallel builds)
1054   --disable-adfs          don't build the ADFS module
1055   --enable-apache-13      enable the Apache 1.3 module
1056   --enable-apache-20      enable the Apache 2.0 module
1057   --enable-apache-22      enable the Apache 2.2 module
1058   --disable-odbc          disable the ODBC Storage Service
1059
1060 Optional Packages:
1061   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1062   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1063   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1064   --with-pic              try to use only PIC/non-PIC objects [default=use
1065                           both]
1066   --with-tags[=TAGS]
1067                           include additional configurations [automatic]
1068   --with-openssl=PATH     where openssl is installed
1069   --with-log4shib=PATH    where log4shib-config is installed
1070   --with-log4cpp=PATH     where log4cpp-config is installed
1071   --with-xerces=PATH      where xerces-c is installed
1072   --with-xmltooling=PATH  where xmltooling-c is installed
1073   --with-xmlsec=PATH      where xmlsec is installed
1074   --with-saml=PATH        where saml is installed
1075   --with-nsapi=DIR        Build NSAPI module for Netscape/iPlanet/SunONE
1076   --with-fastcgi=DIR      Build FastCGI support
1077   --with-memcached=DIR    Build Memcached support
1078   --with-apxs=FILE        Specifies where to find the Apache 1.3 apxs script.
1079   --with-apxs2=FILE       Specifies where to find the Apache 2.0 apxs script.
1080   --with-apr=PATH         where apr-config is installed
1081   --with-apxs22=FILE      Specifies where to find the Apache 2.2 apxs script.
1082   --with-apr1=PATH        where apr-1-config is installed
1083   --with-odbc=PATH        directory where odbc is installed
1084
1085 Some influential environment variables:
1086   DOXYGEN_PAPER_SIZE
1087               a4wide (default), a4, letter, legal or executive
1088   CC          C compiler command
1089   CFLAGS      C compiler flags
1090   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1091               nonstandard directory <lib dir>
1092   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1093               headers in a nonstandard directory <include dir>
1094   CXX         C++ compiler command
1095   CXXFLAGS    C++ compiler flags
1096   CPP         C preprocessor
1097   CXXCPP      C++ preprocessor
1098   F77         Fortran 77 compiler command
1099   FFLAGS      Fortran 77 compiler flags
1100
1101 Use these variables to override the choices made by `configure' or to help
1102 it to find libraries and programs with nonstandard names/locations.
1103
1104 Report bugs to <shibboleth-users@internet2.edu>.
1105 _ACEOF
1106 fi
1107
1108 if test "$ac_init_help" = "recursive"; then
1109   # If there are subdirs, report their specific --help.
1110   ac_popdir=`pwd`
1111   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1112     test -d $ac_dir || continue
1113     ac_builddir=.
1114
1115 if test "$ac_dir" != .; then
1116   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1117   # A "../" for each directory in $ac_dir_suffix.
1118   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1119 else
1120   ac_dir_suffix= ac_top_builddir=
1121 fi
1122
1123 case $srcdir in
1124   .)  # No --srcdir option.  We are building in place.
1125     ac_srcdir=.
1126     if test -z "$ac_top_builddir"; then
1127        ac_top_srcdir=.
1128     else
1129        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1130     fi ;;
1131   [\\/]* | ?:[\\/]* )  # Absolute path.
1132     ac_srcdir=$srcdir$ac_dir_suffix;
1133     ac_top_srcdir=$srcdir ;;
1134   *) # Relative path.
1135     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1136     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1137 esac
1138
1139 # Do not use `cd foo && pwd` to compute absolute paths, because
1140 # the directories may not exist.
1141 case `pwd` in
1142 .) ac_abs_builddir="$ac_dir";;
1143 *)
1144   case "$ac_dir" in
1145   .) ac_abs_builddir=`pwd`;;
1146   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1147   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1148   esac;;
1149 esac
1150 case $ac_abs_builddir in
1151 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1152 *)
1153   case ${ac_top_builddir}. in
1154   .) ac_abs_top_builddir=$ac_abs_builddir;;
1155   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1156   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1157   esac;;
1158 esac
1159 case $ac_abs_builddir in
1160 .) ac_abs_srcdir=$ac_srcdir;;
1161 *)
1162   case $ac_srcdir in
1163   .) ac_abs_srcdir=$ac_abs_builddir;;
1164   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1165   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1166   esac;;
1167 esac
1168 case $ac_abs_builddir in
1169 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1170 *)
1171   case $ac_top_srcdir in
1172   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1173   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1174   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1175   esac;;
1176 esac
1177
1178     cd $ac_dir
1179     # Check for guested configure; otherwise get Cygnus style configure.
1180     if test -f $ac_srcdir/configure.gnu; then
1181       echo
1182       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1183     elif test -f $ac_srcdir/configure; then
1184       echo
1185       $SHELL $ac_srcdir/configure  --help=recursive
1186     elif test -f $ac_srcdir/configure.ac ||
1187            test -f $ac_srcdir/configure.in; then
1188       echo
1189       $ac_configure --help
1190     else
1191       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1192     fi
1193     cd $ac_popdir
1194   done
1195 fi
1196
1197 test -n "$ac_init_help" && exit 0
1198 if $ac_init_version; then
1199   cat <<\_ACEOF
1200 shibboleth configure 2.2.1
1201 generated by GNU Autoconf 2.59
1202
1203 Copyright (C) 2003 Free Software Foundation, Inc.
1204 This configure script is free software; the Free Software Foundation
1205 gives unlimited permission to copy, distribute and modify it.
1206 _ACEOF
1207   exit 0
1208 fi
1209 exec 5>config.log
1210 cat >&5 <<_ACEOF
1211 This file contains any messages produced by compilers while
1212 running configure, to aid debugging if configure makes a mistake.
1213
1214 It was created by shibboleth $as_me 2.2.1, which was
1215 generated by GNU Autoconf 2.59.  Invocation command line was
1216
1217   $ $0 $@
1218
1219 _ACEOF
1220 {
1221 cat <<_ASUNAME
1222 ## --------- ##
1223 ## Platform. ##
1224 ## --------- ##
1225
1226 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1227 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1228 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1229 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1230 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1231
1232 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1233 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1234
1235 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1236 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1237 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1238 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1239 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1240 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1241 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1242
1243 _ASUNAME
1244
1245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1246 for as_dir in $PATH
1247 do
1248   IFS=$as_save_IFS
1249   test -z "$as_dir" && as_dir=.
1250   echo "PATH: $as_dir"
1251 done
1252
1253 } >&5
1254
1255 cat >&5 <<_ACEOF
1256
1257
1258 ## ----------- ##
1259 ## Core tests. ##
1260 ## ----------- ##
1261
1262 _ACEOF
1263
1264
1265 # Keep a trace of the command line.
1266 # Strip out --no-create and --no-recursion so they do not pile up.
1267 # Strip out --silent because we don't want to record it for future runs.
1268 # Also quote any args containing shell meta-characters.
1269 # Make two passes to allow for proper duplicate-argument suppression.
1270 ac_configure_args=
1271 ac_configure_args0=
1272 ac_configure_args1=
1273 ac_sep=
1274 ac_must_keep_next=false
1275 for ac_pass in 1 2
1276 do
1277   for ac_arg
1278   do
1279     case $ac_arg in
1280     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1281     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282     | -silent | --silent | --silen | --sile | --sil)
1283       continue ;;
1284     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1286     esac
1287     case $ac_pass in
1288     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1289     2)
1290       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1291       if test $ac_must_keep_next = true; then
1292         ac_must_keep_next=false # Got value, back to normal.
1293       else
1294         case $ac_arg in
1295           *=* | --config-cache | -C | -disable-* | --disable-* \
1296           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1297           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1298           | -with-* | --with-* | -without-* | --without-* | --x)
1299             case "$ac_configure_args0 " in
1300               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1301             esac
1302             ;;
1303           -* ) ac_must_keep_next=true ;;
1304         esac
1305       fi
1306       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1307       # Get rid of the leading space.
1308       ac_sep=" "
1309       ;;
1310     esac
1311   done
1312 done
1313 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1314 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1315
1316 # When interrupted or exit'd, cleanup temporary files, and complete
1317 # config.log.  We remove comments because anyway the quotes in there
1318 # would cause problems or look ugly.
1319 # WARNING: Be sure not to use single quotes in there, as some shells,
1320 # such as our DU 5.0 friend, will then `close' the trap.
1321 trap 'exit_status=$?
1322   # Save into config.log some information that might help in debugging.
1323   {
1324     echo
1325
1326     cat <<\_ASBOX
1327 ## ---------------- ##
1328 ## Cache variables. ##
1329 ## ---------------- ##
1330 _ASBOX
1331     echo
1332     # The following way of writing the cache mishandles newlines in values,
1333 {
1334   (set) 2>&1 |
1335     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1336     *ac_space=\ *)
1337       sed -n \
1338         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1339           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1340       ;;
1341     *)
1342       sed -n \
1343         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1344       ;;
1345     esac;
1346 }
1347     echo
1348
1349     cat <<\_ASBOX
1350 ## ----------------- ##
1351 ## Output variables. ##
1352 ## ----------------- ##
1353 _ASBOX
1354     echo
1355     for ac_var in $ac_subst_vars
1356     do
1357       eval ac_val=$`echo $ac_var`
1358       echo "$ac_var='"'"'$ac_val'"'"'"
1359     done | sort
1360     echo
1361
1362     if test -n "$ac_subst_files"; then
1363       cat <<\_ASBOX
1364 ## ------------- ##
1365 ## Output files. ##
1366 ## ------------- ##
1367 _ASBOX
1368       echo
1369       for ac_var in $ac_subst_files
1370       do
1371         eval ac_val=$`echo $ac_var`
1372         echo "$ac_var='"'"'$ac_val'"'"'"
1373       done | sort
1374       echo
1375     fi
1376
1377     if test -s confdefs.h; then
1378       cat <<\_ASBOX
1379 ## ----------- ##
1380 ## confdefs.h. ##
1381 ## ----------- ##
1382 _ASBOX
1383       echo
1384       sed "/^$/d" confdefs.h | sort
1385       echo
1386     fi
1387     test "$ac_signal" != 0 &&
1388       echo "$as_me: caught signal $ac_signal"
1389     echo "$as_me: exit $exit_status"
1390   } >&5
1391   rm -f core *.core &&
1392   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1393     exit $exit_status
1394      ' 0
1395 for ac_signal in 1 2 13 15; do
1396   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1397 done
1398 ac_signal=0
1399
1400 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1401 rm -rf conftest* confdefs.h
1402 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1403 echo >confdefs.h
1404
1405 # Predefined preprocessor variables.
1406
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_NAME "$PACKAGE_NAME"
1409 _ACEOF
1410
1411
1412 cat >>confdefs.h <<_ACEOF
1413 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1414 _ACEOF
1415
1416
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1419 _ACEOF
1420
1421
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_STRING "$PACKAGE_STRING"
1424 _ACEOF
1425
1426
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1429 _ACEOF
1430
1431
1432 # Let the site file select an alternate cache file if it wants to.
1433 # Prefer explicitly selected file to automatically selected ones.
1434 if test -z "$CONFIG_SITE"; then
1435   if test "x$prefix" != xNONE; then
1436     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1437   else
1438     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1439   fi
1440 fi
1441 for ac_site_file in $CONFIG_SITE; do
1442   if test -r "$ac_site_file"; then
1443     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1444 echo "$as_me: loading site script $ac_site_file" >&6;}
1445     sed 's/^/| /' "$ac_site_file" >&5
1446     . "$ac_site_file"
1447   fi
1448 done
1449
1450 if test -r "$cache_file"; then
1451   # Some versions of bash will fail to source /dev/null (special
1452   # files actually), so we avoid doing that.
1453   if test -f "$cache_file"; then
1454     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1455 echo "$as_me: loading cache $cache_file" >&6;}
1456     case $cache_file in
1457       [\\/]* | ?:[\\/]* ) . $cache_file;;
1458       *)                      . ./$cache_file;;
1459     esac
1460   fi
1461 else
1462   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1463 echo "$as_me: creating cache $cache_file" >&6;}
1464   >$cache_file
1465 fi
1466
1467 # Check that the precious variables saved in the cache have kept the same
1468 # value.
1469 ac_cache_corrupted=false
1470 for ac_var in `(set) 2>&1 |
1471                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1472   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1473   eval ac_new_set=\$ac_env_${ac_var}_set
1474   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1475   eval ac_new_val="\$ac_env_${ac_var}_value"
1476   case $ac_old_set,$ac_new_set in
1477     set,)
1478       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1479 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1480       ac_cache_corrupted=: ;;
1481     ,set)
1482       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1483 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1484       ac_cache_corrupted=: ;;
1485     ,);;
1486     *)
1487       if test "x$ac_old_val" != "x$ac_new_val"; then
1488         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1489 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1490         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1491 echo "$as_me:   former value:  $ac_old_val" >&2;}
1492         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1493 echo "$as_me:   current value: $ac_new_val" >&2;}
1494         ac_cache_corrupted=:
1495       fi;;
1496   esac
1497   # Pass precious variables to config.status.
1498   if test "$ac_new_set" = set; then
1499     case $ac_new_val in
1500     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1501       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1502     *) ac_arg=$ac_var=$ac_new_val ;;
1503     esac
1504     case " $ac_configure_args " in
1505       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1506       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1507     esac
1508   fi
1509 done
1510 if $ac_cache_corrupted; then
1511   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1512 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1513   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1514 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1515    { (exit 1); exit 1; }; }
1516 fi
1517
1518 ac_ext=c
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550           ac_config_headers="$ac_config_headers config.h"
1551
1552 am__api_version="1.9"
1553 ac_aux_dir=
1554 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1555   if test -f $ac_dir/install-sh; then
1556     ac_aux_dir=$ac_dir
1557     ac_install_sh="$ac_aux_dir/install-sh -c"
1558     break
1559   elif test -f $ac_dir/install.sh; then
1560     ac_aux_dir=$ac_dir
1561     ac_install_sh="$ac_aux_dir/install.sh -c"
1562     break
1563   elif test -f $ac_dir/shtool; then
1564     ac_aux_dir=$ac_dir
1565     ac_install_sh="$ac_aux_dir/shtool install -c"
1566     break
1567   fi
1568 done
1569 if test -z "$ac_aux_dir"; then
1570   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1571 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1572    { (exit 1); exit 1; }; }
1573 fi
1574 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1577
1578 # Find a good install program.  We prefer a C program (faster),
1579 # so one script is as good as another.  But avoid the broken or
1580 # incompatible versions:
1581 # SysV /etc/install, /usr/sbin/install
1582 # SunOS /usr/etc/install
1583 # IRIX /sbin/install
1584 # AIX /bin/install
1585 # AmigaOS /C/install, which installs bootblocks on floppy discs
1586 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1587 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1588 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1589 # OS/2's system install, which has a completely different semantic
1590 # ./install, which can be erroneously created by make from ./install.sh.
1591 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1592 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1593 if test -z "$INSTALL"; then
1594 if test "${ac_cv_path_install+set}" = set; then
1595   echo $ECHO_N "(cached) $ECHO_C" >&6
1596 else
1597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 for as_dir in $PATH
1599 do
1600   IFS=$as_save_IFS
1601   test -z "$as_dir" && as_dir=.
1602   # Account for people who put trailing slashes in PATH elements.
1603 case $as_dir/ in
1604   ./ | .// | /cC/* | \
1605   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1606   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1607   /usr/ucb/* ) ;;
1608   *)
1609     # OSF1 and SCO ODT 3.0 have their own names for install.
1610     # Don't use installbsd from OSF since it installs stuff as root
1611     # by default.
1612     for ac_prog in ginstall scoinst install; do
1613       for ac_exec_ext in '' $ac_executable_extensions; do
1614         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1615           if test $ac_prog = install &&
1616             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1617             # AIX install.  It has an incompatible calling convention.
1618             :
1619           elif test $ac_prog = install &&
1620             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1621             # program-specific install script used by HP pwplus--don't use.
1622             :
1623           else
1624             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1625             break 3
1626           fi
1627         fi
1628       done
1629     done
1630     ;;
1631 esac
1632 done
1633
1634
1635 fi
1636   if test "${ac_cv_path_install+set}" = set; then
1637     INSTALL=$ac_cv_path_install
1638   else
1639     # As a last resort, use the slow shell script.  We don't cache a
1640     # path for INSTALL within a source directory, because that will
1641     # break other packages using the cache if that directory is
1642     # removed, or if the path is relative.
1643     INSTALL=$ac_install_sh
1644   fi
1645 fi
1646 echo "$as_me:$LINENO: result: $INSTALL" >&5
1647 echo "${ECHO_T}$INSTALL" >&6
1648
1649 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1650 # It thinks the first close brace ends the variable substitution.
1651 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1652
1653 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1654
1655 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1656
1657 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1658 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1659 # Just in case
1660 sleep 1
1661 echo timestamp > conftest.file
1662 # Do `set' in a subshell so we don't clobber the current shell's
1663 # arguments.  Must try -L first in case configure is actually a
1664 # symlink; some systems play weird games with the mod time of symlinks
1665 # (eg FreeBSD returns the mod time of the symlink's containing
1666 # directory).
1667 if (
1668    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1669    if test "$*" = "X"; then
1670       # -L didn't work.
1671       set X `ls -t $srcdir/configure conftest.file`
1672    fi
1673    rm -f conftest.file
1674    if test "$*" != "X $srcdir/configure conftest.file" \
1675       && test "$*" != "X conftest.file $srcdir/configure"; then
1676
1677       # If neither matched, then we have a broken ls.  This can happen
1678       # if, for instance, CONFIG_SHELL is bash and it inherits a
1679       # broken ls alias from the environment.  This has actually
1680       # happened.  Such a system could not be considered "sane".
1681       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1682 alias in your environment" >&5
1683 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1684 alias in your environment" >&2;}
1685    { (exit 1); exit 1; }; }
1686    fi
1687
1688    test "$2" = conftest.file
1689    )
1690 then
1691    # Ok.
1692    :
1693 else
1694    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1695 Check your system clock" >&5
1696 echo "$as_me: error: newly created file is older than distributed files!
1697 Check your system clock" >&2;}
1698    { (exit 1); exit 1; }; }
1699 fi
1700 echo "$as_me:$LINENO: result: yes" >&5
1701 echo "${ECHO_T}yes" >&6
1702 test "$program_prefix" != NONE &&
1703   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1704 # Use a double $ so make ignores it.
1705 test "$program_suffix" != NONE &&
1706   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1707 # Double any \ or $.  echo might interpret backslashes.
1708 # By default was `s,x,x', remove it if useless.
1709 cat <<\_ACEOF >conftest.sed
1710 s/[\\$]/&&/g;s/;s,x,x,$//
1711 _ACEOF
1712 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1713 rm conftest.sed
1714
1715 # expand $ac_aux_dir to an absolute path
1716 am_aux_dir=`cd $ac_aux_dir && pwd`
1717
1718 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1719 # Use eval to expand $SHELL
1720 if eval "$MISSING --run true"; then
1721   am_missing_run="$MISSING --run "
1722 else
1723   am_missing_run=
1724   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1725 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1726 fi
1727
1728 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1729   # We used to keeping the `.' as first argument, in order to
1730   # allow $(mkdir_p) to be used without argument.  As in
1731   #   $(mkdir_p) $(somedir)
1732   # where $(somedir) is conditionally defined.  However this is wrong
1733   # for two reasons:
1734   #  1. if the package is installed by a user who cannot write `.'
1735   #     make install will fail,
1736   #  2. the above comment should most certainly read
1737   #     $(mkdir_p) $(DESTDIR)$(somedir)
1738   #     so it does not work when $(somedir) is undefined and
1739   #     $(DESTDIR) is not.
1740   #  To support the latter case, we have to write
1741   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1742   #  so the `.' trick is pointless.
1743   mkdir_p='mkdir -p --'
1744 else
1745   # On NextStep and OpenStep, the `mkdir' command does not
1746   # recognize any option.  It will interpret all options as
1747   # directories to create, and then abort because `.' already
1748   # exists.
1749   for d in ./-p ./--version;
1750   do
1751     test -d $d && rmdir $d
1752   done
1753   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1754   if test -f "$ac_aux_dir/mkinstalldirs"; then
1755     mkdir_p='$(mkinstalldirs)'
1756   else
1757     mkdir_p='$(install_sh) -d'
1758   fi
1759 fi
1760
1761 for ac_prog in gawk mawk nawk awk
1762 do
1763   # Extract the first word of "$ac_prog", so it can be a program name with args.
1764 set dummy $ac_prog; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_AWK+set}" = set; then
1768   echo $ECHO_N "(cached) $ECHO_C" >&6
1769 else
1770   if test -n "$AWK"; then
1771   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1772 else
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 for as_dir in $PATH
1775 do
1776   IFS=$as_save_IFS
1777   test -z "$as_dir" && as_dir=.
1778   for ac_exec_ext in '' $ac_executable_extensions; do
1779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780     ac_cv_prog_AWK="$ac_prog"
1781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782     break 2
1783   fi
1784 done
1785 done
1786
1787 fi
1788 fi
1789 AWK=$ac_cv_prog_AWK
1790 if test -n "$AWK"; then
1791   echo "$as_me:$LINENO: result: $AWK" >&5
1792 echo "${ECHO_T}$AWK" >&6
1793 else
1794   echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1796 fi
1797
1798   test -n "$AWK" && break
1799 done
1800
1801 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1802 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1803 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1804 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1805   echo $ECHO_N "(cached) $ECHO_C" >&6
1806 else
1807   cat >conftest.make <<\_ACEOF
1808 all:
1809         @echo 'ac_maketemp="$(MAKE)"'
1810 _ACEOF
1811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1812 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1813 if test -n "$ac_maketemp"; then
1814   eval ac_cv_prog_make_${ac_make}_set=yes
1815 else
1816   eval ac_cv_prog_make_${ac_make}_set=no
1817 fi
1818 rm -f conftest.make
1819 fi
1820 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1821   echo "$as_me:$LINENO: result: yes" >&5
1822 echo "${ECHO_T}yes" >&6
1823   SET_MAKE=
1824 else
1825   echo "$as_me:$LINENO: result: no" >&5
1826 echo "${ECHO_T}no" >&6
1827   SET_MAKE="MAKE=${MAKE-make}"
1828 fi
1829
1830 rm -rf .tst 2>/dev/null
1831 mkdir .tst 2>/dev/null
1832 if test -d .tst; then
1833   am__leading_dot=.
1834 else
1835   am__leading_dot=_
1836 fi
1837 rmdir .tst 2>/dev/null
1838
1839 # test to see if srcdir already configured
1840 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1841    test -f $srcdir/config.status; then
1842   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1843 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1844    { (exit 1); exit 1; }; }
1845 fi
1846
1847 # test whether we have cygpath
1848 if test -z "$CYGPATH_W"; then
1849   if (cygpath --version) >/dev/null 2>/dev/null; then
1850     CYGPATH_W='cygpath -w'
1851   else
1852     CYGPATH_W=echo
1853   fi
1854 fi
1855
1856
1857 # Define the identity of the package.
1858  PACKAGE=shibboleth
1859  VERSION=2.2.1
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE "$PACKAGE"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define VERSION "$VERSION"
1869 _ACEOF
1870
1871 # Some tools Automake needs.
1872
1873 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1874
1875
1876 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1877
1878
1879 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1880
1881
1882 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1883
1884
1885 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1886
1887 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1888
1889 # Installed binaries are usually stripped using `strip' when the user
1890 # run `make install-strip'.  However `strip' might not be the right
1891 # tool to use in cross-compilation environments, therefore Automake
1892 # will honor the `STRIP' environment variable to overrule this program.
1893 if test "$cross_compiling" != no; then
1894   if test -n "$ac_tool_prefix"; then
1895   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1896 set dummy ${ac_tool_prefix}strip; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_STRIP+set}" = set; then
1900   echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902   if test -n "$STRIP"; then
1903   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908   IFS=$as_save_IFS
1909   test -z "$as_dir" && as_dir=.
1910   for ac_exec_ext in '' $ac_executable_extensions; do
1911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914     break 2
1915   fi
1916 done
1917 done
1918
1919 fi
1920 fi
1921 STRIP=$ac_cv_prog_STRIP
1922 if test -n "$STRIP"; then
1923   echo "$as_me:$LINENO: result: $STRIP" >&5
1924 echo "${ECHO_T}$STRIP" >&6
1925 else
1926   echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1928 fi
1929
1930 fi
1931 if test -z "$ac_cv_prog_STRIP"; then
1932   ac_ct_STRIP=$STRIP
1933   # Extract the first word of "strip", so it can be a program name with args.
1934 set dummy strip; ac_word=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1938   echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940   if test -n "$ac_ct_STRIP"; then
1941   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1942 else
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946   IFS=$as_save_IFS
1947   test -z "$as_dir" && as_dir=.
1948   for ac_exec_ext in '' $ac_executable_extensions; do
1949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950     ac_cv_prog_ac_ct_STRIP="strip"
1951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952     break 2
1953   fi
1954 done
1955 done
1956
1957   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1958 fi
1959 fi
1960 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1961 if test -n "$ac_ct_STRIP"; then
1962   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1963 echo "${ECHO_T}$ac_ct_STRIP" >&6
1964 else
1965   echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1967 fi
1968
1969   STRIP=$ac_ct_STRIP
1970 else
1971   STRIP="$ac_cv_prog_STRIP"
1972 fi
1973
1974 fi
1975 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1976
1977 # We need awk for the "check" target.  The system "awk" is bad on
1978 # some platforms.
1979 # Always define AMTAR for backward compatibility.
1980
1981 AMTAR=${AMTAR-"${am_missing_run}tar"}
1982
1983 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1984
1985
1986
1987
1988
1989
1990 # This file is part of Autoconf.                       -*- Autoconf -*-
1991
1992 # Copyright (C) 2004 Oren Ben-Kiki
1993 # This file is distributed under the same terms as the Autoconf macro files.
1994
1995 # Generate automatic documentation using Doxygen. Works in concert with the
1996 # aminclude.m4 file and a compatible doxygen configuration file. Defines the
1997 # following public macros:
1998 #
1999 # DX_???_FEATURE(ON|OFF) - control the default setting fo a Doxygen feature.
2000 # Supported features are 'DOXYGEN' itself, 'DOT' for generating graphics,
2001 # 'HTML' for plain HTML, 'CHM' for compressed HTML help (for MS users), 'CHI'
2002 # for generating a seperate .chi file by the .chm file, and 'MAN', 'RTF',
2003 # 'XML', 'PDF' and 'PS' for the appropriate output formats. The environment
2004 # variable DOXYGEN_PAPER_SIZE may be specified to override the default 'a4wide'
2005 # paper size.
2006 #
2007 # By default, HTML, PDF and PS documentation is generated as this seems to be
2008 # the most popular and portable combination. MAN pages created by Doxygen are
2009 # usually problematic, though by picking an appropriate subset and doing some
2010 # massaging they might be better than nothing. CHM and RTF are specific for MS
2011 # (note that you can't generate both HTML and CHM at the same time). The XML is
2012 # rather useless unless you apply specialized post-processing to it.
2013 #
2014 # The macro mainly controls the default state of the feature. The use can
2015 # override the default by specifying --enable or --disable. The macros ensure
2016 # that contradictory flags are not given (e.g., --enable-doxygen-html and
2017 # --enable-doxygen-chm, --enable-doxygen-anything with --disable-doxygen, etc.)
2018 # Finally, each feature will be automatically disabled (with a warning) if the
2019 # required programs are missing.
2020 #
2021 # Once all the feature defaults have been specified, call DX_INIT_DOXYGEN with
2022 # the following parameters: a one-word name for the project for use as a
2023 # filename base etc., an optional configuration file name (the default is
2024 # 'Doxyfile', the same as Doxygen's default), and an optional output directory
2025 # name (the default is 'doxygen-doc').
2026
2027 ## ----------##
2028 ## Defaults. ##
2029 ## ----------##
2030
2031 DX_ENV=""
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043 # Compatibility with older autoconf versions.
2044
2045
2046 ## --------------- ##
2047 ## Private macros. ##
2048 ## --------------- ##
2049
2050 # DX_ENV_APPEND(VARIABLE, VALUE)
2051 # ------------------------------
2052 # Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
2053
2054
2055 # DX_DIRNAME_EXPR
2056 # ---------------
2057 # Expand into a shell expression prints the directory part of a path.
2058
2059
2060 # DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
2061 # -------------------------------------
2062 # Expands according to the M4 (static) status of the feature.
2063
2064
2065 # DX_REQUIRE_PROG(VARIABLE, PROGRAM)
2066 # ----------------------------------
2067 # Require the specified program to be found for the DX_CURRENT_FEATURE to work.
2068
2069
2070 # DX_TEST_FEATURE(FEATURE)
2071 # ------------------------
2072 # Expand to a shell expression testing whether the feature is active.
2073
2074
2075 # DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
2076 # -------------------------------------------------
2077 # Verify that a required features has the right state before trying to turn on
2078 # the DX_CURRENT_FEATURE.
2079
2080
2081 # DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
2082 # ----------------------------------------------------------
2083 # Turn off the DX_CURRENT_FEATURE if the required feature is off.
2084
2085
2086 # DX_FEATURE_ARG(FEATURE, DESCRIPTION,
2087 #                CHECK_DEPEND, CLEAR_DEPEND,
2088 #                REQUIRE, DO-IF-ON, DO-IF-OFF)
2089 # --------------------------------------------
2090 # Parse the command-line option controlling a feature. CHECK_DEPEND is called
2091 # if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
2092 # otherwise CLEAR_DEPEND is called to turn off the default state if a required
2093 # feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
2094 # requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
2095 # DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
2096
2097
2098 ## -------------- ##
2099 ## Public macros. ##
2100 ## -------------- ##
2101
2102 # DX_XXX_FEATURE(DEFAULT_STATE)
2103 # -----------------------------
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115 # DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
2116 # ---------------------------------------------------------
2117 # PROJECT also serves as the base name for the documentation files.
2118 # The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
2119
2120
2121 ##### http://autoconf-archive.cryp.to/acx_pthread.html
2122 #
2123 # SYNOPSIS
2124 #
2125 #   ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
2126 #
2127 # DESCRIPTION
2128 #
2129 #   This macro figures out how to build C programs using POSIX threads.
2130 #   It sets the PTHREAD_LIBS output variable to the threads library and
2131 #   linker flags, and the PTHREAD_CFLAGS output variable to any special
2132 #   C compiler flags that are needed. (The user can also force certain
2133 #   compiler flags/libs to be tested by setting these environment
2134 #   variables.)
2135 #
2136 #   Also sets PTHREAD_CC to any special C compiler that is needed for
2137 #   multi-threaded programs (defaults to the value of CC otherwise).
2138 #   (This is necessary on AIX to use the special cc_r compiler alias.)
2139 #
2140 #   NOTE: You are assumed to not only compile your program with these
2141 #   flags, but also link it with them as well. e.g. you should link
2142 #   with $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS
2143 #   $LIBS
2144 #
2145 #   If you are only building threads programs, you may wish to use
2146 #   these variables in your default LIBS, CFLAGS, and CC:
2147 #
2148 #          LIBS="$PTHREAD_LIBS $LIBS"
2149 #          CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
2150 #          CC="$PTHREAD_CC"
2151 #
2152 #   In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute
2153 #   constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to
2154 #   that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
2155 #
2156 #   ACTION-IF-FOUND is a list of shell commands to run if a threads
2157 #   library is found, and ACTION-IF-NOT-FOUND is a list of commands to
2158 #   run it if it is not found. If ACTION-IF-FOUND is not specified, the
2159 #   default action will define HAVE_PTHREAD.
2160 #
2161 #   Please let the authors know if this macro fails on any platform, or
2162 #   if you have any other suggestions or comments. This macro was based
2163 #   on work by SGJ on autoconf scripts for FFTW (http://www.fftw.org/)
2164 #   (with help from M. Frigo), as well as ac_pthread and hb_pthread
2165 #   macros posted by Alejandro Forero Cuervo to the autoconf macro
2166 #   repository. We are also grateful for the helpful feedback of
2167 #   numerous users.
2168 #
2169 # LAST MODIFICATION
2170 #
2171 #   2006-05-29
2172 #
2173 # COPYLEFT
2174 #
2175 #   Copyright (c) 2006 Steven G. Johnson <stevenj@alum.mit.edu>
2176 #
2177 #   This program is free software; you can redistribute it and/or
2178 #   modify it under the terms of the GNU General Public License as
2179 #   published by the Free Software Foundation; either version 2 of the
2180 #   License, or (at your option) any later version.
2181 #
2182 #   This program is distributed in the hope that it will be useful, but
2183 #   WITHOUT ANY WARRANTY; without even the implied warranty of
2184 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2185 #   General Public License for more details.
2186 #
2187 #   You should have received a copy of the GNU General Public License
2188 #   along with this program; if not, write to the Free Software
2189 #   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2190 #   02111-1307, USA.
2191 #
2192 #   As a special exception, the respective Autoconf Macro's copyright
2193 #   owner gives unlimited permission to copy, distribute and modify the
2194 #   configure scripts that are the output of Autoconf when processing
2195 #   the Macro. You need not follow the terms of the GNU General Public
2196 #   License when using or distributing such scripts, even though
2197 #   portions of the text of the Macro appear in them. The GNU General
2198 #   Public License (GPL) does govern all other use of the material that
2199 #   constitutes the Autoconf Macro.
2200 #
2201 #   This special exception to the GPL applies to versions of the
2202 #   Autoconf Macro released by the Autoconf Macro Archive. When you
2203 #   make and distribute a modified version of the Autoconf Macro, you
2204 #   may extend this special exception to the GPL to apply to your
2205 #   modified version as well.
2206
2207
2208
2209 # Docygen features
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220 # Files:
2221 DX_PROJECT=shibboleth
2222
2223 DX_CONFIG=doxygen.cfg
2224
2225 DX_DOCDIR=doc/api
2226
2227
2228 # Environment variables used inside doxygen.cfg:
2229 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
2230
2231 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
2232
2233 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
2234
2235 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
2236
2237
2238 # Doxygen itself:
2239
2240
2241
2242     # Check whether --enable-doxygen-doc or --disable-doxygen-doc was given.
2243 if test "${enable_doxygen_doc+set}" = set; then
2244   enableval="$enable_doxygen_doc"
2245
2246 case "$enableval" in
2247 #(
2248 y|Y|yes|Yes|YES)
2249     DX_FLAG_doc=1
2250
2251
2252 ;; #(
2253 n|N|no|No|NO)
2254     DX_FLAG_doc=0
2255
2256 ;; #(
2257 *)
2258     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-doc" >&5
2259 echo "$as_me: error: invalid value '$enableval' given to doxygen-doc" >&2;}
2260    { (exit 1); exit 1; }; }
2261 ;;
2262 esac
2263
2264 else
2265
2266 DX_FLAG_doc=1
2267
2268
2269
2270 fi;
2271 if test "$DX_FLAG_doc" = 1; then
2272
2273 if test -n "$ac_tool_prefix"; then
2274   # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
2275 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
2276 echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2278 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then
2279   echo $ECHO_N "(cached) $ECHO_C" >&6
2280 else
2281   case $DX_DOXYGEN in
2282   [\\/]* | ?:[\\/]*)
2283   ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
2284   ;;
2285   *)
2286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2288 do
2289   IFS=$as_save_IFS
2290   test -z "$as_dir" && as_dir=.
2291   for ac_exec_ext in '' $ac_executable_extensions; do
2292   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2293     ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295     break 2
2296   fi
2297 done
2298 done
2299
2300   ;;
2301 esac
2302 fi
2303 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
2304
2305 if test -n "$DX_DOXYGEN"; then
2306   echo "$as_me:$LINENO: result: $DX_DOXYGEN" >&5
2307 echo "${ECHO_T}$DX_DOXYGEN" >&6
2308 else
2309   echo "$as_me:$LINENO: result: no" >&5
2310 echo "${ECHO_T}no" >&6
2311 fi
2312
2313 fi
2314 if test -z "$ac_cv_path_DX_DOXYGEN"; then
2315   ac_pt_DX_DOXYGEN=$DX_DOXYGEN
2316   # Extract the first word of "doxygen", so it can be a program name with args.
2317 set dummy doxygen; ac_word=$2
2318 echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2320 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then
2321   echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323   case $ac_pt_DX_DOXYGEN in
2324   [\\/]* | ?:[\\/]*)
2325   ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
2326   ;;
2327   *)
2328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2330 do
2331   IFS=$as_save_IFS
2332   test -z "$as_dir" && as_dir=.
2333   for ac_exec_ext in '' $ac_executable_extensions; do
2334   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2335     ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337     break 2
2338   fi
2339 done
2340 done
2341
2342   ;;
2343 esac
2344 fi
2345 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
2346
2347 if test -n "$ac_pt_DX_DOXYGEN"; then
2348   echo "$as_me:$LINENO: result: $ac_pt_DX_DOXYGEN" >&5
2349 echo "${ECHO_T}$ac_pt_DX_DOXYGEN" >&6
2350 else
2351   echo "$as_me:$LINENO: result: no" >&5
2352 echo "${ECHO_T}no" >&6
2353 fi
2354
2355   DX_DOXYGEN=$ac_pt_DX_DOXYGEN
2356 else
2357   DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
2358 fi
2359
2360 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
2361     { echo "$as_me:$LINENO: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
2362 echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
2363     DX_FLAG_doc=0
2364
2365 fi
2366
2367
2368 if test -n "$ac_tool_prefix"; then
2369   # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
2370 set dummy ${ac_tool_prefix}perl; ac_word=$2
2371 echo "$as_me:$LINENO: checking for $ac_word" >&5
2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2373 if test "${ac_cv_path_DX_PERL+set}" = set; then
2374   echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376   case $DX_PERL in
2377   [\\/]* | ?:[\\/]*)
2378   ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
2379   ;;
2380   *)
2381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 for as_dir in $PATH
2383 do
2384   IFS=$as_save_IFS
2385   test -z "$as_dir" && as_dir=.
2386   for ac_exec_ext in '' $ac_executable_extensions; do
2387   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2388     ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390     break 2
2391   fi
2392 done
2393 done
2394
2395   ;;
2396 esac
2397 fi
2398 DX_PERL=$ac_cv_path_DX_PERL
2399
2400 if test -n "$DX_PERL"; then
2401   echo "$as_me:$LINENO: result: $DX_PERL" >&5
2402 echo "${ECHO_T}$DX_PERL" >&6
2403 else
2404   echo "$as_me:$LINENO: result: no" >&5
2405 echo "${ECHO_T}no" >&6
2406 fi
2407
2408 fi
2409 if test -z "$ac_cv_path_DX_PERL"; then
2410   ac_pt_DX_PERL=$DX_PERL
2411   # Extract the first word of "perl", so it can be a program name with args.
2412 set dummy perl; ac_word=$2
2413 echo "$as_me:$LINENO: checking for $ac_word" >&5
2414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2415 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then
2416   echo $ECHO_N "(cached) $ECHO_C" >&6
2417 else
2418   case $ac_pt_DX_PERL in
2419   [\\/]* | ?:[\\/]*)
2420   ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
2421   ;;
2422   *)
2423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426   IFS=$as_save_IFS
2427   test -z "$as_dir" && as_dir=.
2428   for ac_exec_ext in '' $ac_executable_extensions; do
2429   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2430     ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432     break 2
2433   fi
2434 done
2435 done
2436
2437   ;;
2438 esac
2439 fi
2440 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
2441
2442 if test -n "$ac_pt_DX_PERL"; then
2443   echo "$as_me:$LINENO: result: $ac_pt_DX_PERL" >&5
2444 echo "${ECHO_T}$ac_pt_DX_PERL" >&6
2445 else
2446   echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2448 fi
2449
2450   DX_PERL=$ac_pt_DX_PERL
2451 else
2452   DX_PERL="$ac_cv_path_DX_PERL"
2453 fi
2454
2455 if test "$DX_FLAG_doc$DX_PERL" = 1; then
2456     { echo "$as_me:$LINENO: WARNING: perl not found - will not generate any doxygen documentation" >&5
2457 echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
2458     DX_FLAG_doc=0
2459
2460 fi
2461
2462     :
2463 fi
2464 if test "$DX_FLAG_doc" = 1; then
2465
2466
2467 if :; then
2468   DX_COND_doc_TRUE=
2469   DX_COND_doc_FALSE='#'
2470 else
2471   DX_COND_doc_TRUE='#'
2472   DX_COND_doc_FALSE=
2473 fi
2474
2475     DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
2476
2477     :
2478 else
2479
2480
2481 if false; then
2482   DX_COND_doc_TRUE=
2483   DX_COND_doc_FALSE='#'
2484 else
2485   DX_COND_doc_TRUE='#'
2486   DX_COND_doc_FALSE=
2487 fi
2488
2489
2490     :
2491 fi
2492
2493
2494 # Dot for graphics:
2495
2496
2497
2498     # Check whether --enable-doxygen-dot or --disable-doxygen-dot was given.
2499 if test "${enable_doxygen_dot+set}" = set; then
2500   enableval="$enable_doxygen_dot"
2501
2502 case "$enableval" in
2503 #(
2504 y|Y|yes|Yes|YES)
2505     DX_FLAG_dot=1
2506
2507
2508 test "$DX_FLAG_doc" = "1" \
2509 || { { echo "$as_me:$LINENO: error: doxygen-dot requires doxygen-dot" >&5
2510 echo "$as_me: error: doxygen-dot requires doxygen-dot" >&2;}
2511    { (exit 1); exit 1; }; }
2512
2513 ;; #(
2514 n|N|no|No|NO)
2515     DX_FLAG_dot=0
2516
2517 ;; #(
2518 *)
2519     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-dot" >&5
2520 echo "$as_me: error: invalid value '$enableval' given to doxygen-dot" >&2;}
2521    { (exit 1); exit 1; }; }
2522 ;;
2523 esac
2524
2525 else
2526
2527 DX_FLAG_dot=1
2528
2529
2530 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
2531
2532
2533
2534 fi;
2535 if test "$DX_FLAG_dot" = 1; then
2536
2537 if test -n "$ac_tool_prefix"; then
2538   # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
2539 set dummy ${ac_tool_prefix}dot; ac_word=$2
2540 echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2542 if test "${ac_cv_path_DX_DOT+set}" = set; then
2543   echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545   case $DX_DOT in
2546   [\\/]* | ?:[\\/]*)
2547   ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
2548   ;;
2549   *)
2550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2552 do
2553   IFS=$as_save_IFS
2554   test -z "$as_dir" && as_dir=.
2555   for ac_exec_ext in '' $ac_executable_extensions; do
2556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2557     ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559     break 2
2560   fi
2561 done
2562 done
2563
2564   ;;
2565 esac
2566 fi
2567 DX_DOT=$ac_cv_path_DX_DOT
2568
2569 if test -n "$DX_DOT"; then
2570   echo "$as_me:$LINENO: result: $DX_DOT" >&5
2571 echo "${ECHO_T}$DX_DOT" >&6
2572 else
2573   echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2575 fi
2576
2577 fi
2578 if test -z "$ac_cv_path_DX_DOT"; then
2579   ac_pt_DX_DOT=$DX_DOT
2580   # Extract the first word of "dot", so it can be a program name with args.
2581 set dummy dot; ac_word=$2
2582 echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2584 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then
2585   echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587   case $ac_pt_DX_DOT in
2588   [\\/]* | ?:[\\/]*)
2589   ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
2590   ;;
2591   *)
2592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595   IFS=$as_save_IFS
2596   test -z "$as_dir" && as_dir=.
2597   for ac_exec_ext in '' $ac_executable_extensions; do
2598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599     ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601     break 2
2602   fi
2603 done
2604 done
2605
2606   ;;
2607 esac
2608 fi
2609 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
2610
2611 if test -n "$ac_pt_DX_DOT"; then
2612   echo "$as_me:$LINENO: result: $ac_pt_DX_DOT" >&5
2613 echo "${ECHO_T}$ac_pt_DX_DOT" >&6
2614 else
2615   echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6
2617 fi
2618
2619   DX_DOT=$ac_pt_DX_DOT
2620 else
2621   DX_DOT="$ac_cv_path_DX_DOT"
2622 fi
2623
2624 if test "$DX_FLAG_dot$DX_DOT" = 1; then
2625     { echo "$as_me:$LINENO: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
2626 echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
2627     DX_FLAG_dot=0
2628
2629 fi
2630
2631     :
2632 fi
2633 if test "$DX_FLAG_dot" = 1; then
2634
2635
2636 if :; then
2637   DX_COND_dot_TRUE=
2638   DX_COND_dot_FALSE='#'
2639 else
2640   DX_COND_dot_TRUE='#'
2641   DX_COND_dot_FALSE=
2642 fi
2643
2644     DX_ENV="$DX_ENV HAVE_DOT='YES'"
2645
2646              DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
2647
2648     :
2649 else
2650
2651
2652 if false; then
2653   DX_COND_dot_TRUE=
2654   DX_COND_dot_FALSE='#'
2655 else
2656   DX_COND_dot_TRUE='#'
2657   DX_COND_dot_FALSE=
2658 fi
2659
2660     DX_ENV="$DX_ENV HAVE_DOT='NO'"
2661
2662     :
2663 fi
2664
2665
2666 # Man pages generation:
2667
2668
2669
2670     # Check whether --enable-doxygen-man or --disable-doxygen-man was given.
2671 if test "${enable_doxygen_man+set}" = set; then
2672   enableval="$enable_doxygen_man"
2673
2674 case "$enableval" in
2675 #(
2676 y|Y|yes|Yes|YES)
2677     DX_FLAG_man=1
2678
2679
2680 test "$DX_FLAG_doc" = "1" \
2681 || { { echo "$as_me:$LINENO: error: doxygen-man requires doxygen-man" >&5
2682 echo "$as_me: error: doxygen-man requires doxygen-man" >&2;}
2683    { (exit 1); exit 1; }; }
2684
2685 ;; #(
2686 n|N|no|No|NO)
2687     DX_FLAG_man=0
2688
2689 ;; #(
2690 *)
2691     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-man" >&5
2692 echo "$as_me: error: invalid value '$enableval' given to doxygen-man" >&2;}
2693    { (exit 1); exit 1; }; }
2694 ;;
2695 esac
2696
2697 else
2698
2699 DX_FLAG_man=0
2700
2701
2702 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
2703
2704
2705
2706 fi;
2707 if test "$DX_FLAG_man" = 1; then
2708
2709     :
2710 fi
2711 if test "$DX_FLAG_man" = 1; then
2712
2713
2714 if :; then
2715   DX_COND_man_TRUE=
2716   DX_COND_man_FALSE='#'
2717 else
2718   DX_COND_man_TRUE='#'
2719   DX_COND_man_FALSE=
2720 fi
2721
2722     DX_ENV="$DX_ENV GENERATE_MAN='YES'"
2723
2724     :
2725 else
2726
2727
2728 if false; then
2729   DX_COND_man_TRUE=
2730   DX_COND_man_FALSE='#'
2731 else
2732   DX_COND_man_TRUE='#'
2733   DX_COND_man_FALSE=
2734 fi
2735
2736     DX_ENV="$DX_ENV GENERATE_MAN='NO'"
2737
2738     :
2739 fi
2740
2741
2742 # RTF file generation:
2743
2744
2745
2746     # Check whether --enable-doxygen-rtf or --disable-doxygen-rtf was given.
2747 if test "${enable_doxygen_rtf+set}" = set; then
2748   enableval="$enable_doxygen_rtf"
2749
2750 case "$enableval" in
2751 #(
2752 y|Y|yes|Yes|YES)
2753     DX_FLAG_rtf=1
2754
2755
2756 test "$DX_FLAG_doc" = "1" \
2757 || { { echo "$as_me:$LINENO: error: doxygen-rtf requires doxygen-rtf" >&5
2758 echo "$as_me: error: doxygen-rtf requires doxygen-rtf" >&2;}
2759    { (exit 1); exit 1; }; }
2760
2761 ;; #(
2762 n|N|no|No|NO)
2763     DX_FLAG_rtf=0
2764
2765 ;; #(
2766 *)
2767     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-rtf" >&5
2768 echo "$as_me: error: invalid value '$enableval' given to doxygen-rtf" >&2;}
2769    { (exit 1); exit 1; }; }
2770 ;;
2771 esac
2772
2773 else
2774
2775 DX_FLAG_rtf=0
2776
2777
2778 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
2779
2780
2781
2782 fi;
2783 if test "$DX_FLAG_rtf" = 1; then
2784
2785     :
2786 fi
2787 if test "$DX_FLAG_rtf" = 1; then
2788
2789
2790 if :; then
2791   DX_COND_rtf_TRUE=
2792   DX_COND_rtf_FALSE='#'
2793 else
2794   DX_COND_rtf_TRUE='#'
2795   DX_COND_rtf_FALSE=
2796 fi
2797
2798     DX_ENV="$DX_ENV GENERATE_RTF='YES'"
2799
2800     :
2801 else
2802
2803
2804 if false; then
2805   DX_COND_rtf_TRUE=
2806   DX_COND_rtf_FALSE='#'
2807 else
2808   DX_COND_rtf_TRUE='#'
2809   DX_COND_rtf_FALSE=
2810 fi
2811
2812     DX_ENV="$DX_ENV GENERATE_RTF='NO'"
2813
2814     :
2815 fi
2816
2817
2818 # XML file generation:
2819
2820
2821
2822     # Check whether --enable-doxygen-xml or --disable-doxygen-xml was given.
2823 if test "${enable_doxygen_xml+set}" = set; then
2824   enableval="$enable_doxygen_xml"
2825
2826 case "$enableval" in
2827 #(
2828 y|Y|yes|Yes|YES)
2829     DX_FLAG_xml=1
2830
2831
2832 test "$DX_FLAG_doc" = "1" \
2833 || { { echo "$as_me:$LINENO: error: doxygen-xml requires doxygen-xml" >&5
2834 echo "$as_me: error: doxygen-xml requires doxygen-xml" >&2;}
2835    { (exit 1); exit 1; }; }
2836
2837 ;; #(
2838 n|N|no|No|NO)
2839     DX_FLAG_xml=0
2840
2841 ;; #(
2842 *)
2843     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-xml" >&5
2844 echo "$as_me: error: invalid value '$enableval' given to doxygen-xml" >&2;}
2845    { (exit 1); exit 1; }; }
2846 ;;
2847 esac
2848
2849 else
2850
2851 DX_FLAG_xml=0
2852
2853
2854 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
2855
2856
2857
2858 fi;
2859 if test "$DX_FLAG_xml" = 1; then
2860
2861     :
2862 fi
2863 if test "$DX_FLAG_xml" = 1; then
2864
2865
2866 if :; then
2867   DX_COND_xml_TRUE=
2868   DX_COND_xml_FALSE='#'
2869 else
2870   DX_COND_xml_TRUE='#'
2871   DX_COND_xml_FALSE=
2872 fi
2873
2874     DX_ENV="$DX_ENV GENERATE_XML='YES'"
2875
2876     :
2877 else
2878
2879
2880 if false; then
2881   DX_COND_xml_TRUE=
2882   DX_COND_xml_FALSE='#'
2883 else
2884   DX_COND_xml_TRUE='#'
2885   DX_COND_xml_FALSE=
2886 fi
2887
2888     DX_ENV="$DX_ENV GENERATE_XML='NO'"
2889
2890     :
2891 fi
2892
2893
2894 # (Compressed) HTML help generation:
2895
2896
2897
2898     # Check whether --enable-doxygen-chm or --disable-doxygen-chm was given.
2899 if test "${enable_doxygen_chm+set}" = set; then
2900   enableval="$enable_doxygen_chm"
2901
2902 case "$enableval" in
2903 #(
2904 y|Y|yes|Yes|YES)
2905     DX_FLAG_chm=1
2906
2907
2908 test "$DX_FLAG_doc" = "1" \
2909 || { { echo "$as_me:$LINENO: error: doxygen-chm requires doxygen-chm" >&5
2910 echo "$as_me: error: doxygen-chm requires doxygen-chm" >&2;}
2911    { (exit 1); exit 1; }; }
2912
2913 ;; #(
2914 n|N|no|No|NO)
2915     DX_FLAG_chm=0
2916
2917 ;; #(
2918 *)
2919     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chm" >&5
2920 echo "$as_me: error: invalid value '$enableval' given to doxygen-chm" >&2;}
2921    { (exit 1); exit 1; }; }
2922 ;;
2923 esac
2924
2925 else
2926
2927 DX_FLAG_chm=0
2928
2929
2930 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
2931
2932
2933
2934 fi;
2935 if test "$DX_FLAG_chm" = 1; then
2936
2937 if test -n "$ac_tool_prefix"; then
2938   # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}hhc; ac_word=$2
2940 echo "$as_me:$LINENO: checking for $ac_word" >&5
2941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942 if test "${ac_cv_path_DX_HHC+set}" = set; then
2943   echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945   case $DX_HHC in
2946   [\\/]* | ?:[\\/]*)
2947   ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
2948   ;;
2949   *)
2950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953   IFS=$as_save_IFS
2954   test -z "$as_dir" && as_dir=.
2955   for ac_exec_ext in '' $ac_executable_extensions; do
2956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957     ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
2958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959     break 2
2960   fi
2961 done
2962 done
2963
2964   ;;
2965 esac
2966 fi
2967 DX_HHC=$ac_cv_path_DX_HHC
2968
2969 if test -n "$DX_HHC"; then
2970   echo "$as_me:$LINENO: result: $DX_HHC" >&5
2971 echo "${ECHO_T}$DX_HHC" >&6
2972 else
2973   echo "$as_me:$LINENO: result: no" >&5
2974 echo "${ECHO_T}no" >&6
2975 fi
2976
2977 fi
2978 if test -z "$ac_cv_path_DX_HHC"; then
2979   ac_pt_DX_HHC=$DX_HHC
2980   # Extract the first word of "hhc", so it can be a program name with args.
2981 set dummy hhc; ac_word=$2
2982 echo "$as_me:$LINENO: checking for $ac_word" >&5
2983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2984 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   case $ac_pt_DX_HHC in
2988   [\\/]* | ?:[\\/]*)
2989   ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
2990   ;;
2991   *)
2992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995   IFS=$as_save_IFS
2996   test -z "$as_dir" && as_dir=.
2997   for ac_exec_ext in '' $ac_executable_extensions; do
2998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999     ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
3000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001     break 2
3002   fi
3003 done
3004 done
3005
3006   ;;
3007 esac
3008 fi
3009 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
3010
3011 if test -n "$ac_pt_DX_HHC"; then
3012   echo "$as_me:$LINENO: result: $ac_pt_DX_HHC" >&5
3013 echo "${ECHO_T}$ac_pt_DX_HHC" >&6
3014 else
3015   echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6
3017 fi
3018
3019   DX_HHC=$ac_pt_DX_HHC
3020 else
3021   DX_HHC="$ac_cv_path_DX_HHC"
3022 fi
3023
3024 if test "$DX_FLAG_chm$DX_HHC" = 1; then
3025     { echo "$as_me:$LINENO: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
3026 echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
3027     DX_FLAG_chm=0
3028
3029 fi
3030
3031     :
3032 fi
3033 if test "$DX_FLAG_chm" = 1; then
3034
3035
3036 if :; then
3037   DX_COND_chm_TRUE=
3038   DX_COND_chm_FALSE='#'
3039 else
3040   DX_COND_chm_TRUE='#'
3041   DX_COND_chm_FALSE=
3042 fi
3043
3044     DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
3045
3046              DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3047
3048              DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
3049
3050     :
3051 else
3052
3053
3054 if false; then
3055   DX_COND_chm_TRUE=
3056   DX_COND_chm_FALSE='#'
3057 else
3058   DX_COND_chm_TRUE='#'
3059   DX_COND_chm_FALSE=
3060 fi
3061
3062     DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
3063
3064     :
3065 fi
3066
3067
3068 # Seperate CHI file generation.
3069
3070
3071
3072     # Check whether --enable-doxygen-chi or --disable-doxygen-chi was given.
3073 if test "${enable_doxygen_chi+set}" = set; then
3074   enableval="$enable_doxygen_chi"
3075
3076 case "$enableval" in
3077 #(
3078 y|Y|yes|Yes|YES)
3079     DX_FLAG_chi=1
3080
3081
3082 test "$DX_FLAG_chm" = "1" \
3083 || { { echo "$as_me:$LINENO: error: doxygen-chi requires doxygen-chi" >&5
3084 echo "$as_me: error: doxygen-chi requires doxygen-chi" >&2;}
3085    { (exit 1); exit 1; }; }
3086
3087 ;; #(
3088 n|N|no|No|NO)
3089     DX_FLAG_chi=0
3090
3091 ;; #(
3092 *)
3093     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chi" >&5
3094 echo "$as_me: error: invalid value '$enableval' given to doxygen-chi" >&2;}
3095    { (exit 1); exit 1; }; }
3096 ;;
3097 esac
3098
3099 else
3100
3101 DX_FLAG_chi=0
3102
3103
3104 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
3105
3106
3107
3108 fi;
3109 if test "$DX_FLAG_chi" = 1; then
3110
3111     :
3112 fi
3113 if test "$DX_FLAG_chi" = 1; then
3114
3115
3116 if :; then
3117   DX_COND_chi_TRUE=
3118   DX_COND_chi_FALSE='#'
3119 else
3120   DX_COND_chi_TRUE='#'
3121   DX_COND_chi_FALSE=
3122 fi
3123
3124     DX_ENV="$DX_ENV GENERATE_CHI='YES'"
3125
3126     :
3127 else
3128
3129
3130 if false; then
3131   DX_COND_chi_TRUE=
3132   DX_COND_chi_FALSE='#'
3133 else
3134   DX_COND_chi_TRUE='#'
3135   DX_COND_chi_FALSE=
3136 fi
3137
3138     DX_ENV="$DX_ENV GENERATE_CHI='NO'"
3139
3140     :
3141 fi
3142
3143
3144 # Plain HTML pages generation:
3145
3146
3147
3148     # Check whether --enable-doxygen-html or --disable-doxygen-html was given.
3149 if test "${enable_doxygen_html+set}" = set; then
3150   enableval="$enable_doxygen_html"
3151
3152 case "$enableval" in
3153 #(
3154 y|Y|yes|Yes|YES)
3155     DX_FLAG_html=1
3156
3157
3158 test "$DX_FLAG_doc" = "1" \
3159 || { { echo "$as_me:$LINENO: error: doxygen-html requires doxygen-html" >&5
3160 echo "$as_me: error: doxygen-html requires doxygen-html" >&2;}
3161    { (exit 1); exit 1; }; }
3162
3163 test "$DX_FLAG_chm" = "0" \
3164 || { { echo "$as_me:$LINENO: error: doxygen-html contradicts doxygen-html" >&5
3165 echo "$as_me: error: doxygen-html contradicts doxygen-html" >&2;}
3166    { (exit 1); exit 1; }; }
3167
3168 ;; #(
3169 n|N|no|No|NO)
3170     DX_FLAG_html=0
3171
3172 ;; #(
3173 *)
3174     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-html" >&5
3175 echo "$as_me: error: invalid value '$enableval' given to doxygen-html" >&2;}
3176    { (exit 1); exit 1; }; }
3177 ;;
3178 esac
3179
3180 else
3181
3182 DX_FLAG_html=1
3183
3184
3185 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
3186
3187
3188 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
3189
3190
3191
3192 fi;
3193 if test "$DX_FLAG_html" = 1; then
3194
3195     :
3196 fi
3197 if test "$DX_FLAG_html" = 1; then
3198
3199
3200 if :; then
3201   DX_COND_html_TRUE=
3202   DX_COND_html_FALSE='#'
3203 else
3204   DX_COND_html_TRUE='#'
3205   DX_COND_html_FALSE=
3206 fi
3207
3208     DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3209
3210     :
3211 else
3212
3213
3214 if false; then
3215   DX_COND_html_TRUE=
3216   DX_COND_html_FALSE='#'
3217 else
3218   DX_COND_html_TRUE='#'
3219   DX_COND_html_FALSE=
3220 fi
3221
3222     test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
3223
3224     :
3225 fi
3226
3227
3228 # PostScript file generation:
3229
3230
3231
3232     # Check whether --enable-doxygen-ps or --disable-doxygen-ps was given.
3233 if test "${enable_doxygen_ps+set}" = set; then
3234   enableval="$enable_doxygen_ps"
3235
3236 case "$enableval" in
3237 #(
3238 y|Y|yes|Yes|YES)
3239     DX_FLAG_ps=1
3240
3241
3242 test "$DX_FLAG_doc" = "1" \
3243 || { { echo "$as_me:$LINENO: error: doxygen-ps requires doxygen-ps" >&5
3244 echo "$as_me: error: doxygen-ps requires doxygen-ps" >&2;}
3245    { (exit 1); exit 1; }; }
3246
3247 ;; #(
3248 n|N|no|No|NO)
3249     DX_FLAG_ps=0
3250
3251 ;; #(
3252 *)
3253     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-ps" >&5
3254 echo "$as_me: error: invalid value '$enableval' given to doxygen-ps" >&2;}
3255    { (exit 1); exit 1; }; }
3256 ;;
3257 esac
3258
3259 else
3260
3261 DX_FLAG_ps=0
3262
3263
3264 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
3265
3266
3267
3268 fi;
3269 if test "$DX_FLAG_ps" = 1; then
3270
3271 if test -n "$ac_tool_prefix"; then
3272   # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
3273 set dummy ${ac_tool_prefix}latex; ac_word=$2
3274 echo "$as_me:$LINENO: checking for $ac_word" >&5
3275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3276 if test "${ac_cv_path_DX_LATEX+set}" = set; then
3277   echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279   case $DX_LATEX in
3280   [\\/]* | ?:[\\/]*)
3281   ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
3282   ;;
3283   *)
3284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287   IFS=$as_save_IFS
3288   test -z "$as_dir" && as_dir=.
3289   for ac_exec_ext in '' $ac_executable_extensions; do
3290   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291     ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293     break 2
3294   fi
3295 done
3296 done
3297
3298   ;;
3299 esac
3300 fi
3301 DX_LATEX=$ac_cv_path_DX_LATEX
3302
3303 if test -n "$DX_LATEX"; then
3304   echo "$as_me:$LINENO: result: $DX_LATEX" >&5
3305 echo "${ECHO_T}$DX_LATEX" >&6
3306 else
3307   echo "$as_me:$LINENO: result: no" >&5
3308 echo "${ECHO_T}no" >&6
3309 fi
3310
3311 fi
3312 if test -z "$ac_cv_path_DX_LATEX"; then
3313   ac_pt_DX_LATEX=$DX_LATEX
3314   # Extract the first word of "latex", so it can be a program name with args.
3315 set dummy latex; ac_word=$2
3316 echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then
3319   echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321   case $ac_pt_DX_LATEX in
3322   [\\/]* | ?:[\\/]*)
3323   ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
3324   ;;
3325   *)
3326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $PATH
3328 do
3329   IFS=$as_save_IFS
3330   test -z "$as_dir" && as_dir=.
3331   for ac_exec_ext in '' $ac_executable_extensions; do
3332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3333     ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3335     break 2
3336   fi
3337 done
3338 done
3339
3340   ;;
3341 esac
3342 fi
3343 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
3344
3345 if test -n "$ac_pt_DX_LATEX"; then
3346   echo "$as_me:$LINENO: result: $ac_pt_DX_LATEX" >&5
3347 echo "${ECHO_T}$ac_pt_DX_LATEX" >&6
3348 else
3349   echo "$as_me:$LINENO: result: no" >&5
3350 echo "${ECHO_T}no" >&6
3351 fi
3352
3353   DX_LATEX=$ac_pt_DX_LATEX
3354 else
3355   DX_LATEX="$ac_cv_path_DX_LATEX"
3356 fi
3357
3358 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
3359     { echo "$as_me:$LINENO: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
3360 echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
3361     DX_FLAG_ps=0
3362
3363 fi
3364
3365
3366 if test -n "$ac_tool_prefix"; then
3367   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3368 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3369 echo "$as_me:$LINENO: checking for $ac_word" >&5
3370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3371 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3372   echo $ECHO_N "(cached) $ECHO_C" >&6
3373 else
3374   case $DX_MAKEINDEX in
3375   [\\/]* | ?:[\\/]*)
3376   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3377   ;;
3378   *)
3379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382   IFS=$as_save_IFS
3383   test -z "$as_dir" && as_dir=.
3384   for ac_exec_ext in '' $ac_executable_extensions; do
3385   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3388     break 2
3389   fi
3390 done
3391 done
3392
3393   ;;
3394 esac
3395 fi
3396 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3397
3398 if test -n "$DX_MAKEINDEX"; then
3399   echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3400 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3401 else
3402   echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6
3404 fi
3405
3406 fi
3407 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3408   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3409   # Extract the first word of "makeindex", so it can be a program name with args.
3410 set dummy makeindex; ac_word=$2
3411 echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3414   echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416   case $ac_pt_DX_MAKEINDEX in
3417   [\\/]* | ?:[\\/]*)
3418   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3419   ;;
3420   *)
3421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3423 do
3424   IFS=$as_save_IFS
3425   test -z "$as_dir" && as_dir=.
3426   for ac_exec_ext in '' $ac_executable_extensions; do
3427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3430     break 2
3431   fi
3432 done
3433 done
3434
3435   ;;
3436 esac
3437 fi
3438 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3439
3440 if test -n "$ac_pt_DX_MAKEINDEX"; then
3441   echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3442 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3443 else
3444   echo "$as_me:$LINENO: result: no" >&5
3445 echo "${ECHO_T}no" >&6
3446 fi
3447
3448   DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3449 else
3450   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3451 fi
3452
3453 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
3454     { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
3455 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
3456     DX_FLAG_ps=0
3457
3458 fi
3459
3460
3461 if test -n "$ac_tool_prefix"; then
3462   # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
3463 set dummy ${ac_tool_prefix}dvips; ac_word=$2
3464 echo "$as_me:$LINENO: checking for $ac_word" >&5
3465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3466 if test "${ac_cv_path_DX_DVIPS+set}" = set; then
3467   echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469   case $DX_DVIPS in
3470   [\\/]* | ?:[\\/]*)
3471   ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
3472   ;;
3473   *)
3474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 for as_dir in $PATH
3476 do
3477   IFS=$as_save_IFS
3478   test -z "$as_dir" && as_dir=.
3479   for ac_exec_ext in '' $ac_executable_extensions; do
3480   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3481     ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3483     break 2
3484   fi
3485 done
3486 done
3487
3488   ;;
3489 esac
3490 fi
3491 DX_DVIPS=$ac_cv_path_DX_DVIPS
3492
3493 if test -n "$DX_DVIPS"; then
3494   echo "$as_me:$LINENO: result: $DX_DVIPS" >&5
3495 echo "${ECHO_T}$DX_DVIPS" >&6
3496 else
3497   echo "$as_me:$LINENO: result: no" >&5
3498 echo "${ECHO_T}no" >&6
3499 fi
3500
3501 fi
3502 if test -z "$ac_cv_path_DX_DVIPS"; then
3503   ac_pt_DX_DVIPS=$DX_DVIPS
3504   # Extract the first word of "dvips", so it can be a program name with args.
3505 set dummy dvips; ac_word=$2
3506 echo "$as_me:$LINENO: checking for $ac_word" >&5
3507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3508 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then
3509   echo $ECHO_N "(cached) $ECHO_C" >&6
3510 else
3511   case $ac_pt_DX_DVIPS in
3512   [\\/]* | ?:[\\/]*)
3513   ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
3514   ;;
3515   *)
3516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519   IFS=$as_save_IFS
3520   test -z "$as_dir" && as_dir=.
3521   for ac_exec_ext in '' $ac_executable_extensions; do
3522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523     ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3525     break 2
3526   fi
3527 done
3528 done
3529
3530   ;;
3531 esac
3532 fi
3533 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
3534
3535 if test -n "$ac_pt_DX_DVIPS"; then
3536   echo "$as_me:$LINENO: result: $ac_pt_DX_DVIPS" >&5
3537 echo "${ECHO_T}$ac_pt_DX_DVIPS" >&6
3538 else
3539   echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3541 fi
3542
3543   DX_DVIPS=$ac_pt_DX_DVIPS
3544 else
3545   DX_DVIPS="$ac_cv_path_DX_DVIPS"
3546 fi
3547
3548 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
3549     { echo "$as_me:$LINENO: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
3550 echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
3551     DX_FLAG_ps=0
3552
3553 fi
3554
3555
3556 if test -n "$ac_tool_prefix"; then
3557   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3558 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3559 echo "$as_me:$LINENO: checking for $ac_word" >&5
3560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3561 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3562   echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564   case $DX_EGREP in
3565   [\\/]* | ?:[\\/]*)
3566   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3567   ;;
3568   *)
3569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH
3571 do
3572   IFS=$as_save_IFS
3573   test -z "$as_dir" && as_dir=.
3574   for ac_exec_ext in '' $ac_executable_extensions; do
3575   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3578     break 2
3579   fi
3580 done
3581 done
3582
3583   ;;
3584 esac
3585 fi
3586 DX_EGREP=$ac_cv_path_DX_EGREP
3587
3588 if test -n "$DX_EGREP"; then
3589   echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3590 echo "${ECHO_T}$DX_EGREP" >&6
3591 else
3592   echo "$as_me:$LINENO: result: no" >&5
3593 echo "${ECHO_T}no" >&6
3594 fi
3595
3596 fi
3597 if test -z "$ac_cv_path_DX_EGREP"; then
3598   ac_pt_DX_EGREP=$DX_EGREP
3599   # Extract the first word of "egrep", so it can be a program name with args.
3600 set dummy egrep; ac_word=$2
3601 echo "$as_me:$LINENO: checking for $ac_word" >&5
3602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3603 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3604   echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606   case $ac_pt_DX_EGREP in
3607   [\\/]* | ?:[\\/]*)
3608   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3609   ;;
3610   *)
3611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3613 do
3614   IFS=$as_save_IFS
3615   test -z "$as_dir" && as_dir=.
3616   for ac_exec_ext in '' $ac_executable_extensions; do
3617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620     break 2
3621   fi
3622 done
3623 done
3624
3625   ;;
3626 esac
3627 fi
3628 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3629
3630 if test -n "$ac_pt_DX_EGREP"; then
3631   echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3632 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3633 else
3634   echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6
3636 fi
3637
3638   DX_EGREP=$ac_pt_DX_EGREP
3639 else
3640   DX_EGREP="$ac_cv_path_DX_EGREP"
3641 fi
3642
3643 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
3644     { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
3645 echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
3646     DX_FLAG_ps=0
3647
3648 fi
3649
3650     :
3651 fi
3652 if test "$DX_FLAG_ps" = 1; then
3653
3654
3655 if :; then
3656   DX_COND_ps_TRUE=
3657   DX_COND_ps_FALSE='#'
3658 else
3659   DX_COND_ps_TRUE='#'
3660   DX_COND_ps_FALSE=
3661 fi
3662
3663
3664     :
3665 else
3666
3667
3668 if false; then
3669   DX_COND_ps_TRUE=
3670   DX_COND_ps_FALSE='#'
3671 else
3672   DX_COND_ps_TRUE='#'
3673   DX_COND_ps_FALSE=
3674 fi
3675
3676
3677     :
3678 fi
3679
3680
3681 # PDF file generation:
3682
3683
3684
3685     # Check whether --enable-doxygen-pdf or --disable-doxygen-pdf was given.
3686 if test "${enable_doxygen_pdf+set}" = set; then
3687   enableval="$enable_doxygen_pdf"
3688
3689 case "$enableval" in
3690 #(
3691 y|Y|yes|Yes|YES)
3692     DX_FLAG_pdf=1
3693
3694
3695 test "$DX_FLAG_doc" = "1" \
3696 || { { echo "$as_me:$LINENO: error: doxygen-pdf requires doxygen-pdf" >&5
3697 echo "$as_me: error: doxygen-pdf requires doxygen-pdf" >&2;}
3698    { (exit 1); exit 1; }; }
3699
3700 ;; #(
3701 n|N|no|No|NO)
3702     DX_FLAG_pdf=0
3703
3704 ;; #(
3705 *)
3706     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-pdf" >&5
3707 echo "$as_me: error: invalid value '$enableval' given to doxygen-pdf" >&2;}
3708    { (exit 1); exit 1; }; }
3709 ;;
3710 esac
3711
3712 else
3713
3714 DX_FLAG_pdf=0
3715
3716
3717 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
3718
3719
3720
3721 fi;
3722 if test "$DX_FLAG_pdf" = 1; then
3723
3724 if test -n "$ac_tool_prefix"; then
3725   # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
3726 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
3727 echo "$as_me:$LINENO: checking for $ac_word" >&5
3728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3729 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then
3730   echo $ECHO_N "(cached) $ECHO_C" >&6
3731 else
3732   case $DX_PDFLATEX in
3733   [\\/]* | ?:[\\/]*)
3734   ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
3735   ;;
3736   *)
3737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740   IFS=$as_save_IFS
3741   test -z "$as_dir" && as_dir=.
3742   for ac_exec_ext in '' $ac_executable_extensions; do
3743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744     ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746     break 2
3747   fi
3748 done
3749 done
3750
3751   ;;
3752 esac
3753 fi
3754 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
3755
3756 if test -n "$DX_PDFLATEX"; then
3757   echo "$as_me:$LINENO: result: $DX_PDFLATEX" >&5
3758 echo "${ECHO_T}$DX_PDFLATEX" >&6
3759 else
3760   echo "$as_me:$LINENO: result: no" >&5
3761 echo "${ECHO_T}no" >&6
3762 fi
3763
3764 fi
3765 if test -z "$ac_cv_path_DX_PDFLATEX"; then
3766   ac_pt_DX_PDFLATEX=$DX_PDFLATEX
3767   # Extract the first word of "pdflatex", so it can be a program name with args.
3768 set dummy pdflatex; ac_word=$2
3769 echo "$as_me:$LINENO: checking for $ac_word" >&5
3770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3771 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then
3772   echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774   case $ac_pt_DX_PDFLATEX in
3775   [\\/]* | ?:[\\/]*)
3776   ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
3777   ;;
3778   *)
3779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3781 do
3782   IFS=$as_save_IFS
3783   test -z "$as_dir" && as_dir=.
3784   for ac_exec_ext in '' $ac_executable_extensions; do
3785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786     ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788     break 2
3789   fi
3790 done
3791 done
3792
3793   ;;
3794 esac
3795 fi
3796 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
3797
3798 if test -n "$ac_pt_DX_PDFLATEX"; then
3799   echo "$as_me:$LINENO: result: $ac_pt_DX_PDFLATEX" >&5
3800 echo "${ECHO_T}$ac_pt_DX_PDFLATEX" >&6
3801 else
3802   echo "$as_me:$LINENO: result: no" >&5
3803 echo "${ECHO_T}no" >&6
3804 fi
3805
3806   DX_PDFLATEX=$ac_pt_DX_PDFLATEX
3807 else
3808   DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
3809 fi
3810
3811 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
3812     { echo "$as_me:$LINENO: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
3813 echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
3814     DX_FLAG_pdf=0
3815
3816 fi
3817
3818
3819 if test -n "$ac_tool_prefix"; then
3820   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3821 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3822 echo "$as_me:$LINENO: checking for $ac_word" >&5
3823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3824 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3825   echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827   case $DX_MAKEINDEX in
3828   [\\/]* | ?:[\\/]*)
3829   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3830   ;;
3831   *)
3832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835   IFS=$as_save_IFS
3836   test -z "$as_dir" && as_dir=.
3837   for ac_exec_ext in '' $ac_executable_extensions; do
3838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3841     break 2
3842   fi
3843 done
3844 done
3845
3846   ;;
3847 esac
3848 fi
3849 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3850
3851 if test -n "$DX_MAKEINDEX"; then
3852   echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3853 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3854 else
3855   echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3857 fi
3858
3859 fi
3860 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3861   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3862   # Extract the first word of "makeindex", so it can be a program name with args.
3863 set dummy makeindex; ac_word=$2
3864 echo "$as_me:$LINENO: checking for $ac_word" >&5
3865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3867   echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869   case $ac_pt_DX_MAKEINDEX in
3870   [\\/]* | ?:[\\/]*)
3871   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3872   ;;
3873   *)
3874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 for as_dir in $PATH
3876 do
3877   IFS=$as_save_IFS
3878   test -z "$as_dir" && as_dir=.
3879   for ac_exec_ext in '' $ac_executable_extensions; do
3880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3881     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3883     break 2
3884   fi
3885 done
3886 done
3887
3888   ;;
3889 esac
3890 fi
3891 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3892
3893 if test -n "$ac_pt_DX_MAKEINDEX"; then
3894   echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3895 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3896 else
3897   echo "$as_me:$LINENO: result: no" >&5
3898 echo "${ECHO_T}no" >&6
3899 fi
3900
3901   DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3902 else
3903   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3904 fi
3905
3906 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
3907     { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
3908 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
3909     DX_FLAG_pdf=0
3910
3911 fi
3912
3913
3914 if test -n "$ac_tool_prefix"; then
3915   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3916 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3920   echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922   case $DX_EGREP in
3923   [\\/]* | ?:[\\/]*)
3924   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3925   ;;
3926   *)
3927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3929 do
3930   IFS=$as_save_IFS
3931   test -z "$as_dir" && as_dir=.
3932   for ac_exec_ext in '' $ac_executable_extensions; do
3933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3934     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3936     break 2
3937   fi
3938 done
3939 done
3940
3941   ;;
3942 esac
3943 fi
3944 DX_EGREP=$ac_cv_path_DX_EGREP
3945
3946 if test -n "$DX_EGREP"; then
3947   echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3948 echo "${ECHO_T}$DX_EGREP" >&6
3949 else
3950   echo "$as_me:$LINENO: result: no" >&5
3951 echo "${ECHO_T}no" >&6
3952 fi
3953
3954 fi
3955 if test -z "$ac_cv_path_DX_EGREP"; then
3956   ac_pt_DX_EGREP=$DX_EGREP
3957   # Extract the first word of "egrep", so it can be a program name with args.
3958 set dummy egrep; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   case $ac_pt_DX_EGREP in
3965   [\\/]* | ?:[\\/]*)
3966   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3967   ;;
3968   *)
3969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH
3971 do
3972   IFS=$as_save_IFS
3973   test -z "$as_dir" && as_dir=.
3974   for ac_exec_ext in '' $ac_executable_extensions; do
3975   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3978     break 2
3979   fi
3980 done
3981 done
3982
3983   ;;
3984 esac
3985 fi
3986 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3987
3988 if test -n "$ac_pt_DX_EGREP"; then
3989   echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3990 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3991 else
3992   echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3994 fi
3995
3996   DX_EGREP=$ac_pt_DX_EGREP
3997 else
3998   DX_EGREP="$ac_cv_path_DX_EGREP"
3999 fi
4000
4001 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
4002     { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
4003 echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
4004     DX_FLAG_pdf=0
4005
4006 fi
4007
4008     :
4009 fi
4010 if test "$DX_FLAG_pdf" = 1; then
4011
4012
4013 if :; then
4014   DX_COND_pdf_TRUE=
4015   DX_COND_pdf_FALSE='#'
4016 else
4017   DX_COND_pdf_TRUE='#'
4018   DX_COND_pdf_FALSE=
4019 fi
4020
4021
4022     :
4023 else
4024
4025
4026 if false; then
4027   DX_COND_pdf_TRUE=
4028   DX_COND_pdf_FALSE='#'
4029 else
4030   DX_COND_pdf_TRUE='#'
4031   DX_COND_pdf_FALSE=
4032 fi
4033
4034
4035     :
4036 fi
4037
4038
4039 # LaTeX generation for PS and/or PDF:
4040 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
4041
4042
4043 if :; then
4044   DX_COND_latex_TRUE=
4045   DX_COND_latex_FALSE='#'
4046 else
4047   DX_COND_latex_TRUE='#'
4048   DX_COND_latex_FALSE=
4049 fi
4050
4051     DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
4052
4053 else
4054
4055
4056 if false; then
4057   DX_COND_latex_TRUE=
4058   DX_COND_latex_FALSE='#'
4059 else
4060   DX_COND_latex_TRUE='#'
4061   DX_COND_latex_FALSE=
4062 fi
4063
4064     DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
4065
4066 fi
4067
4068 # Paper size for PS and/or PDF:
4069
4070 case "$DOXYGEN_PAPER_SIZE" in
4071 #(
4072 "")
4073     DOXYGEN_PAPER_SIZE=""
4074
4075 ;; #(
4076 a4wide|a4|letter|legal|executive)
4077     DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
4078
4079 ;; #(
4080 *)
4081     { { echo "$as_me:$LINENO: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&5
4082 echo "$as_me: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&2;}
4083    { (exit 1); exit 1; }; }
4084 ;;
4085 esac
4086
4087 #For debugging:
4088 #echo DX_FLAG_doc=$DX_FLAG_doc
4089 #echo DX_FLAG_dot=$DX_FLAG_dot
4090 #echo DX_FLAG_man=$DX_FLAG_man
4091 #echo DX_FLAG_html=$DX_FLAG_html
4092 #echo DX_FLAG_chm=$DX_FLAG_chm
4093 #echo DX_FLAG_chi=$DX_FLAG_chi
4094 #echo DX_FLAG_rtf=$DX_FLAG_rtf
4095 #echo DX_FLAG_xml=$DX_FLAG_xml
4096 #echo DX_FLAG_pdf=$DX_FLAG_pdf
4097 #echo DX_FLAG_ps=$DX_FLAG_ps
4098 #echo DX_ENV=$DX_ENV
4099
4100 DX_INCLUDE=
4101
4102 # Check whether --enable-debug or --disable-debug was given.
4103 if test "${enable_debug+set}" = set; then
4104   enableval="$enable_debug"
4105   enable_debug=$enableval
4106 else
4107   enable_debug=no
4108 fi;
4109
4110 if test "$enable_debug" = "yes" ; then
4111     GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
4112     GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
4113 else
4114     GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
4115     GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
4116 fi
4117
4118 ac_ext=c
4119 ac_cpp='$CPP $CPPFLAGS'
4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4123 if test -n "$ac_tool_prefix"; then
4124   for ac_prog in gcc gcc3 cc
4125   do
4126     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4127 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4128 echo "$as_me:$LINENO: checking for $ac_word" >&5
4129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4130 if test "${ac_cv_prog_CC+set}" = set; then
4131   echo $ECHO_N "(cached) $ECHO_C" >&6
4132 else
4133   if test -n "$CC"; then
4134   ac_cv_prog_CC="$CC" # Let the user override the test.
4135 else
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH
4138 do
4139   IFS=$as_save_IFS
4140   test -z "$as_dir" && as_dir=.
4141   for ac_exec_ext in '' $ac_executable_extensions; do
4142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4143     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4145     break 2
4146   fi
4147 done
4148 done
4149
4150 fi
4151 fi
4152 CC=$ac_cv_prog_CC
4153 if test -n "$CC"; then
4154   echo "$as_me:$LINENO: result: $CC" >&5
4155 echo "${ECHO_T}$CC" >&6
4156 else
4157   echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4159 fi
4160
4161     test -n "$CC" && break
4162   done
4163 fi
4164 if test -z "$CC"; then
4165   ac_ct_CC=$CC
4166   for ac_prog in gcc gcc3 cc
4167 do
4168   # Extract the first word of "$ac_prog", so it can be a program name with args.
4169 set dummy $ac_prog; ac_word=$2
4170 echo "$as_me:$LINENO: checking for $ac_word" >&5
4171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4172 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4173   echo $ECHO_N "(cached) $ECHO_C" >&6
4174 else
4175   if test -n "$ac_ct_CC"; then
4176   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4177 else
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4180 do
4181   IFS=$as_save_IFS
4182   test -z "$as_dir" && as_dir=.
4183   for ac_exec_ext in '' $ac_executable_extensions; do
4184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4185     ac_cv_prog_ac_ct_CC="$ac_prog"
4186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4187     break 2
4188   fi
4189 done
4190 done
4191
4192 fi
4193 fi
4194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4195 if test -n "$ac_ct_CC"; then
4196   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4197 echo "${ECHO_T}$ac_ct_CC" >&6
4198 else
4199   echo "$as_me:$LINENO: result: no" >&5
4200 echo "${ECHO_T}no" >&6
4201 fi
4202
4203   test -n "$ac_ct_CC" && break
4204 done
4205
4206   CC=$ac_ct_CC
4207 fi
4208
4209
4210 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4211 See \`config.log' for more details." >&5
4212 echo "$as_me: error: no acceptable C compiler found in \$PATH
4213 See \`config.log' for more details." >&2;}
4214    { (exit 1); exit 1; }; }
4215
4216 # Provide some information about the compiler.
4217 echo "$as_me:$LINENO:" \
4218      "checking for C compiler version" >&5
4219 ac_compiler=`set X $ac_compile; echo $2`
4220 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4221   (eval $ac_compiler --version </dev/null >&5) 2>&5
4222   ac_status=$?
4223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); }
4225 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4226   (eval $ac_compiler -v </dev/null >&5) 2>&5
4227   ac_status=$?
4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229   (exit $ac_status); }
4230 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4231   (eval $ac_compiler -V </dev/null >&5) 2>&5
4232   ac_status=$?
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); }
4235
4236 cat >conftest.$ac_ext <<_ACEOF
4237 /* confdefs.h.  */
4238 _ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h.  */
4242
4243 int
4244 main ()
4245 {
4246
4247   ;
4248   return 0;
4249 }
4250 _ACEOF
4251 ac_clean_files_save=$ac_clean_files
4252 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4253 # Try to create an executable without -o first, disregard a.out.
4254 # It will help us diagnose broken compilers, and finding out an intuition
4255 # of exeext.
4256 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4257 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4258 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4259 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4260   (eval $ac_link_default) 2>&5
4261   ac_status=$?
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); }; then
4264   # Find the output, starting from the most likely.  This scheme is
4265 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4266 # resort.
4267
4268 # Be careful to initialize this variable, since it used to be cached.
4269 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4270 ac_cv_exeext=
4271 # b.out is created by i960 compilers.
4272 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4273 do
4274   test -f "$ac_file" || continue
4275   case $ac_file in
4276     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4277         ;;
4278     conftest.$ac_ext )
4279         # This is the source file.
4280         ;;
4281     [ab].out )
4282         # We found the default executable, but exeext='' is most
4283         # certainly right.
4284         break;;
4285     *.* )
4286         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4287         # FIXME: I believe we export ac_cv_exeext for Libtool,
4288         # but it would be cool to find out if it's true.  Does anybody
4289         # maintain Libtool? --akim.
4290         export ac_cv_exeext
4291         break;;
4292     * )
4293         break;;
4294   esac
4295 done
4296 else
4297   echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4299
4300 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4301 See \`config.log' for more details." >&5
4302 echo "$as_me: error: C compiler cannot create executables
4303 See \`config.log' for more details." >&2;}
4304    { (exit 77); exit 77; }; }
4305 fi
4306
4307 ac_exeext=$ac_cv_exeext
4308 echo "$as_me:$LINENO: result: $ac_file" >&5
4309 echo "${ECHO_T}$ac_file" >&6
4310
4311 # Check the compiler produces executables we can run.  If not, either
4312 # the compiler is broken, or we cross compile.
4313 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4314 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4315 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4316 # If not cross compiling, check that we can run a simple program.
4317 if test "$cross_compiling" != yes; then
4318   if { ac_try='./$ac_file'
4319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320   (eval $ac_try) 2>&5
4321   ac_status=$?
4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); }; }; then
4324     cross_compiling=no
4325   else
4326     if test "$cross_compiling" = maybe; then
4327         cross_compiling=yes
4328     else
4329         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4330 If you meant to cross compile, use \`--host'.
4331 See \`config.log' for more details." >&5
4332 echo "$as_me: error: cannot run C compiled programs.
4333 If you meant to cross compile, use \`--host'.
4334 See \`config.log' for more details." >&2;}
4335    { (exit 1); exit 1; }; }
4336     fi
4337   fi
4338 fi
4339 echo "$as_me:$LINENO: result: yes" >&5
4340 echo "${ECHO_T}yes" >&6
4341
4342 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4343 ac_clean_files=$ac_clean_files_save
4344 # Check the compiler produces executables we can run.  If not, either
4345 # the compiler is broken, or we cross compile.
4346 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4347 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4348 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4349 echo "${ECHO_T}$cross_compiling" >&6
4350
4351 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4352 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4354   (eval $ac_link) 2>&5
4355   ac_status=$?
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); }; then
4358   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4359 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4360 # work properly (i.e., refer to `conftest.exe'), while it won't with
4361 # `rm'.
4362 for ac_file in conftest.exe conftest conftest.*; do
4363   test -f "$ac_file" || continue
4364   case $ac_file in
4365     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4366     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4367           export ac_cv_exeext
4368           break;;
4369     * ) break;;
4370   esac
4371 done
4372 else
4373   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4374 See \`config.log' for more details." >&5
4375 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4376 See \`config.log' for more details." >&2;}
4377    { (exit 1); exit 1; }; }
4378 fi
4379
4380 rm -f conftest$ac_cv_exeext
4381 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4382 echo "${ECHO_T}$ac_cv_exeext" >&6
4383
4384 rm -f conftest.$ac_ext
4385 EXEEXT=$ac_cv_exeext
4386 ac_exeext=$EXEEXT
4387 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4388 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4389 if test "${ac_cv_objext+set}" = set; then
4390   echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392   cat >conftest.$ac_ext <<_ACEOF
4393 /* confdefs.h.  */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h.  */
4398
4399 int
4400 main ()
4401 {
4402
4403   ;
4404   return 0;
4405 }
4406 _ACEOF
4407 rm -f conftest.o conftest.obj
4408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409   (eval $ac_compile) 2>&5
4410   ac_status=$?
4411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412   (exit $ac_status); }; then
4413   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4414   case $ac_file in
4415     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4416     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4417        break;;
4418   esac
4419 done
4420 else
4421   echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4425 See \`config.log' for more details." >&5
4426 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4427 See \`config.log' for more details." >&2;}
4428    { (exit 1); exit 1; }; }
4429 fi
4430
4431 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4432 fi
4433 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4434 echo "${ECHO_T}$ac_cv_objext" >&6
4435 OBJEXT=$ac_cv_objext
4436 ac_objext=$OBJEXT
4437 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4438 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4439 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4440   echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442   cat >conftest.$ac_ext <<_ACEOF
4443 /* confdefs.h.  */
4444 _ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h.  */
4448
4449 int
4450 main ()
4451 {
4452 #ifndef __GNUC__
4453        choke me
4454 #endif
4455
4456   ;
4457   return 0;
4458 }
4459 _ACEOF
4460 rm -f conftest.$ac_objext
4461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4462   (eval $ac_compile) 2>conftest.er1
4463   ac_status=$?
4464   grep -v '^ *+' conftest.er1 >conftest.err
4465   rm -f conftest.er1
4466   cat conftest.err >&5
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); } &&
4469          { ac_try='test -z "$ac_c_werror_flag"
4470                          || test ! -s conftest.err'
4471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472   (eval $ac_try) 2>&5
4473   ac_status=$?
4474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475   (exit $ac_status); }; } &&
4476          { ac_try='test -s conftest.$ac_objext'
4477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478   (eval $ac_try) 2>&5
4479   ac_status=$?
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); }; }; then
4482   ac_compiler_gnu=yes
4483 else
4484   echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4486
4487 ac_compiler_gnu=no
4488 fi
4489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4491
4492 fi
4493 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4494 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4495 GCC=`test $ac_compiler_gnu = yes && echo yes`
4496 ac_test_CFLAGS=${CFLAGS+set}
4497 ac_save_CFLAGS=$CFLAGS
4498 CFLAGS="-g"
4499 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4500 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4501 if test "${ac_cv_prog_cc_g+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   cat >conftest.$ac_ext <<_ACEOF
4505 /* confdefs.h.  */
4506 _ACEOF
4507 cat confdefs.h >>conftest.$ac_ext
4508 cat >>conftest.$ac_ext <<_ACEOF
4509 /* end confdefs.h.  */
4510
4511 int
4512 main ()
4513 {
4514
4515   ;
4516   return 0;
4517 }
4518 _ACEOF
4519 rm -f conftest.$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521   (eval $ac_compile) 2>conftest.er1
4522   ac_status=$?
4523   grep -v '^ *+' conftest.er1 >conftest.err
4524   rm -f conftest.er1
4525   cat conftest.err >&5
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); } &&
4528          { ac_try='test -z "$ac_c_werror_flag"
4529                          || test ! -s conftest.err'
4530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531   (eval $ac_try) 2>&5
4532   ac_status=$?
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); }; } &&
4535          { ac_try='test -s conftest.$ac_objext'
4536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537   (eval $ac_try) 2>&5
4538   ac_status=$?
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); }; }; then
4541   ac_cv_prog_cc_g=yes
4542 else
4543   echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4545
4546 ac_cv_prog_cc_g=no
4547 fi
4548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4549 fi
4550 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4551 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4552 if test "$ac_test_CFLAGS" = set; then
4553   CFLAGS=$ac_save_CFLAGS
4554 elif test $ac_cv_prog_cc_g = yes; then
4555   if test "$GCC" = yes; then
4556     CFLAGS="-g -O2"
4557   else
4558     CFLAGS="-g"
4559   fi
4560 else
4561   if test "$GCC" = yes; then
4562     CFLAGS="-O2"
4563   else
4564     CFLAGS=
4565   fi
4566 fi
4567 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4568 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4569 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4570   echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572   ac_cv_prog_cc_stdc=no
4573 ac_save_CC=$CC
4574 cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h.  */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h.  */
4580 #include <stdarg.h>
4581 #include <stdio.h>
4582 #include <sys/types.h>
4583 #include <sys/stat.h>
4584 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4585 struct buf { int x; };
4586 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4587 static char *e (p, i)
4588      char **p;
4589      int i;
4590 {
4591   return p[i];
4592 }
4593 static char *f (char * (*g) (char **, int), char **p, ...)
4594 {
4595   char *s;
4596   va_list v;
4597   va_start (v,p);
4598   s = g (p, va_arg (v,int));
4599   va_end (v);
4600   return s;
4601 }
4602
4603 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4604    function prototypes and stuff, but not '\xHH' hex character constants.
4605    These don't provoke an error unfortunately, instead are silently treated
4606    as 'x'.  The following induces an error, until -std1 is added to get
4607    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4608    array size at least.  It's necessary to write '\x00'==0 to get something
4609    that's true only with -std1.  */
4610 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4611
4612 int test (int i, double x);
4613 struct s1 {int (*f) (int a);};
4614 struct s2 {int (*f) (double a);};
4615 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4616 int argc;
4617 char **argv;
4618 int
4619 main ()
4620 {
4621 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4622   ;
4623   return 0;
4624 }
4625 _ACEOF
4626 # Don't try gcc -ansi; that turns off useful extensions and
4627 # breaks some systems' header files.
4628 # AIX                   -qlanglvl=ansi
4629 # Ultrix and OSF/1      -std1
4630 # HP-UX 10.20 and later -Ae
4631 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4632 # SVR4                  -Xc -D__EXTENSIONS__
4633 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4634 do
4635   CC="$ac_save_CC $ac_arg"
4636   rm -f conftest.$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638   (eval $ac_compile) 2>conftest.er1
4639   ac_status=$?
4640   grep -v '^ *+' conftest.er1 >conftest.err
4641   rm -f conftest.er1
4642   cat conftest.err >&5
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); } &&
4645          { ac_try='test -z "$ac_c_werror_flag"
4646                          || test ! -s conftest.err'
4647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648   (eval $ac_try) 2>&5
4649   ac_status=$?
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); }; } &&
4652          { ac_try='test -s conftest.$ac_objext'
4653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654   (eval $ac_try) 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); }; }; then
4658   ac_cv_prog_cc_stdc=$ac_arg
4659 break
4660 else
4661   echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4663
4664 fi
4665 rm -f conftest.err conftest.$ac_objext
4666 done
4667 rm -f conftest.$ac_ext conftest.$ac_objext
4668 CC=$ac_save_CC
4669
4670 fi
4671
4672 case "x$ac_cv_prog_cc_stdc" in
4673   x|xno)
4674     echo "$as_me:$LINENO: result: none needed" >&5
4675 echo "${ECHO_T}none needed" >&6 ;;
4676   *)
4677     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4678 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4679     CC="$CC $ac_cv_prog_cc_stdc" ;;
4680 esac
4681
4682 # Some people use a C++ compiler to compile C.  Since we use `exit',
4683 # in C++ we need to declare it.  In case someone uses the same compiler
4684 # for both compiling C and C++ we need to have the C++ compiler decide
4685 # the declaration of exit, since it's the most demanding environment.
4686 cat >conftest.$ac_ext <<_ACEOF
4687 #ifndef __cplusplus
4688   choke me
4689 #endif
4690 _ACEOF
4691 rm -f conftest.$ac_objext
4692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4693   (eval $ac_compile) 2>conftest.er1
4694   ac_status=$?
4695   grep -v '^ *+' conftest.er1 >conftest.err
4696   rm -f conftest.er1
4697   cat conftest.err >&5
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); } &&
4700          { ac_try='test -z "$ac_c_werror_flag"
4701                          || test ! -s conftest.err'
4702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703   (eval $ac_try) 2>&5
4704   ac_status=$?
4705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706   (exit $ac_status); }; } &&
4707          { ac_try='test -s conftest.$ac_objext'
4708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709   (eval $ac_try) 2>&5
4710   ac_status=$?
4711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712   (exit $ac_status); }; }; then
4713   for ac_declaration in \
4714    '' \
4715    'extern "C" void std::exit (int) throw (); using std::exit;' \
4716    'extern "C" void std::exit (int); using std::exit;' \
4717    'extern "C" void exit (int) throw ();' \
4718    'extern "C" void exit (int);' \
4719    'void exit (int);'
4720 do
4721   cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h.  */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h.  */
4727 $ac_declaration
4728 #include <stdlib.h>
4729 int
4730 main ()
4731 {
4732 exit (42);
4733   ;
4734   return 0;
4735 }
4736 _ACEOF
4737 rm -f conftest.$ac_objext
4738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739   (eval $ac_compile) 2>conftest.er1
4740   ac_status=$?
4741   grep -v '^ *+' conftest.er1 >conftest.err
4742   rm -f conftest.er1
4743   cat conftest.err >&5
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); } &&
4746          { ac_try='test -z "$ac_c_werror_flag"
4747                          || test ! -s conftest.err'
4748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749   (eval $ac_try) 2>&5
4750   ac_status=$?
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); }; } &&
4753          { ac_try='test -s conftest.$ac_objext'
4754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755   (eval $ac_try) 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); }; }; then
4759   :
4760 else
4761   echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4763
4764 continue
4765 fi
4766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4767   cat >conftest.$ac_ext <<_ACEOF
4768 /* confdefs.h.  */
4769 _ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h.  */
4773 $ac_declaration
4774 int
4775 main ()
4776 {
4777 exit (42);
4778   ;
4779   return 0;
4780 }
4781 _ACEOF
4782 rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784   (eval $ac_compile) 2>conftest.er1
4785   ac_status=$?
4786   grep -v '^ *+' conftest.er1 >conftest.err
4787   rm -f conftest.er1
4788   cat conftest.err >&5
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); } &&
4791          { ac_try='test -z "$ac_c_werror_flag"
4792                          || test ! -s conftest.err'
4793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794   (eval $ac_try) 2>&5
4795   ac_status=$?
4796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797   (exit $ac_status); }; } &&
4798          { ac_try='test -s conftest.$ac_objext'
4799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800   (eval $ac_try) 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); }; }; then
4804   break
4805 else
4806   echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4808
4809 fi
4810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4811 done
4812 rm -f conftest*
4813 if test -n "$ac_declaration"; then
4814   echo '#ifdef __cplusplus' >>confdefs.h
4815   echo $ac_declaration      >>confdefs.h
4816   echo '#endif'             >>confdefs.h
4817 fi
4818
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 ac_ext=c
4826 ac_cpp='$CPP $CPPFLAGS'
4827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4830 DEPDIR="${am__leading_dot}deps"
4831
4832           ac_config_commands="$ac_config_commands depfiles"
4833
4834
4835 am_make=${MAKE-make}
4836 cat > confinc << 'END'
4837 am__doit:
4838         @echo done
4839 .PHONY: am__doit
4840 END
4841 # If we don't find an include directive, just comment out the code.
4842 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4843 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4844 am__include="#"
4845 am__quote=
4846 _am_result=none
4847 # First try GNU make style include.
4848 echo "include confinc" > confmf
4849 # We grep out `Entering directory' and `Leaving directory'
4850 # messages which can occur if `w' ends up in MAKEFLAGS.
4851 # In particular we don't look at `^make:' because GNU make might
4852 # be invoked under some other name (usually "gmake"), in which
4853 # case it prints its new name instead of `make'.
4854 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4855    am__include=include
4856    am__quote=
4857    _am_result=GNU
4858 fi
4859 # Now try BSD make style include.
4860 if test "$am__include" = "#"; then
4861    echo '.include "confinc"' > confmf
4862    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4863       am__include=.include
4864       am__quote="\""
4865       _am_result=BSD
4866    fi
4867 fi
4868
4869
4870 echo "$as_me:$LINENO: result: $_am_result" >&5
4871 echo "${ECHO_T}$_am_result" >&6
4872 rm -f confinc confmf
4873
4874 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4875 if test "${enable_dependency_tracking+set}" = set; then
4876   enableval="$enable_dependency_tracking"
4877
4878 fi;
4879 if test "x$enable_dependency_tracking" != xno; then
4880   am_depcomp="$ac_aux_dir/depcomp"
4881   AMDEPBACKSLASH='\'
4882 fi
4883
4884
4885 if test "x$enable_dependency_tracking" != xno; then
4886   AMDEP_TRUE=
4887   AMDEP_FALSE='#'
4888 else
4889   AMDEP_TRUE='#'
4890   AMDEP_FALSE=
4891 fi
4892
4893
4894
4895
4896 depcc="$CC"   am_compiler_list=
4897
4898 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4899 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4900 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4904   # We make a subdir and do the tests there.  Otherwise we can end up
4905   # making bogus files that we don't know about and never remove.  For
4906   # instance it was reported that on HP-UX the gcc test will end up
4907   # making a dummy file named `D' -- because `-MD' means `put the output
4908   # in D'.
4909   mkdir conftest.dir
4910   # Copy depcomp to subdir because otherwise we won't find it if we're
4911   # using a relative directory.
4912   cp "$am_depcomp" conftest.dir
4913   cd conftest.dir
4914   # We will build objects and dependencies in a subdirectory because
4915   # it helps to detect inapplicable dependency modes.  For instance
4916   # both Tru64's cc and ICC support -MD to output dependencies as a
4917   # side effect of compilation, but ICC will put the dependencies in
4918   # the current directory while Tru64 will put them in the object
4919   # directory.
4920   mkdir sub
4921
4922   am_cv_CC_dependencies_compiler_type=none
4923   if test "$am_compiler_list" = ""; then
4924      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4925   fi
4926   for depmode in $am_compiler_list; do
4927     # Setup a source with many dependencies, because some compilers
4928     # like to wrap large dependency lists on column 80 (with \), and
4929     # we should not choose a depcomp mode which is confused by this.
4930     #
4931     # We need to recreate these files for each test, as the compiler may
4932     # overwrite some of them when testing with obscure command lines.
4933     # This happens at least with the AIX C compiler.
4934     : > sub/conftest.c
4935     for i in 1 2 3 4 5 6; do
4936       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4937       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4938       # Solaris 8's {/usr,}/bin/sh.
4939       touch sub/conftst$i.h
4940     done
4941     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4942
4943     case $depmode in
4944     nosideeffect)
4945       # after this tag, mechanisms are not by side-effect, so they'll
4946       # only be used when explicitly requested
4947       if test "x$enable_dependency_tracking" = xyes; then
4948         continue
4949       else
4950         break
4951       fi
4952       ;;
4953     none) break ;;
4954     esac
4955     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4956     # mode.  It turns out that the SunPro C++ compiler does not properly
4957     # handle `-M -o', and we need to detect this.
4958     if depmode=$depmode \
4959        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4960        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4961        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4962          >/dev/null 2>conftest.err &&
4963        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4964        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4965        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4966       # icc doesn't choke on unknown options, it will just issue warnings
4967       # or remarks (even with -Werror).  So we grep stderr for any message
4968       # that says an option was ignored or not supported.
4969       # When given -MP, icc 7.0 and 7.1 complain thusly:
4970       #   icc: Command line warning: ignoring option '-M'; no argument required
4971       # The diagnosis changed in icc 8.0:
4972       #   icc: Command line remark: option '-MP' not supported
4973       if (grep 'ignoring option' conftest.err ||
4974           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4975         am_cv_CC_dependencies_compiler_type=$depmode
4976         break
4977       fi
4978     fi
4979   done
4980
4981   cd ..
4982   rm -rf conftest.dir
4983 else
4984   am_cv_CC_dependencies_compiler_type=none
4985 fi
4986
4987 fi
4988 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4989 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4990 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4991
4992
4993
4994 if
4995   test "x$enable_dependency_tracking" != xno \
4996   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4997   am__fastdepCC_TRUE=
4998   am__fastdepCC_FALSE='#'
4999 else
5000   am__fastdepCC_TRUE='#'
5001   am__fastdepCC_FALSE=
5002 fi
5003
5004
5005 ac_ext=cc
5006 ac_cpp='$CXXCPP $CPPFLAGS'
5007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5010 if test -n "$ac_tool_prefix"; then
5011   for ac_prog in $CCC g++ g++3 c++ CC
5012   do
5013     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5015 echo "$as_me:$LINENO: checking for $ac_word" >&5
5016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5017 if test "${ac_cv_prog_CXX+set}" = set; then
5018   echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020   if test -n "$CXX"; then
5021   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5025 do
5026   IFS=$as_save_IFS
5027   test -z "$as_dir" && as_dir=.
5028   for ac_exec_ext in '' $ac_executable_extensions; do
5029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5032     break 2
5033   fi
5034 done
5035 done
5036
5037 fi
5038 fi
5039 CXX=$ac_cv_prog_CXX
5040 if test -n "$CXX"; then
5041   echo "$as_me:$LINENO: result: $CXX" >&5
5042 echo "${ECHO_T}$CXX" >&6
5043 else
5044   echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6
5046 fi
5047
5048     test -n "$CXX" && break
5049   done
5050 fi
5051 if test -z "$CXX"; then
5052   ac_ct_CXX=$CXX
5053   for ac_prog in $CCC g++ g++3 c++ CC
5054 do
5055   # Extract the first word of "$ac_prog", so it can be a program name with args.
5056 set dummy $ac_prog; ac_word=$2
5057 echo "$as_me:$LINENO: checking for $ac_word" >&5
5058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5059 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5060   echo $ECHO_N "(cached) $ECHO_C" >&6
5061 else
5062   if test -n "$ac_ct_CXX"; then
5063   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5067 do
5068   IFS=$as_save_IFS
5069   test -z "$as_dir" && as_dir=.
5070   for ac_exec_ext in '' $ac_executable_extensions; do
5071   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5072     ac_cv_prog_ac_ct_CXX="$ac_prog"
5073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5074     break 2
5075   fi
5076 done
5077 done
5078
5079 fi
5080 fi
5081 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5082 if test -n "$ac_ct_CXX"; then
5083   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5084 echo "${ECHO_T}$ac_ct_CXX" >&6
5085 else
5086   echo "$as_me:$LINENO: result: no" >&5
5087 echo "${ECHO_T}no" >&6
5088 fi
5089
5090   test -n "$ac_ct_CXX" && break
5091 done
5092 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5093
5094   CXX=$ac_ct_CXX
5095 fi
5096
5097
5098 # Provide some information about the compiler.
5099 echo "$as_me:$LINENO:" \
5100      "checking for C++ compiler version" >&5
5101 ac_compiler=`set X $ac_compile; echo $2`
5102 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5103   (eval $ac_compiler --version </dev/null >&5) 2>&5
5104   ac_status=$?
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); }
5107 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5108   (eval $ac_compiler -v </dev/null >&5) 2>&5
5109   ac_status=$?
5110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111   (exit $ac_status); }
5112 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5113   (eval $ac_compiler -V </dev/null >&5) 2>&5
5114   ac_status=$?
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); }
5117
5118 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5119 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5120 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5121   echo $ECHO_N "(cached) $ECHO_C" >&6
5122 else
5123   cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h.  */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h.  */
5129
5130 int
5131 main ()
5132 {
5133 #ifndef __GNUC__
5134        choke me
5135 #endif
5136
5137   ;
5138   return 0;
5139 }
5140 _ACEOF
5141 rm -f conftest.$ac_objext
5142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5143   (eval $ac_compile) 2>conftest.er1
5144   ac_status=$?
5145   grep -v '^ *+' conftest.er1 >conftest.err
5146   rm -f conftest.er1
5147   cat conftest.err >&5
5148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149   (exit $ac_status); } &&
5150          { ac_try='test -z "$ac_cxx_werror_flag"
5151                          || test ! -s conftest.err'
5152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153   (eval $ac_try) 2>&5
5154   ac_status=$?
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); }; } &&
5157          { ac_try='test -s conftest.$ac_objext'
5158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159   (eval $ac_try) 2>&5
5160   ac_status=$?
5161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); }; }; then
5163   ac_compiler_gnu=yes
5164 else
5165   echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5167
5168 ac_compiler_gnu=no
5169 fi
5170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5171 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5172
5173 fi
5174 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5175 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5176 GXX=`test $ac_compiler_gnu = yes && echo yes`
5177 ac_test_CXXFLAGS=${CXXFLAGS+set}
5178 ac_save_CXXFLAGS=$CXXFLAGS
5179 CXXFLAGS="-g"
5180 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5181 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5182 if test "${ac_cv_prog_cxx_g+set}" = set; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185   cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h.  */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h.  */
5191
5192 int
5193 main ()
5194 {
5195
5196   ;
5197   return 0;
5198 }
5199 _ACEOF
5200 rm -f conftest.$ac_objext
5201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5202   (eval $ac_compile) 2>conftest.er1
5203   ac_status=$?
5204   grep -v '^ *+' conftest.er1 >conftest.err
5205   rm -f conftest.er1
5206   cat conftest.err >&5
5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); } &&
5209          { ac_try='test -z "$ac_cxx_werror_flag"
5210                          || test ! -s conftest.err'
5211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212   (eval $ac_try) 2>&5
5213   ac_status=$?
5214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215   (exit $ac_status); }; } &&
5216          { ac_try='test -s conftest.$ac_objext'
5217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218   (eval $ac_try) 2>&5
5219   ac_status=$?
5220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221   (exit $ac_status); }; }; then
5222   ac_cv_prog_cxx_g=yes
5223 else
5224   echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5226
5227 ac_cv_prog_cxx_g=no
5228 fi
5229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5230 fi
5231 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5232 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5233 if test "$ac_test_CXXFLAGS" = set; then
5234   CXXFLAGS=$ac_save_CXXFLAGS
5235 elif test $ac_cv_prog_cxx_g = yes; then
5236   if test "$GXX" = yes; then
5237     CXXFLAGS="-g -O2"
5238   else
5239     CXXFLAGS="-g"
5240   fi
5241 else
5242   if test "$GXX" = yes; then
5243     CXXFLAGS="-O2"
5244   else
5245     CXXFLAGS=
5246   fi
5247 fi
5248 for ac_declaration in \
5249    '' \
5250    'extern "C" void std::exit (int) throw (); using std::exit;' \
5251    'extern "C" void std::exit (int); using std::exit;' \
5252    'extern "C" void exit (int) throw ();' \
5253    'extern "C" void exit (int);' \
5254    'void exit (int);'
5255 do
5256   cat >conftest.$ac_ext <<_ACEOF
5257 /* confdefs.h.  */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h.  */
5262 $ac_declaration
5263 #include <stdlib.h>
5264 int
5265 main ()
5266 {
5267 exit (42);
5268   ;
5269   return 0;
5270 }
5271 _ACEOF
5272 rm -f conftest.$ac_objext
5273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5274   (eval $ac_compile) 2>conftest.er1
5275   ac_status=$?
5276   grep -v '^ *+' conftest.er1 >conftest.err
5277   rm -f conftest.er1
5278   cat conftest.err >&5
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); } &&
5281          { ac_try='test -z "$ac_cxx_werror_flag"
5282                          || test ! -s conftest.err'
5283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284   (eval $ac_try) 2>&5
5285   ac_status=$?
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); }; } &&
5288          { ac_try='test -s conftest.$ac_objext'
5289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290   (eval $ac_try) 2>&5
5291   ac_status=$?
5292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293   (exit $ac_status); }; }; then
5294   :
5295 else
5296   echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5298
5299 continue
5300 fi
5301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5302   cat >conftest.$ac_ext <<_ACEOF
5303 /* confdefs.h.  */
5304 _ACEOF
5305 cat confdefs.h >>conftest.$ac_ext
5306 cat >>conftest.$ac_ext <<_ACEOF
5307 /* end confdefs.h.  */
5308 $ac_declaration
5309 int
5310 main ()
5311 {
5312 exit (42);
5313   ;
5314   return 0;
5315 }
5316 _ACEOF
5317 rm -f conftest.$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319   (eval $ac_compile) 2>conftest.er1
5320   ac_status=$?
5321   grep -v '^ *+' conftest.er1 >conftest.err
5322   rm -f conftest.er1
5323   cat conftest.err >&5
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); } &&
5326          { ac_try='test -z "$ac_cxx_werror_flag"
5327                          || test ! -s conftest.err'
5328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329   (eval $ac_try) 2>&5
5330   ac_status=$?
5331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332   (exit $ac_status); }; } &&
5333          { ac_try='test -s conftest.$ac_objext'
5334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335   (eval $ac_try) 2>&5
5336   ac_status=$?
5337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338   (exit $ac_status); }; }; then
5339   break
5340 else
5341   echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5343
5344 fi
5345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5346 done
5347 rm -f conftest*
5348 if test -n "$ac_declaration"; then
5349   echo '#ifdef __cplusplus' >>confdefs.h
5350   echo $ac_declaration      >>confdefs.h
5351   echo '#endif'             >>confdefs.h
5352 fi
5353
5354 ac_ext=c
5355 ac_cpp='$CPP $CPPFLAGS'
5356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5359
5360 depcc="$CXX"  am_compiler_list=
5361
5362 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5363 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5364 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5365   echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5368   # We make a subdir and do the tests there.  Otherwise we can end up
5369   # making bogus files that we don't know about and never remove.  For
5370   # instance it was reported that on HP-UX the gcc test will end up
5371   # making a dummy file named `D' -- because `-MD' means `put the output
5372   # in D'.
5373   mkdir conftest.dir
5374   # Copy depcomp to subdir because otherwise we won't find it if we're
5375   # using a relative directory.
5376   cp "$am_depcomp" conftest.dir
5377   cd conftest.dir
5378   # We will build objects and dependencies in a subdirectory because
5379   # it helps to detect inapplicable dependency modes.  For instance
5380   # both Tru64's cc and ICC support -MD to output dependencies as a
5381   # side effect of compilation, but ICC will put the dependencies in
5382   # the current directory while Tru64 will put them in the object
5383   # directory.
5384   mkdir sub
5385
5386   am_cv_CXX_dependencies_compiler_type=none
5387   if test "$am_compiler_list" = ""; then
5388      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5389   fi
5390   for depmode in $am_compiler_list; do
5391     # Setup a source with many dependencies, because some compilers
5392     # like to wrap large dependency lists on column 80 (with \), and
5393     # we should not choose a depcomp mode which is confused by this.
5394     #
5395     # We need to recreate these files for each test, as the compiler may
5396     # overwrite some of them when testing with obscure command lines.
5397     # This happens at least with the AIX C compiler.
5398     : > sub/conftest.c
5399     for i in 1 2 3 4 5 6; do
5400       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5401       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5402       # Solaris 8's {/usr,}/bin/sh.
5403       touch sub/conftst$i.h
5404     done
5405     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5406
5407     case $depmode in
5408     nosideeffect)
5409       # after this tag, mechanisms are not by side-effect, so they'll
5410       # only be used when explicitly requested
5411       if test "x$enable_dependency_tracking" = xyes; then
5412         continue
5413       else
5414         break
5415       fi
5416       ;;
5417     none) break ;;
5418     esac
5419     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5420     # mode.  It turns out that the SunPro C++ compiler does not properly
5421     # handle `-M -o', and we need to detect this.
5422     if depmode=$depmode \
5423        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5424        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5425        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5426          >/dev/null 2>conftest.err &&
5427        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5428        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5429        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5430       # icc doesn't choke on unknown options, it will just issue warnings
5431       # or remarks (even with -Werror).  So we grep stderr for any message
5432       # that says an option was ignored or not supported.
5433       # When given -MP, icc 7.0 and 7.1 complain thusly:
5434       #   icc: Command line warning: ignoring option '-M'; no argument required
5435       # The diagnosis changed in icc 8.0:
5436       #   icc: Command line remark: option '-MP' not supported
5437       if (grep 'ignoring option' conftest.err ||
5438           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5439         am_cv_CXX_dependencies_compiler_type=$depmode
5440         break
5441       fi
5442     fi
5443   done
5444
5445   cd ..
5446   rm -rf conftest.dir
5447 else
5448   am_cv_CXX_dependencies_compiler_type=none
5449 fi
5450
5451 fi
5452 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5453 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5454 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5455
5456
5457
5458 if
5459   test "x$enable_dependency_tracking" != xno \
5460   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5461   am__fastdepCXX_TRUE=
5462   am__fastdepCXX_FALSE='#'
5463 else
5464   am__fastdepCXX_TRUE='#'
5465   am__fastdepCXX_FALSE=
5466 fi
5467
5468
5469 # Make sure we can run config.sub.
5470 $ac_config_sub sun4 >/dev/null 2>&1 ||
5471   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5472 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5473    { (exit 1); exit 1; }; }
5474
5475 echo "$as_me:$LINENO: checking build system type" >&5
5476 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5477 if test "${ac_cv_build+set}" = set; then
5478   echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480   ac_cv_build_alias=$build_alias
5481 test -z "$ac_cv_build_alias" &&
5482   ac_cv_build_alias=`$ac_config_guess`
5483 test -z "$ac_cv_build_alias" &&
5484   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5485 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5486    { (exit 1); exit 1; }; }
5487 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5488   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5489 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5490    { (exit 1); exit 1; }; }
5491
5492 fi
5493 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5494 echo "${ECHO_T}$ac_cv_build" >&6
5495 build=$ac_cv_build
5496 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5497 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5498 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5499
5500
5501 echo "$as_me:$LINENO: checking host system type" >&5
5502 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5503 if test "${ac_cv_host+set}" = set; then
5504   echo $ECHO_N "(cached) $ECHO_C" >&6
5505 else
5506   ac_cv_host_alias=$host_alias
5507 test -z "$ac_cv_host_alias" &&
5508   ac_cv_host_alias=$ac_cv_build_alias
5509 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5510   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5511 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5512    { (exit 1); exit 1; }; }
5513
5514 fi
5515 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5516 echo "${ECHO_T}$ac_cv_host" >&6
5517 host=$ac_cv_host
5518 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5519 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5520 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5521
5522
5523
5524 if test "$GCC" = "yes" ; then
5525 #    AC_HAVE_GCC_VERSION(4,0,0,0,
5526 #        [
5527 #        AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
5528 #            [Define to enable class visibility control in gcc.])
5529 #        GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5530 #        GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5531 #        ])
5532     CFLAGS="-Wall $GCC_CFLAGS"
5533     CXXFLAGS="-Wall $GCC_CXXFLAGS"
5534 else
5535 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
5536         case "${host_cpu}-${host_os}" in
5537                 *solaris*)
5538                         if test "$CXX" = "CC" ; then
5539                                 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
5540                         fi
5541                         ;;
5542                 *osf*)
5543                         CXXFLAGS="$CXXFLAGS -D_POSIX_PII_SOCKET"
5544                         ;;
5545         esac
5546 fi
5547
5548 # Check whether --enable-static or --disable-static was given.
5549 if test "${enable_static+set}" = set; then
5550   enableval="$enable_static"
5551   p=${PACKAGE-default}
5552     case $enableval in
5553     yes) enable_static=yes ;;
5554     no) enable_static=no ;;
5555     *)
5556      enable_static=no
5557       # Look at the argument we got.  We use all the common list separators.
5558       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5559       for pkg in $enableval; do
5560         IFS="$lt_save_ifs"
5561         if test "X$pkg" = "X$p"; then
5562           enable_static=yes
5563         fi
5564       done
5565       IFS="$lt_save_ifs"
5566       ;;
5567     esac
5568 else
5569   enable_static=no
5570 fi;
5571
5572
5573 # Check whether --enable-shared or --disable-shared was given.
5574 if test "${enable_shared+set}" = set; then
5575   enableval="$enable_shared"
5576   p=${PACKAGE-default}
5577     case $enableval in
5578     yes) enable_shared=yes ;;
5579     no) enable_shared=no ;;
5580     *)
5581       enable_shared=no
5582       # Look at the argument we got.  We use all the common list separators.
5583       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5584       for pkg in $enableval; do
5585         IFS="$lt_save_ifs"
5586         if test "X$pkg" = "X$p"; then
5587           enable_shared=yes
5588         fi
5589       done
5590       IFS="$lt_save_ifs"
5591       ;;
5592     esac
5593 else
5594   enable_shared=yes
5595 fi;
5596
5597 # Check whether --enable-fast-install or --disable-fast-install was given.
5598 if test "${enable_fast_install+set}" = set; then
5599   enableval="$enable_fast_install"
5600   p=${PACKAGE-default}
5601     case $enableval in
5602     yes) enable_fast_install=yes ;;
5603     no) enable_fast_install=no ;;
5604     *)
5605       enable_fast_install=no
5606       # Look at the argument we got.  We use all the common list separators.
5607       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5608       for pkg in $enableval; do
5609         IFS="$lt_save_ifs"
5610         if test "X$pkg" = "X$p"; then
5611           enable_fast_install=yes
5612         fi
5613       done
5614       IFS="$lt_save_ifs"
5615       ;;
5616     esac
5617 else
5618   enable_fast_install=yes
5619 fi;
5620
5621 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5622 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5623 if test "${lt_cv_path_SED+set}" = set; then
5624   echo $ECHO_N "(cached) $ECHO_C" >&6
5625 else
5626   # Loop through the user's path and test for sed and gsed.
5627 # Then use that list of sed's as ones to test for truncation.
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631   IFS=$as_save_IFS
5632   test -z "$as_dir" && as_dir=.
5633   for lt_ac_prog in sed gsed; do
5634     for ac_exec_ext in '' $ac_executable_extensions; do
5635       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5636         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5637       fi
5638     done
5639   done
5640 done
5641 lt_ac_max=0
5642 lt_ac_count=0
5643 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5644 # along with /bin/sed that truncates output.
5645 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5646   test ! -f $lt_ac_sed && break
5647   cat /dev/null > conftest.in
5648   lt_ac_count=0
5649   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5650   # Check for GNU sed and select it if it is found.
5651   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5652     lt_cv_path_SED=$lt_ac_sed
5653     break
5654   fi
5655   while true; do
5656     cat conftest.in conftest.in >conftest.tmp
5657     mv conftest.tmp conftest.in
5658     cp conftest.in conftest.nl
5659     echo >>conftest.nl
5660     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5661     cmp -s conftest.out conftest.nl || break
5662     # 10000 chars as input seems more than enough
5663     test $lt_ac_count -gt 10 && break
5664     lt_ac_count=`expr $lt_ac_count + 1`
5665     if test $lt_ac_count -gt $lt_ac_max; then
5666       lt_ac_max=$lt_ac_count
5667       lt_cv_path_SED=$lt_ac_sed
5668     fi
5669   done
5670 done
5671 SED=$lt_cv_path_SED
5672
5673 fi
5674
5675 echo "$as_me:$LINENO: result: $SED" >&5
5676 echo "${ECHO_T}$SED" >&6
5677
5678 echo "$as_me:$LINENO: checking for egrep" >&5
5679 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5680 if test "${ac_cv_prog_egrep+set}" = set; then
5681   echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5684     then ac_cv_prog_egrep='grep -E'
5685     else ac_cv_prog_egrep='egrep'
5686     fi
5687 fi
5688 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5689 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5690  EGREP=$ac_cv_prog_egrep
5691
5692
5693
5694 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5695 if test "${with_gnu_ld+set}" = set; then
5696   withval="$with_gnu_ld"
5697   test "$withval" = no || with_gnu_ld=yes
5698 else
5699   with_gnu_ld=no
5700 fi;
5701 ac_prog=ld
5702 if test "$GCC" = yes; then
5703   # Check if gcc -print-prog-name=ld gives a path.
5704   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5705 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5706   case $host in
5707   *-*-mingw*)
5708     # gcc leaves a trailing carriage return which upsets mingw
5709     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5710   *)
5711     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5712   esac
5713   case $ac_prog in
5714     # Accept absolute paths.
5715     [\\/]* | ?:[\\/]*)
5716       re_direlt='/[^/][^/]*/\.\./'
5717       # Canonicalize the pathname of ld
5718       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5719       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5720         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5721       done
5722       test -z "$LD" && LD="$ac_prog"
5723       ;;
5724   "")
5725     # If it fails, then pretend we aren't using GCC.
5726     ac_prog=ld
5727     ;;
5728   *)
5729     # If it is relative, then search for the first ld in PATH.
5730     with_gnu_ld=unknown
5731     ;;
5732   esac
5733 elif test "$with_gnu_ld" = yes; then
5734   echo "$as_me:$LINENO: checking for GNU ld" >&5
5735 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5736 else
5737   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5738 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5739 fi
5740 if test "${lt_cv_path_LD+set}" = set; then
5741   echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743   if test -z "$LD"; then
5744   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5745   for ac_dir in $PATH; do
5746     IFS="$lt_save_ifs"
5747     test -z "$ac_dir" && ac_dir=.
5748     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5749       lt_cv_path_LD="$ac_dir/$ac_prog"
5750       # Check to see if the program is GNU ld.  I'd rather use --version,
5751       # but apparently some GNU ld's only accept -v.
5752       # Break only if it was the GNU/non-GNU ld that we prefer.
5753       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5754       *GNU* | *'with BFD'*)
5755         test "$with_gnu_ld" != no && break
5756         ;;
5757       *)
5758         test "$with_gnu_ld" != yes && break
5759         ;;
5760       esac
5761     fi
5762   done
5763   IFS="$lt_save_ifs"
5764 else
5765   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5766 fi
5767 fi
5768
5769 LD="$lt_cv_path_LD"
5770 if test -n "$LD"; then
5771   echo "$as_me:$LINENO: result: $LD" >&5
5772 echo "${ECHO_T}$LD" >&6
5773 else
5774   echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6
5776 fi
5777 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5778 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5779    { (exit 1); exit 1; }; }
5780 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5781 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5782 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5786 case `$LD -v 2>&1 </dev/null` in
5787 *GNU* | *'with BFD'*)
5788   lt_cv_prog_gnu_ld=yes
5789   ;;
5790 *)
5791   lt_cv_prog_gnu_ld=no
5792   ;;
5793 esac
5794 fi
5795 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5796 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5797 with_gnu_ld=$lt_cv_prog_gnu_ld
5798
5799
5800 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5801 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5802 if test "${lt_cv_ld_reload_flag+set}" = set; then
5803   echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805   lt_cv_ld_reload_flag='-r'
5806 fi
5807 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5808 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5809 reload_flag=$lt_cv_ld_reload_flag
5810 case $reload_flag in
5811 "" | " "*) ;;
5812 *) reload_flag=" $reload_flag" ;;
5813 esac
5814 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5815
5816 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5817 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5818 if test "${lt_cv_path_NM+set}" = set; then
5819   echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821   if test -n "$NM"; then
5822   # Let the user override the test.
5823   lt_cv_path_NM="$NM"
5824 else
5825   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5826   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5827     IFS="$lt_save_ifs"
5828     test -z "$ac_dir" && ac_dir=.
5829     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5830     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5831       # Check to see if the nm accepts a BSD-compat flag.
5832       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5833       #   nm: unknown option "B" ignored
5834       # Tru64's nm complains that /dev/null is an invalid object file
5835       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5836       */dev/null* | *'Invalid file or object type'*)
5837         lt_cv_path_NM="$tmp_nm -B"
5838         break
5839         ;;
5840       *)
5841         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5842         */dev/null*)
5843           lt_cv_path_NM="$tmp_nm -p"
5844           break
5845           ;;
5846         *)
5847           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5848           continue # so that we can try to find one that supports BSD flags
5849           ;;
5850         esac
5851       esac
5852     fi
5853   done
5854   IFS="$lt_save_ifs"
5855   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5856 fi
5857 fi
5858 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5859 echo "${ECHO_T}$lt_cv_path_NM" >&6
5860 NM="$lt_cv_path_NM"
5861
5862 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5863 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5864 LN_S=$as_ln_s
5865 if test "$LN_S" = "ln -s"; then
5866   echo "$as_me:$LINENO: result: yes" >&5
5867 echo "${ECHO_T}yes" >&6
5868 else
5869   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5870 echo "${ECHO_T}no, using $LN_S" >&6
5871 fi
5872
5873 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5874 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5875 if test "${lt_cv_deplibs_check_method+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   lt_cv_file_magic_cmd='$MAGIC_CMD'
5879 lt_cv_file_magic_test_file=
5880 lt_cv_deplibs_check_method='unknown'
5881 # Need to set the preceding variable on all platforms that support
5882 # interlibrary dependencies.
5883 # 'none' -- dependencies not supported.
5884 # `unknown' -- same as none, but documents that we really don't know.
5885 # 'pass_all' -- all dependencies passed with no checks.
5886 # 'test_compile' -- check by making test program.
5887 # 'file_magic [[regex]]' -- check by looking for files in library path
5888 # which responds to the $file_magic_cmd with a given extended regex.
5889 # If you have `file' or equivalent on your system and you're not sure
5890 # whether `pass_all' will *always* work, you probably want this one.
5891
5892 case $host_os in
5893 aix4* | aix5*)
5894   lt_cv_deplibs_check_method=pass_all
5895   ;;
5896
5897 beos*)
5898   lt_cv_deplibs_check_method=pass_all
5899   ;;
5900
5901 bsdi4*)
5902   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5903   lt_cv_file_magic_cmd='/usr/bin/file -L'
5904   lt_cv_file_magic_test_file=/shlib/libc.so
5905   ;;
5906
5907 cygwin*)
5908   # func_win32_libid is a shell function defined in ltmain.sh
5909   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5910   lt_cv_file_magic_cmd='func_win32_libid'
5911   ;;
5912
5913 mingw* | pw32*)
5914   # Base MSYS/MinGW do not provide the 'file' command needed by
5915   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5916   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5917   lt_cv_file_magic_cmd='$OBJDUMP -f'
5918   ;;
5919
5920 darwin* | rhapsody*)
5921   lt_cv_deplibs_check_method=pass_all
5922   ;;
5923
5924 freebsd* | kfreebsd*-gnu)
5925   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5926     case $host_cpu in
5927     i*86 )
5928       # Not sure whether the presence of OpenBSD here was a mistake.
5929       # Let's accept both of them until this is cleared up.
5930       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5931       lt_cv_file_magic_cmd=/usr/bin/file
5932       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5933       ;;
5934     esac
5935   else
5936     lt_cv_deplibs_check_method=pass_all
5937   fi
5938   ;;
5939
5940 gnu*)
5941   lt_cv_deplibs_check_method=pass_all
5942   ;;
5943
5944 hpux10.20* | hpux11*)
5945   lt_cv_file_magic_cmd=/usr/bin/file
5946   case "$host_cpu" in
5947   ia64*)
5948     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5949     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5950     ;;
5951   hppa*64*)
5952     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]'
5953     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5954     ;;
5955   *)
5956     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5957     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5958     ;;
5959   esac
5960   ;;
5961
5962 irix5* | irix6* | nonstopux*)
5963   case $LD in
5964   *-32|*"-32 ") libmagic=32-bit;;
5965   *-n32|*"-n32 ") libmagic=N32;;
5966   *-64|*"-64 ") libmagic=64-bit;;
5967   *) libmagic=never-match;;
5968   esac
5969   lt_cv_deplibs_check_method=pass_all
5970   ;;
5971
5972 # This must be Linux ELF.
5973 linux*)
5974   case $host_cpu in
5975   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
5976     lt_cv_deplibs_check_method=pass_all ;;
5977   *)
5978     # glibc up to 2.1.1 does not perform some relocations on ARM
5979     # this will be overridden with pass_all, but let us keep it just in case
5980     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5981   esac
5982   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5983   lt_cv_deplibs_check_method=pass_all
5984   ;;
5985
5986 netbsd*)
5987   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5988     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5989   else
5990     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5991   fi
5992   ;;
5993
5994 newos6*)
5995   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5996   lt_cv_file_magic_cmd=/usr/bin/file
5997   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5998   ;;
5999
6000 nto-qnx*)
6001   lt_cv_deplibs_check_method=unknown
6002   ;;
6003
6004 openbsd*)
6005   lt_cv_file_magic_cmd=/usr/bin/file
6006   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6007   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6008     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
6009   else
6010     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
6011   fi
6012   ;;
6013
6014 osf3* | osf4* | osf5*)
6015   lt_cv_deplibs_check_method=pass_all
6016   ;;
6017
6018 sco3.2v5*)
6019   lt_cv_deplibs_check_method=pass_all
6020   ;;
6021
6022 solaris*)
6023   lt_cv_deplibs_check_method=pass_all
6024   ;;
6025
6026 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6027   case $host_vendor in
6028   motorola)
6029     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]'
6030     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6031     ;;
6032   ncr)
6033     lt_cv_deplibs_check_method=pass_all
6034     ;;
6035   sequent)
6036     lt_cv_file_magic_cmd='/bin/file'
6037     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6038     ;;
6039   sni)
6040     lt_cv_file_magic_cmd='/bin/file'
6041     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6042     lt_cv_file_magic_test_file=/lib/libc.so
6043     ;;
6044   siemens)
6045     lt_cv_deplibs_check_method=pass_all
6046     ;;
6047   esac
6048   ;;
6049
6050 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6051   lt_cv_deplibs_check_method=pass_all
6052   ;;
6053 esac
6054
6055 fi
6056 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6057 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6058 file_magic_cmd=$lt_cv_file_magic_cmd
6059 deplibs_check_method=$lt_cv_deplibs_check_method
6060 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6061
6062
6063
6064
6065 # If no C compiler was specified, use CC.
6066 LTCC=${LTCC-"$CC"}
6067
6068 # Allow CC to be a program name with arguments.
6069 compiler=$CC
6070
6071
6072 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6073 if test "${enable_libtool_lock+set}" = set; then
6074   enableval="$enable_libtool_lock"
6075
6076 fi;
6077 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6078
6079 # Some flags need to be propagated to the compiler or linker for good
6080 # libtool support.
6081 case $host in
6082 ia64-*-hpux*)
6083   # Find out which ABI we are using.
6084   echo 'int i;' > conftest.$ac_ext
6085   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086   (eval $ac_compile) 2>&5
6087   ac_status=$?
6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089   (exit $ac_status); }; then
6090     case `/usr/bin/file conftest.$ac_objext` in
6091     *ELF-32*)
6092       HPUX_IA64_MODE="32"
6093       ;;
6094     *ELF-64*)
6095       HPUX_IA64_MODE="64"
6096       ;;
6097     esac
6098   fi
6099   rm -rf conftest*
6100   ;;
6101 *-*-irix6*)
6102   # Find out which ABI we are using.
6103   echo '#line 6103 "configure"' > conftest.$ac_ext
6104   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6105   (eval $ac_compile) 2>&5
6106   ac_status=$?
6107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108   (exit $ac_status); }; then
6109    if test "$lt_cv_prog_gnu_ld" = yes; then
6110     case `/usr/bin/file conftest.$ac_objext` in
6111     *32-bit*)
6112       LD="${LD-ld} -melf32bsmip"
6113       ;;
6114     *N32*)
6115       LD="${LD-ld} -melf32bmipn32"
6116       ;;
6117     *64-bit*)
6118       LD="${LD-ld} -melf64bmip"
6119       ;;
6120     esac
6121    else
6122     case `/usr/bin/file conftest.$ac_objext` in
6123     *32-bit*)
6124       LD="${LD-ld} -32"
6125       ;;
6126     *N32*)
6127       LD="${LD-ld} -n32"
6128       ;;
6129     *64-bit*)
6130       LD="${LD-ld} -64"
6131       ;;
6132     esac
6133    fi
6134   fi
6135   rm -rf conftest*
6136   ;;
6137
6138 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6139   # Find out which ABI we are using.
6140   echo 'int i;' > conftest.$ac_ext
6141   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6142   (eval $ac_compile) 2>&5
6143   ac_status=$?
6144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145   (exit $ac_status); }; then
6146     case "`/usr/bin/file conftest.o`" in
6147     *32-bit*)
6148       case $host in
6149         x86_64-*linux*)
6150           LD="${LD-ld} -m elf_i386"
6151           ;;
6152         ppc64-*linux*|powerpc64-*linux*)
6153           LD="${LD-ld} -m elf32ppclinux"
6154           ;;
6155         s390x-*linux*)
6156           LD="${LD-ld} -m elf_s390"
6157           ;;
6158         sparc64-*linux*)
6159           LD="${LD-ld} -m elf32_sparc"
6160           ;;
6161       esac
6162       ;;
6163     *64-bit*)
6164       case $host in
6165         x86_64-*linux*)
6166           LD="${LD-ld} -m elf_x86_64"
6167           ;;
6168         ppc*-*linux*|powerpc*-*linux*)
6169           LD="${LD-ld} -m elf64ppc"
6170           ;;
6171         s390*-*linux*)
6172           LD="${LD-ld} -m elf64_s390"
6173           ;;
6174         sparc*-*linux*)
6175           LD="${LD-ld} -m elf64_sparc"
6176           ;;
6177       esac
6178       ;;
6179     esac
6180   fi
6181   rm -rf conftest*
6182   ;;
6183
6184 *-*-sco3.2v5*)
6185   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6186   SAVE_CFLAGS="$CFLAGS"
6187   CFLAGS="$CFLAGS -belf"
6188   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6189 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6190 if test "${lt_cv_cc_needs_belf+set}" = set; then
6191   echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193   ac_ext=c
6194 ac_cpp='$CPP $CPPFLAGS'
6195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6198
6199      cat >conftest.$ac_ext <<_ACEOF
6200 /* confdefs.h.  */
6201 _ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h.  */
6205
6206 int
6207 main ()
6208 {
6209
6210   ;
6211   return 0;
6212 }
6213 _ACEOF
6214 rm -f conftest.$ac_objext conftest$ac_exeext
6215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6216   (eval $ac_link) 2>conftest.er1
6217   ac_status=$?
6218   grep -v '^ *+' conftest.er1 >conftest.err
6219   rm -f conftest.er1
6220   cat conftest.err >&5
6221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222   (exit $ac_status); } &&
6223          { ac_try='test -z "$ac_c_werror_flag"
6224                          || test ! -s conftest.err'
6225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226   (eval $ac_try) 2>&5
6227   ac_status=$?
6228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229   (exit $ac_status); }; } &&
6230          { ac_try='test -s conftest$ac_exeext'
6231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232   (eval $ac_try) 2>&5
6233   ac_status=$?
6234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235   (exit $ac_status); }; }; then
6236   lt_cv_cc_needs_belf=yes
6237 else
6238   echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6240
6241 lt_cv_cc_needs_belf=no
6242 fi
6243 rm -f conftest.err conftest.$ac_objext \
6244       conftest$ac_exeext conftest.$ac_ext
6245      ac_ext=c
6246 ac_cpp='$CPP $CPPFLAGS'
6247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6250
6251 fi
6252 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6253 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6254   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6255     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6256     CFLAGS="$SAVE_CFLAGS"
6257   fi
6258   ;;
6259
6260 esac
6261
6262 need_locks="$enable_libtool_lock"
6263
6264
6265 ac_ext=c
6266 ac_cpp='$CPP $CPPFLAGS'
6267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6270 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6271 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6272 # On Suns, sometimes $CPP names a directory.
6273 if test -n "$CPP" && test -d "$CPP"; then
6274   CPP=
6275 fi
6276 if test -z "$CPP"; then
6277   if test "${ac_cv_prog_CPP+set}" = set; then
6278   echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280       # Double quotes because CPP needs to be expanded
6281     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6282     do
6283       ac_preproc_ok=false
6284 for ac_c_preproc_warn_flag in '' yes
6285 do
6286   # Use a header file that comes with gcc, so configuring glibc
6287   # with a fresh cross-compiler works.
6288   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6289   # <limits.h> exists even on freestanding compilers.
6290   # On the NeXT, cc -E runs the code through the compiler's parser,
6291   # not just through cpp. "Syntax error" is here to catch this case.
6292   cat >conftest.$ac_ext <<_ACEOF
6293 /* confdefs.h.  */
6294 _ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h.  */
6298 #ifdef __STDC__
6299 # include <limits.h>
6300 #else
6301 # include <assert.h>
6302 #endif
6303                      Syntax error
6304 _ACEOF
6305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6306   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6307   ac_status=$?
6308   grep -v '^ *+' conftest.er1 >conftest.err
6309   rm -f conftest.er1
6310   cat conftest.err >&5
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); } >/dev/null; then
6313   if test -s conftest.err; then
6314     ac_cpp_err=$ac_c_preproc_warn_flag
6315     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6316   else
6317     ac_cpp_err=
6318   fi
6319 else
6320   ac_cpp_err=yes
6321 fi
6322 if test -z "$ac_cpp_err"; then
6323   :
6324 else
6325   echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6327
6328   # Broken: fails on valid input.
6329 continue
6330 fi
6331 rm -f conftest.err conftest.$ac_ext
6332
6333   # OK, works on sane cases.  Now check whether non-existent headers
6334   # can be detected and how.
6335   cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h.  */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h.  */
6341 #include <ac_nonexistent.h>
6342 _ACEOF
6343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6344   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6345   ac_status=$?
6346   grep -v '^ *+' conftest.er1 >conftest.err
6347   rm -f conftest.er1
6348   cat conftest.err >&5
6349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350   (exit $ac_status); } >/dev/null; then
6351   if test -s conftest.err; then
6352     ac_cpp_err=$ac_c_preproc_warn_flag
6353     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6354   else
6355     ac_cpp_err=
6356   fi
6357 else
6358   ac_cpp_err=yes
6359 fi
6360 if test -z "$ac_cpp_err"; then
6361   # Broken: success on invalid input.
6362 continue
6363 else
6364   echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6366
6367   # Passes both tests.
6368 ac_preproc_ok=:
6369 break
6370 fi
6371 rm -f conftest.err conftest.$ac_ext
6372
6373 done
6374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6375 rm -f conftest.err conftest.$ac_ext
6376 if $ac_preproc_ok; then
6377   break
6378 fi
6379
6380     done
6381     ac_cv_prog_CPP=$CPP
6382
6383 fi
6384   CPP=$ac_cv_prog_CPP
6385 else
6386   ac_cv_prog_CPP=$CPP
6387 fi
6388 echo "$as_me:$LINENO: result: $CPP" >&5
6389 echo "${ECHO_T}$CPP" >&6
6390 ac_preproc_ok=false
6391 for ac_c_preproc_warn_flag in '' yes
6392 do
6393   # Use a header file that comes with gcc, so configuring glibc
6394   # with a fresh cross-compiler works.
6395   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6396   # <limits.h> exists even on freestanding compilers.
6397   # On the NeXT, cc -E runs the code through the compiler's parser,
6398   # not just through cpp. "Syntax error" is here to catch this case.
6399   cat >conftest.$ac_ext <<_ACEOF
6400 /* confdefs.h.  */
6401 _ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h.  */
6405 #ifdef __STDC__
6406 # include <limits.h>
6407 #else
6408 # include <assert.h>
6409 #endif
6410                      Syntax error
6411 _ACEOF
6412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6414   ac_status=$?
6415   grep -v '^ *+' conftest.er1 >conftest.err
6416   rm -f conftest.er1
6417   cat conftest.err >&5
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); } >/dev/null; then
6420   if test -s conftest.err; then
6421     ac_cpp_err=$ac_c_preproc_warn_flag
6422     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6423   else
6424     ac_cpp_err=
6425   fi
6426 else
6427   ac_cpp_err=yes
6428 fi
6429 if test -z "$ac_cpp_err"; then
6430   :
6431 else
6432   echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6434
6435   # Broken: fails on valid input.
6436 continue
6437 fi
6438 rm -f conftest.err conftest.$ac_ext
6439
6440   # OK, works on sane cases.  Now check whether non-existent headers
6441   # can be detected and how.
6442   cat >conftest.$ac_ext <<_ACEOF
6443 /* confdefs.h.  */
6444 _ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h.  */
6448 #include <ac_nonexistent.h>
6449 _ACEOF
6450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6452   ac_status=$?
6453   grep -v '^ *+' conftest.er1 >conftest.err
6454   rm -f conftest.er1
6455   cat conftest.err >&5
6456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457   (exit $ac_status); } >/dev/null; then
6458   if test -s conftest.err; then
6459     ac_cpp_err=$ac_c_preproc_warn_flag
6460     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6461   else
6462     ac_cpp_err=
6463   fi
6464 else
6465   ac_cpp_err=yes
6466 fi
6467 if test -z "$ac_cpp_err"; then
6468   # Broken: success on invalid input.
6469 continue
6470 else
6471   echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.$ac_ext >&5
6473
6474   # Passes both tests.
6475 ac_preproc_ok=:
6476 break
6477 fi
6478 rm -f conftest.err conftest.$ac_ext
6479
6480 done
6481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6482 rm -f conftest.err conftest.$ac_ext
6483 if $ac_preproc_ok; then
6484   :
6485 else
6486   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6487 See \`config.log' for more details." >&5
6488 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6489 See \`config.log' for more details." >&2;}
6490    { (exit 1); exit 1; }; }
6491 fi
6492
6493 ac_ext=c
6494 ac_cpp='$CPP $CPPFLAGS'
6495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6498
6499
6500 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6501 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6502 if test "${ac_cv_header_stdc+set}" = set; then
6503   echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505   cat >conftest.$ac_ext <<_ACEOF
6506 /* confdefs.h.  */
6507 _ACEOF
6508 cat confdefs.h >>conftest.$ac_ext
6509 cat >>conftest.$ac_ext <<_ACEOF
6510 /* end confdefs.h.  */
6511 #include <stdlib.h>
6512 #include <stdarg.h>
6513 #include <string.h>
6514 #include <float.h>
6515
6516 int
6517 main ()
6518 {
6519
6520   ;
6521   return 0;
6522 }
6523 _ACEOF
6524 rm -f conftest.$ac_objext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526   (eval $ac_compile) 2>conftest.er1
6527   ac_status=$?
6528   grep -v '^ *+' conftest.er1 >conftest.err
6529   rm -f conftest.er1
6530   cat conftest.err >&5
6531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532   (exit $ac_status); } &&
6533          { ac_try='test -z "$ac_c_werror_flag"
6534                          || test ! -s conftest.err'
6535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536   (eval $ac_try) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); }; } &&
6540          { ac_try='test -s conftest.$ac_objext'
6541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542   (eval $ac_try) 2>&5
6543   ac_status=$?
6544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545   (exit $ac_status); }; }; then
6546   ac_cv_header_stdc=yes
6547 else
6548   echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6550
6551 ac_cv_header_stdc=no
6552 fi
6553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6554
6555 if test $ac_cv_header_stdc = yes; then
6556   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6557   cat >conftest.$ac_ext <<_ACEOF
6558 /* confdefs.h.  */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h.  */
6563 #include <string.h>
6564
6565 _ACEOF
6566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6567   $EGREP "memchr" >/dev/null 2>&1; then
6568   :
6569 else
6570   ac_cv_header_stdc=no
6571 fi
6572 rm -f conftest*
6573
6574 fi
6575
6576 if test $ac_cv_header_stdc = yes; then
6577   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6578   cat >conftest.$ac_ext <<_ACEOF
6579 /* confdefs.h.  */
6580 _ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h.  */
6584 #include <stdlib.h>
6585
6586 _ACEOF
6587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6588   $EGREP "free" >/dev/null 2>&1; then
6589   :
6590 else
6591   ac_cv_header_stdc=no
6592 fi
6593 rm -f conftest*
6594
6595 fi
6596
6597 if test $ac_cv_header_stdc = yes; then
6598   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6599   if test "$cross_compiling" = yes; then
6600   :
6601 else
6602   cat >conftest.$ac_ext <<_ACEOF
6603 /* confdefs.h.  */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h.  */
6608 #include <ctype.h>
6609 #if ((' ' & 0x0FF) == 0x020)
6610 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6611 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6612 #else
6613 # define ISLOWER(c) \
6614                    (('a' <= (c) && (c) <= 'i') \
6615                      || ('j' <= (c) && (c) <= 'r') \
6616                      || ('s' <= (c) && (c) <= 'z'))
6617 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6618 #endif
6619
6620 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6621 int
6622 main ()
6623 {
6624   int i;
6625   for (i = 0; i < 256; i++)
6626     if (XOR (islower (i), ISLOWER (i))
6627         || toupper (i) != TOUPPER (i))
6628       exit(2);
6629   exit (0);
6630 }
6631 _ACEOF
6632 rm -f conftest$ac_exeext
6633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6634   (eval $ac_link) 2>&5
6635   ac_status=$?
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639   (eval $ac_try) 2>&5
6640   ac_status=$?
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); }; }; then
6643   :
6644 else
6645   echo "$as_me: program exited with status $ac_status" >&5
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6648
6649 ( exit $ac_status )
6650 ac_cv_header_stdc=no
6651 fi
6652 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6653 fi
6654 fi
6655 fi
6656 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6657 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6658 if test $ac_cv_header_stdc = yes; then
6659
6660 cat >>confdefs.h <<\_ACEOF
6661 #define STDC_HEADERS 1
6662 _ACEOF
6663
6664 fi
6665
6666 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6677                   inttypes.h stdint.h unistd.h
6678 do
6679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6680 echo "$as_me:$LINENO: checking for $ac_header" >&5
6681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6683   echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685   cat >conftest.$ac_ext <<_ACEOF
6686 /* confdefs.h.  */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h.  */
6691 $ac_includes_default
6692
6693 #include <$ac_header>
6694 _ACEOF
6695 rm -f conftest.$ac_objext
6696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6697   (eval $ac_compile) 2>conftest.er1
6698   ac_status=$?
6699   grep -v '^ *+' conftest.er1 >conftest.err
6700   rm -f conftest.er1
6701   cat conftest.err >&5
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); } &&
6704          { ac_try='test -z "$ac_c_werror_flag"
6705                          || test ! -s conftest.err'
6706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707   (eval $ac_try) 2>&5
6708   ac_status=$?
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); }; } &&
6711          { ac_try='test -s conftest.$ac_objext'
6712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713   (eval $ac_try) 2>&5
6714   ac_status=$?
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); }; }; then
6717   eval "$as_ac_Header=yes"
6718 else
6719   echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6721
6722 eval "$as_ac_Header=no"
6723 fi
6724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6725 fi
6726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6729   cat >>confdefs.h <<_ACEOF
6730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6731 _ACEOF
6732
6733 fi
6734
6735 done
6736
6737
6738
6739 for ac_header in dlfcn.h
6740 do
6741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6743   echo "$as_me:$LINENO: checking for $ac_header" >&5
6744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6746   echo $ECHO_N "(cached) $ECHO_C" >&6
6747 fi
6748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6750 else
6751   # Is the header compilable?
6752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6754 cat >conftest.$ac_ext <<_ACEOF
6755 /* confdefs.h.  */
6756 _ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h.  */
6760 $ac_includes_default
6761 #include <$ac_header>
6762 _ACEOF
6763 rm -f conftest.$ac_objext
6764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6765   (eval $ac_compile) 2>conftest.er1
6766   ac_status=$?
6767   grep -v '^ *+' conftest.er1 >conftest.err
6768   rm -f conftest.er1
6769   cat conftest.err >&5
6770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771   (exit $ac_status); } &&
6772          { ac_try='test -z "$ac_c_werror_flag"
6773                          || test ! -s conftest.err'
6774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775   (eval $ac_try) 2>&5
6776   ac_status=$?
6777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778   (exit $ac_status); }; } &&
6779          { ac_try='test -s conftest.$ac_objext'
6780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781   (eval $ac_try) 2>&5
6782   ac_status=$?
6783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784   (exit $ac_status); }; }; then
6785   ac_header_compiler=yes
6786 else
6787   echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6789
6790 ac_header_compiler=no
6791 fi
6792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6794 echo "${ECHO_T}$ac_header_compiler" >&6
6795
6796 # Is the header present?
6797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6799 cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h.  */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h.  */
6805 #include <$ac_header>
6806 _ACEOF
6807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6808   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6809   ac_status=$?
6810   grep -v '^ *+' conftest.er1 >conftest.err
6811   rm -f conftest.er1
6812   cat conftest.err >&5
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); } >/dev/null; then
6815   if test -s conftest.err; then
6816     ac_cpp_err=$ac_c_preproc_warn_flag
6817     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6818   else
6819     ac_cpp_err=
6820   fi
6821 else
6822   ac_cpp_err=yes
6823 fi
6824 if test -z "$ac_cpp_err"; then
6825   ac_header_preproc=yes
6826 else
6827   echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6829
6830   ac_header_preproc=no
6831 fi
6832 rm -f conftest.err conftest.$ac_ext
6833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6834 echo "${ECHO_T}$ac_header_preproc" >&6
6835
6836 # So?  What about this header?
6837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6838   yes:no: )
6839     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6843     ac_header_preproc=yes
6844     ;;
6845   no:yes:* )
6846     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6848     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6849 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6850     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6852     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6853 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6854     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6856     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6858     (
6859       cat <<\_ASBOX
6860 ## --------------------------------------------- ##
6861 ## Report this to shibboleth-users@internet2.edu ##
6862 ## --------------------------------------------- ##
6863 _ASBOX
6864     ) |
6865       sed "s/^/$as_me: WARNING:     /" >&2
6866     ;;
6867 esac
6868 echo "$as_me:$LINENO: checking for $ac_header" >&5
6869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6871   echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873   eval "$as_ac_Header=\$ac_header_preproc"
6874 fi
6875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6877
6878 fi
6879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6880   cat >>confdefs.h <<_ACEOF
6881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6882 _ACEOF
6883
6884 fi
6885
6886 done
6887
6888 ac_ext=cc
6889 ac_cpp='$CXXCPP $CPPFLAGS'
6890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6893 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6894 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6895 if test -z "$CXXCPP"; then
6896   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6897   echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899       # Double quotes because CXXCPP needs to be expanded
6900     for CXXCPP in "$CXX -E" "/lib/cpp"
6901     do
6902       ac_preproc_ok=false
6903 for ac_cxx_preproc_warn_flag in '' yes
6904 do
6905   # Use a header file that comes with gcc, so configuring glibc
6906   # with a fresh cross-compiler works.
6907   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6908   # <limits.h> exists even on freestanding compilers.
6909   # On the NeXT, cc -E runs the code through the compiler's parser,
6910   # not just through cpp. "Syntax error" is here to catch this case.
6911   cat >conftest.$ac_ext <<_ACEOF
6912 /* confdefs.h.  */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h.  */
6917 #ifdef __STDC__
6918 # include <limits.h>
6919 #else
6920 # include <assert.h>
6921 #endif
6922                      Syntax error
6923 _ACEOF
6924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6925   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6926   ac_status=$?
6927   grep -v '^ *+' conftest.er1 >conftest.err
6928   rm -f conftest.er1
6929   cat conftest.err >&5
6930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931   (exit $ac_status); } >/dev/null; then
6932   if test -s conftest.err; then
6933     ac_cpp_err=$ac_cxx_preproc_warn_flag
6934     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6935   else
6936     ac_cpp_err=
6937   fi
6938 else
6939   ac_cpp_err=yes
6940 fi
6941 if test -z "$ac_cpp_err"; then
6942   :
6943 else
6944   echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6946
6947   # Broken: fails on valid input.
6948 continue
6949 fi
6950 rm -f conftest.err conftest.$ac_ext
6951
6952   # OK, works on sane cases.  Now check whether non-existent headers
6953   # can be detected and how.
6954   cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h.  */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h.  */
6960 #include <ac_nonexistent.h>
6961 _ACEOF
6962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6964   ac_status=$?
6965   grep -v '^ *+' conftest.er1 >conftest.err
6966   rm -f conftest.er1
6967   cat conftest.err >&5
6968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969   (exit $ac_status); } >/dev/null; then
6970   if test -s conftest.err; then
6971     ac_cpp_err=$ac_cxx_preproc_warn_flag
6972     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6973   else
6974     ac_cpp_err=
6975   fi
6976 else
6977   ac_cpp_err=yes
6978 fi
6979 if test -z "$ac_cpp_err"; then
6980   # Broken: success on invalid input.
6981 continue
6982 else
6983   echo "$as_me: failed program was:" >&5
6984 sed 's/^/| /' conftest.$ac_ext >&5
6985
6986   # Passes both tests.
6987 ac_preproc_ok=:
6988 break
6989 fi
6990 rm -f conftest.err conftest.$ac_ext
6991
6992 done
6993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6994 rm -f conftest.err conftest.$ac_ext
6995 if $ac_preproc_ok; then
6996   break
6997 fi
6998
6999     done
7000     ac_cv_prog_CXXCPP=$CXXCPP
7001
7002 fi
7003   CXXCPP=$ac_cv_prog_CXXCPP
7004 else
7005   ac_cv_prog_CXXCPP=$CXXCPP
7006 fi
7007 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7008 echo "${ECHO_T}$CXXCPP" >&6
7009 ac_preproc_ok=false
7010 for ac_cxx_preproc_warn_flag in '' yes
7011 do
7012   # Use a header file that comes with gcc, so configuring glibc
7013   # with a fresh cross-compiler works.
7014   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7015   # <limits.h> exists even on freestanding compilers.
7016   # On the NeXT, cc -E runs the code through the compiler's parser,
7017   # not just through cpp. "Syntax error" is here to catch this case.
7018   cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h.  */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h.  */
7024 #ifdef __STDC__
7025 # include <limits.h>
7026 #else
7027 # include <assert.h>
7028 #endif
7029                      Syntax error
7030 _ACEOF
7031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7032   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7033   ac_status=$?
7034   grep -v '^ *+' conftest.er1 >conftest.err
7035   rm -f conftest.er1
7036   cat conftest.err >&5
7037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038   (exit $ac_status); } >/dev/null; then
7039   if test -s conftest.err; then
7040     ac_cpp_err=$ac_cxx_preproc_warn_flag
7041     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7042   else
7043     ac_cpp_err=
7044   fi
7045 else
7046   ac_cpp_err=yes
7047 fi
7048 if test -z "$ac_cpp_err"; then
7049   :
7050 else
7051   echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.$ac_ext >&5
7053
7054   # Broken: fails on valid input.
7055 continue
7056 fi
7057 rm -f conftest.err conftest.$ac_ext
7058
7059   # OK, works on sane cases.  Now check whether non-existent headers
7060   # can be detected and how.
7061   cat >conftest.$ac_ext <<_ACEOF
7062 /* confdefs.h.  */
7063 _ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h.  */
7067 #include <ac_nonexistent.h>
7068 _ACEOF
7069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7070   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7071   ac_status=$?
7072   grep -v '^ *+' conftest.er1 >conftest.err
7073   rm -f conftest.er1
7074   cat conftest.err >&5
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); } >/dev/null; then
7077   if test -s conftest.err; then
7078     ac_cpp_err=$ac_cxx_preproc_warn_flag
7079     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7080   else
7081     ac_cpp_err=
7082   fi
7083 else
7084   ac_cpp_err=yes
7085 fi
7086 if test -z "$ac_cpp_err"; then
7087   # Broken: success on invalid input.
7088 continue
7089 else
7090   echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7092
7093   # Passes both tests.
7094 ac_preproc_ok=:
7095 break
7096 fi
7097 rm -f conftest.err conftest.$ac_ext
7098
7099 done
7100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7101 rm -f conftest.err conftest.$ac_ext
7102 if $ac_preproc_ok; then
7103   :
7104 else
7105   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7106 See \`config.log' for more details." >&5
7107 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7108 See \`config.log' for more details." >&2;}
7109    { (exit 1); exit 1; }; }
7110 fi
7111
7112 ac_ext=cc
7113 ac_cpp='$CXXCPP $CPPFLAGS'
7114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7117
7118
7119 ac_ext=f
7120 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7121 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7122 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7123 if test -n "$ac_tool_prefix"; then
7124   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7125   do
7126     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7127 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7128 echo "$as_me:$LINENO: checking for $ac_word" >&5
7129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7130 if test "${ac_cv_prog_F77+set}" = set; then
7131   echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133   if test -n "$F77"; then
7134   ac_cv_prog_F77="$F77" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139   IFS=$as_save_IFS
7140   test -z "$as_dir" && as_dir=.
7141   for ac_exec_ext in '' $ac_executable_extensions; do
7142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7143     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145     break 2
7146   fi
7147 done
7148 done
7149
7150 fi
7151 fi
7152 F77=$ac_cv_prog_F77
7153 if test -n "$F77"; then
7154   echo "$as_me:$LINENO: result: $F77" >&5
7155 echo "${ECHO_T}$F77" >&6
7156 else
7157   echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6
7159 fi
7160
7161     test -n "$F77" && break
7162   done
7163 fi
7164 if test -z "$F77"; then
7165   ac_ct_F77=$F77
7166   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7167 do
7168   # Extract the first word of "$ac_prog", so it can be a program name with args.
7169 set dummy $ac_prog; ac_word=$2
7170 echo "$as_me:$LINENO: checking for $ac_word" >&5
7171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7172 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7173   echo $ECHO_N "(cached) $ECHO_C" >&6
7174 else
7175   if test -n "$ac_ct_F77"; then
7176   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7177 else
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7180 do
7181   IFS=$as_save_IFS
7182   test -z "$as_dir" && as_dir=.
7183   for ac_exec_ext in '' $ac_executable_extensions; do
7184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185     ac_cv_prog_ac_ct_F77="$ac_prog"
7186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187     break 2
7188   fi
7189 done
7190 done
7191
7192 fi
7193 fi
7194 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7195 if test -n "$ac_ct_F77"; then
7196   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7197 echo "${ECHO_T}$ac_ct_F77" >&6
7198 else
7199   echo "$as_me:$LINENO: result: no" >&5
7200 echo "${ECHO_T}no" >&6
7201 fi
7202
7203   test -n "$ac_ct_F77" && break
7204 done
7205
7206   F77=$ac_ct_F77
7207 fi
7208
7209
7210 # Provide some information about the compiler.
7211 echo "$as_me:7211:" \
7212      "checking for Fortran 77 compiler version" >&5
7213 ac_compiler=`set X $ac_compile; echo $2`
7214 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7215   (eval $ac_compiler --version </dev/null >&5) 2>&5
7216   ac_status=$?
7217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218   (exit $ac_status); }
7219 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7220   (eval $ac_compiler -v </dev/null >&5) 2>&5
7221   ac_status=$?
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); }
7224 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7225   (eval $ac_compiler -V </dev/null >&5) 2>&5
7226   ac_status=$?
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); }
7229 rm -f a.out
7230
7231 # If we don't use `.F' as extension, the preprocessor is not run on the
7232 # input file.  (Note that this only needs to work for GNU compilers.)
7233 ac_save_ext=$ac_ext
7234 ac_ext=F
7235 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7236 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7237 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7238   echo $ECHO_N "(cached) $ECHO_C" >&6
7239 else
7240   cat >conftest.$ac_ext <<_ACEOF
7241       program main
7242 #ifndef __GNUC__
7243        choke me
7244 #endif
7245
7246       end
7247 _ACEOF
7248 rm -f conftest.$ac_objext
7249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7250   (eval $ac_compile) 2>conftest.er1
7251   ac_status=$?
7252   grep -v '^ *+' conftest.er1 >conftest.err
7253   rm -f conftest.er1
7254   cat conftest.err >&5
7255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256   (exit $ac_status); } &&
7257          { ac_try='test -z "$ac_f77_werror_flag"
7258                          || test ! -s conftest.err'
7259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260   (eval $ac_try) 2>&5
7261   ac_status=$?
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); }; } &&
7264          { ac_try='test -s conftest.$ac_objext'
7265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266   (eval $ac_try) 2>&5
7267   ac_status=$?
7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); }; }; then
7270   ac_compiler_gnu=yes
7271 else
7272   echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7274
7275 ac_compiler_gnu=no
7276 fi
7277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7278 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7279
7280 fi
7281 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7282 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7283 ac_ext=$ac_save_ext
7284 ac_test_FFLAGS=${FFLAGS+set}
7285 ac_save_FFLAGS=$FFLAGS
7286 FFLAGS=
7287 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7288 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7289 if test "${ac_cv_prog_f77_g+set}" = set; then
7290   echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292   FFLAGS=-g
7293 cat >conftest.$ac_ext <<_ACEOF
7294       program main
7295
7296       end
7297 _ACEOF
7298 rm -f conftest.$ac_objext
7299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7300   (eval $ac_compile) 2>conftest.er1
7301   ac_status=$?
7302   grep -v '^ *+' conftest.er1 >conftest.err
7303   rm -f conftest.er1
7304   cat conftest.err >&5
7305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306   (exit $ac_status); } &&
7307          { ac_try='test -z "$ac_f77_werror_flag"
7308                          || test ! -s conftest.err'
7309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310   (eval $ac_try) 2>&5
7311   ac_status=$?
7312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313   (exit $ac_status); }; } &&
7314          { ac_try='test -s conftest.$ac_objext'
7315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316   (eval $ac_try) 2>&5
7317   ac_status=$?
7318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319   (exit $ac_status); }; }; then
7320   ac_cv_prog_f77_g=yes
7321 else
7322   echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7324
7325 ac_cv_prog_f77_g=no
7326 fi
7327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7328
7329 fi
7330 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7331 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7332 if test "$ac_test_FFLAGS" = set; then
7333   FFLAGS=$ac_save_FFLAGS
7334 elif test $ac_cv_prog_f77_g = yes; then
7335   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7336     FFLAGS="-g -O2"
7337   else
7338     FFLAGS="-g"
7339   fi
7340 else
7341   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7342     FFLAGS="-O2"
7343   else
7344     FFLAGS=
7345   fi
7346 fi
7347
7348 G77=`test $ac_compiler_gnu = yes && echo yes`
7349 ac_ext=c
7350 ac_cpp='$CPP $CPPFLAGS'
7351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7354
7355
7356
7357 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7358
7359 # find the maximum length of command line arguments
7360 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7361 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7362 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7363   echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365     i=0
7366   teststring="ABCD"
7367
7368   case $build_os in
7369   msdosdjgpp*)
7370     # On DJGPP, this test can blow up pretty badly due to problems in libc
7371     # (any single argument exceeding 2000 bytes causes a buffer overrun
7372     # during glob expansion).  Even if it were fixed, the result of this
7373     # check would be larger than it should be.
7374     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7375     ;;
7376
7377   gnu*)
7378     # Under GNU Hurd, this test is not required because there is
7379     # no limit to the length of command line arguments.
7380     # Libtool will interpret -1 as no limit whatsoever
7381     lt_cv_sys_max_cmd_len=-1;
7382     ;;
7383
7384   cygwin* | mingw*)
7385     # On Win9x/ME, this test blows up -- it succeeds, but takes
7386     # about 5 minutes as the teststring grows exponentially.
7387     # Worse, since 9x/ME are not pre-emptively multitasking,
7388     # you end up with a "frozen" computer, even though with patience
7389     # the test eventually succeeds (with a max line length of 256k).
7390     # Instead, let's just punt: use the minimum linelength reported by
7391     # all of the supported platforms: 8192 (on NT/2K/XP).
7392     lt_cv_sys_max_cmd_len=8192;
7393     ;;
7394
7395   amigaos*)
7396     # On AmigaOS with pdksh, this test takes hours, literally.
7397     # So we just punt and use a minimum line length of 8192.
7398     lt_cv_sys_max_cmd_len=8192;
7399     ;;
7400
7401  *)
7402     # If test is not a shell built-in, we'll probably end up computing a
7403     # maximum length that is only half of the actual maximum length, but
7404     # we can't tell.
7405     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7406                = "XX$teststring") >/dev/null 2>&1 &&
7407             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7408             lt_cv_sys_max_cmd_len=$new_result &&
7409             test $i != 17 # 1/2 MB should be enough
7410     do
7411       i=`expr $i + 1`
7412       teststring=$teststring$teststring
7413     done
7414     teststring=
7415     # Add a significant safety factor because C++ compilers can tack on massive
7416     # amounts of additional arguments before passing them to the linker.
7417     # It appears as though 1/2 is a usable value.
7418     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7419     ;;
7420   esac
7421
7422 fi
7423
7424 if test -n $lt_cv_sys_max_cmd_len ; then
7425   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7426 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7427 else
7428   echo "$as_me:$LINENO: result: none" >&5
7429 echo "${ECHO_T}none" >&6
7430 fi
7431
7432
7433
7434
7435 # Check for command to grab the raw symbol name followed by C symbol from nm.
7436 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7437 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7438 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7439   echo $ECHO_N "(cached) $ECHO_C" >&6
7440 else
7441
7442 # These are sane defaults that work on at least a few old systems.
7443 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7444
7445 # Character class describing NM global symbol codes.
7446 symcode='[BCDEGRST]'
7447
7448 # Regexp to match symbols that can be accessed directly from C.
7449 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7450
7451 # Transform the above into a raw symbol and a C symbol.
7452 symxfrm='\1 \2\3 \3'
7453
7454 # Transform an extracted symbol line into a proper C declaration
7455 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7456
7457 # Transform an extracted symbol line into symbol name and symbol address
7458 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'"
7459
7460 # Define system-specific variables.
7461 case $host_os in
7462 aix*)
7463   symcode='[BCDT]'
7464   ;;
7465 cygwin* | mingw* | pw32*)
7466   symcode='[ABCDGISTW]'
7467   ;;
7468 hpux*) # Its linker distinguishes data from code symbols
7469   if test "$host_cpu" = ia64; then
7470     symcode='[ABCDEGRST]'
7471   fi
7472   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7473   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'"
7474   ;;
7475 irix* | nonstopux*)
7476   symcode='[BCDEGRST]'
7477   ;;
7478 osf*)
7479   symcode='[BCDEGQRST]'
7480   ;;
7481 solaris* | sysv5*)
7482   symcode='[BDRT]'
7483   ;;
7484 sysv4)
7485   symcode='[DFNSTU]'
7486   ;;
7487 esac
7488
7489 # Handle CRLF in mingw tool chain
7490 opt_cr=
7491 case $build_os in
7492 mingw*)
7493   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7494   ;;
7495 esac
7496
7497 # If we're using GNU nm, then use its standard symbol codes.
7498 case `$NM -V 2>&1` in
7499 *GNU* | *'with BFD'*)
7500   symcode='[ABCDGIRSTW]' ;;
7501 esac
7502
7503 # Try without a prefix undercore, then with it.
7504 for ac_symprfx in "" "_"; do
7505
7506   # Write the raw and C identifiers.
7507   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7508
7509   # Check to see that the pipe works correctly.
7510   pipe_works=no
7511
7512   rm -f conftest*
7513   cat > conftest.$ac_ext <<EOF
7514 #ifdef __cplusplus
7515 extern "C" {
7516 #endif
7517 char nm_test_var;
7518 void nm_test_func(){}
7519 #ifdef __cplusplus
7520 }
7521 #endif
7522 int main(){nm_test_var='a';nm_test_func();return(0);}
7523 EOF
7524
7525   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7526   (eval $ac_compile) 2>&5
7527   ac_status=$?
7528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529   (exit $ac_status); }; then
7530     # Now try to grab the symbols.
7531     nlist=conftest.nm
7532     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7533   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7534   ac_status=$?
7535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536   (exit $ac_status); } && test -s "$nlist"; then
7537       # Try sorting and uniquifying the output.
7538       if sort "$nlist" | uniq > "$nlist"T; then
7539         mv -f "$nlist"T "$nlist"
7540       else
7541         rm -f "$nlist"T
7542       fi
7543
7544       # Make sure that we snagged all the symbols we need.
7545       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7546         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7547           cat <<EOF > conftest.$ac_ext
7548 #ifdef __cplusplus
7549 extern "C" {
7550 #endif
7551
7552 EOF
7553           # Now generate the symbol file.
7554           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7555
7556           cat <<EOF >> conftest.$ac_ext
7557 #if defined (__STDC__) && __STDC__
7558 # define lt_ptr_t void *
7559 #else
7560 # define lt_ptr_t char *
7561 # define const
7562 #endif
7563
7564 /* The mapping between symbol names and symbols. */
7565 const struct {
7566   const char *name;
7567   lt_ptr_t address;
7568 }
7569 lt_preloaded_symbols[] =
7570 {
7571 EOF
7572           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7573           cat <<\EOF >> conftest.$ac_ext
7574   {0, (lt_ptr_t) 0}
7575 };
7576
7577 #ifdef __cplusplus
7578 }
7579 #endif
7580 EOF
7581           # Now try linking the two files.
7582           mv conftest.$ac_objext conftstm.$ac_objext
7583           lt_save_LIBS="$LIBS"
7584           lt_save_CFLAGS="$CFLAGS"
7585           LIBS="conftstm.$ac_objext"
7586           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7587           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7588   (eval $ac_link) 2>&5
7589   ac_status=$?
7590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7592             pipe_works=yes
7593           fi
7594           LIBS="$lt_save_LIBS"
7595           CFLAGS="$lt_save_CFLAGS"
7596         else
7597           echo "cannot find nm_test_func in $nlist" >&5
7598         fi
7599       else
7600         echo "cannot find nm_test_var in $nlist" >&5
7601       fi
7602     else
7603       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7604     fi
7605   else
7606     echo "$progname: failed program was:" >&5
7607     cat conftest.$ac_ext >&5
7608   fi
7609   rm -f conftest* conftst*
7610
7611   # Do not use the global_symbol_pipe unless it works.
7612   if test "$pipe_works" = yes; then
7613     break
7614   else
7615     lt_cv_sys_global_symbol_pipe=
7616   fi
7617 done
7618
7619 fi
7620
7621 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7622   lt_cv_sys_global_symbol_to_cdecl=
7623 fi
7624 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7625   echo "$as_me:$LINENO: result: failed" >&5
7626 echo "${ECHO_T}failed" >&6
7627 else
7628   echo "$as_me:$LINENO: result: ok" >&5
7629 echo "${ECHO_T}ok" >&6
7630 fi
7631
7632 echo "$as_me:$LINENO: checking for objdir" >&5
7633 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7634 if test "${lt_cv_objdir+set}" = set; then
7635   echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637   rm -f .libs 2>/dev/null
7638 mkdir .libs 2>/dev/null
7639 if test -d .libs; then
7640   lt_cv_objdir=.libs
7641 else
7642   # MS-DOS does not allow filenames that begin with a dot.
7643   lt_cv_objdir=_libs
7644 fi
7645 rmdir .libs 2>/dev/null
7646 fi
7647 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7648 echo "${ECHO_T}$lt_cv_objdir" >&6
7649 objdir=$lt_cv_objdir
7650
7651
7652
7653
7654
7655 case $host_os in
7656 aix3*)
7657   # AIX sometimes has problems with the GCC collect2 program.  For some
7658   # reason, if we set the COLLECT_NAMES environment variable, the problems
7659   # vanish in a puff of smoke.
7660   if test "X${COLLECT_NAMES+set}" != Xset; then
7661     COLLECT_NAMES=
7662     export COLLECT_NAMES
7663   fi
7664   ;;
7665 esac
7666
7667 # Sed substitution that helps us do robust quoting.  It backslashifies
7668 # metacharacters that are still active within double-quoted strings.
7669 Xsed='sed -e s/^X//'
7670 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7671
7672 # Same as above, but do not quote variable references.
7673 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7674
7675 # Sed substitution to delay expansion of an escaped shell variable in a
7676 # double_quote_subst'ed string.
7677 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7678
7679 # Sed substitution to avoid accidental globbing in evaled expressions
7680 no_glob_subst='s/\*/\\\*/g'
7681
7682 # Constants:
7683 rm="rm -f"
7684
7685 # Global variables:
7686 default_ofile=libtool
7687 can_build_shared=yes
7688
7689 # All known linkers require a `.a' archive for static linking (except M$VC,
7690 # which needs '.lib').
7691 libext=a
7692 ltmain="$ac_aux_dir/ltmain.sh"
7693 ofile="$default_ofile"
7694 with_gnu_ld="$lt_cv_prog_gnu_ld"
7695
7696 if test -n "$ac_tool_prefix"; then
7697   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7698 set dummy ${ac_tool_prefix}ar; ac_word=$2
7699 echo "$as_me:$LINENO: checking for $ac_word" >&5
7700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7701 if test "${ac_cv_prog_AR+set}" = set; then
7702   echo $ECHO_N "(cached) $ECHO_C" >&6
7703 else
7704   if test -n "$AR"; then
7705   ac_cv_prog_AR="$AR" # Let the user override the test.
7706 else
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7709 do
7710   IFS=$as_save_IFS
7711   test -z "$as_dir" && as_dir=.
7712   for ac_exec_ext in '' $ac_executable_extensions; do
7713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714     ac_cv_prog_AR="${ac_tool_prefix}ar"
7715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7716     break 2
7717   fi
7718 done
7719 done
7720
7721 fi
7722 fi
7723 AR=$ac_cv_prog_AR
7724 if test -n "$AR"; then
7725   echo "$as_me:$LINENO: result: $AR" >&5
7726 echo "${ECHO_T}$AR" >&6
7727 else
7728   echo "$as_me:$LINENO: result: no" >&5
7729 echo "${ECHO_T}no" >&6
7730 fi
7731
7732 fi
7733 if test -z "$ac_cv_prog_AR"; then
7734   ac_ct_AR=$AR
7735   # Extract the first word of "ar", so it can be a program name with args.
7736 set dummy ar; ac_word=$2
7737 echo "$as_me:$LINENO: checking for $ac_word" >&5
7738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7739 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7740   echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742   if test -n "$ac_ct_AR"; then
7743   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7744 else
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7747 do
7748   IFS=$as_save_IFS
7749   test -z "$as_dir" && as_dir=.
7750   for ac_exec_ext in '' $ac_executable_extensions; do
7751   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7752     ac_cv_prog_ac_ct_AR="ar"
7753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7754     break 2
7755   fi
7756 done
7757 done
7758
7759   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7760 fi
7761 fi
7762 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7763 if test -n "$ac_ct_AR"; then
7764   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7765 echo "${ECHO_T}$ac_ct_AR" >&6
7766 else
7767   echo "$as_me:$LINENO: result: no" >&5
7768 echo "${ECHO_T}no" >&6
7769 fi
7770
7771   AR=$ac_ct_AR
7772 else
7773   AR="$ac_cv_prog_AR"
7774 fi
7775
7776 if test -n "$ac_tool_prefix"; then
7777   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7778 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7779 echo "$as_me:$LINENO: checking for $ac_word" >&5
7780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7781 if test "${ac_cv_prog_RANLIB+set}" = set; then
7782   echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784   if test -n "$RANLIB"; then
7785   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7786 else
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 for as_dir in $PATH
7789 do
7790   IFS=$as_save_IFS
7791   test -z "$as_dir" && as_dir=.
7792   for ac_exec_ext in '' $ac_executable_extensions; do
7793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7796     break 2
7797   fi
7798 done
7799 done
7800
7801 fi
7802 fi
7803 RANLIB=$ac_cv_prog_RANLIB
7804 if test -n "$RANLIB"; then
7805   echo "$as_me:$LINENO: result: $RANLIB" >&5
7806 echo "${ECHO_T}$RANLIB" >&6
7807 else
7808   echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6
7810 fi
7811
7812 fi
7813 if test -z "$ac_cv_prog_RANLIB"; then
7814   ac_ct_RANLIB=$RANLIB
7815   # Extract the first word of "ranlib", so it can be a program name with args.
7816 set dummy ranlib; ac_word=$2
7817 echo "$as_me:$LINENO: checking for $ac_word" >&5
7818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7819 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7820   echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822   if test -n "$ac_ct_RANLIB"; then
7823   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7824 else
7825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 for as_dir in $PATH
7827 do
7828   IFS=$as_save_IFS
7829   test -z "$as_dir" && as_dir=.
7830   for ac_exec_ext in '' $ac_executable_extensions; do
7831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7832     ac_cv_prog_ac_ct_RANLIB="ranlib"
7833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7834     break 2
7835   fi
7836 done
7837 done
7838
7839   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7840 fi
7841 fi
7842 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7843 if test -n "$ac_ct_RANLIB"; then
7844   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7845 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7846 else
7847   echo "$as_me:$LINENO: result: no" >&5
7848 echo "${ECHO_T}no" >&6
7849 fi
7850
7851   RANLIB=$ac_ct_RANLIB
7852 else
7853   RANLIB="$ac_cv_prog_RANLIB"
7854 fi
7855
7856 if test -n "$ac_tool_prefix"; then
7857   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7858 set dummy ${ac_tool_prefix}strip; ac_word=$2
7859 echo "$as_me:$LINENO: checking for $ac_word" >&5
7860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7861 if test "${ac_cv_prog_STRIP+set}" = set; then
7862   echo $ECHO_N "(cached) $ECHO_C" >&6
7863 else
7864   if test -n "$STRIP"; then
7865   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870   IFS=$as_save_IFS
7871   test -z "$as_dir" && as_dir=.
7872   for ac_exec_ext in '' $ac_executable_extensions; do
7873   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7874     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7876     break 2
7877   fi
7878 done
7879 done
7880
7881 fi
7882 fi
7883 STRIP=$ac_cv_prog_STRIP
7884 if test -n "$STRIP"; then
7885   echo "$as_me:$LINENO: result: $STRIP" >&5
7886 echo "${ECHO_T}$STRIP" >&6
7887 else
7888   echo "$as_me:$LINENO: result: no" >&5
7889 echo "${ECHO_T}no" >&6
7890 fi
7891
7892 fi
7893 if test -z "$ac_cv_prog_STRIP"; then
7894   ac_ct_STRIP=$STRIP
7895   # Extract the first word of "strip", so it can be a program name with args.
7896 set dummy strip; ac_word=$2
7897 echo "$as_me:$LINENO: checking for $ac_word" >&5
7898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7899 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7900   echo $ECHO_N "(cached) $ECHO_C" >&6
7901 else
7902   if test -n "$ac_ct_STRIP"; then
7903   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7904 else
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 for as_dir in $PATH
7907 do
7908   IFS=$as_save_IFS
7909   test -z "$as_dir" && as_dir=.
7910   for ac_exec_ext in '' $ac_executable_extensions; do
7911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912     ac_cv_prog_ac_ct_STRIP="strip"
7913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7914     break 2
7915   fi
7916 done
7917 done
7918
7919   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7920 fi
7921 fi
7922 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7923 if test -n "$ac_ct_STRIP"; then
7924   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7925 echo "${ECHO_T}$ac_ct_STRIP" >&6
7926 else
7927   echo "$as_me:$LINENO: result: no" >&5
7928 echo "${ECHO_T}no" >&6
7929 fi
7930
7931   STRIP=$ac_ct_STRIP
7932 else
7933   STRIP="$ac_cv_prog_STRIP"
7934 fi
7935
7936
7937 old_CC="$CC"
7938 old_CFLAGS="$CFLAGS"
7939
7940 # Set sane defaults for various variables
7941 test -z "$AR" && AR=ar
7942 test -z "$AR_FLAGS" && AR_FLAGS=cru
7943 test -z "$AS" && AS=as
7944 test -z "$CC" && CC=cc
7945 test -z "$LTCC" && LTCC=$CC
7946 test -z "$DLLTOOL" && DLLTOOL=dlltool
7947 test -z "$LD" && LD=ld
7948 test -z "$LN_S" && LN_S="ln -s"
7949 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7950 test -z "$NM" && NM=nm
7951 test -z "$SED" && SED=sed
7952 test -z "$OBJDUMP" && OBJDUMP=objdump
7953 test -z "$RANLIB" && RANLIB=:
7954 test -z "$STRIP" && STRIP=:
7955 test -z "$ac_objext" && ac_objext=o
7956
7957 # Determine commands to create old-style static archives.
7958 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7959 old_postinstall_cmds='chmod 644 $oldlib'
7960 old_postuninstall_cmds=
7961
7962 if test -n "$RANLIB"; then
7963   case $host_os in
7964   openbsd*)
7965     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7966     ;;
7967   *)
7968     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7969     ;;
7970   esac
7971   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7972 fi
7973
7974 # Only perform the check for file, if the check method requires it
7975 case $deplibs_check_method in
7976 file_magic*)
7977   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7978     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7979 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7980 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7981   echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983   case $MAGIC_CMD in
7984 [\\/*] |  ?:[\\/]*)
7985   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7986   ;;
7987 *)
7988   lt_save_MAGIC_CMD="$MAGIC_CMD"
7989   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7990   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7991   for ac_dir in $ac_dummy; do
7992     IFS="$lt_save_ifs"
7993     test -z "$ac_dir" && ac_dir=.
7994     if test -f $ac_dir/${ac_tool_prefix}file; then
7995       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7996       if test -n "$file_magic_test_file"; then
7997         case $deplibs_check_method in
7998         "file_magic "*)
7999           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8000           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8001           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8002             $EGREP "$file_magic_regex" > /dev/null; then
8003             :
8004           else
8005             cat <<EOF 1>&2
8006
8007 *** Warning: the command libtool uses to detect shared libraries,
8008 *** $file_magic_cmd, produces output that libtool cannot recognize.
8009 *** The result is that libtool may fail to recognize shared libraries
8010 *** as such.  This will affect the creation of libtool libraries that
8011 *** depend on shared libraries, but programs linked with such libtool
8012 *** libraries will work regardless of this problem.  Nevertheless, you
8013 *** may want to report the problem to your system manager and/or to
8014 *** bug-libtool@gnu.org
8015
8016 EOF
8017           fi ;;
8018         esac
8019       fi
8020       break
8021     fi
8022   done
8023   IFS="$lt_save_ifs"
8024   MAGIC_CMD="$lt_save_MAGIC_CMD"
8025   ;;
8026 esac
8027 fi
8028
8029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8030 if test -n "$MAGIC_CMD"; then
8031   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8032 echo "${ECHO_T}$MAGIC_CMD" >&6
8033 else
8034   echo "$as_me:$LINENO: result: no" >&5
8035 echo "${ECHO_T}no" >&6
8036 fi
8037
8038 if test -z "$lt_cv_path_MAGIC_CMD"; then
8039   if test -n "$ac_tool_prefix"; then
8040     echo "$as_me:$LINENO: checking for file" >&5
8041 echo $ECHO_N "checking for file... $ECHO_C" >&6
8042 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8043   echo $ECHO_N "(cached) $ECHO_C" >&6
8044 else
8045   case $MAGIC_CMD in
8046 [\\/*] |  ?:[\\/]*)
8047   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8048   ;;
8049 *)
8050   lt_save_MAGIC_CMD="$MAGIC_CMD"
8051   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8052   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8053   for ac_dir in $ac_dummy; do
8054     IFS="$lt_save_ifs"
8055     test -z "$ac_dir" && ac_dir=.
8056     if test -f $ac_dir/file; then
8057       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8058       if test -n "$file_magic_test_file"; then
8059         case $deplibs_check_method in
8060         "file_magic "*)
8061           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8062           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8063           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8064             $EGREP "$file_magic_regex" > /dev/null; then
8065             :
8066           else
8067             cat <<EOF 1>&2
8068
8069 *** Warning: the command libtool uses to detect shared libraries,
8070 *** $file_magic_cmd, produces output that libtool cannot recognize.
8071 *** The result is that libtool may fail to recognize shared libraries
8072 *** as such.  This will affect the creation of libtool libraries that
8073 *** depend on shared libraries, but programs linked with such libtool
8074 *** libraries will work regardless of this problem.  Nevertheless, you
8075 *** may want to report the problem to your system manager and/or to
8076 *** bug-libtool@gnu.org
8077
8078 EOF
8079           fi ;;
8080         esac
8081       fi
8082       break
8083     fi
8084   done
8085   IFS="$lt_save_ifs"
8086   MAGIC_CMD="$lt_save_MAGIC_CMD"
8087   ;;
8088 esac
8089 fi
8090
8091 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8092 if test -n "$MAGIC_CMD"; then
8093   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8094 echo "${ECHO_T}$MAGIC_CMD" >&6
8095 else
8096   echo "$as_me:$LINENO: result: no" >&5
8097 echo "${ECHO_T}no" >&6
8098 fi
8099
8100   else
8101     MAGIC_CMD=:
8102   fi
8103 fi
8104
8105   fi
8106   ;;
8107 esac
8108
8109 enable_dlopen=no
8110 enable_win32_dll=no
8111
8112 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8113 if test "${enable_libtool_lock+set}" = set; then
8114   enableval="$enable_libtool_lock"
8115
8116 fi;
8117 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8118
8119
8120 # Check whether --with-pic or --without-pic was given.
8121 if test "${with_pic+set}" = set; then
8122   withval="$with_pic"
8123   pic_mode="$withval"
8124 else
8125   pic_mode=default
8126 fi;
8127 test -z "$pic_mode" && pic_mode=default
8128
8129 # Use C for the default configuration in the libtool script
8130 tagname=
8131 lt_save_CC="$CC"
8132 ac_ext=c
8133 ac_cpp='$CPP $CPPFLAGS'
8134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8137
8138
8139 # Source file extension for C test sources.
8140 ac_ext=c
8141
8142 # Object file extension for compiled C test sources.
8143 objext=o
8144 objext=$objext
8145
8146 # Code to be used in simple compile tests
8147 lt_simple_compile_test_code="int some_variable = 0;\n"
8148
8149 # Code to be used in simple link tests
8150 lt_simple_link_test_code='int main(){return(0);}\n'
8151
8152
8153 # If no C compiler was specified, use CC.
8154 LTCC=${LTCC-"$CC"}
8155
8156 # Allow CC to be a program name with arguments.
8157 compiler=$CC
8158
8159
8160 #
8161 # Check for any special shared library compilation flags.
8162 #
8163 lt_prog_cc_shlib=
8164 if test "$GCC" = no; then
8165   case $host_os in
8166   sco3.2v5*)
8167     lt_prog_cc_shlib='-belf'
8168     ;;
8169   esac
8170 fi
8171 if test -n "$lt_prog_cc_shlib"; then
8172   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8173 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8174   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8175   else
8176     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8177 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8178     lt_cv_prog_cc_can_build_shared=no
8179   fi
8180 fi
8181
8182
8183 #
8184 # Check to make sure the static flag actually works.
8185 #
8186 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8187 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8188 if test "${lt_prog_compiler_static_works+set}" = set; then
8189   echo $ECHO_N "(cached) $ECHO_C" >&6
8190 else
8191   lt_prog_compiler_static_works=no
8192    save_LDFLAGS="$LDFLAGS"
8193    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8194    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8195    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8196      # The compiler can only warn and ignore the option if not recognized
8197      # So say no if there are warnings
8198      if test -s conftest.err; then
8199        # Append any errors to the config.log.
8200        cat conftest.err 1>&5
8201      else
8202        lt_prog_compiler_static_works=yes
8203      fi
8204    fi
8205    $rm conftest*
8206    LDFLAGS="$save_LDFLAGS"
8207
8208 fi
8209 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8210 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8211
8212 if test x"$lt_prog_compiler_static_works" = xyes; then
8213     :
8214 else
8215     lt_prog_compiler_static=
8216 fi
8217
8218
8219
8220 ## CAVEAT EMPTOR:
8221 ## There is no encapsulation within the following macros, do not change
8222 ## the running order or otherwise move them around unless you know exactly
8223 ## what you are doing...
8224
8225 lt_prog_compiler_no_builtin_flag=
8226
8227 if test "$GCC" = yes; then
8228   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8229
8230
8231 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8232 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8233 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8234   echo $ECHO_N "(cached) $ECHO_C" >&6
8235 else
8236   lt_cv_prog_compiler_rtti_exceptions=no
8237   ac_outfile=conftest.$ac_objext
8238    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8239    lt_compiler_flag="-fno-rtti -fno-exceptions"
8240    # Insert the option either (1) after the last *FLAGS variable, or
8241    # (2) before a word containing "conftest.", or (3) at the end.
8242    # Note that $ac_compile itself does not contain backslashes and begins
8243    # with a dollar sign (not a hyphen), so the echo should work correctly.
8244    # The option is referenced via a variable to avoid confusing sed.
8245    lt_compile=`echo "$ac_compile" | $SED \
8246    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8247    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8248    -e 's:$: $lt_compiler_flag:'`
8249    (eval echo "\"\$as_me:8249: $lt_compile\"" >&5)
8250    (eval "$lt_compile" 2>conftest.err)
8251    ac_status=$?
8252    cat conftest.err >&5
8253    echo "$as_me:8253: \$? = $ac_status" >&5
8254    if (exit $ac_status) && test -s "$ac_outfile"; then
8255      # The compiler can only warn and ignore the option if not recognized
8256      # So say no if there are warnings
8257      if test ! -s conftest.err; then
8258        lt_cv_prog_compiler_rtti_exceptions=yes
8259      fi
8260    fi
8261    $rm conftest*
8262
8263 fi
8264 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8265 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8266
8267 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8268     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8269 else
8270     :
8271 fi
8272
8273 fi
8274
8275 lt_prog_compiler_wl=
8276 lt_prog_compiler_pic=
8277 lt_prog_compiler_static=
8278
8279 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8280 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8281
8282   if test "$GCC" = yes; then
8283     lt_prog_compiler_wl='-Wl,'
8284     lt_prog_compiler_static='-static'
8285
8286     case $host_os in
8287       aix*)
8288       # All AIX code is PIC.
8289       if test "$host_cpu" = ia64; then
8290         # AIX 5 now supports IA64 processor
8291         lt_prog_compiler_static='-Bstatic'
8292       fi
8293       ;;
8294
8295     amigaos*)
8296       # FIXME: we need at least 68020 code to build shared libraries, but
8297       # adding the `-m68020' flag to GCC prevents building anything better,
8298       # like `-m68040'.
8299       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8300       ;;
8301
8302     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8303       # PIC is the default for these OSes.
8304       ;;
8305
8306     mingw* | pw32* | os2*)
8307       # This hack is so that the source file can tell whether it is being
8308       # built for inclusion in a dll (and should export symbols for example).
8309       lt_prog_compiler_pic='-DDLL_EXPORT'
8310       ;;
8311
8312     darwin* | rhapsody*)
8313       # PIC is the default on this platform
8314       # Common symbols not allowed in MH_DYLIB files
8315       lt_prog_compiler_pic='-fno-common'
8316       ;;
8317
8318     msdosdjgpp*)
8319       # Just because we use GCC doesn't mean we suddenly get shared libraries
8320       # on systems that don't support them.
8321       lt_prog_compiler_can_build_shared=no
8322       enable_shared=no
8323       ;;
8324
8325     sysv4*MP*)
8326       if test -d /usr/nec; then
8327         lt_prog_compiler_pic=-Kconform_pic
8328       fi
8329       ;;
8330
8331     hpux*)
8332       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8333       # not for PA HP-UX.
8334       case "$host_cpu" in
8335       hppa*64*|ia64*)
8336         # +Z the default
8337         ;;
8338       *)
8339         lt_prog_compiler_pic='-fPIC'
8340         ;;
8341       esac
8342       ;;
8343
8344     *)
8345       lt_prog_compiler_pic='-fPIC'
8346       ;;
8347     esac
8348   else
8349     # PORTME Check for flag to pass linker flags through the system compiler.
8350     case $host_os in
8351     aix*)
8352       lt_prog_compiler_wl='-Wl,'
8353       if test "$host_cpu" = ia64; then
8354         # AIX 5 now supports IA64 processor
8355         lt_prog_compiler_static='-Bstatic'
8356       else
8357         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8358       fi
8359       ;;
8360
8361     mingw* | pw32* | os2*)
8362       # This hack is so that the source file can tell whether it is being
8363       # built for inclusion in a dll (and should export symbols for example).
8364       lt_prog_compiler_pic='-DDLL_EXPORT'
8365       ;;
8366
8367     hpux9* | hpux10* | hpux11*)
8368       lt_prog_compiler_wl='-Wl,'
8369       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8370       # not for PA HP-UX.
8371       case "$host_cpu" in
8372       hppa*64*|ia64*)
8373         # +Z the default
8374         ;;
8375       *)
8376         lt_prog_compiler_pic='+Z'
8377         ;;
8378       esac
8379       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8380       lt_prog_compiler_static='${wl}-a ${wl}archive'
8381       ;;
8382
8383     irix5* | irix6* | nonstopux*)
8384       lt_prog_compiler_wl='-Wl,'
8385       # PIC (with -KPIC) is the default.
8386       lt_prog_compiler_static='-non_shared'
8387       ;;
8388
8389     newsos6)
8390       lt_prog_compiler_pic='-KPIC'
8391       lt_prog_compiler_static='-Bstatic'
8392       ;;
8393
8394     linux*)
8395       case $CC in
8396       icc* | ecc*)
8397         lt_prog_compiler_wl='-Wl,'
8398         lt_prog_compiler_pic='-KPIC'
8399         lt_prog_compiler_static='-static'
8400         ;;
8401       ccc*)
8402         lt_prog_compiler_wl='-Wl,'
8403         # All Alpha code is PIC.
8404         lt_prog_compiler_static='-non_shared'
8405         ;;
8406       esac
8407       ;;
8408
8409     osf3* | osf4* | osf5*)
8410       lt_prog_compiler_wl='-Wl,'
8411       # All OSF/1 code is PIC.
8412       lt_prog_compiler_static='-non_shared'
8413       ;;
8414
8415     sco3.2v5*)
8416       lt_prog_compiler_pic='-Kpic'
8417       lt_prog_compiler_static='-dn'
8418       ;;
8419
8420     solaris*)
8421       lt_prog_compiler_wl='-Wl,'
8422       lt_prog_compiler_pic='-KPIC'
8423       lt_prog_compiler_static='-Bstatic'
8424       ;;
8425
8426     sunos4*)
8427       lt_prog_compiler_wl='-Qoption ld '
8428       lt_prog_compiler_pic='-PIC'
8429       lt_prog_compiler_static='-Bstatic'
8430       ;;
8431
8432     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8433       lt_prog_compiler_wl='-Wl,'
8434       lt_prog_compiler_pic='-KPIC'
8435       lt_prog_compiler_static='-Bstatic'
8436       ;;
8437
8438     sysv4*MP*)
8439       if test -d /usr/nec ;then
8440         lt_prog_compiler_pic='-Kconform_pic'
8441         lt_prog_compiler_static='-Bstatic'
8442       fi
8443       ;;
8444
8445     uts4*)
8446       lt_prog_compiler_pic='-pic'
8447       lt_prog_compiler_static='-Bstatic'
8448       ;;
8449
8450     *)
8451       lt_prog_compiler_can_build_shared=no
8452       ;;
8453     esac
8454   fi
8455
8456 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8457 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8458
8459 #
8460 # Check to make sure the PIC flag actually works.
8461 #
8462 if test -n "$lt_prog_compiler_pic"; then
8463
8464 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8465 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8466 if test "${lt_prog_compiler_pic_works+set}" = set; then
8467   echo $ECHO_N "(cached) $ECHO_C" >&6
8468 else
8469   lt_prog_compiler_pic_works=no
8470   ac_outfile=conftest.$ac_objext
8471    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8472    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8473    # Insert the option either (1) after the last *FLAGS variable, or
8474    # (2) before a word containing "conftest.", or (3) at the end.
8475    # Note that $ac_compile itself does not contain backslashes and begins
8476    # with a dollar sign (not a hyphen), so the echo should work correctly.
8477    # The option is referenced via a variable to avoid confusing sed.
8478    lt_compile=`echo "$ac_compile" | $SED \
8479    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8480    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8481    -e 's:$: $lt_compiler_flag:'`
8482    (eval echo "\"\$as_me:8482: $lt_compile\"" >&5)
8483    (eval "$lt_compile" 2>conftest.err)
8484    ac_status=$?
8485    cat conftest.err >&5
8486    echo "$as_me:8486: \$? = $ac_status" >&5
8487    if (exit $ac_status) && test -s "$ac_outfile"; then
8488      # The compiler can only warn and ignore the option if not recognized
8489      # So say no if there are warnings
8490      if test ! -s conftest.err; then
8491        lt_prog_compiler_pic_works=yes
8492      fi
8493    fi
8494    $rm conftest*
8495
8496 fi
8497 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8498 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8499
8500 if test x"$lt_prog_compiler_pic_works" = xyes; then
8501     case $lt_prog_compiler_pic in
8502      "" | " "*) ;;
8503      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8504      esac
8505 else
8506     lt_prog_compiler_pic=
8507      lt_prog_compiler_can_build_shared=no
8508 fi
8509
8510 fi
8511 case "$host_os" in
8512   # For platforms which do not support PIC, -DPIC is meaningless:
8513   *djgpp*)
8514     lt_prog_compiler_pic=
8515     ;;
8516   *)
8517     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8518     ;;
8519 esac
8520
8521 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8522 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8523 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8524   echo $ECHO_N "(cached) $ECHO_C" >&6
8525 else
8526   lt_cv_prog_compiler_c_o=no
8527    $rm -r conftest 2>/dev/null
8528    mkdir conftest
8529    cd conftest
8530    mkdir out
8531    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8532
8533    lt_compiler_flag="-o out/conftest2.$ac_objext"
8534    # Insert the option either (1) after the last *FLAGS variable, or
8535    # (2) before a word containing "conftest.", or (3) at the end.
8536    # Note that $ac_compile itself does not contain backslashes and begins
8537    # with a dollar sign (not a hyphen), so the echo should work correctly.
8538    lt_compile=`echo "$ac_compile" | $SED \
8539    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8540    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8541    -e 's:$: $lt_compiler_flag:'`
8542    (eval echo "\"\$as_me:8542: $lt_compile\"" >&5)
8543    (eval "$lt_compile" 2>out/conftest.err)
8544    ac_status=$?
8545    cat out/conftest.err >&5
8546    echo "$as_me:8546: \$? = $ac_status" >&5
8547    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8548    then
8549      # The compiler can only warn and ignore the option if not recognized
8550      # So say no if there are warnings
8551      if test ! -s out/conftest.err; then
8552        lt_cv_prog_compiler_c_o=yes
8553      fi
8554    fi
8555    chmod u+w .
8556    $rm conftest*
8557    # SGI C++ compiler will create directory out/ii_files/ for
8558    # template instantiation
8559    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8560    $rm out/* && rmdir out
8561    cd ..
8562    rmdir conftest
8563    $rm conftest*
8564
8565 fi
8566 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8567 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8568
8569
8570 hard_links="nottested"
8571 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8572   # do not overwrite the value of need_locks provided by the user
8573   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8574 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8575   hard_links=yes
8576   $rm conftest*
8577   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8578   touch conftest.a
8579   ln conftest.a conftest.b 2>&5 || hard_links=no
8580   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8581   echo "$as_me:$LINENO: result: $hard_links" >&5
8582 echo "${ECHO_T}$hard_links" >&6
8583   if test "$hard_links" = no; then
8584     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8585 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8586     need_locks=warn
8587   fi
8588 else
8589   need_locks=no
8590 fi
8591
8592 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8593 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8594
8595   runpath_var=
8596   allow_undefined_flag=
8597   enable_shared_with_static_runtimes=no
8598   archive_cmds=
8599   archive_expsym_cmds=
8600   old_archive_From_new_cmds=
8601   old_archive_from_expsyms_cmds=
8602   export_dynamic_flag_spec=
8603   whole_archive_flag_spec=
8604   thread_safe_flag_spec=
8605   hardcode_libdir_flag_spec=
8606   hardcode_libdir_flag_spec_ld=
8607   hardcode_libdir_separator=
8608   hardcode_direct=no
8609   hardcode_minus_L=no
8610   hardcode_shlibpath_var=unsupported
8611   link_all_deplibs=unknown
8612   hardcode_automatic=no
8613   module_cmds=
8614   module_expsym_cmds=
8615   always_export_symbols=no
8616   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8617   # include_expsyms should be a list of space-separated symbols to be *always*
8618   # included in the symbol list
8619   include_expsyms=
8620   # exclude_expsyms can be an extended regexp of symbols to exclude
8621   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8622   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8623   # as well as any symbol that contains `d'.
8624   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8625   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8626   # platforms (ab)use it in PIC code, but their linkers get confused if
8627   # the symbol is explicitly referenced.  Since portable code cannot
8628   # rely on this symbol name, it's probably fine to never include it in
8629   # preloaded symbol tables.
8630   extract_expsyms_cmds=
8631
8632   case $host_os in
8633   cygwin* | mingw* | pw32*)
8634     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8635     # When not using gcc, we currently assume that we are using
8636     # Microsoft Visual C++.
8637     if test "$GCC" != yes; then
8638       with_gnu_ld=no
8639     fi
8640     ;;
8641   openbsd*)
8642     with_gnu_ld=no
8643     ;;
8644   esac
8645
8646   ld_shlibs=yes
8647   if test "$with_gnu_ld" = yes; then
8648     # If archive_cmds runs LD, not CC, wlarc should be empty
8649     wlarc='${wl}'
8650
8651     # See if GNU ld supports shared libraries.
8652     case $host_os in
8653     aix3* | aix4* | aix5*)
8654       # On AIX/PPC, the GNU linker is very broken
8655       if test "$host_cpu" != ia64; then
8656         ld_shlibs=no
8657         cat <<EOF 1>&2
8658
8659 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8660 *** to be unable to reliably create shared libraries on AIX.
8661 *** Therefore, libtool is disabling shared libraries support.  If you
8662 *** really care for shared libraries, you may want to modify your PATH
8663 *** so that a non-GNU linker is found, and then restart.
8664
8665 EOF
8666       fi
8667       ;;
8668
8669     amigaos*)
8670       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)'
8671       hardcode_libdir_flag_spec='-L$libdir'
8672       hardcode_minus_L=yes
8673
8674       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8675       # that the semantics of dynamic libraries on AmigaOS, at least up
8676       # to version 4, is to share data among multiple programs linked
8677       # with the same dynamic library.  Since this doesn't match the
8678       # behavior of shared libraries on other platforms, we can't use
8679       # them.
8680       ld_shlibs=no
8681       ;;
8682
8683     beos*)
8684       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8685         allow_undefined_flag=unsupported
8686         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8687         # support --undefined.  This deserves some investigation.  FIXME
8688         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8689       else
8690         ld_shlibs=no
8691       fi
8692       ;;
8693
8694     cygwin* | mingw* | pw32*)
8695       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8696       # as there is no search path for DLLs.
8697       hardcode_libdir_flag_spec='-L$libdir'
8698       allow_undefined_flag=unsupported
8699       always_export_symbols=no
8700       enable_shared_with_static_runtimes=yes
8701       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8702
8703       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8704         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8705         # If the export-symbols file already is a .def file (1st line
8706         # is EXPORTS), use it as is; otherwise, prepend...
8707         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8708           cp $export_symbols $output_objdir/$soname.def;
8709         else
8710           echo EXPORTS > $output_objdir/$soname.def;
8711           cat $export_symbols >> $output_objdir/$soname.def;
8712         fi~
8713         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8714       else
8715         ld_shlibs=no
8716       fi
8717       ;;
8718
8719     netbsd*)
8720       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8721         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8722         wlarc=
8723       else
8724         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8725         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8726       fi
8727       ;;
8728
8729     solaris* | sysv5*)
8730       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8731         ld_shlibs=no
8732         cat <<EOF 1>&2
8733
8734 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8735 *** create shared libraries on Solaris systems.  Therefore, libtool
8736 *** is disabling shared libraries support.  We urge you to upgrade GNU
8737 *** binutils to release 2.9.1 or newer.  Another option is to modify
8738 *** your PATH or compiler configuration so that the native linker is
8739 *** used, and then restart.
8740
8741 EOF
8742       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8743         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8744         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8745       else
8746         ld_shlibs=no
8747       fi
8748       ;;
8749
8750     sunos4*)
8751       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8752       wlarc=
8753       hardcode_direct=yes
8754       hardcode_shlibpath_var=no
8755       ;;
8756
8757   linux*)
8758     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8759         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8760         archive_cmds="$tmp_archive_cmds"
8761       supports_anon_versioning=no
8762       case `$LD -v 2>/dev/null` in
8763         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8764         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8765         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8766         *\ 2.11.*) ;; # other 2.11 versions
8767         *) supports_anon_versioning=yes ;;
8768       esac
8769       if test $supports_anon_versioning = yes; then
8770         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8771 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8772 $echo "local: *; };" >> $output_objdir/$libname.ver~
8773         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8774       else
8775         archive_expsym_cmds="$tmp_archive_cmds"
8776       fi
8777     else
8778       ld_shlibs=no
8779     fi
8780     ;;
8781
8782     *)
8783       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8784         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8785         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8786       else
8787         ld_shlibs=no
8788       fi
8789       ;;
8790     esac
8791
8792     if test "$ld_shlibs" = yes; then
8793       runpath_var=LD_RUN_PATH
8794       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8795       export_dynamic_flag_spec='${wl}--export-dynamic'
8796       # ancient GNU ld didn't support --whole-archive et. al.
8797       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8798         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8799       else
8800         whole_archive_flag_spec=
8801       fi
8802     fi
8803   else
8804     # PORTME fill in a description of your system's linker (not GNU ld)
8805     case $host_os in
8806     aix3*)
8807       allow_undefined_flag=unsupported
8808       always_export_symbols=yes
8809       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'
8810       # Note: this linker hardcodes the directories in LIBPATH if there
8811       # are no directories specified by -L.
8812       hardcode_minus_L=yes
8813       if test "$GCC" = yes && test -z "$link_static_flag"; then
8814         # Neither direct hardcoding nor static linking is supported with a
8815         # broken collect2.
8816         hardcode_direct=unsupported
8817       fi
8818       ;;
8819
8820     aix4* | aix5*)
8821       if test "$host_cpu" = ia64; then
8822         # On IA64, the linker does run time linking by default, so we don't
8823         # have to do anything special.
8824         aix_use_runtimelinking=no
8825         exp_sym_flag='-Bexport'
8826         no_entry_flag=""
8827       else
8828         # If we're using GNU nm, then we don't want the "-C" option.
8829         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8830         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8831           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'
8832         else
8833           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'
8834         fi
8835         aix_use_runtimelinking=no
8836
8837         # Test if we are trying to use run time linking or normal
8838         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8839         # need to do runtime linking.
8840         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8841           for ld_flag in $LDFLAGS; do
8842           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8843             aix_use_runtimelinking=yes
8844             break
8845           fi
8846           done
8847         esac
8848
8849         exp_sym_flag='-bexport'
8850         no_entry_flag='-bnoentry'
8851       fi
8852
8853       # When large executables or shared objects are built, AIX ld can
8854       # have problems creating the table of contents.  If linking a library
8855       # or program results in "error TOC overflow" add -mminimal-toc to
8856       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8857       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8858
8859       archive_cmds=''
8860       hardcode_direct=yes
8861       hardcode_libdir_separator=':'
8862       link_all_deplibs=yes
8863
8864       if test "$GCC" = yes; then
8865         case $host_os in aix4.012|aix4.012.*)
8866         # We only want to do this on AIX 4.2 and lower, the check
8867         # below for broken collect2 doesn't work under 4.3+
8868           collect2name=`${CC} -print-prog-name=collect2`
8869           if test -f "$collect2name" && \
8870            strings "$collect2name" | grep resolve_lib_name >/dev/null
8871           then
8872           # We have reworked collect2
8873           hardcode_direct=yes
8874           else
8875           # We have old collect2
8876           hardcode_direct=unsupported
8877           # It fails to find uninstalled libraries when the uninstalled
8878           # path is not listed in the libpath.  Setting hardcode_minus_L
8879           # to unsupported forces relinking
8880           hardcode_minus_L=yes
8881           hardcode_libdir_flag_spec='-L$libdir'
8882           hardcode_libdir_separator=
8883           fi
8884         esac
8885         shared_flag='-shared'
8886       else
8887         # not using gcc
8888         if test "$host_cpu" = ia64; then
8889         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8890         # chokes on -Wl,-G. The following line is correct:
8891           shared_flag='-G'
8892         else
8893         if test "$aix_use_runtimelinking" = yes; then
8894             shared_flag='${wl}-G'
8895           else
8896             shared_flag='${wl}-bM:SRE'
8897         fi
8898         fi
8899       fi
8900
8901       # It seems that -bexpall does not export symbols beginning with
8902       # underscore (_), so it is better to generate a list of symbols to export.
8903       always_export_symbols=yes
8904       if test "$aix_use_runtimelinking" = yes; then
8905         # Warning - without using the other runtime loading flags (-brtl),
8906         # -berok will link without error, but may produce a broken library.
8907         allow_undefined_flag='-berok'
8908        # Determine the default libpath from the value encoded in an empty executable.
8909        cat >conftest.$ac_ext <<_ACEOF
8910 /* confdefs.h.  */
8911 _ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h.  */
8915
8916 int
8917 main ()
8918 {
8919
8920   ;
8921   return 0;
8922 }
8923 _ACEOF
8924 rm -f conftest.$ac_objext conftest$ac_exeext
8925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8926   (eval $ac_link) 2>conftest.er1
8927   ac_status=$?
8928   grep -v '^ *+' conftest.er1 >conftest.err
8929   rm -f conftest.er1
8930   cat conftest.err >&5
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   (exit $ac_status); } &&
8933          { ac_try='test -z "$ac_c_werror_flag"
8934                          || test ! -s conftest.err'
8935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936   (eval $ac_try) 2>&5
8937   ac_status=$?
8938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); }; } &&
8940          { ac_try='test -s conftest$ac_exeext'
8941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942   (eval $ac_try) 2>&5
8943   ac_status=$?
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); }; }; then
8946
8947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8948 }'`
8949 # Check for a 64-bit object if we didn't find anything.
8950 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; }
8951 }'`; fi
8952 else
8953   echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8955
8956 fi
8957 rm -f conftest.err conftest.$ac_objext \
8958       conftest$ac_exeext conftest.$ac_ext
8959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8960
8961        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8962         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8963        else
8964         if test "$host_cpu" = ia64; then
8965           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8966           allow_undefined_flag="-z nodefs"
8967           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8968         else
8969          # Determine the default libpath from the value encoded in an empty executable.
8970          cat >conftest.$ac_ext <<_ACEOF
8971 /* confdefs.h.  */
8972 _ACEOF
8973 cat confdefs.h >>conftest.$ac_ext
8974 cat >>conftest.$ac_ext <<_ACEOF
8975 /* end confdefs.h.  */
8976
8977 int
8978 main ()
8979 {
8980
8981   ;
8982   return 0;
8983 }
8984 _ACEOF
8985 rm -f conftest.$ac_objext conftest$ac_exeext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987   (eval $ac_link) 2>conftest.er1
8988   ac_status=$?
8989   grep -v '^ *+' conftest.er1 >conftest.err
8990   rm -f conftest.er1
8991   cat conftest.err >&5
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); } &&
8994          { ac_try='test -z "$ac_c_werror_flag"
8995                          || test ! -s conftest.err'
8996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997   (eval $ac_try) 2>&5
8998   ac_status=$?
8999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000   (exit $ac_status); }; } &&
9001          { ac_try='test -s conftest$ac_exeext'
9002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003   (eval $ac_try) 2>&5
9004   ac_status=$?
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); }; }; then
9007
9008 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9009 }'`
9010 # Check for a 64-bit object if we didn't find anything.
9011 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; }
9012 }'`; fi
9013 else
9014   echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9016
9017 fi
9018 rm -f conftest.err conftest.$ac_objext \
9019       conftest$ac_exeext conftest.$ac_ext
9020 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9021
9022          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9023           # Warning - without using the other run time loading flags,
9024           # -berok will link without error, but may produce a broken library.
9025           no_undefined_flag=' ${wl}-bernotok'
9026           allow_undefined_flag=' ${wl}-berok'
9027           # -bexpall does not export symbols beginning with underscore (_)
9028           always_export_symbols=yes
9029           # Exported symbols can be pulled into shared objects from archives
9030           whole_archive_flag_spec=' '
9031           archive_cmds_need_lc=yes
9032           # This is similar to how AIX traditionally builds it's shared libraries.
9033           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9034         fi
9035       fi
9036       ;;
9037
9038     amigaos*)
9039       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)'
9040       hardcode_libdir_flag_spec='-L$libdir'
9041       hardcode_minus_L=yes
9042       # see comment about different semantics on the GNU ld section
9043       ld_shlibs=no
9044       ;;
9045
9046     bsdi4*)
9047       export_dynamic_flag_spec=-rdynamic
9048       ;;
9049
9050     cygwin* | mingw* | pw32*)
9051       # When not using gcc, we currently assume that we are using
9052       # Microsoft Visual C++.
9053       # hardcode_libdir_flag_spec is actually meaningless, as there is
9054       # no search path for DLLs.
9055       hardcode_libdir_flag_spec=' '
9056       allow_undefined_flag=unsupported
9057       # Tell ltmain to make .lib files, not .a files.
9058       libext=lib
9059       # Tell ltmain to make .dll files, not .so files.
9060       shrext_cmds=".dll"
9061       # FIXME: Setting linknames here is a bad hack.
9062       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9063       # The linker will automatically build a .lib file if we build a DLL.
9064       old_archive_From_new_cmds='true'
9065       # FIXME: Should let the user specify the lib program.
9066       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9067       fix_srcfile_path='`cygpath -w "$srcfile"`'
9068       enable_shared_with_static_runtimes=yes
9069       ;;
9070
9071     darwin* | rhapsody*)
9072     if test "$GXX" = yes ; then
9073       archive_cmds_need_lc=no
9074       case "$host_os" in
9075       rhapsody* | darwin1.[012])
9076         allow_undefined_flag='-undefined suppress'
9077         ;;
9078       *) # Darwin 1.3 on
9079       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9080         allow_undefined_flag='-flat_namespace -undefined suppress'
9081       else
9082         case ${MACOSX_DEPLOYMENT_TARGET} in
9083           10.[012])
9084             allow_undefined_flag='-flat_namespace -undefined suppress'
9085             ;;
9086           10.*)
9087             allow_undefined_flag='-undefined dynamic_lookup'
9088             ;;
9089         esac
9090       fi
9091         ;;
9092       esac
9093         lt_int_apple_cc_single_mod=no
9094         output_verbose_link_cmd='echo'
9095         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9096           lt_int_apple_cc_single_mod=yes
9097         fi
9098         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9099           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9100         else
9101         archive_cmds='$CC -r ${wl}-bind_at_load -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'
9102       fi
9103       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9104       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9105         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9106           archive_expsym_cmds='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}'
9107         else
9108           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
9109         fi
9110           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}'
9111       hardcode_direct=no
9112       hardcode_automatic=yes
9113       hardcode_shlibpath_var=unsupported
9114       whole_archive_flag_spec='-all_load $convenience'
9115       link_all_deplibs=yes
9116     else
9117       ld_shlibs=no
9118     fi
9119       ;;
9120
9121     dgux*)
9122       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9123       hardcode_libdir_flag_spec='-L$libdir'
9124       hardcode_shlibpath_var=no
9125       ;;
9126
9127     freebsd1*)
9128       ld_shlibs=no
9129       ;;
9130
9131     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9132     # support.  Future versions do this automatically, but an explicit c++rt0.o
9133     # does not break anything, and helps significantly (at the cost of a little
9134     # extra space).
9135     freebsd2.2*)
9136       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9137       hardcode_libdir_flag_spec='-R$libdir'
9138       hardcode_direct=yes
9139       hardcode_shlibpath_var=no
9140       ;;
9141
9142     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9143     freebsd2*)
9144       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9145       hardcode_direct=yes
9146       hardcode_minus_L=yes
9147       hardcode_shlibpath_var=no
9148       ;;
9149
9150     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9151     freebsd* | kfreebsd*-gnu)
9152       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9153       hardcode_libdir_flag_spec='-R$libdir'
9154       hardcode_direct=yes
9155       hardcode_shlibpath_var=no
9156       ;;
9157
9158     hpux9*)
9159       if test "$GCC" = yes; then
9160         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'
9161       else
9162         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'
9163       fi
9164       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9165       hardcode_libdir_separator=:
9166       hardcode_direct=yes
9167
9168       # hardcode_minus_L: Not really in the search PATH,
9169       # but as the default location of the library.
9170       hardcode_minus_L=yes
9171       export_dynamic_flag_spec='${wl}-E'
9172       ;;
9173
9174     hpux10* | hpux11*)
9175       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9176         case "$host_cpu" in
9177         hppa*64*|ia64*)
9178           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9179           ;;
9180         *)
9181           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9182           ;;
9183         esac
9184       else
9185         case "$host_cpu" in
9186         hppa*64*|ia64*)
9187           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9188           ;;
9189         *)
9190           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9191           ;;
9192         esac
9193       fi
9194       if test "$with_gnu_ld" = no; then
9195         case "$host_cpu" in
9196         hppa*64*)
9197           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9198           hardcode_libdir_flag_spec_ld='+b $libdir'
9199           hardcode_libdir_separator=:
9200           hardcode_direct=no
9201           hardcode_shlibpath_var=no
9202           ;;
9203         ia64*)
9204           hardcode_libdir_flag_spec='-L$libdir'
9205           hardcode_direct=no
9206           hardcode_shlibpath_var=no
9207
9208           # hardcode_minus_L: Not really in the search PATH,
9209           # but as the default location of the library.
9210           hardcode_minus_L=yes
9211           ;;
9212         *)
9213           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9214           hardcode_libdir_separator=:
9215           hardcode_direct=yes
9216           export_dynamic_flag_spec='${wl}-E'
9217
9218           # hardcode_minus_L: Not really in the search PATH,
9219           # but as the default location of the library.
9220           hardcode_minus_L=yes
9221           ;;
9222         esac
9223       fi
9224       ;;
9225
9226     irix5* | irix6* | nonstopux*)
9227       if test "$GCC" = yes; then
9228         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'
9229       else
9230         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'
9231         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9232       fi
9233       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9234       hardcode_libdir_separator=:
9235       link_all_deplibs=yes
9236       ;;
9237
9238     netbsd*)
9239       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9240         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9241       else
9242         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9243       fi
9244       hardcode_libdir_flag_spec='-R$libdir'
9245       hardcode_direct=yes
9246       hardcode_shlibpath_var=no
9247       ;;
9248
9249     newsos6)
9250       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9251       hardcode_direct=yes
9252       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9253       hardcode_libdir_separator=:
9254       hardcode_shlibpath_var=no
9255       ;;
9256
9257     openbsd*)
9258       hardcode_direct=yes
9259       hardcode_shlibpath_var=no
9260       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9261         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9262         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9263         export_dynamic_flag_spec='${wl}-E'
9264       else
9265        case $host_os in
9266          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9267            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9268            hardcode_libdir_flag_spec='-R$libdir'
9269            ;;
9270          *)
9271            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9272            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9273            ;;
9274        esac
9275       fi
9276       ;;
9277
9278     os2*)
9279       hardcode_libdir_flag_spec='-L$libdir'
9280       hardcode_minus_L=yes
9281       allow_undefined_flag=unsupported
9282       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'
9283       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9284       ;;
9285
9286     osf3*)
9287       if test "$GCC" = yes; then
9288         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9289         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'
9290       else
9291         allow_undefined_flag=' -expect_unresolved \*'
9292         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'
9293       fi
9294       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9295       hardcode_libdir_separator=:
9296       ;;
9297
9298     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9299       if test "$GCC" = yes; then
9300         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9301         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'
9302         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9303       else
9304         allow_undefined_flag=' -expect_unresolved \*'
9305         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'
9306         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9307         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
9308
9309         # Both c and cxx compiler support -rpath directly
9310         hardcode_libdir_flag_spec='-rpath $libdir'
9311       fi
9312       hardcode_libdir_separator=:
9313       ;;
9314
9315     sco3.2v5*)
9316       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9317       hardcode_shlibpath_var=no
9318       export_dynamic_flag_spec='${wl}-Bexport'
9319       runpath_var=LD_RUN_PATH
9320       hardcode_runpath_var=yes
9321       ;;
9322
9323     solaris*)
9324       no_undefined_flag=' -z text'
9325       if test "$GCC" = yes; then
9326         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9327         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9328           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9329       else
9330         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9331         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9332         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9333       fi
9334       hardcode_libdir_flag_spec='-R$libdir'
9335       hardcode_shlibpath_var=no
9336       case $host_os in
9337       solaris2.[0-5] | solaris2.[0-5].*) ;;
9338       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9339         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9340       esac
9341       link_all_deplibs=yes
9342       ;;
9343
9344     sunos4*)
9345       if test "x$host_vendor" = xsequent; then
9346         # Use $CC to link under sequent, because it throws in some extra .o
9347         # files that make .init and .fini sections work.
9348         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9349       else
9350         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9351       fi
9352       hardcode_libdir_flag_spec='-L$libdir'
9353       hardcode_direct=yes
9354       hardcode_minus_L=yes
9355       hardcode_shlibpath_var=no
9356       ;;
9357
9358     sysv4)
9359       case $host_vendor in
9360         sni)
9361           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9362           hardcode_direct=yes # is this really true???
9363         ;;
9364         siemens)
9365           ## LD is ld it makes a PLAMLIB
9366           ## CC just makes a GrossModule.
9367           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9368           reload_cmds='$CC -r -o $output$reload_objs'
9369           hardcode_direct=no
9370         ;;
9371         motorola)
9372           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9373           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9374         ;;
9375       esac
9376       runpath_var='LD_RUN_PATH'
9377       hardcode_shlibpath_var=no
9378       ;;
9379
9380     sysv4.3*)
9381       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9382       hardcode_shlibpath_var=no
9383       export_dynamic_flag_spec='-Bexport'
9384       ;;
9385
9386     sysv4*MP*)
9387       if test -d /usr/nec; then
9388         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9389         hardcode_shlibpath_var=no
9390         runpath_var=LD_RUN_PATH
9391         hardcode_runpath_var=yes
9392         ld_shlibs=yes
9393       fi
9394       ;;
9395
9396     sysv4.2uw2*)
9397       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9398       hardcode_direct=yes
9399       hardcode_minus_L=no
9400       hardcode_shlibpath_var=no
9401       hardcode_runpath_var=yes
9402       runpath_var=LD_RUN_PATH
9403       ;;
9404
9405    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9406       no_undefined_flag='${wl}-z ${wl}text'
9407       if test "$GCC" = yes; then
9408         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9409       else
9410         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9411       fi
9412       runpath_var='LD_RUN_PATH'
9413       hardcode_shlibpath_var=no
9414       ;;
9415
9416     sysv5*)
9417       no_undefined_flag=' -z text'
9418       # $CC -shared without GNU ld will not create a library from C++
9419       # object files and a static libstdc++, better avoid it by now
9420       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9421       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9422                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9423       hardcode_libdir_flag_spec=
9424       hardcode_shlibpath_var=no
9425       runpath_var='LD_RUN_PATH'
9426       ;;
9427
9428     uts4*)
9429       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9430       hardcode_libdir_flag_spec='-L$libdir'
9431       hardcode_shlibpath_var=no
9432       ;;
9433
9434     *)
9435       ld_shlibs=no
9436       ;;
9437     esac
9438   fi
9439
9440 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9441 echo "${ECHO_T}$ld_shlibs" >&6
9442 test "$ld_shlibs" = no && can_build_shared=no
9443
9444 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9445 if test "$GCC" = yes; then
9446   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9447 fi
9448
9449 #
9450 # Do we need to explicitly link libc?
9451 #
9452 case "x$archive_cmds_need_lc" in
9453 x|xyes)
9454   # Assume -lc should be added
9455   archive_cmds_need_lc=yes
9456
9457   if test "$enable_shared" = yes && test "$GCC" = yes; then
9458     case $archive_cmds in
9459     *'~'*)
9460       # FIXME: we may have to deal with multi-command sequences.
9461       ;;
9462     '$CC '*)
9463       # Test whether the compiler implicitly links with -lc since on some
9464       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9465       # to ld, don't add -lc before -lgcc.
9466       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9467 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9468       $rm conftest*
9469       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9470
9471       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9472   (eval $ac_compile) 2>&5
9473   ac_status=$?
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); } 2>conftest.err; then
9476         soname=conftest
9477         lib=conftest
9478         libobjs=conftest.$ac_objext
9479         deplibs=
9480         wl=$lt_prog_compiler_wl
9481         compiler_flags=-v
9482         linker_flags=-v
9483         verstring=
9484         output_objdir=.
9485         libname=conftest
9486         lt_save_allow_undefined_flag=$allow_undefined_flag
9487         allow_undefined_flag=
9488         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9489   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9490   ac_status=$?
9491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   (exit $ac_status); }
9493         then
9494           archive_cmds_need_lc=no
9495         else
9496           archive_cmds_need_lc=yes
9497         fi
9498         allow_undefined_flag=$lt_save_allow_undefined_flag
9499       else
9500         cat conftest.err 1>&5
9501       fi
9502       $rm conftest*
9503       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9504 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9505       ;;
9506     esac
9507   fi
9508   ;;
9509 esac
9510
9511 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9512 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9513 library_names_spec=
9514 libname_spec='lib$name'
9515 soname_spec=
9516 shrext_cmds=".so"
9517 postinstall_cmds=
9518 postuninstall_cmds=
9519 finish_cmds=
9520 finish_eval=
9521 shlibpath_var=
9522 shlibpath_overrides_runpath=unknown
9523 version_type=none
9524 dynamic_linker="$host_os ld.so"
9525 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9526 if test "$GCC" = yes; then
9527   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9528   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9529     # if the path contains ";" then we assume it to be the separator
9530     # otherwise default to the standard path separator (i.e. ":") - it is
9531     # assumed that no part of a normal pathname contains ";" but that should
9532     # okay in the real world where ";" in dirpaths is itself problematic.
9533     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9534   else
9535     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9536   fi
9537 else
9538   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9539 fi
9540 need_lib_prefix=unknown
9541 hardcode_into_libs=no
9542
9543 # when you set need_version to no, make sure it does not cause -set_version
9544 # flags to be left without arguments
9545 need_version=unknown
9546
9547 case $host_os in
9548 aix3*)
9549   version_type=linux
9550   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9551   shlibpath_var=LIBPATH
9552
9553   # AIX 3 has no versioning support, so we append a major version to the name.
9554   soname_spec='${libname}${release}${shared_ext}$major'
9555   ;;
9556
9557 aix4* | aix5*)
9558   version_type=linux
9559   need_lib_prefix=no
9560   need_version=no
9561   hardcode_into_libs=yes
9562   if test "$host_cpu" = ia64; then
9563     # AIX 5 supports IA64
9564     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9565     shlibpath_var=LD_LIBRARY_PATH
9566   else
9567     # With GCC up to 2.95.x, collect2 would create an import file
9568     # for dependence libraries.  The import file would start with
9569     # the line `#! .'.  This would cause the generated library to
9570     # depend on `.', always an invalid library.  This was fixed in
9571     # development snapshots of GCC prior to 3.0.
9572     case $host_os in
9573       aix4 | aix4.[01] | aix4.[01].*)
9574       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9575            echo ' yes '
9576            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9577         :
9578       else
9579         can_build_shared=no
9580       fi
9581       ;;
9582     esac
9583     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9584     # soname into executable. Probably we can add versioning support to
9585     # collect2, so additional links can be useful in future.
9586     if test "$aix_use_runtimelinking" = yes; then
9587       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9588       # instead of lib<name>.a to let people know that these are not
9589       # typical AIX shared libraries.
9590       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9591     else
9592       # We preserve .a as extension for shared libraries through AIX4.2
9593       # and later when we are not doing run time linking.
9594       library_names_spec='${libname}${release}.a $libname.a'
9595       soname_spec='${libname}${release}${shared_ext}$major'
9596     fi
9597     shlibpath_var=LIBPATH
9598   fi
9599   ;;
9600
9601 amigaos*)
9602   library_names_spec='$libname.ixlibrary $libname.a'
9603   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9604   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'
9605   ;;
9606
9607 beos*)
9608   library_names_spec='${libname}${shared_ext}'
9609   dynamic_linker="$host_os ld.so"
9610   shlibpath_var=LIBRARY_PATH
9611   ;;
9612
9613 bsdi4*)
9614   version_type=linux
9615   need_version=no
9616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9617   soname_spec='${libname}${release}${shared_ext}$major'
9618   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9619   shlibpath_var=LD_LIBRARY_PATH
9620   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9621   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9622   # the default ld.so.conf also contains /usr/contrib/lib and
9623   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9624   # libtool to hard-code these into programs
9625   ;;
9626
9627 cygwin* | mingw* | pw32*)
9628   version_type=windows
9629   shrext_cmds=".dll"
9630   need_version=no
9631   need_lib_prefix=no
9632
9633   case $GCC,$host_os in
9634   yes,cygwin* | yes,mingw* | yes,pw32*)
9635     library_names_spec='$libname.dll.a'
9636     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9637     postinstall_cmds='base_file=`basename \${file}`~
9638       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9639       dldir=$destdir/`dirname \$dlpath`~
9640       test -d \$dldir || mkdir -p \$dldir~
9641       $install_prog $dir/$dlname \$dldir/$dlname'
9642     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9643       dlpath=$dir/\$dldll~
9644        $rm \$dlpath'
9645     shlibpath_overrides_runpath=yes
9646
9647     case $host_os in
9648     cygwin*)
9649       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9650       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9651       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9652       ;;
9653     mingw*)
9654       # MinGW DLLs use traditional 'lib' prefix
9655       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9656       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9657       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9658         # It is most probably a Windows format PATH printed by
9659         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9660         # path with ; separators, and with drive letters. We can handle the
9661         # drive letters (cygwin fileutils understands them), so leave them,
9662         # especially as we might pass files found there to a mingw objdump,
9663         # which wouldn't understand a cygwinified path. Ahh.
9664         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9665       else
9666         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9667       fi
9668       ;;
9669     pw32*)
9670       # pw32 DLLs use 'pw' prefix rather than 'lib'
9671       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9672       ;;
9673     esac
9674     ;;
9675
9676   *)
9677     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9678     ;;
9679   esac
9680   dynamic_linker='Win32 ld.exe'
9681   # FIXME: first we should search . and the directory the executable is in
9682   shlibpath_var=PATH
9683   ;;
9684
9685 darwin* | rhapsody*)
9686   dynamic_linker="$host_os dyld"
9687   version_type=darwin
9688   need_lib_prefix=no
9689   need_version=no
9690   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9691   soname_spec='${libname}${release}${major}$shared_ext'
9692   shlibpath_overrides_runpath=yes
9693   shlibpath_var=DYLD_LIBRARY_PATH
9694   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9695   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9696   if test "$GCC" = yes; then
9697     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"`
9698   else
9699     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9700   fi
9701   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9702   ;;
9703
9704 dgux*)
9705   version_type=linux
9706   need_lib_prefix=no
9707   need_version=no
9708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9709   soname_spec='${libname}${release}${shared_ext}$major'
9710   shlibpath_var=LD_LIBRARY_PATH
9711   ;;
9712
9713 freebsd1*)
9714   dynamic_linker=no
9715   ;;
9716
9717 kfreebsd*-gnu)
9718   version_type=linux
9719   need_lib_prefix=no
9720   need_version=no
9721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9722   soname_spec='${libname}${release}${shared_ext}$major'
9723   shlibpath_var=LD_LIBRARY_PATH
9724   shlibpath_overrides_runpath=no
9725   hardcode_into_libs=yes
9726   dynamic_linker='GNU ld.so'
9727   ;;
9728
9729 freebsd*)
9730   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9731   version_type=freebsd-$objformat
9732   case $version_type in
9733     freebsd-elf*)
9734       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9735       need_version=no
9736       need_lib_prefix=no
9737       ;;
9738     freebsd-*)
9739       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9740       need_version=yes
9741       ;;
9742   esac
9743   shlibpath_var=LD_LIBRARY_PATH
9744   case $host_os in
9745   freebsd2*)
9746     shlibpath_overrides_runpath=yes
9747     ;;
9748   freebsd3.01* | freebsdelf3.01*)
9749     shlibpath_overrides_runpath=yes
9750     hardcode_into_libs=yes
9751     ;;
9752   *) # from 3.2 on
9753     shlibpath_overrides_runpath=no
9754     hardcode_into_libs=yes
9755     ;;
9756   esac
9757   ;;
9758
9759 gnu*)
9760   version_type=linux
9761   need_lib_prefix=no
9762   need_version=no
9763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9764   soname_spec='${libname}${release}${shared_ext}$major'
9765   shlibpath_var=LD_LIBRARY_PATH
9766   hardcode_into_libs=yes
9767   ;;
9768
9769 hpux9* | hpux10* | hpux11*)
9770   # Give a soname corresponding to the major version so that dld.sl refuses to
9771   # link against other versions.
9772   version_type=sunos
9773   need_lib_prefix=no
9774   need_version=no
9775   case "$host_cpu" in
9776   ia64*)
9777     shrext_cmds='.so'
9778     hardcode_into_libs=yes
9779     dynamic_linker="$host_os dld.so"
9780     shlibpath_var=LD_LIBRARY_PATH
9781     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9782     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783     soname_spec='${libname}${release}${shared_ext}$major'
9784     if test "X$HPUX_IA64_MODE" = X32; then
9785       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9786     else
9787       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9788     fi
9789     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9790     ;;
9791    hppa*64*)
9792      shrext_cmds='.sl'
9793      hardcode_into_libs=yes
9794      dynamic_linker="$host_os dld.sl"
9795      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9796      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9797      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9798      soname_spec='${libname}${release}${shared_ext}$major'
9799      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9800      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9801      ;;
9802    *)
9803     shrext_cmds='.sl'
9804     dynamic_linker="$host_os dld.sl"
9805     shlibpath_var=SHLIB_PATH
9806     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9807     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9808     soname_spec='${libname}${release}${shared_ext}$major'
9809     ;;
9810   esac
9811   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9812   postinstall_cmds='chmod 555 $lib'
9813   ;;
9814
9815 irix5* | irix6* | nonstopux*)
9816   case $host_os in
9817     nonstopux*) version_type=nonstopux ;;
9818     *)
9819         if test "$lt_cv_prog_gnu_ld" = yes; then
9820                 version_type=linux
9821         else
9822                 version_type=irix
9823         fi ;;
9824   esac
9825   need_lib_prefix=no
9826   need_version=no
9827   soname_spec='${libname}${release}${shared_ext}$major'
9828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9829   case $host_os in
9830   irix5* | nonstopux*)
9831     libsuff= shlibsuff=
9832     ;;
9833   *)
9834     case $LD in # libtool.m4 will add one of these switches to LD
9835     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9836       libsuff= shlibsuff= libmagic=32-bit;;
9837     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9838       libsuff=32 shlibsuff=N32 libmagic=N32;;
9839     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9840       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9841     *) libsuff= shlibsuff= libmagic=never-match;;
9842     esac
9843     ;;
9844   esac
9845   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9846   shlibpath_overrides_runpath=no
9847   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9848   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9849   hardcode_into_libs=yes
9850   ;;
9851
9852 # No shared lib support for Linux oldld, aout, or coff.
9853 linux*oldld* | linux*aout* | linux*coff*)
9854   dynamic_linker=no
9855   ;;
9856
9857 # This must be Linux ELF.
9858 linux*)
9859   version_type=linux
9860   need_lib_prefix=no
9861   need_version=no
9862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863   soname_spec='${libname}${release}${shared_ext}$major'
9864   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9865   shlibpath_var=LD_LIBRARY_PATH
9866   shlibpath_overrides_runpath=no
9867   # This implies no fast_install, which is unacceptable.
9868   # Some rework will be needed to allow for fast_install
9869   # before this can be enabled.
9870   hardcode_into_libs=yes
9871
9872   # find out which ABI we are using
9873   libsuff=
9874   case "$host_cpu" in
9875   x86_64*|s390x*|powerpc64*)
9876     echo '#line 9876 "configure"' > conftest.$ac_ext
9877     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9878   (eval $ac_compile) 2>&5
9879   ac_status=$?
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); }; then
9882       case `/usr/bin/file conftest.$ac_objext` in
9883       *64-bit*)
9884         libsuff=64
9885         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9886         ;;
9887       esac
9888     fi
9889     rm -rf conftest*
9890     ;;
9891   esac
9892
9893   # Append ld.so.conf contents to the search path
9894   if test -f /etc/ld.so.conf; then
9895     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9896     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9897   fi
9898
9899   # We used to test for /lib/ld.so.1 and disable shared libraries on
9900   # powerpc, because MkLinux only supported shared libraries with the
9901   # GNU dynamic linker.  Since this was broken with cross compilers,
9902   # most powerpc-linux boxes support dynamic linking these days and
9903   # people can always --disable-shared, the test was removed, and we
9904   # assume the GNU/Linux dynamic linker is in use.
9905   dynamic_linker='GNU/Linux ld.so'
9906   ;;
9907
9908 knetbsd*-gnu)
9909   version_type=linux
9910   need_lib_prefix=no
9911   need_version=no
9912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9913   soname_spec='${libname}${release}${shared_ext}$major'
9914   shlibpath_var=LD_LIBRARY_PATH
9915   shlibpath_overrides_runpath=no
9916   hardcode_into_libs=yes
9917   dynamic_linker='GNU ld.so'
9918   ;;
9919
9920 netbsd*)
9921   version_type=sunos
9922   need_lib_prefix=no
9923   need_version=no
9924   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9925     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9926     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9927     dynamic_linker='NetBSD (a.out) ld.so'
9928   else
9929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9930     soname_spec='${libname}${release}${shared_ext}$major'
9931     dynamic_linker='NetBSD ld.elf_so'
9932   fi
9933   shlibpath_var=LD_LIBRARY_PATH
9934   shlibpath_overrides_runpath=yes
9935   hardcode_into_libs=yes
9936   ;;
9937
9938 newsos6)
9939   version_type=linux
9940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941   shlibpath_var=LD_LIBRARY_PATH
9942   shlibpath_overrides_runpath=yes
9943   ;;
9944
9945 nto-qnx*)
9946   version_type=linux
9947   need_lib_prefix=no
9948   need_version=no
9949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9950   soname_spec='${libname}${release}${shared_ext}$major'
9951   shlibpath_var=LD_LIBRARY_PATH
9952   shlibpath_overrides_runpath=yes
9953   ;;
9954
9955 openbsd*)
9956   version_type=sunos
9957   need_lib_prefix=no
9958   need_version=yes
9959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9960   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9961   shlibpath_var=LD_LIBRARY_PATH
9962   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9963     case $host_os in
9964       openbsd2.[89] | openbsd2.[89].*)
9965         shlibpath_overrides_runpath=no
9966         ;;
9967       *)
9968         shlibpath_overrides_runpath=yes
9969         ;;
9970       esac
9971   else
9972     shlibpath_overrides_runpath=yes
9973   fi
9974   ;;
9975
9976 os2*)
9977   libname_spec='$name'
9978   shrext_cmds=".dll"
9979   need_lib_prefix=no
9980   library_names_spec='$libname${shared_ext} $libname.a'
9981   dynamic_linker='OS/2 ld.exe'
9982   shlibpath_var=LIBPATH
9983   ;;
9984
9985 osf3* | osf4* | osf5*)
9986   version_type=osf
9987   need_lib_prefix=no
9988   need_version=no
9989   soname_spec='${libname}${release}${shared_ext}$major'
9990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991   shlibpath_var=LD_LIBRARY_PATH
9992   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9993   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9994   ;;
9995
9996 sco3.2v5*)
9997   version_type=osf
9998   soname_spec='${libname}${release}${shared_ext}$major'
9999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10000   shlibpath_var=LD_LIBRARY_PATH
10001   ;;
10002
10003 solaris*)
10004   version_type=linux
10005   need_lib_prefix=no
10006   need_version=no
10007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10008   soname_spec='${libname}${release}${shared_ext}$major'
10009   shlibpath_var=LD_LIBRARY_PATH
10010   shlibpath_overrides_runpath=yes
10011   hardcode_into_libs=yes
10012   # ldd complains unless libraries are executable
10013   postinstall_cmds='chmod +x $lib'
10014   ;;
10015
10016 sunos4*)
10017   version_type=sunos
10018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10019   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10020   shlibpath_var=LD_LIBRARY_PATH
10021   shlibpath_overrides_runpath=yes
10022   if test "$with_gnu_ld" = yes; then
10023     need_lib_prefix=no
10024   fi
10025   need_version=yes
10026   ;;
10027
10028 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10029   version_type=linux
10030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031   soname_spec='${libname}${release}${shared_ext}$major'
10032   shlibpath_var=LD_LIBRARY_PATH
10033   case $host_vendor in
10034     sni)
10035       shlibpath_overrides_runpath=no
10036       need_lib_prefix=no
10037       export_dynamic_flag_spec='${wl}-Blargedynsym'
10038       runpath_var=LD_RUN_PATH
10039       ;;
10040     siemens)
10041       need_lib_prefix=no
10042       ;;
10043     motorola)
10044       need_lib_prefix=no
10045       need_version=no
10046       shlibpath_overrides_runpath=no
10047       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10048       ;;
10049   esac
10050   ;;
10051
10052 sysv4*MP*)
10053   if test -d /usr/nec ;then
10054     version_type=linux
10055     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10056     soname_spec='$libname${shared_ext}.$major'
10057     shlibpath_var=LD_LIBRARY_PATH
10058   fi
10059   ;;
10060
10061 uts4*)
10062   version_type=linux
10063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064   soname_spec='${libname}${release}${shared_ext}$major'
10065   shlibpath_var=LD_LIBRARY_PATH
10066   ;;
10067
10068 *)
10069   dynamic_linker=no
10070   ;;
10071 esac
10072 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10073 echo "${ECHO_T}$dynamic_linker" >&6
10074 test "$dynamic_linker" = no && can_build_shared=no
10075
10076 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10077 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10078 hardcode_action=
10079 if test -n "$hardcode_libdir_flag_spec" || \
10080    test -n "$runpath_var " || \
10081    test "X$hardcode_automatic"="Xyes" ; then
10082
10083   # We can hardcode non-existant directories.
10084   if test "$hardcode_direct" != no &&
10085      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10086      # have to relink, otherwise we might link with an installed library
10087      # when we should be linking with a yet-to-be-installed one
10088      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10089      test "$hardcode_minus_L" != no; then
10090     # Linking always hardcodes the temporary library directory.
10091     hardcode_action=relink
10092   else
10093     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10094     hardcode_action=immediate
10095   fi
10096 else
10097   # We cannot hardcode anything, or else we can only hardcode existing
10098   # directories.
10099   hardcode_action=unsupported
10100 fi
10101 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10102 echo "${ECHO_T}$hardcode_action" >&6
10103
10104 if test "$hardcode_action" = relink; then
10105   # Fast installation is not supported
10106   enable_fast_install=no
10107 elif test "$shlibpath_overrides_runpath" = yes ||
10108      test "$enable_shared" = no; then
10109   # Fast installation is not necessary
10110   enable_fast_install=needless
10111 fi
10112
10113 striplib=
10114 old_striplib=
10115 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10116 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10117 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10118   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10119   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10120   echo "$as_me:$LINENO: result: yes" >&5
10121 echo "${ECHO_T}yes" >&6
10122 else
10123 # FIXME - insert some real tests, host_os isn't really good enough
10124   case $host_os in
10125    darwin*)
10126        if test -n "$STRIP" ; then
10127          striplib="$STRIP -x"
10128          echo "$as_me:$LINENO: result: yes" >&5
10129 echo "${ECHO_T}yes" >&6
10130        else
10131   echo "$as_me:$LINENO: result: no" >&5
10132 echo "${ECHO_T}no" >&6
10133 fi
10134        ;;
10135    *)
10136   echo "$as_me:$LINENO: result: no" >&5
10137 echo "${ECHO_T}no" >&6
10138     ;;
10139   esac
10140 fi
10141
10142 if test "x$enable_dlopen" != xyes; then
10143   enable_dlopen=unknown
10144   enable_dlopen_self=unknown
10145   enable_dlopen_self_static=unknown
10146 else
10147   lt_cv_dlopen=no
10148   lt_cv_dlopen_libs=
10149
10150   case $host_os in
10151   beos*)
10152     lt_cv_dlopen="load_add_on"
10153     lt_cv_dlopen_libs=
10154     lt_cv_dlopen_self=yes
10155     ;;
10156
10157   mingw* | pw32*)
10158     lt_cv_dlopen="LoadLibrary"
10159     lt_cv_dlopen_libs=
10160    ;;
10161
10162   cygwin*)
10163     lt_cv_dlopen="dlopen"
10164     lt_cv_dlopen_libs=
10165    ;;
10166
10167   darwin*)
10168   # if libdl is installed we need to link against it
10169     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10170 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10171 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10172   echo $ECHO_N "(cached) $ECHO_C" >&6
10173 else
10174   ac_check_lib_save_LIBS=$LIBS
10175 LIBS="-ldl  $LIBS"
10176 cat >conftest.$ac_ext <<_ACEOF
10177 /* confdefs.h.  */
10178 _ACEOF
10179 cat confdefs.h >>conftest.$ac_ext
10180 cat >>conftest.$ac_ext <<_ACEOF
10181 /* end confdefs.h.  */
10182
10183 /* Override any gcc2 internal prototype to avoid an error.  */
10184 #ifdef __cplusplus
10185 extern "C"
10186 #endif
10187 /* We use char because int might match the return type of a gcc2
10188    builtin and then its argument prototype would still apply.  */
10189 char dlopen ();
10190 int
10191 main ()
10192 {
10193 dlopen ();
10194   ;
10195   return 0;
10196 }
10197 _ACEOF
10198 rm -f conftest.$ac_objext conftest$ac_exeext
10199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10200   (eval $ac_link) 2>conftest.er1
10201   ac_status=$?
10202   grep -v '^ *+' conftest.er1 >conftest.err
10203   rm -f conftest.er1
10204   cat conftest.err >&5
10205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206   (exit $ac_status); } &&
10207          { ac_try='test -z "$ac_c_werror_flag"
10208                          || test ! -s conftest.err'
10209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210   (eval $ac_try) 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); }; } &&
10214          { ac_try='test -s conftest$ac_exeext'
10215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216   (eval $ac_try) 2>&5
10217   ac_status=$?
10218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219   (exit $ac_status); }; }; then
10220   ac_cv_lib_dl_dlopen=yes
10221 else
10222   echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10224
10225 ac_cv_lib_dl_dlopen=no
10226 fi
10227 rm -f conftest.err conftest.$ac_objext \
10228       conftest$ac_exeext conftest.$ac_ext
10229 LIBS=$ac_check_lib_save_LIBS
10230 fi
10231 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10232 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10233 if test $ac_cv_lib_dl_dlopen = yes; then
10234   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10235 else
10236
10237     lt_cv_dlopen="dyld"
10238     lt_cv_dlopen_libs=
10239     lt_cv_dlopen_self=yes
10240
10241 fi
10242
10243    ;;
10244
10245   *)
10246     echo "$as_me:$LINENO: checking for shl_load" >&5
10247 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10248 if test "${ac_cv_func_shl_load+set}" = set; then
10249   echo $ECHO_N "(cached) $ECHO_C" >&6
10250 else
10251   cat >conftest.$ac_ext <<_ACEOF
10252 /* confdefs.h.  */
10253 _ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h.  */
10257 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10259 #define shl_load innocuous_shl_load
10260
10261 /* System header to define __stub macros and hopefully few prototypes,
10262     which can conflict with char shl_load (); below.
10263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10264     <limits.h> exists even on freestanding compilers.  */
10265
10266 #ifdef __STDC__
10267 # include <limits.h>
10268 #else
10269 # include <assert.h>
10270 #endif
10271
10272 #undef shl_load
10273
10274 /* Override any gcc2 internal prototype to avoid an error.  */
10275 #ifdef __cplusplus
10276 extern "C"
10277 {
10278 #endif
10279 /* We use char because int might match the return type of a gcc2
10280    builtin and then its argument prototype would still apply.  */
10281 char shl_load ();
10282 /* The GNU C library defines this for functions which it implements
10283     to always fail with ENOSYS.  Some functions are actually named
10284     something starting with __ and the normal name is an alias.  */
10285 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10286 choke me
10287 #else
10288 char (*f) () = shl_load;
10289 #endif
10290 #ifdef __cplusplus
10291 }
10292 #endif
10293
10294 int
10295 main ()
10296 {
10297 return f != shl_load;
10298   ;
10299   return 0;
10300 }
10301 _ACEOF
10302 rm -f conftest.$ac_objext conftest$ac_exeext
10303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304   (eval $ac_link) 2>conftest.er1
10305   ac_status=$?
10306   grep -v '^ *+' conftest.er1 >conftest.err
10307   rm -f conftest.er1
10308   cat conftest.err >&5
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); } &&
10311          { ac_try='test -z "$ac_c_werror_flag"
10312                          || test ! -s conftest.err'
10313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314   (eval $ac_try) 2>&5
10315   ac_status=$?
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); }; } &&
10318          { ac_try='test -s conftest$ac_exeext'
10319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320   (eval $ac_try) 2>&5
10321   ac_status=$?
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); }; }; then
10324   ac_cv_func_shl_load=yes
10325 else
10326   echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10328
10329 ac_cv_func_shl_load=no
10330 fi
10331 rm -f conftest.err conftest.$ac_objext \
10332       conftest$ac_exeext conftest.$ac_ext
10333 fi
10334 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10335 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10336 if test $ac_cv_func_shl_load = yes; then
10337   lt_cv_dlopen="shl_load"
10338 else
10339   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10340 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10341 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10342   echo $ECHO_N "(cached) $ECHO_C" >&6
10343 else
10344   ac_check_lib_save_LIBS=$LIBS
10345 LIBS="-ldld  $LIBS"
10346 cat >conftest.$ac_ext <<_ACEOF
10347 /* confdefs.h.  */
10348 _ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h.  */
10352
10353 /* Override any gcc2 internal prototype to avoid an error.  */
10354 #ifdef __cplusplus
10355 extern "C"
10356 #endif
10357 /* We use char because int might match the return type of a gcc2
10358    builtin and then its argument prototype would still apply.  */
10359 char shl_load ();
10360 int
10361 main ()
10362 {
10363 shl_load ();
10364   ;
10365   return 0;
10366 }
10367 _ACEOF
10368 rm -f conftest.$ac_objext conftest$ac_exeext
10369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10370   (eval $ac_link) 2>conftest.er1
10371   ac_status=$?
10372   grep -v '^ *+' conftest.er1 >conftest.err
10373   rm -f conftest.er1
10374   cat conftest.err >&5
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); } &&
10377          { ac_try='test -z "$ac_c_werror_flag"
10378                          || test ! -s conftest.err'
10379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380   (eval $ac_try) 2>&5
10381   ac_status=$?
10382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); }; } &&
10384          { ac_try='test -s conftest$ac_exeext'
10385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386   (eval $ac_try) 2>&5
10387   ac_status=$?
10388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389   (exit $ac_status); }; }; then
10390   ac_cv_lib_dld_shl_load=yes
10391 else
10392   echo "$as_me: failed program was:" >&5
10393 sed 's/^/| /' conftest.$ac_ext >&5
10394
10395 ac_cv_lib_dld_shl_load=no
10396 fi
10397 rm -f conftest.err conftest.$ac_objext \
10398       conftest$ac_exeext conftest.$ac_ext
10399 LIBS=$ac_check_lib_save_LIBS
10400 fi
10401 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10402 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10403 if test $ac_cv_lib_dld_shl_load = yes; then
10404   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10405 else
10406   echo "$as_me:$LINENO: checking for dlopen" >&5
10407 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10408 if test "${ac_cv_func_dlopen+set}" = set; then
10409   echo $ECHO_N "(cached) $ECHO_C" >&6
10410 else
10411   cat >conftest.$ac_ext <<_ACEOF
10412 /* confdefs.h.  */
10413 _ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h.  */
10417 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10419 #define dlopen innocuous_dlopen
10420
10421 /* System header to define __stub macros and hopefully few prototypes,
10422     which can conflict with char dlopen (); below.
10423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10424     <limits.h> exists even on freestanding compilers.  */
10425
10426 #ifdef __STDC__
10427 # include <limits.h>
10428 #else
10429 # include <assert.h>
10430 #endif
10431
10432 #undef dlopen
10433
10434 /* Override any gcc2 internal prototype to avoid an error.  */
10435 #ifdef __cplusplus
10436 extern "C"
10437 {
10438 #endif
10439 /* We use char because int might match the return type of a gcc2
10440    builtin and then its argument prototype would still apply.  */
10441 char dlopen ();
10442 /* The GNU C library defines this for functions which it implements
10443     to always fail with ENOSYS.  Some functions are actually named
10444     something starting with __ and the normal name is an alias.  */
10445 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10446 choke me
10447 #else
10448 char (*f) () = dlopen;
10449 #endif
10450 #ifdef __cplusplus
10451 }
10452 #endif
10453
10454 int
10455 main ()
10456 {
10457 return f != dlopen;
10458   ;
10459   return 0;
10460 }
10461 _ACEOF
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10464   (eval $ac_link) 2>conftest.er1
10465   ac_status=$?
10466   grep -v '^ *+' conftest.er1 >conftest.err
10467   rm -f conftest.er1
10468   cat conftest.err >&5
10469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470   (exit $ac_status); } &&
10471          { ac_try='test -z "$ac_c_werror_flag"
10472                          || test ! -s conftest.err'
10473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474   (eval $ac_try) 2>&5
10475   ac_status=$?
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); }; } &&
10478          { ac_try='test -s conftest$ac_exeext'
10479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480   (eval $ac_try) 2>&5
10481   ac_status=$?
10482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); }; }; then
10484   ac_cv_func_dlopen=yes
10485 else
10486   echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10488
10489 ac_cv_func_dlopen=no
10490 fi
10491 rm -f conftest.err conftest.$ac_objext \
10492       conftest$ac_exeext conftest.$ac_ext
10493 fi
10494 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10495 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10496 if test $ac_cv_func_dlopen = yes; then
10497   lt_cv_dlopen="dlopen"
10498 else
10499   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10500 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10501 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10502   echo $ECHO_N "(cached) $ECHO_C" >&6
10503 else
10504   ac_check_lib_save_LIBS=$LIBS
10505 LIBS="-ldl  $LIBS"
10506 cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h.  */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h.  */
10512
10513 /* Override any gcc2 internal prototype to avoid an error.  */
10514 #ifdef __cplusplus
10515 extern "C"
10516 #endif
10517 /* We use char because int might match the return type of a gcc2
10518    builtin and then its argument prototype would still apply.  */
10519 char dlopen ();
10520 int
10521 main ()
10522 {
10523 dlopen ();
10524   ;
10525   return 0;
10526 }
10527 _ACEOF
10528 rm -f conftest.$ac_objext conftest$ac_exeext
10529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10530   (eval $ac_link) 2>conftest.er1
10531   ac_status=$?
10532   grep -v '^ *+' conftest.er1 >conftest.err
10533   rm -f conftest.er1
10534   cat conftest.err >&5
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); } &&
10537          { ac_try='test -z "$ac_c_werror_flag"
10538                          || test ! -s conftest.err'
10539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540   (eval $ac_try) 2>&5
10541   ac_status=$?
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); }; } &&
10544          { ac_try='test -s conftest$ac_exeext'
10545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546   (eval $ac_try) 2>&5
10547   ac_status=$?
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); }; }; then
10550   ac_cv_lib_dl_dlopen=yes
10551 else
10552   echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10554
10555 ac_cv_lib_dl_dlopen=no
10556 fi
10557 rm -f conftest.err conftest.$ac_objext \
10558       conftest$ac_exeext conftest.$ac_ext
10559 LIBS=$ac_check_lib_save_LIBS
10560 fi
10561 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10562 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10563 if test $ac_cv_lib_dl_dlopen = yes; then
10564   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10565 else
10566   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10567 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10568 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10569   echo $ECHO_N "(cached) $ECHO_C" >&6
10570 else
10571   ac_check_lib_save_LIBS=$LIBS
10572 LIBS="-lsvld  $LIBS"
10573 cat >conftest.$ac_ext <<_ACEOF
10574 /* confdefs.h.  */
10575 _ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h.  */
10579
10580 /* Override any gcc2 internal prototype to avoid an error.  */
10581 #ifdef __cplusplus
10582 extern "C"
10583 #endif
10584 /* We use char because int might match the return type of a gcc2
10585    builtin and then its argument prototype would still apply.  */
10586 char dlopen ();
10587 int
10588 main ()
10589 {
10590 dlopen ();
10591   ;
10592   return 0;
10593 }
10594 _ACEOF
10595 rm -f conftest.$ac_objext conftest$ac_exeext
10596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10597   (eval $ac_link) 2>conftest.er1
10598   ac_status=$?
10599   grep -v '^ *+' conftest.er1 >conftest.err
10600   rm -f conftest.er1
10601   cat conftest.err >&5
10602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603   (exit $ac_status); } &&
10604          { ac_try='test -z "$ac_c_werror_flag"
10605                          || test ! -s conftest.err'
10606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607   (eval $ac_try) 2>&5
10608   ac_status=$?
10609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610   (exit $ac_status); }; } &&
10611          { ac_try='test -s conftest$ac_exeext'
10612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613   (eval $ac_try) 2>&5
10614   ac_status=$?
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); }; }; then
10617   ac_cv_lib_svld_dlopen=yes
10618 else
10619   echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10621
10622 ac_cv_lib_svld_dlopen=no
10623 fi
10624 rm -f conftest.err conftest.$ac_objext \
10625       conftest$ac_exeext conftest.$ac_ext
10626 LIBS=$ac_check_lib_save_LIBS
10627 fi
10628 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10629 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10630 if test $ac_cv_lib_svld_dlopen = yes; then
10631   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10632 else
10633   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10634 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10635 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10636   echo $ECHO_N "(cached) $ECHO_C" >&6
10637 else
10638   ac_check_lib_save_LIBS=$LIBS
10639 LIBS="-ldld  $LIBS"
10640 cat >conftest.$ac_ext <<_ACEOF
10641 /* confdefs.h.  */
10642 _ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h.  */
10646
10647 /* Override any gcc2 internal prototype to avoid an error.  */
10648 #ifdef __cplusplus
10649 extern "C"
10650 #endif
10651 /* We use char because int might match the return type of a gcc2
10652    builtin and then its argument prototype would still apply.  */
10653 char dld_link ();
10654 int
10655 main ()
10656 {
10657 dld_link ();
10658   ;
10659   return 0;
10660 }
10661 _ACEOF
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664   (eval $ac_link) 2>conftest.er1
10665   ac_status=$?
10666   grep -v '^ *+' conftest.er1 >conftest.err
10667   rm -f conftest.er1
10668   cat conftest.err >&5
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); } &&
10671          { ac_try='test -z "$ac_c_werror_flag"
10672                          || test ! -s conftest.err'
10673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674   (eval $ac_try) 2>&5
10675   ac_status=$?
10676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677   (exit $ac_status); }; } &&
10678          { ac_try='test -s conftest$ac_exeext'
10679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680   (eval $ac_try) 2>&5
10681   ac_status=$?
10682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683   (exit $ac_status); }; }; then
10684   ac_cv_lib_dld_dld_link=yes
10685 else
10686   echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10688
10689 ac_cv_lib_dld_dld_link=no
10690 fi
10691 rm -f conftest.err conftest.$ac_objext \
10692       conftest$ac_exeext conftest.$ac_ext
10693 LIBS=$ac_check_lib_save_LIBS
10694 fi
10695 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10696 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10697 if test $ac_cv_lib_dld_dld_link = yes; then
10698   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10699 fi
10700
10701
10702 fi
10703
10704
10705 fi
10706
10707
10708 fi
10709
10710
10711 fi
10712
10713
10714 fi
10715
10716     ;;
10717   esac
10718
10719   if test "x$lt_cv_dlopen" != xno; then
10720     enable_dlopen=yes
10721   else
10722     enable_dlopen=no
10723   fi
10724
10725   case $lt_cv_dlopen in
10726   dlopen)
10727     save_CPPFLAGS="$CPPFLAGS"
10728     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10729
10730     save_LDFLAGS="$LDFLAGS"
10731     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10732
10733     save_LIBS="$LIBS"
10734     LIBS="$lt_cv_dlopen_libs $LIBS"
10735
10736     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10737 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10738 if test "${lt_cv_dlopen_self+set}" = set; then
10739   echo $ECHO_N "(cached) $ECHO_C" >&6
10740 else
10741           if test "$cross_compiling" = yes; then :
10742   lt_cv_dlopen_self=cross
10743 else
10744   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10745   lt_status=$lt_dlunknown
10746   cat > conftest.$ac_ext <<EOF
10747 #line 10747 "configure"
10748 #include "confdefs.h"
10749
10750 #if HAVE_DLFCN_H
10751 #include <dlfcn.h>
10752 #endif
10753
10754 #include <stdio.h>
10755
10756 #ifdef RTLD_GLOBAL
10757 #  define LT_DLGLOBAL           RTLD_GLOBAL
10758 #else
10759 #  ifdef DL_GLOBAL
10760 #    define LT_DLGLOBAL         DL_GLOBAL
10761 #  else
10762 #    define LT_DLGLOBAL         0
10763 #  endif
10764 #endif
10765
10766 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10767    find out it does not work in some platform. */
10768 #ifndef LT_DLLAZY_OR_NOW
10769 #  ifdef RTLD_LAZY
10770 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10771 #  else
10772 #    ifdef DL_LAZY
10773 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10774 #    else
10775 #      ifdef RTLD_NOW
10776 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10777 #      else
10778 #        ifdef DL_NOW
10779 #          define LT_DLLAZY_OR_NOW      DL_NOW
10780 #        else
10781 #          define LT_DLLAZY_OR_NOW      0
10782 #        endif
10783 #      endif
10784 #    endif
10785 #  endif
10786 #endif
10787
10788 #ifdef __cplusplus
10789 extern "C" void exit (int);
10790 #endif
10791
10792 void fnord() { int i=42;}
10793 int main ()
10794 {
10795   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10796   int status = $lt_dlunknown;
10797
10798   if (self)
10799     {
10800       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10801       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10802       /* dlclose (self); */
10803     }
10804
10805     exit (status);
10806 }
10807 EOF
10808   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10809   (eval $ac_link) 2>&5
10810   ac_status=$?
10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10813     (./conftest; exit; ) 2>/dev/null
10814     lt_status=$?
10815     case x$lt_status in
10816       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10817       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10818       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10819     esac
10820   else :
10821     # compilation failed
10822     lt_cv_dlopen_self=no
10823   fi
10824 fi
10825 rm -fr conftest*
10826
10827
10828 fi
10829 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10830 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10831
10832     if test "x$lt_cv_dlopen_self" = xyes; then
10833       LDFLAGS="$LDFLAGS $link_static_flag"
10834       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10835 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10836 if test "${lt_cv_dlopen_self_static+set}" = set; then
10837   echo $ECHO_N "(cached) $ECHO_C" >&6
10838 else
10839           if test "$cross_compiling" = yes; then :
10840   lt_cv_dlopen_self_static=cross
10841 else
10842   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10843   lt_status=$lt_dlunknown
10844   cat > conftest.$ac_ext <<EOF
10845 #line 10845 "configure"
10846 #include "confdefs.h"
10847
10848 #if HAVE_DLFCN_H
10849 #include <dlfcn.h>
10850 #endif
10851
10852 #include <stdio.h>
10853
10854 #ifdef RTLD_GLOBAL
10855 #  define LT_DLGLOBAL           RTLD_GLOBAL
10856 #else
10857 #  ifdef DL_GLOBAL
10858 #    define LT_DLGLOBAL         DL_GLOBAL
10859 #  else
10860 #    define LT_DLGLOBAL         0
10861 #  endif
10862 #endif
10863
10864 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10865    find out it does not work in some platform. */
10866 #ifndef LT_DLLAZY_OR_NOW
10867 #  ifdef RTLD_LAZY
10868 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10869 #  else
10870 #    ifdef DL_LAZY
10871 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10872 #    else
10873 #      ifdef RTLD_NOW
10874 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10875 #      else
10876 #        ifdef DL_NOW
10877 #          define LT_DLLAZY_OR_NOW      DL_NOW
10878 #        else
10879 #          define LT_DLLAZY_OR_NOW      0
10880 #        endif
10881 #      endif
10882 #    endif
10883 #  endif
10884 #endif
10885
10886 #ifdef __cplusplus
10887 extern "C" void exit (int);
10888 #endif
10889
10890 void fnord() { int i=42;}
10891 int main ()
10892 {
10893   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10894   int status = $lt_dlunknown;
10895
10896   if (self)
10897     {
10898       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10899       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10900       /* dlclose (self); */
10901     }
10902
10903     exit (status);
10904 }
10905 EOF
10906   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10907   (eval $ac_link) 2>&5
10908   ac_status=$?
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10911     (./conftest; exit; ) 2>/dev/null
10912     lt_status=$?
10913     case x$lt_status in
10914       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10915       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10916       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10917     esac
10918   else :
10919     # compilation failed
10920     lt_cv_dlopen_self_static=no
10921   fi
10922 fi
10923 rm -fr conftest*
10924
10925
10926 fi
10927 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10928 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10929     fi
10930
10931     CPPFLAGS="$save_CPPFLAGS"
10932     LDFLAGS="$save_LDFLAGS"
10933     LIBS="$save_LIBS"
10934     ;;
10935   esac
10936
10937   case $lt_cv_dlopen_self in
10938   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10939   *) enable_dlopen_self=unknown ;;
10940   esac
10941
10942   case $lt_cv_dlopen_self_static in
10943   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10944   *) enable_dlopen_self_static=unknown ;;
10945   esac
10946 fi
10947
10948
10949 # Report which librarie types wil actually be built
10950 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10951 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10952 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10953 echo "${ECHO_T}$can_build_shared" >&6
10954
10955 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10956 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10957 test "$can_build_shared" = "no" && enable_shared=no
10958
10959 # On AIX, shared libraries and static libraries use the same namespace, and
10960 # are all built from PIC.
10961 case "$host_os" in
10962 aix3*)
10963   test "$enable_shared" = yes && enable_static=no
10964   if test -n "$RANLIB"; then
10965     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10966     postinstall_cmds='$RANLIB $lib'
10967   fi
10968   ;;
10969
10970 aix4* | aix5*)
10971   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10972     test "$enable_shared" = yes && enable_static=no
10973   fi
10974   ;;
10975   darwin* | rhapsody*)
10976   if test "$GCC" = yes; then
10977     archive_cmds_need_lc=no
10978     case "$host_os" in
10979     rhapsody* | darwin1.[012])
10980       allow_undefined_flag='-undefined suppress'
10981       ;;
10982     *) # Darwin 1.3 on
10983       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10984         allow_undefined_flag='-flat_namespace -undefined suppress'
10985       else
10986         case ${MACOSX_DEPLOYMENT_TARGET} in
10987           10.[012])
10988             allow_undefined_flag='-flat_namespace -undefined suppress'
10989             ;;
10990           10.*)
10991             allow_undefined_flag='-undefined dynamic_lookup'
10992             ;;
10993         esac
10994       fi
10995       ;;
10996     esac
10997     output_verbose_link_cmd='echo'
10998     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10999     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11000     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11001     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}'
11002     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}'
11003     hardcode_direct=no
11004     hardcode_automatic=yes
11005     hardcode_shlibpath_var=unsupported
11006     whole_archive_flag_spec='-all_load $convenience'
11007     link_all_deplibs=yes
11008   else
11009     ld_shlibs=no
11010   fi
11011     ;;
11012 esac
11013 echo "$as_me:$LINENO: result: $enable_shared" >&5
11014 echo "${ECHO_T}$enable_shared" >&6
11015
11016 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11017 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11018 # Make sure either enable_shared or enable_static is yes.
11019 test "$enable_shared" = yes || enable_static=yes
11020 echo "$as_me:$LINENO: result: $enable_static" >&5
11021 echo "${ECHO_T}$enable_static" >&6
11022
11023 # The else clause should only fire when bootstrapping the
11024 # libtool distribution, otherwise you forgot to ship ltmain.sh
11025 # with your package, and you will get complaints that there are
11026 # no rules to generate ltmain.sh.
11027 if test -f "$ltmain"; then
11028   # See if we are running on zsh, and set the options which allow our commands through
11029   # without removal of \ escapes.
11030   if test -n "${ZSH_VERSION+set}" ; then
11031     setopt NO_GLOB_SUBST
11032   fi
11033   # Now quote all the things that may contain metacharacters while being
11034   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11035   # variables and quote the copies for generation of the libtool script.
11036   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11037     SED SHELL STRIP \
11038     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11039     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11040     deplibs_check_method reload_flag reload_cmds need_locks \
11041     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11042     lt_cv_sys_global_symbol_to_c_name_address \
11043     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11044     old_postinstall_cmds old_postuninstall_cmds \
11045     compiler \
11046     CC \
11047     LD \
11048     lt_prog_compiler_wl \
11049     lt_prog_compiler_pic \
11050     lt_prog_compiler_static \
11051     lt_prog_compiler_no_builtin_flag \
11052     export_dynamic_flag_spec \
11053     thread_safe_flag_spec \
11054     whole_archive_flag_spec \
11055     enable_shared_with_static_runtimes \
11056     old_archive_cmds \
11057     old_archive_from_new_cmds \
11058     predep_objects \
11059     postdep_objects \
11060     predeps \
11061     postdeps \
11062     compiler_lib_search_path \
11063     archive_cmds \
11064     archive_expsym_cmds \
11065     postinstall_cmds \
11066     postuninstall_cmds \
11067     old_archive_from_expsyms_cmds \
11068     allow_undefined_flag \
11069     no_undefined_flag \
11070     export_symbols_cmds \
11071     hardcode_libdir_flag_spec \
11072     hardcode_libdir_flag_spec_ld \
11073     hardcode_libdir_separator \
11074     hardcode_automatic \
11075     module_cmds \
11076     module_expsym_cmds \
11077     lt_cv_prog_compiler_c_o \
11078     exclude_expsyms \
11079     include_expsyms; do
11080
11081     case $var in
11082     old_archive_cmds | \
11083     old_archive_from_new_cmds | \
11084     archive_cmds | \
11085     archive_expsym_cmds | \
11086     module_cmds | \
11087     module_expsym_cmds | \
11088     old_archive_from_expsyms_cmds | \
11089     export_symbols_cmds | \
11090     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11091     postinstall_cmds | postuninstall_cmds | \
11092     old_postinstall_cmds | old_postuninstall_cmds | \
11093     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11094       # Double-quote double-evaled strings.
11095       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11096       ;;
11097     *)
11098       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11099       ;;
11100     esac
11101   done
11102
11103   case $lt_echo in
11104   *'\$0 --fallback-echo"')
11105     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11106     ;;
11107   esac
11108
11109 cfgfile="${ofile}T"
11110   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11111   $rm -f "$cfgfile"
11112   { echo "$as_me:$LINENO: creating $ofile" >&5
11113 echo "$as_me: creating $ofile" >&6;}
11114
11115   cat <<__EOF__ >> "$cfgfile"
11116 #! $SHELL
11117
11118 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11119 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11120 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11121 #
11122 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11123 # Free Software Foundation, Inc.
11124 #
11125 # This file is part of GNU Libtool:
11126 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11127 #
11128 # This program is free software; you can redistribute it and/or modify
11129 # it under the terms of the GNU General Public License as published by
11130 # the Free Software Foundation; either version 2 of the License, or
11131 # (at your option) any later version.
11132 #
11133 # This program is distributed in the hope that it will be useful, but
11134 # WITHOUT ANY WARRANTY; without even the implied warranty of
11135 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11136 # General Public License for more details.
11137 #
11138 # You should have received a copy of the GNU General Public License
11139 # along with this program; if not, write to the Free Software
11140 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11141 #
11142 # As a special exception to the GNU General Public License, if you
11143 # distribute this file as part of a program that contains a
11144 # configuration script generated by Autoconf, you may include it under
11145 # the same distribution terms that you use for the rest of that program.
11146
11147 # A sed program that does not truncate output.
11148 SED=$lt_SED
11149
11150 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11151 Xsed="$SED -e s/^X//"
11152
11153 # The HP-UX ksh and POSIX shell print the target directory to stdout
11154 # if CDPATH is set.
11155 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
11156
11157 # The names of the tagged configurations supported by this script.
11158 available_tags=
11159
11160 # ### BEGIN LIBTOOL CONFIG
11161
11162 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11163
11164 # Shell to use when invoking shell scripts.
11165 SHELL=$lt_SHELL
11166
11167 # Whether or not to build shared libraries.
11168 build_libtool_libs=$enable_shared
11169
11170 # Whether or not to build static libraries.
11171 build_old_libs=$enable_static
11172
11173 # Whether or not to add -lc for building shared libraries.
11174 build_libtool_need_lc=$archive_cmds_need_lc
11175
11176 # Whether or not to disallow shared libs when runtime libs are static
11177 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11178
11179 # Whether or not to optimize for fast installation.
11180 fast_install=$enable_fast_install
11181
11182 # The host system.
11183 host_alias=$host_alias
11184 host=$host
11185
11186 # An echo program that does not interpret backslashes.
11187 echo=$lt_echo
11188
11189 # The archiver.
11190 AR=$lt_AR
11191 AR_FLAGS=$lt_AR_FLAGS
11192
11193 # A C compiler.
11194 LTCC=$lt_LTCC
11195
11196 # A language-specific compiler.
11197 CC=$lt_compiler
11198
11199 # Is the compiler the GNU C compiler?
11200 with_gcc=$GCC
11201
11202 # An ERE matcher.
11203 EGREP=$lt_EGREP
11204
11205 # The linker used to build libraries.
11206 LD=$lt_LD
11207
11208 # Whether we need hard or soft links.
11209 LN_S=$lt_LN_S
11210
11211 # A BSD-compatible nm program.
11212 NM=$lt_NM
11213
11214 # A symbol stripping program
11215 STRIP=$lt_STRIP
11216
11217 # Used to examine libraries when file_magic_cmd begins "file"
11218 MAGIC_CMD=$MAGIC_CMD
11219
11220 # Used on cygwin: DLL creation program.
11221 DLLTOOL="$DLLTOOL"
11222
11223 # Used on cygwin: object dumper.
11224 OBJDUMP="$OBJDUMP"
11225
11226 # Used on cygwin: assembler.
11227 AS="$AS"
11228
11229 # The name of the directory that contains temporary libtool files.
11230 objdir=$objdir
11231
11232 # How to create reloadable object files.
11233 reload_flag=$lt_reload_flag
11234 reload_cmds=$lt_reload_cmds
11235
11236 # How to pass a linker flag through the compiler.
11237 wl=$lt_lt_prog_compiler_wl
11238
11239 # Object file suffix (normally "o").
11240 objext="$ac_objext"
11241
11242 # Old archive suffix (normally "a").
11243 libext="$libext"
11244
11245 # Shared library suffix (normally ".so").
11246 shrext_cmds='$shrext_cmds'
11247
11248 # Executable file suffix (normally "").
11249 exeext="$exeext"
11250
11251 # Additional compiler flags for building library objects.
11252 pic_flag=$lt_lt_prog_compiler_pic
11253 pic_mode=$pic_mode
11254
11255 # What is the maximum length of a command?
11256 max_cmd_len=$lt_cv_sys_max_cmd_len
11257
11258 # Does compiler simultaneously support -c and -o options?
11259 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11260
11261 # Must we lock files when doing compilation ?
11262 need_locks=$lt_need_locks
11263
11264 # Do we need the lib prefix for modules?
11265 need_lib_prefix=$need_lib_prefix
11266
11267 # Do we need a version for libraries?
11268 need_version=$need_version
11269
11270 # Whether dlopen is supported.
11271 dlopen_support=$enable_dlopen
11272
11273 # Whether dlopen of programs is supported.
11274 dlopen_self=$enable_dlopen_self
11275
11276 # Whether dlopen of statically linked programs is supported.
11277 dlopen_self_static=$enable_dlopen_self_static
11278
11279 # Compiler flag to prevent dynamic linking.
11280 link_static_flag=$lt_lt_prog_compiler_static
11281
11282 # Compiler flag to turn off builtin functions.
11283 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11284
11285 # Compiler flag to allow reflexive dlopens.
11286 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11287
11288 # Compiler flag to generate shared objects directly from archives.
11289 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11290
11291 # Compiler flag to generate thread-safe objects.
11292 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11293
11294 # Library versioning type.
11295 version_type=$version_type
11296
11297 # Format of library name prefix.
11298 libname_spec=$lt_libname_spec
11299
11300 # List of archive names.  First name is the real one, the rest are links.
11301 # The last name is the one that the linker finds with -lNAME.
11302 library_names_spec=$lt_library_names_spec
11303
11304 # The coded name of the library, if different from the real name.
11305 soname_spec=$lt_soname_spec
11306
11307 # Commands used to build and install an old-style archive.
11308 RANLIB=$lt_RANLIB
11309 old_archive_cmds=$lt_old_archive_cmds
11310 old_postinstall_cmds=$lt_old_postinstall_cmds
11311 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11312
11313 # Create an old-style archive from a shared archive.
11314 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11315
11316 # Create a temporary old-style archive to link instead of a shared archive.
11317 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11318
11319 # Commands used to build and install a shared archive.
11320 archive_cmds=$lt_archive_cmds
11321 archive_expsym_cmds=$lt_archive_expsym_cmds
11322 postinstall_cmds=$lt_postinstall_cmds
11323 postuninstall_cmds=$lt_postuninstall_cmds
11324
11325 # Commands used to build a loadable module (assumed same as above if empty)
11326 module_cmds=$lt_module_cmds
11327 module_expsym_cmds=$lt_module_expsym_cmds
11328
11329 # Commands to strip libraries.
11330 old_striplib=$lt_old_striplib
11331 striplib=$lt_striplib
11332
11333 # Dependencies to place before the objects being linked to create a
11334 # shared library.
11335 predep_objects=$lt_predep_objects
11336
11337 # Dependencies to place after the objects being linked to create a
11338 # shared library.
11339 postdep_objects=$lt_postdep_objects
11340
11341 # Dependencies to place before the objects being linked to create a
11342 # shared library.
11343 predeps=$lt_predeps
11344
11345 # Dependencies to place after the objects being linked to create a
11346 # shared library.
11347 postdeps=$lt_postdeps
11348
11349 # The library search path used internally by the compiler when linking
11350 # a shared library.
11351 compiler_lib_search_path=$lt_compiler_lib_search_path
11352
11353 # Method to check whether dependent libraries are shared objects.
11354 deplibs_check_method=$lt_deplibs_check_method
11355
11356 # Command to use when deplibs_check_method == file_magic.
11357 file_magic_cmd=$lt_file_magic_cmd
11358
11359 # Flag that allows shared libraries with undefined symbols to be built.
11360 allow_undefined_flag=$lt_allow_undefined_flag
11361
11362 # Flag that forces no undefined symbols.
11363 no_undefined_flag=$lt_no_undefined_flag
11364
11365 # Commands used to finish a libtool library installation in a directory.
11366 finish_cmds=$lt_finish_cmds
11367
11368 # Same as above, but a single script fragment to be evaled but not shown.
11369 finish_eval=$lt_finish_eval
11370
11371 # Take the output of nm and produce a listing of raw symbols and C names.
11372 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11373
11374 # Transform the output of nm in a proper C declaration
11375 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11376
11377 # Transform the output of nm in a C name address pair
11378 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11379
11380 # This is the shared library runtime path variable.
11381 runpath_var=$runpath_var
11382
11383 # This is the shared library path variable.
11384 shlibpath_var=$shlibpath_var
11385
11386 # Is shlibpath searched before the hard-coded library search path?
11387 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11388
11389 # How to hardcode a shared library path into an executable.
11390 hardcode_action=$hardcode_action
11391
11392 # Whether we should hardcode library paths into libraries.
11393 hardcode_into_libs=$hardcode_into_libs
11394
11395 # Flag to hardcode \$libdir into a binary during linking.
11396 # This must work even if \$libdir does not exist.
11397 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11398
11399 # If ld is used when linking, flag to hardcode \$libdir into
11400 # a binary during linking. This must work even if \$libdir does
11401 # not exist.
11402 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11403
11404 # Whether we need a single -rpath flag with a separated argument.
11405 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11406
11407 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11408 # resulting binary.
11409 hardcode_direct=$hardcode_direct
11410
11411 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11412 # resulting binary.
11413 hardcode_minus_L=$hardcode_minus_L
11414
11415 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11416 # the resulting binary.
11417 hardcode_shlibpath_var=$hardcode_shlibpath_var
11418
11419 # Set to yes if building a shared library automatically hardcodes DIR into the library
11420 # and all subsequent libraries and executables linked against it.
11421 hardcode_automatic=$hardcode_automatic
11422
11423 # Variables whose values should be saved in libtool wrapper scripts and
11424 # restored at relink time.
11425 variables_saved_for_relink="$variables_saved_for_relink"
11426
11427 # Whether libtool must link a program against all its dependency libraries.
11428 link_all_deplibs=$link_all_deplibs
11429
11430 # Compile-time system search path for libraries
11431 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11432
11433 # Run-time system search path for libraries
11434 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11435
11436 # Fix the shell variable \$srcfile for the compiler.
11437 fix_srcfile_path="$fix_srcfile_path"
11438
11439 # Set to yes if exported symbols are required.
11440 always_export_symbols=$always_export_symbols
11441
11442 # The commands to list exported symbols.
11443 export_symbols_cmds=$lt_export_symbols_cmds
11444
11445 # The commands to extract the exported symbol list from a shared archive.
11446 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11447
11448 # Symbols that should not be listed in the preloaded symbols.
11449 exclude_expsyms=$lt_exclude_expsyms
11450
11451 # Symbols that must always be exported.
11452 include_expsyms=$lt_include_expsyms
11453
11454 # ### END LIBTOOL CONFIG
11455
11456 __EOF__
11457
11458
11459   case $host_os in
11460   aix3*)
11461     cat <<\EOF >> "$cfgfile"
11462
11463 # AIX sometimes has problems with the GCC collect2 program.  For some
11464 # reason, if we set the COLLECT_NAMES environment variable, the problems
11465 # vanish in a puff of smoke.
11466 if test "X${COLLECT_NAMES+set}" != Xset; then
11467   COLLECT_NAMES=
11468   export COLLECT_NAMES
11469 fi
11470 EOF
11471     ;;
11472   esac
11473
11474   # We use sed instead of cat because bash on DJGPP gets confused if
11475   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11476   # text mode, it properly converts lines to CR/LF.  This bash problem
11477   # is reportedly fixed, but why not run on old versions too?
11478   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11479
11480   mv -f "$cfgfile" "$ofile" || \
11481     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11482   chmod +x "$ofile"
11483
11484 else
11485   # If there is no Makefile yet, we rely on a make rule to execute
11486   # `config.status --recheck' to rerun these tests and create the
11487   # libtool script then.
11488   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11489   if test -f "$ltmain_in"; then
11490     test -f Makefile && make "$ltmain"
11491   fi
11492 fi
11493
11494
11495 ac_ext=c
11496 ac_cpp='$CPP $CPPFLAGS'
11497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11500
11501 CC="$lt_save_CC"
11502
11503
11504 # Check whether --with-tags or --without-tags was given.
11505 if test "${with_tags+set}" = set; then
11506   withval="$with_tags"
11507   tagnames="$withval"
11508 fi;
11509
11510 if test -f "$ltmain" && test -n "$tagnames"; then
11511   if test ! -f "${ofile}"; then
11512     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11513 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11514   fi
11515
11516   if test -z "$LTCC"; then
11517     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11518     if test -z "$LTCC"; then
11519       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11520 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11521     else
11522       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11523 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11524     fi
11525   fi
11526
11527   # Extract list of available tagged configurations in $ofile.
11528   # Note that this assumes the entire list is on one line.
11529   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11530
11531   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11532   for tagname in $tagnames; do
11533     IFS="$lt_save_ifs"
11534     # Check whether tagname contains only valid characters
11535     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11536     "") ;;
11537     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11538 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11539    { (exit 1); exit 1; }; }
11540         ;;
11541     esac
11542
11543     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11544     then
11545       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11546 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11547    { (exit 1); exit 1; }; }
11548     fi
11549
11550     # Update the list of available tags.
11551     if test -n "$tagname"; then
11552       echo appending configuration tag \"$tagname\" to $ofile
11553
11554       case $tagname in
11555       CXX)
11556         if test -n "$CXX" && test "X$CXX" != "Xno"; then
11557           ac_ext=cc
11558 ac_cpp='$CXXCPP $CPPFLAGS'
11559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11562
11563
11564
11565
11566 archive_cmds_need_lc_CXX=no
11567 allow_undefined_flag_CXX=
11568 always_export_symbols_CXX=no
11569 archive_expsym_cmds_CXX=
11570 export_dynamic_flag_spec_CXX=
11571 hardcode_direct_CXX=no
11572 hardcode_libdir_flag_spec_CXX=
11573 hardcode_libdir_flag_spec_ld_CXX=
11574 hardcode_libdir_separator_CXX=
11575 hardcode_minus_L_CXX=no
11576 hardcode_automatic_CXX=no
11577 module_cmds_CXX=
11578 module_expsym_cmds_CXX=
11579 link_all_deplibs_CXX=unknown
11580 old_archive_cmds_CXX=$old_archive_cmds
11581 no_undefined_flag_CXX=
11582 whole_archive_flag_spec_CXX=
11583 enable_shared_with_static_runtimes_CXX=no
11584
11585 # Dependencies to place before and after the object being linked:
11586 predep_objects_CXX=
11587 postdep_objects_CXX=
11588 predeps_CXX=
11589 postdeps_CXX=
11590 compiler_lib_search_path_CXX=
11591
11592 # Source file extension for C++ test sources.
11593 ac_ext=cc
11594
11595 # Object file extension for compiled C++ test sources.
11596 objext=o
11597 objext_CXX=$objext
11598
11599 # Code to be used in simple compile tests
11600 lt_simple_compile_test_code="int some_variable = 0;\n"
11601
11602 # Code to be used in simple link tests
11603 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11604
11605 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11606
11607 # If no C compiler was specified, use CC.
11608 LTCC=${LTCC-"$CC"}
11609
11610 # Allow CC to be a program name with arguments.
11611 compiler=$CC
11612
11613
11614 # Allow CC to be a program name with arguments.
11615 lt_save_CC=$CC
11616 lt_save_LD=$LD
11617 lt_save_GCC=$GCC
11618 GCC=$GXX
11619 lt_save_with_gnu_ld=$with_gnu_ld
11620 lt_save_path_LD=$lt_cv_path_LD
11621 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11622   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11623 else
11624   unset lt_cv_prog_gnu_ld
11625 fi
11626 if test -n "${lt_cv_path_LDCXX+set}"; then
11627   lt_cv_path_LD=$lt_cv_path_LDCXX
11628 else
11629   unset lt_cv_path_LD
11630 fi
11631 test -z "${LDCXX+set}" || LD=$LDCXX
11632 CC=${CXX-"c++"}
11633 compiler=$CC
11634 compiler_CXX=$CC
11635 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11636
11637 # We don't want -fno-exception wen compiling C++ code, so set the
11638 # no_builtin_flag separately
11639 if test "$GXX" = yes; then
11640   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11641 else
11642   lt_prog_compiler_no_builtin_flag_CXX=
11643 fi
11644
11645 if test "$GXX" = yes; then
11646   # Set up default GNU C++ configuration
11647
11648
11649 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11650 if test "${with_gnu_ld+set}" = set; then
11651   withval="$with_gnu_ld"
11652   test "$withval" = no || with_gnu_ld=yes
11653 else
11654   with_gnu_ld=no
11655 fi;
11656 ac_prog=ld
11657 if test "$GCC" = yes; then
11658   # Check if gcc -print-prog-name=ld gives a path.
11659   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11660 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11661   case $host in
11662   *-*-mingw*)
11663     # gcc leaves a trailing carriage return which upsets mingw
11664     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11665   *)
11666     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11667   esac
11668   case $ac_prog in
11669     # Accept absolute paths.
11670     [\\/]* | ?:[\\/]*)
11671       re_direlt='/[^/][^/]*/\.\./'
11672       # Canonicalize the pathname of ld
11673       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11674       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11675         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11676       done
11677       test -z "$LD" && LD="$ac_prog"
11678       ;;
11679   "")
11680     # If it fails, then pretend we aren't using GCC.
11681     ac_prog=ld
11682     ;;
11683   *)
11684     # If it is relative, then search for the first ld in PATH.
11685     with_gnu_ld=unknown
11686     ;;
11687   esac
11688 elif test "$with_gnu_ld" = yes; then
11689   echo "$as_me:$LINENO: checking for GNU ld" >&5
11690 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11691 else
11692   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11693 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11694 fi
11695 if test "${lt_cv_path_LD+set}" = set; then
11696   echo $ECHO_N "(cached) $ECHO_C" >&6
11697 else
11698   if test -z "$LD"; then
11699   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11700   for ac_dir in $PATH; do
11701     IFS="$lt_save_ifs"
11702     test -z "$ac_dir" && ac_dir=.
11703     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11704       lt_cv_path_LD="$ac_dir/$ac_prog"
11705       # Check to see if the program is GNU ld.  I'd rather use --version,
11706       # but apparently some GNU ld's only accept -v.
11707       # Break only if it was the GNU/non-GNU ld that we prefer.
11708       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11709       *GNU* | *'with BFD'*)
11710         test "$with_gnu_ld" != no && break
11711         ;;
11712       *)
11713         test "$with_gnu_ld" != yes && break
11714         ;;
11715       esac
11716     fi
11717   done
11718   IFS="$lt_save_ifs"
11719 else
11720   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11721 fi
11722 fi
11723
11724 LD="$lt_cv_path_LD"
11725 if test -n "$LD"; then
11726   echo "$as_me:$LINENO: result: $LD" >&5
11727 echo "${ECHO_T}$LD" >&6
11728 else
11729   echo "$as_me:$LINENO: result: no" >&5
11730 echo "${ECHO_T}no" >&6
11731 fi
11732 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11733 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11734    { (exit 1); exit 1; }; }
11735 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11736 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11737 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11738   echo $ECHO_N "(cached) $ECHO_C" >&6
11739 else
11740   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11741 case `$LD -v 2>&1 </dev/null` in
11742 *GNU* | *'with BFD'*)
11743   lt_cv_prog_gnu_ld=yes
11744   ;;
11745 *)
11746   lt_cv_prog_gnu_ld=no
11747   ;;
11748 esac
11749 fi
11750 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11751 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11752 with_gnu_ld=$lt_cv_prog_gnu_ld
11753
11754
11755
11756   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11757   # archiving commands below assume that GNU ld is being used.
11758   if test "$with_gnu_ld" = yes; then
11759     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11760     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'
11761
11762     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11763     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11764
11765     # If archive_cmds runs LD, not CC, wlarc should be empty
11766     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11767     #     investigate it a little bit more. (MM)
11768     wlarc='${wl}'
11769
11770     # ancient GNU ld didn't support --whole-archive et. al.
11771     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11772         grep 'no-whole-archive' > /dev/null; then
11773       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11774     else
11775       whole_archive_flag_spec_CXX=
11776     fi
11777   else
11778     with_gnu_ld=no
11779     wlarc=
11780
11781     # A generic and very simple default shared library creation
11782     # command for GNU C++ for the case where it uses the native
11783     # linker, instead of GNU ld.  If possible, this setting should
11784     # overridden to take advantage of the native linker features on
11785     # the platform it is being used on.
11786     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11787   fi
11788
11789   # Commands to make compiler produce verbose output that lists
11790   # what "hidden" libraries, object files and flags are used when
11791   # linking a shared library.
11792   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11793
11794 else
11795   GXX=no
11796   with_gnu_ld=no
11797   wlarc=
11798 fi
11799
11800 # PORTME: fill in a description of your system's C++ link characteristics
11801 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11802 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11803 ld_shlibs_CXX=yes
11804 case $host_os in
11805   aix3*)
11806     # FIXME: insert proper C++ library support
11807     ld_shlibs_CXX=no
11808     ;;
11809   aix4* | aix5*)
11810     if test "$host_cpu" = ia64; then
11811       # On IA64, the linker does run time linking by default, so we don't
11812       # have to do anything special.
11813       aix_use_runtimelinking=no
11814       exp_sym_flag='-Bexport'
11815       no_entry_flag=""
11816     else
11817       aix_use_runtimelinking=no
11818
11819       # Test if we are trying to use run time linking or normal
11820       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11821       # need to do runtime linking.
11822       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11823         for ld_flag in $LDFLAGS; do
11824           case $ld_flag in
11825           *-brtl*)
11826             aix_use_runtimelinking=yes
11827             break
11828             ;;
11829           esac
11830         done
11831       esac
11832
11833       exp_sym_flag='-bexport'
11834       no_entry_flag='-bnoentry'
11835     fi
11836
11837     # When large executables or shared objects are built, AIX ld can
11838     # have problems creating the table of contents.  If linking a library
11839     # or program results in "error TOC overflow" add -mminimal-toc to
11840     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11841     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11842
11843     archive_cmds_CXX=''
11844     hardcode_direct_CXX=yes
11845     hardcode_libdir_separator_CXX=':'
11846     link_all_deplibs_CXX=yes
11847
11848     if test "$GXX" = yes; then
11849       case $host_os in aix4.012|aix4.012.*)
11850       # We only want to do this on AIX 4.2 and lower, the check
11851       # below for broken collect2 doesn't work under 4.3+
11852         collect2name=`${CC} -print-prog-name=collect2`
11853         if test -f "$collect2name" && \
11854            strings "$collect2name" | grep resolve_lib_name >/dev/null
11855         then
11856           # We have reworked collect2
11857           hardcode_direct_CXX=yes
11858         else
11859           # We have old collect2
11860           hardcode_direct_CXX=unsupported
11861           # It fails to find uninstalled libraries when the uninstalled
11862           # path is not listed in the libpath.  Setting hardcode_minus_L
11863           # to unsupported forces relinking
11864           hardcode_minus_L_CXX=yes
11865           hardcode_libdir_flag_spec_CXX='-L$libdir'
11866           hardcode_libdir_separator_CXX=
11867         fi
11868       esac
11869       shared_flag='-shared'
11870     else
11871       # not using gcc
11872       if test "$host_cpu" = ia64; then
11873         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11874         # chokes on -Wl,-G. The following line is correct:
11875         shared_flag='-G'
11876       else
11877         if test "$aix_use_runtimelinking" = yes; then
11878           shared_flag='${wl}-G'
11879         else
11880           shared_flag='${wl}-bM:SRE'
11881         fi
11882       fi
11883     fi
11884
11885     # It seems that -bexpall does not export symbols beginning with
11886     # underscore (_), so it is better to generate a list of symbols to export.
11887     always_export_symbols_CXX=yes
11888     if test "$aix_use_runtimelinking" = yes; then
11889       # Warning - without using the other runtime loading flags (-brtl),
11890       # -berok will link without error, but may produce a broken library.
11891       allow_undefined_flag_CXX='-berok'
11892       # Determine the default libpath from the value encoded in an empty executable.
11893       cat >conftest.$ac_ext <<_ACEOF
11894 /* confdefs.h.  */
11895 _ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h.  */
11899
11900 int
11901 main ()
11902 {
11903
11904   ;
11905   return 0;
11906 }
11907 _ACEOF
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11910   (eval $ac_link) 2>conftest.er1
11911   ac_status=$?
11912   grep -v '^ *+' conftest.er1 >conftest.err
11913   rm -f conftest.er1
11914   cat conftest.err >&5
11915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916   (exit $ac_status); } &&
11917          { ac_try='test -z "$ac_cxx_werror_flag"
11918                          || test ! -s conftest.err'
11919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920   (eval $ac_try) 2>&5
11921   ac_status=$?
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); }; } &&
11924          { ac_try='test -s conftest$ac_exeext'
11925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926   (eval $ac_try) 2>&5
11927   ac_status=$?
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); }; }; then
11930
11931 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11932 }'`
11933 # Check for a 64-bit object if we didn't find anything.
11934 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; }
11935 }'`; fi
11936 else
11937   echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11939
11940 fi
11941 rm -f conftest.err conftest.$ac_objext \
11942       conftest$ac_exeext conftest.$ac_ext
11943 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11944
11945       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11946
11947       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11948      else
11949       if test "$host_cpu" = ia64; then
11950         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11951         allow_undefined_flag_CXX="-z nodefs"
11952         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11953       else
11954         # Determine the default libpath from the value encoded in an empty executable.
11955         cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h.  */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h.  */
11961
11962 int
11963 main ()
11964 {
11965
11966   ;
11967   return 0;
11968 }
11969 _ACEOF
11970 rm -f conftest.$ac_objext conftest$ac_exeext
11971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11972   (eval $ac_link) 2>conftest.er1
11973   ac_status=$?
11974   grep -v '^ *+' conftest.er1 >conftest.err
11975   rm -f conftest.er1
11976   cat conftest.err >&5
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); } &&
11979          { ac_try='test -z "$ac_cxx_werror_flag"
11980                          || test ! -s conftest.err'
11981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982   (eval $ac_try) 2>&5
11983   ac_status=$?
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); }; } &&
11986          { ac_try='test -s conftest$ac_exeext'
11987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988   (eval $ac_try) 2>&5
11989   ac_status=$?
11990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991   (exit $ac_status); }; }; then
11992
11993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11994 }'`
11995 # Check for a 64-bit object if we didn't find anything.
11996 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; }
11997 }'`; fi
11998 else
11999   echo "$as_me: failed program was:" >&5
12000 sed 's/^/| /' conftest.$ac_ext >&5
12001
12002 fi
12003 rm -f conftest.err conftest.$ac_objext \
12004       conftest$ac_exeext conftest.$ac_ext
12005 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12006
12007         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12008         # Warning - without using the other run time loading flags,
12009         # -berok will link without error, but may produce a broken library.
12010         no_undefined_flag_CXX=' ${wl}-bernotok'
12011         allow_undefined_flag_CXX=' ${wl}-berok'
12012         # -bexpall does not export symbols beginning with underscore (_)
12013         always_export_symbols_CXX=yes
12014         # Exported symbols can be pulled into shared objects from archives
12015         whole_archive_flag_spec_CXX=' '
12016         archive_cmds_need_lc_CXX=yes
12017         # This is similar to how AIX traditionally builds it's shared libraries.
12018         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12019       fi
12020     fi
12021     ;;
12022   chorus*)
12023     case $cc_basename in
12024       *)
12025         # FIXME: insert proper C++ library support
12026         ld_shlibs_CXX=no
12027         ;;
12028     esac
12029     ;;
12030
12031   cygwin* | mingw* | pw32*)
12032     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12033     # as there is no search path for DLLs.
12034     hardcode_libdir_flag_spec_CXX='-L$libdir'
12035     allow_undefined_flag_CXX=unsupported
12036     always_export_symbols_CXX=no
12037     enable_shared_with_static_runtimes_CXX=yes
12038
12039     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12040       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12041       # If the export-symbols file already is a .def file (1st line
12042       # is EXPORTS), use it as is; otherwise, prepend...
12043       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12044         cp $export_symbols $output_objdir/$soname.def;
12045       else
12046         echo EXPORTS > $output_objdir/$soname.def;
12047         cat $export_symbols >> $output_objdir/$soname.def;
12048       fi~
12049       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12050     else
12051       ld_shlibs_CXX=no
12052     fi
12053   ;;
12054
12055   darwin* | rhapsody*)
12056   if test "$GXX" = yes; then
12057     archive_cmds_need_lc_CXX=no
12058     case "$host_os" in
12059     rhapsody* | darwin1.[012])
12060       allow_undefined_flag_CXX='-undefined suppress'
12061       ;;
12062     *) # Darwin 1.3 on
12063       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12064         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12065       else
12066         case ${MACOSX_DEPLOYMENT_TARGET} in
12067           10.[012])
12068             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12069             ;;
12070           10.*)
12071             allow_undefined_flag_CXX='-undefined dynamic_lookup'
12072             ;;
12073         esac
12074       fi
12075       ;;
12076     esac
12077     lt_int_apple_cc_single_mod=no
12078     output_verbose_link_cmd='echo'
12079     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12080       lt_int_apple_cc_single_mod=yes
12081     fi
12082     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12083       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12084     else
12085       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
12086     fi
12087     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12088
12089     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12090     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12091       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}'
12092     else
12093       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
12094     fi
12095     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}'
12096     hardcode_direct_CXX=no
12097     hardcode_automatic_CXX=yes
12098     hardcode_shlibpath_var_CXX=unsupported
12099     whole_archive_flag_spec_CXX='-all_load $convenience'
12100     link_all_deplibs_CXX=yes
12101   else
12102     ld_shlibs_CXX=no
12103   fi
12104     ;;
12105
12106   dgux*)
12107     case $cc_basename in
12108       ec++)
12109         # FIXME: insert proper C++ library support
12110         ld_shlibs_CXX=no
12111         ;;
12112       ghcx)
12113         # Green Hills C++ Compiler
12114         # FIXME: insert proper C++ library support
12115         ld_shlibs_CXX=no
12116         ;;
12117       *)
12118         # FIXME: insert proper C++ library support
12119         ld_shlibs_CXX=no
12120         ;;
12121     esac
12122     ;;
12123   freebsd12*)
12124     # C++ shared libraries reported to be fairly broken before switch to ELF
12125     ld_shlibs_CXX=no
12126     ;;
12127   freebsd-elf*)
12128     archive_cmds_need_lc_CXX=no
12129     ;;
12130   freebsd* | kfreebsd*-gnu)
12131     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12132     # conventions
12133     ld_shlibs_CXX=yes
12134     ;;
12135   gnu*)
12136     ;;
12137   hpux9*)
12138     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12139     hardcode_libdir_separator_CXX=:
12140     export_dynamic_flag_spec_CXX='${wl}-E'
12141     hardcode_direct_CXX=yes
12142     hardcode_minus_L_CXX=yes # Not in the search PATH,
12143                                 # but as the default
12144                                 # location of the library.
12145
12146     case $cc_basename in
12147     CC)
12148       # FIXME: insert proper C++ library support
12149       ld_shlibs_CXX=no
12150       ;;
12151     aCC)
12152       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'
12153       # Commands to make compiler produce verbose output that lists
12154       # what "hidden" libraries, object files and flags are used when
12155       # linking a shared library.
12156       #
12157       # There doesn't appear to be a way to prevent this compiler from
12158       # explicitly linking system object files so we need to strip them
12159       # from the output so that they don't get included in the library
12160       # dependencies.
12161       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'
12162       ;;
12163     *)
12164       if test "$GXX" = yes; then
12165         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'
12166       else
12167         # FIXME: insert proper C++ library support
12168         ld_shlibs_CXX=no
12169       fi
12170       ;;
12171     esac
12172     ;;
12173   hpux10*|hpux11*)
12174     if test $with_gnu_ld = no; then
12175       case "$host_cpu" in
12176       hppa*64*)
12177         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12178         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12179         hardcode_libdir_separator_CXX=:
12180         ;;
12181       ia64*)
12182         hardcode_libdir_flag_spec_CXX='-L$libdir'
12183         ;;
12184       *)
12185         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12186         hardcode_libdir_separator_CXX=:
12187         export_dynamic_flag_spec_CXX='${wl}-E'
12188         ;;
12189       esac
12190     fi
12191     case "$host_cpu" in
12192     hppa*64*)
12193       hardcode_direct_CXX=no
12194       hardcode_shlibpath_var_CXX=no
12195       ;;
12196     ia64*)
12197       hardcode_direct_CXX=no
12198       hardcode_shlibpath_var_CXX=no
12199       hardcode_minus_L_CXX=yes # Not in the search PATH,
12200                                               # but as the default
12201                                               # location of the library.
12202       ;;
12203     *)
12204       hardcode_direct_CXX=yes
12205       hardcode_minus_L_CXX=yes # Not in the search PATH,
12206                                               # but as the default
12207                                               # location of the library.
12208       ;;
12209     esac
12210
12211     case $cc_basename in
12212       CC)
12213         # FIXME: insert proper C++ library support
12214         ld_shlibs_CXX=no
12215         ;;
12216       aCC)
12217         case "$host_cpu" in
12218         hppa*64*|ia64*)
12219           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12220           ;;
12221         *)
12222           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12223           ;;
12224         esac
12225         # Commands to make compiler produce verbose output that lists
12226         # what "hidden" libraries, object files and flags are used when
12227         # linking a shared library.
12228         #
12229         # There doesn't appear to be a way to prevent this compiler from
12230         # explicitly linking system object files so we need to strip them
12231         # from the output so that they don't get included in the library
12232         # dependencies.
12233         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'
12234         ;;
12235       *)
12236         if test "$GXX" = yes; then
12237           if test $with_gnu_ld = no; then
12238             case "$host_cpu" in
12239             ia64*|hppa*64*)
12240               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12241               ;;
12242             *)
12243               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'
12244               ;;
12245             esac
12246           fi
12247         else
12248           # FIXME: insert proper C++ library support
12249           ld_shlibs_CXX=no
12250         fi
12251         ;;
12252     esac
12253     ;;
12254   irix5* | irix6*)
12255     case $cc_basename in
12256       CC)
12257         # SGI C++
12258         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 ${objdir}/so_locations -o $lib'
12259
12260         # Archives containing C++ object files must be created using
12261         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12262         # necessary to make sure instantiated templates are included
12263         # in the archive.
12264         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12265         ;;
12266       *)
12267         if test "$GXX" = yes; then
12268           if test "$with_gnu_ld" = no; then
12269             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}${objdir}/so_locations -o $lib'
12270           else
12271             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'
12272           fi
12273         fi
12274         link_all_deplibs_CXX=yes
12275         ;;
12276     esac
12277     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12278     hardcode_libdir_separator_CXX=:
12279     ;;
12280   linux*)
12281     case $cc_basename in
12282       KCC)
12283         # Kuck and Associates, Inc. (KAI) C++ Compiler
12284
12285         # KCC will only create a shared library if the output file
12286         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12287         # to its proper name (with version) after linking.
12288         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'
12289         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'
12290         # Commands to make compiler produce verbose output that lists
12291         # what "hidden" libraries, object files and flags are used when
12292         # linking a shared library.
12293         #
12294         # There doesn't appear to be a way to prevent this compiler from
12295         # explicitly linking system object files so we need to strip them
12296         # from the output so that they don't get included in the library
12297         # dependencies.
12298         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'
12299
12300         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12301         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12302
12303         # Archives containing C++ object files must be created using
12304         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12305         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12306         ;;
12307       icpc)
12308         # Intel C++
12309         with_gnu_ld=yes
12310         archive_cmds_need_lc_CXX=no
12311         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12312         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'
12313         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12314         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12315         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12316         ;;
12317       cxx)
12318         # Compaq C++
12319         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12320         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'
12321
12322         runpath_var=LD_RUN_PATH
12323         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12324         hardcode_libdir_separator_CXX=:
12325
12326         # Commands to make compiler produce verbose output that lists
12327         # what "hidden" libraries, object files and flags are used when
12328         # linking a shared library.
12329         #
12330         # There doesn't appear to be a way to prevent this compiler from
12331         # explicitly linking system object files so we need to strip them
12332         # from the output so that they don't get included in the library
12333         # dependencies.
12334         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'
12335         ;;
12336     esac
12337     ;;
12338   lynxos*)
12339     # FIXME: insert proper C++ library support
12340     ld_shlibs_CXX=no
12341     ;;
12342   m88k*)
12343     # FIXME: insert proper C++ library support
12344     ld_shlibs_CXX=no
12345     ;;
12346   mvs*)
12347     case $cc_basename in
12348       cxx)
12349         # FIXME: insert proper C++ library support
12350         ld_shlibs_CXX=no
12351         ;;
12352       *)
12353         # FIXME: insert proper C++ library support
12354         ld_shlibs_CXX=no
12355         ;;
12356     esac
12357     ;;
12358   netbsd*)
12359     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12360       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12361       wlarc=
12362       hardcode_libdir_flag_spec_CXX='-R$libdir'
12363       hardcode_direct_CXX=yes
12364       hardcode_shlibpath_var_CXX=no
12365     fi
12366     # Workaround some broken pre-1.5 toolchains
12367     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12368     ;;
12369   osf3*)
12370     case $cc_basename in
12371       KCC)
12372         # Kuck and Associates, Inc. (KAI) C++ Compiler
12373
12374         # KCC will only create a shared library if the output file
12375         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12376         # to its proper name (with version) after linking.
12377         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'
12378
12379         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12380         hardcode_libdir_separator_CXX=:
12381
12382         # Archives containing C++ object files must be created using
12383         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12384         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12385
12386         ;;
12387       RCC)
12388         # Rational C++ 2.4.1
12389         # FIXME: insert proper C++ library support
12390         ld_shlibs_CXX=no
12391         ;;
12392       cxx)
12393         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12394         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 ${objdir}/so_locations -o $lib'
12395
12396         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12397         hardcode_libdir_separator_CXX=:
12398
12399         # Commands to make compiler produce verbose output that lists
12400         # what "hidden" libraries, object files and flags are used when
12401         # linking a shared library.
12402         #
12403         # There doesn't appear to be a way to prevent this compiler from
12404         # explicitly linking system object files so we need to strip them
12405         # from the output so that they don't get included in the library
12406         # dependencies.
12407         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'
12408         ;;
12409       *)
12410         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12411           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12412           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}${objdir}/so_locations -o $lib'
12413
12414           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12415           hardcode_libdir_separator_CXX=:
12416
12417           # Commands to make compiler produce verbose output that lists
12418           # what "hidden" libraries, object files and flags are used when
12419           # linking a shared library.
12420           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12421
12422         else
12423           # FIXME: insert proper C++ library support
12424           ld_shlibs_CXX=no
12425         fi
12426         ;;
12427     esac
12428     ;;
12429   osf4* | osf5*)
12430     case $cc_basename in
12431       KCC)
12432         # Kuck and Associates, Inc. (KAI) C++ Compiler
12433
12434         # KCC will only create a shared library if the output file
12435         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12436         # to its proper name (with version) after linking.
12437         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'
12438
12439         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12440         hardcode_libdir_separator_CXX=:
12441
12442         # Archives containing C++ object files must be created using
12443         # the KAI C++ compiler.
12444         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12445         ;;
12446       RCC)
12447         # Rational C++ 2.4.1
12448         # FIXME: insert proper C++ library support
12449         ld_shlibs_CXX=no
12450         ;;
12451       cxx)
12452         allow_undefined_flag_CXX=' -expect_unresolved \*'
12453         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 ${objdir}/so_locations -o $lib'
12454         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12455           echo "-hidden">> $lib.exp~
12456           $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 $objdir/so_locations -o $lib~
12457           $rm $lib.exp'
12458
12459         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12460         hardcode_libdir_separator_CXX=:
12461
12462         # Commands to make compiler produce verbose output that lists
12463         # what "hidden" libraries, object files and flags are used when
12464         # linking a shared library.
12465         #
12466         # There doesn't appear to be a way to prevent this compiler from
12467         # explicitly linking system object files so we need to strip them
12468         # from the output so that they don't get included in the library
12469         # dependencies.
12470         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'
12471         ;;
12472       *)
12473         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12474           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12475          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}${objdir}/so_locations -o $lib'
12476
12477           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12478           hardcode_libdir_separator_CXX=:
12479
12480           # Commands to make compiler produce verbose output that lists
12481           # what "hidden" libraries, object files and flags are used when
12482           # linking a shared library.
12483           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12484
12485         else
12486           # FIXME: insert proper C++ library support
12487           ld_shlibs_CXX=no
12488         fi
12489         ;;
12490     esac
12491     ;;
12492   psos*)
12493     # FIXME: insert proper C++ library support
12494     ld_shlibs_CXX=no
12495     ;;
12496   sco*)
12497     archive_cmds_need_lc_CXX=no
12498     case $cc_basename in
12499       CC)
12500         # FIXME: insert proper C++ library support
12501         ld_shlibs_CXX=no
12502         ;;
12503       *)
12504         # FIXME: insert proper C++ library support
12505         ld_shlibs_CXX=no
12506         ;;
12507     esac
12508     ;;
12509   sunos4*)
12510     case $cc_basename in
12511       CC)
12512         # Sun C++ 4.x
12513         # FIXME: insert proper C++ library support
12514         ld_shlibs_CXX=no
12515         ;;
12516       lcc)
12517         # Lucid
12518         # FIXME: insert proper C++ library support
12519         ld_shlibs_CXX=no
12520         ;;
12521       *)
12522         # FIXME: insert proper C++ library support
12523         ld_shlibs_CXX=no
12524         ;;
12525     esac
12526     ;;
12527   solaris*)
12528     case $cc_basename in
12529       CC)
12530         # Sun C++ 4.2, 5.x and Centerline C++
12531         no_undefined_flag_CXX=' -zdefs'
12532         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12533         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12534         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12535
12536         hardcode_libdir_flag_spec_CXX='-R$libdir'
12537         hardcode_shlibpath_var_CXX=no
12538         case $host_os in
12539           solaris2.0-5 | solaris2.0-5.*) ;;
12540           *)
12541             # The C++ compiler is used as linker so we must use $wl
12542             # flag to pass the commands to the underlying system
12543             # linker.
12544             # Supported since Solaris 2.6 (maybe 2.5.1?)
12545             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12546             ;;
12547         esac
12548         link_all_deplibs_CXX=yes
12549
12550         # Commands to make compiler produce verbose output that lists
12551         # what "hidden" libraries, object files and flags are used when
12552         # linking a shared library.
12553         #
12554         # There doesn't appear to be a way to prevent this compiler from
12555         # explicitly linking system object files so we need to strip them
12556         # from the output so that they don't get included in the library
12557         # dependencies.
12558         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12559
12560         # Archives containing C++ object files must be created using
12561         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12562         # necessary to make sure instantiated templates are included
12563         # in the archive.
12564         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12565         ;;
12566       gcx)
12567         # Green Hills C++ Compiler
12568         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12569
12570         # The C++ compiler must be used to create the archive.
12571         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12572         ;;
12573       *)
12574         # GNU C++ compiler with Solaris linker
12575         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12576           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12577           if $CC --version | grep -v '^2\.7' > /dev/null; then
12578             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12579             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12580                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12581
12582             # Commands to make compiler produce verbose output that lists
12583             # what "hidden" libraries, object files and flags are used when
12584             # linking a shared library.
12585             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12586           else
12587             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12588             # platform.
12589             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12590             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12591                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12592
12593             # Commands to make compiler produce verbose output that lists
12594             # what "hidden" libraries, object files and flags are used when
12595             # linking a shared library.
12596             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12597           fi
12598
12599           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12600         fi
12601         ;;
12602     esac
12603     ;;
12604   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12605     archive_cmds_need_lc_CXX=no
12606     ;;
12607   tandem*)
12608     case $cc_basename in
12609       NCC)
12610         # NonStop-UX NCC 3.20
12611         # FIXME: insert proper C++ library support
12612         ld_shlibs_CXX=no
12613         ;;
12614       *)
12615         # FIXME: insert proper C++ library support
12616         ld_shlibs_CXX=no
12617         ;;
12618     esac
12619     ;;
12620   vxworks*)
12621     # FIXME: insert proper C++ library support
12622     ld_shlibs_CXX=no
12623     ;;
12624   *)
12625     # FIXME: insert proper C++ library support
12626     ld_shlibs_CXX=no
12627     ;;
12628 esac
12629 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12630 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12631 test "$ld_shlibs_CXX" = no && can_build_shared=no
12632
12633 GCC_CXX="$GXX"
12634 LD_CXX="$LD"
12635
12636 ## CAVEAT EMPTOR:
12637 ## There is no encapsulation within the following macros, do not change
12638 ## the running order or otherwise move them around unless you know exactly
12639 ## what you are doing...
12640
12641 cat > conftest.$ac_ext <<EOF
12642 class Foo
12643 {
12644 public:
12645   Foo (void) { a = 0; }
12646 private:
12647   int a;
12648 };
12649 EOF
12650
12651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12652   (eval $ac_compile) 2>&5
12653   ac_status=$?
12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); }; then
12656   # Parse the compiler output and extract the necessary
12657   # objects, libraries and library flags.
12658
12659   # Sentinel used to keep track of whether or not we are before
12660   # the conftest object file.
12661   pre_test_object_deps_done=no
12662
12663   # The `*' in the case matches for architectures that use `case' in
12664   # $output_verbose_cmd can trigger glob expansion during the loop
12665   # eval without this substitution.
12666   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12667
12668   for p in `eval $output_verbose_link_cmd`; do
12669     case $p in
12670
12671     -L* | -R* | -l*)
12672        # Some compilers place space between "-{L,R}" and the path.
12673        # Remove the space.
12674        if test $p = "-L" \
12675           || test $p = "-R"; then
12676          prev=$p
12677          continue
12678        else
12679          prev=
12680        fi
12681
12682        if test "$pre_test_object_deps_done" = no; then
12683          case $p in
12684          -L* | -R*)
12685            # Internal compiler library paths should come after those
12686            # provided the user.  The postdeps already come after the
12687            # user supplied libs so there is no need to process them.
12688            if test -z "$compiler_lib_search_path_CXX"; then
12689              compiler_lib_search_path_CXX="${prev}${p}"
12690            else
12691              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12692            fi
12693            ;;
12694          # The "-l" case would never come before the object being
12695          # linked, so don't bother handling this case.
12696          esac
12697        else
12698          if test -z "$postdeps_CXX"; then
12699            postdeps_CXX="${prev}${p}"
12700          else
12701            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12702          fi
12703        fi
12704        ;;
12705
12706     *.$objext)
12707        # This assumes that the test object file only shows up
12708        # once in the compiler output.
12709        if test "$p" = "conftest.$objext"; then
12710          pre_test_object_deps_done=yes
12711          continue
12712        fi
12713
12714        if test "$pre_test_object_deps_done" = no; then
12715          if test -z "$predep_objects_CXX"; then
12716            predep_objects_CXX="$p"
12717          else
12718            predep_objects_CXX="$predep_objects_CXX $p"
12719          fi
12720        else
12721          if test -z "$postdep_objects_CXX"; then
12722            postdep_objects_CXX="$p"
12723          else
12724            postdep_objects_CXX="$postdep_objects_CXX $p"
12725          fi
12726        fi
12727        ;;
12728
12729     *) ;; # Ignore the rest.
12730
12731     esac
12732   done
12733
12734   # Clean up.
12735   rm -f a.out a.exe
12736 else
12737   echo "libtool.m4: error: problem compiling CXX test program"
12738 fi
12739
12740 $rm -f confest.$objext
12741
12742 case " $postdeps_CXX " in
12743 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12744 esac
12745
12746 lt_prog_compiler_wl_CXX=
12747 lt_prog_compiler_pic_CXX=
12748 lt_prog_compiler_static_CXX=
12749
12750 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12751 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12752
12753   # C++ specific cases for pic, static, wl, etc.
12754   if test "$GXX" = yes; then
12755     lt_prog_compiler_wl_CXX='-Wl,'
12756     lt_prog_compiler_static_CXX='-static'
12757
12758     case $host_os in
12759     aix*)
12760       # All AIX code is PIC.
12761       if test "$host_cpu" = ia64; then
12762         # AIX 5 now supports IA64 processor
12763         lt_prog_compiler_static_CXX='-Bstatic'
12764       fi
12765       ;;
12766     amigaos*)
12767       # FIXME: we need at least 68020 code to build shared libraries, but
12768       # adding the `-m68020' flag to GCC prevents building anything better,
12769       # like `-m68040'.
12770       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12771       ;;
12772     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12773       # PIC is the default for these OSes.
12774       ;;
12775     mingw* | os2* | pw32*)
12776       # This hack is so that the source file can tell whether it is being
12777       # built for inclusion in a dll (and should export symbols for example).
12778       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12779       ;;
12780     darwin* | rhapsody*)
12781       # PIC is the default on this platform
12782       # Common symbols not allowed in MH_DYLIB files
12783       lt_prog_compiler_pic_CXX='-fno-common'
12784       ;;
12785     *djgpp*)
12786       # DJGPP does not support shared libraries at all
12787       lt_prog_compiler_pic_CXX=
12788       ;;
12789     sysv4*MP*)
12790       if test -d /usr/nec; then
12791         lt_prog_compiler_pic_CXX=-Kconform_pic
12792       fi
12793       ;;
12794     hpux*)
12795       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12796       # not for PA HP-UX.
12797       case "$host_cpu" in
12798       hppa*64*|ia64*)
12799         ;;
12800       *)
12801         lt_prog_compiler_pic_CXX='-fPIC'
12802         ;;
12803       esac
12804       ;;
12805     *)
12806       lt_prog_compiler_pic_CXX='-fPIC'
12807       ;;
12808     esac
12809   else
12810     case $host_os in
12811       aix4* | aix5*)
12812         # All AIX code is PIC.
12813         if test "$host_cpu" = ia64; then
12814           # AIX 5 now supports IA64 processor
12815           lt_prog_compiler_static_CXX='-Bstatic'
12816         else
12817           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12818         fi
12819         ;;
12820       chorus*)
12821         case $cc_basename in
12822         cxch68)
12823           # Green Hills C++ Compiler
12824           # _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"
12825           ;;
12826         esac
12827         ;;
12828       dgux*)
12829         case $cc_basename in
12830           ec++)
12831             lt_prog_compiler_pic_CXX='-KPIC'
12832             ;;
12833           ghcx)
12834             # Green Hills C++ Compiler
12835             lt_prog_compiler_pic_CXX='-pic'
12836             ;;
12837           *)
12838             ;;
12839         esac
12840         ;;
12841       freebsd* | kfreebsd*-gnu)
12842         # FreeBSD uses GNU C++
12843         ;;
12844       hpux9* | hpux10* | hpux11*)
12845         case $cc_basename in
12846           CC)
12847             lt_prog_compiler_wl_CXX='-Wl,'
12848             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12849             if test "$host_cpu" != ia64; then
12850               lt_prog_compiler_pic_CXX='+Z'
12851             fi
12852             ;;
12853           aCC)
12854             lt_prog_compiler_wl_CXX='-Wl,'
12855             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12856             case "$host_cpu" in
12857             hppa*64*|ia64*)
12858               # +Z the default
12859               ;;
12860             *)
12861               lt_prog_compiler_pic_CXX='+Z'
12862               ;;
12863             esac
12864             ;;
12865           *)
12866             ;;
12867         esac
12868         ;;
12869       irix5* | irix6* | nonstopux*)
12870         case $cc_basename in
12871           CC)
12872             lt_prog_compiler_wl_CXX='-Wl,'
12873             lt_prog_compiler_static_CXX='-non_shared'
12874             # CC pic flag -KPIC is the default.
12875             ;;
12876           *)
12877             ;;
12878         esac
12879         ;;
12880       linux*)
12881         case $cc_basename in
12882           KCC)
12883             # KAI C++ Compiler
12884             lt_prog_compiler_wl_CXX='--backend -Wl,'
12885             lt_prog_compiler_pic_CXX='-fPIC'
12886             ;;
12887           icpc)
12888             # Intel C++
12889             lt_prog_compiler_wl_CXX='-Wl,'
12890             lt_prog_compiler_pic_CXX='-KPIC'
12891             lt_prog_compiler_static_CXX='-static'
12892             ;;
12893           cxx)
12894             # Compaq C++
12895             # Make sure the PIC flag is empty.  It appears that all Alpha
12896             # Linux and Compaq Tru64 Unix objects are PIC.
12897             lt_prog_compiler_pic_CXX=
12898             lt_prog_compiler_static_CXX='-non_shared'
12899             ;;
12900           *)
12901             ;;
12902         esac
12903         ;;
12904       lynxos*)
12905         ;;
12906       m88k*)
12907         ;;
12908       mvs*)
12909         case $cc_basename in
12910           cxx)
12911             lt_prog_compiler_pic_CXX='-W c,exportall'
12912             ;;
12913           *)
12914             ;;
12915         esac
12916         ;;
12917       netbsd*)
12918         ;;
12919       osf3* | osf4* | osf5*)
12920         case $cc_basename in
12921           KCC)
12922             lt_prog_compiler_wl_CXX='--backend -Wl,'
12923             ;;
12924           RCC)
12925             # Rational C++ 2.4.1
12926             lt_prog_compiler_pic_CXX='-pic'
12927             ;;
12928           cxx)
12929             # Digital/Compaq C++
12930             lt_prog_compiler_wl_CXX='-Wl,'
12931             # Make sure the PIC flag is empty.  It appears that all Alpha
12932             # Linux and Compaq Tru64 Unix objects are PIC.
12933             lt_prog_compiler_pic_CXX=
12934             lt_prog_compiler_static_CXX='-non_shared'
12935             ;;
12936           *)
12937             ;;
12938         esac
12939         ;;
12940       psos*)
12941         ;;
12942       sco*)
12943         case $cc_basename in
12944           CC)
12945             lt_prog_compiler_pic_CXX='-fPIC'
12946             ;;
12947           *)
12948             ;;
12949         esac
12950         ;;
12951       solaris*)
12952         case $cc_basename in
12953           CC)
12954             # Sun C++ 4.2, 5.x and Centerline C++
12955             lt_prog_compiler_pic_CXX='-KPIC'
12956             lt_prog_compiler_static_CXX='-Bstatic'
12957             lt_prog_compiler_wl_CXX='-Qoption ld '
12958             ;;
12959           gcx)
12960             # Green Hills C++ Compiler
12961             lt_prog_compiler_pic_CXX='-PIC'
12962             ;;
12963           *)
12964             ;;
12965         esac
12966         ;;
12967       sunos4*)
12968         case $cc_basename in
12969           CC)
12970             # Sun C++ 4.x
12971             lt_prog_compiler_pic_CXX='-pic'
12972             lt_prog_compiler_static_CXX='-Bstatic'
12973             ;;
12974           lcc)
12975             # Lucid
12976             lt_prog_compiler_pic_CXX='-pic'
12977             ;;
12978           *)
12979             ;;
12980         esac
12981         ;;
12982       tandem*)
12983         case $cc_basename in
12984           NCC)
12985             # NonStop-UX NCC 3.20
12986             lt_prog_compiler_pic_CXX='-KPIC'
12987             ;;
12988           *)
12989             ;;
12990         esac
12991         ;;
12992       unixware*)
12993         ;;
12994       vxworks*)
12995         ;;
12996       *)
12997         lt_prog_compiler_can_build_shared_CXX=no
12998         ;;
12999     esac
13000   fi
13001
13002 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13003 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13004
13005 #
13006 # Check to make sure the PIC flag actually works.
13007 #
13008 if test -n "$lt_prog_compiler_pic_CXX"; then
13009
13010 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13011 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13012 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13013   echo $ECHO_N "(cached) $ECHO_C" >&6
13014 else
13015   lt_prog_compiler_pic_works_CXX=no
13016   ac_outfile=conftest.$ac_objext
13017    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13018    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13019    # Insert the option either (1) after the last *FLAGS variable, or
13020    # (2) before a word containing "conftest.", or (3) at the end.
13021    # Note that $ac_compile itself does not contain backslashes and begins
13022    # with a dollar sign (not a hyphen), so the echo should work correctly.
13023    # The option is referenced via a variable to avoid confusing sed.
13024    lt_compile=`echo "$ac_compile" | $SED \
13025    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13026    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13027    -e 's:$: $lt_compiler_flag:'`
13028    (eval echo "\"\$as_me:13028: $lt_compile\"" >&5)
13029    (eval "$lt_compile" 2>conftest.err)
13030    ac_status=$?
13031    cat conftest.err >&5
13032    echo "$as_me:13032: \$? = $ac_status" >&5
13033    if (exit $ac_status) && test -s "$ac_outfile"; then
13034      # The compiler can only warn and ignore the option if not recognized
13035      # So say no if there are warnings
13036      if test ! -s conftest.err; then
13037        lt_prog_compiler_pic_works_CXX=yes
13038      fi
13039    fi
13040    $rm conftest*
13041
13042 fi
13043 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13044 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13045
13046 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13047     case $lt_prog_compiler_pic_CXX in
13048      "" | " "*) ;;
13049      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13050      esac
13051 else
13052     lt_prog_compiler_pic_CXX=
13053      lt_prog_compiler_can_build_shared_CXX=no
13054 fi
13055
13056 fi
13057 case "$host_os" in
13058   # For platforms which do not support PIC, -DPIC is meaningless:
13059   *djgpp*)
13060     lt_prog_compiler_pic_CXX=
13061     ;;
13062   *)
13063     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13064     ;;
13065 esac
13066
13067 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13068 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13069 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13070   echo $ECHO_N "(cached) $ECHO_C" >&6
13071 else
13072   lt_cv_prog_compiler_c_o_CXX=no
13073    $rm -r conftest 2>/dev/null
13074    mkdir conftest
13075    cd conftest
13076    mkdir out
13077    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13078
13079    lt_compiler_flag="-o out/conftest2.$ac_objext"
13080    # Insert the option either (1) after the last *FLAGS variable, or
13081    # (2) before a word containing "conftest.", or (3) at the end.
13082    # Note that $ac_compile itself does not contain backslashes and begins
13083    # with a dollar sign (not a hyphen), so the echo should work correctly.
13084    lt_compile=`echo "$ac_compile" | $SED \
13085    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13086    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13087    -e 's:$: $lt_compiler_flag:'`
13088    (eval echo "\"\$as_me:13088: $lt_compile\"" >&5)
13089    (eval "$lt_compile" 2>out/conftest.err)
13090    ac_status=$?
13091    cat out/conftest.err >&5
13092    echo "$as_me:13092: \$? = $ac_status" >&5
13093    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13094    then
13095      # The compiler can only warn and ignore the option if not recognized
13096      # So say no if there are warnings
13097      if test ! -s out/conftest.err; then
13098        lt_cv_prog_compiler_c_o_CXX=yes
13099      fi
13100    fi
13101    chmod u+w .
13102    $rm conftest*
13103    # SGI C++ compiler will create directory out/ii_files/ for
13104    # template instantiation
13105    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13106    $rm out/* && rmdir out
13107    cd ..
13108    rmdir conftest
13109    $rm conftest*
13110
13111 fi
13112 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13113 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13114
13115
13116 hard_links="nottested"
13117 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13118   # do not overwrite the value of need_locks provided by the user
13119   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13120 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13121   hard_links=yes
13122   $rm conftest*
13123   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13124   touch conftest.a
13125   ln conftest.a conftest.b 2>&5 || hard_links=no
13126   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13127   echo "$as_me:$LINENO: result: $hard_links" >&5
13128 echo "${ECHO_T}$hard_links" >&6
13129   if test "$hard_links" = no; then
13130     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13131 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13132     need_locks=warn
13133   fi
13134 else
13135   need_locks=no
13136 fi
13137
13138 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13139 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13140
13141   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13142   case $host_os in
13143   aix4* | aix5*)
13144     # If we're using GNU nm, then we don't want the "-C" option.
13145     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13146     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13147       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'
13148     else
13149       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'
13150     fi
13151     ;;
13152   pw32*)
13153     export_symbols_cmds_CXX="$ltdll_cmds"
13154   ;;
13155   cygwin* | mingw*)
13156     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13157   ;;
13158   *)
13159     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13160   ;;
13161   esac
13162
13163 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13164 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13165 test "$ld_shlibs_CXX" = no && can_build_shared=no
13166
13167 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13168 if test "$GCC" = yes; then
13169   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13170 fi
13171
13172 #
13173 # Do we need to explicitly link libc?
13174 #
13175 case "x$archive_cmds_need_lc_CXX" in
13176 x|xyes)
13177   # Assume -lc should be added
13178   archive_cmds_need_lc_CXX=yes
13179
13180   if test "$enable_shared" = yes && test "$GCC" = yes; then
13181     case $archive_cmds_CXX in
13182     *'~'*)
13183       # FIXME: we may have to deal with multi-command sequences.
13184       ;;
13185     '$CC '*)
13186       # Test whether the compiler implicitly links with -lc since on some
13187       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13188       # to ld, don't add -lc before -lgcc.
13189       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13190 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13191       $rm conftest*
13192       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13193
13194       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13195   (eval $ac_compile) 2>&5
13196   ac_status=$?
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); } 2>conftest.err; then
13199         soname=conftest
13200         lib=conftest
13201         libobjs=conftest.$ac_objext
13202         deplibs=
13203         wl=$lt_prog_compiler_wl_CXX
13204         compiler_flags=-v
13205         linker_flags=-v
13206         verstring=
13207         output_objdir=.
13208         libname=conftest
13209         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13210         allow_undefined_flag_CXX=
13211         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13212   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13213   ac_status=$?
13214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215   (exit $ac_status); }
13216         then
13217           archive_cmds_need_lc_CXX=no
13218         else
13219           archive_cmds_need_lc_CXX=yes
13220         fi
13221         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13222       else
13223         cat conftest.err 1>&5
13224       fi
13225       $rm conftest*
13226       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13227 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13228       ;;
13229     esac
13230   fi
13231   ;;
13232 esac
13233
13234 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13235 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13236 library_names_spec=
13237 libname_spec='lib$name'
13238 soname_spec=
13239 shrext_cmds=".so"
13240 postinstall_cmds=
13241 postuninstall_cmds=
13242 finish_cmds=
13243 finish_eval=
13244 shlibpath_var=
13245 shlibpath_overrides_runpath=unknown
13246 version_type=none
13247 dynamic_linker="$host_os ld.so"
13248 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13249 if test "$GCC" = yes; then
13250   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13251   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13252     # if the path contains ";" then we assume it to be the separator
13253     # otherwise default to the standard path separator (i.e. ":") - it is
13254     # assumed that no part of a normal pathname contains ";" but that should
13255     # okay in the real world where ";" in dirpaths is itself problematic.
13256     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13257   else
13258     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13259   fi
13260 else
13261   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13262 fi
13263 need_lib_prefix=unknown
13264 hardcode_into_libs=no
13265
13266 # when you set need_version to no, make sure it does not cause -set_version
13267 # flags to be left without arguments
13268 need_version=unknown
13269
13270 case $host_os in
13271 aix3*)
13272   version_type=linux
13273   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13274   shlibpath_var=LIBPATH
13275
13276   # AIX 3 has no versioning support, so we append a major version to the name.
13277   soname_spec='${libname}${release}${shared_ext}$major'
13278   ;;
13279
13280 aix4* | aix5*)
13281   version_type=linux
13282   need_lib_prefix=no
13283   need_version=no
13284   hardcode_into_libs=yes
13285   if test "$host_cpu" = ia64; then
13286     # AIX 5 supports IA64
13287     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13288     shlibpath_var=LD_LIBRARY_PATH
13289   else
13290     # With GCC up to 2.95.x, collect2 would create an import file
13291     # for dependence libraries.  The import file would start with
13292     # the line `#! .'.  This would cause the generated library to
13293     # depend on `.', always an invalid library.  This was fixed in
13294     # development snapshots of GCC prior to 3.0.
13295     case $host_os in
13296       aix4 | aix4.[01] | aix4.[01].*)
13297       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13298            echo ' yes '
13299            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13300         :
13301       else
13302         can_build_shared=no
13303       fi
13304       ;;
13305     esac
13306     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13307     # soname into executable. Probably we can add versioning support to
13308     # collect2, so additional links can be useful in future.
13309     if test "$aix_use_runtimelinking" = yes; then
13310       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13311       # instead of lib<name>.a to let people know that these are not
13312       # typical AIX shared libraries.
13313       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13314     else
13315       # We preserve .a as extension for shared libraries through AIX4.2
13316       # and later when we are not doing run time linking.
13317       library_names_spec='${libname}${release}.a $libname.a'
13318       soname_spec='${libname}${release}${shared_ext}$major'
13319     fi
13320     shlibpath_var=LIBPATH
13321   fi
13322   ;;
13323
13324 amigaos*)
13325   library_names_spec='$libname.ixlibrary $libname.a'
13326   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13327   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'
13328   ;;
13329
13330 beos*)
13331   library_names_spec='${libname}${shared_ext}'
13332   dynamic_linker="$host_os ld.so"
13333   shlibpath_var=LIBRARY_PATH
13334   ;;
13335
13336 bsdi4*)
13337   version_type=linux
13338   need_version=no
13339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13340   soname_spec='${libname}${release}${shared_ext}$major'
13341   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13342   shlibpath_var=LD_LIBRARY_PATH
13343   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13344   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13345   # the default ld.so.conf also contains /usr/contrib/lib and
13346   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13347   # libtool to hard-code these into programs
13348   ;;
13349
13350 cygwin* | mingw* | pw32*)
13351   version_type=windows
13352   shrext_cmds=".dll"
13353   need_version=no
13354   need_lib_prefix=no
13355
13356   case $GCC,$host_os in
13357   yes,cygwin* | yes,mingw* | yes,pw32*)
13358     library_names_spec='$libname.dll.a'
13359     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13360     postinstall_cmds='base_file=`basename \${file}`~
13361       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13362       dldir=$destdir/`dirname \$dlpath`~
13363       test -d \$dldir || mkdir -p \$dldir~
13364       $install_prog $dir/$dlname \$dldir/$dlname'
13365     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13366       dlpath=$dir/\$dldll~
13367        $rm \$dlpath'
13368     shlibpath_overrides_runpath=yes
13369
13370     case $host_os in
13371     cygwin*)
13372       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13373       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13374       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13375       ;;
13376     mingw*)
13377       # MinGW DLLs use traditional 'lib' prefix
13378       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13379       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13380       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13381         # It is most probably a Windows format PATH printed by
13382         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13383         # path with ; separators, and with drive letters. We can handle the
13384         # drive letters (cygwin fileutils understands them), so leave them,
13385         # especially as we might pass files found there to a mingw objdump,
13386         # which wouldn't understand a cygwinified path. Ahh.
13387         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13388       else
13389         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13390       fi
13391       ;;
13392     pw32*)
13393       # pw32 DLLs use 'pw' prefix rather than 'lib'
13394       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13395       ;;
13396     esac
13397     ;;
13398
13399   *)
13400     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13401     ;;
13402   esac
13403   dynamic_linker='Win32 ld.exe'
13404   # FIXME: first we should search . and the directory the executable is in
13405   shlibpath_var=PATH
13406   ;;
13407
13408 darwin* | rhapsody*)
13409   dynamic_linker="$host_os dyld"
13410   version_type=darwin
13411   need_lib_prefix=no
13412   need_version=no
13413   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13414   soname_spec='${libname}${release}${major}$shared_ext'
13415   shlibpath_overrides_runpath=yes
13416   shlibpath_var=DYLD_LIBRARY_PATH
13417   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13418   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13419   if test "$GCC" = yes; then
13420     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"`
13421   else
13422     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13423   fi
13424   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13425   ;;
13426
13427 dgux*)
13428   version_type=linux
13429   need_lib_prefix=no
13430   need_version=no
13431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13432   soname_spec='${libname}${release}${shared_ext}$major'
13433   shlibpath_var=LD_LIBRARY_PATH
13434   ;;
13435
13436 freebsd1*)
13437   dynamic_linker=no
13438   ;;
13439
13440 kfreebsd*-gnu)
13441   version_type=linux
13442   need_lib_prefix=no
13443   need_version=no
13444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13445   soname_spec='${libname}${release}${shared_ext}$major'
13446   shlibpath_var=LD_LIBRARY_PATH
13447   shlibpath_overrides_runpath=no
13448   hardcode_into_libs=yes
13449   dynamic_linker='GNU ld.so'
13450   ;;
13451
13452 freebsd*)
13453   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13454   version_type=freebsd-$objformat
13455   case $version_type in
13456     freebsd-elf*)
13457       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13458       need_version=no
13459       need_lib_prefix=no
13460       ;;
13461     freebsd-*)
13462       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13463       need_version=yes
13464       ;;
13465   esac
13466   shlibpath_var=LD_LIBRARY_PATH
13467   case $host_os in
13468   freebsd2*)
13469     shlibpath_overrides_runpath=yes
13470     ;;
13471   freebsd3.01* | freebsdelf3.01*)
13472     shlibpath_overrides_runpath=yes
13473     hardcode_into_libs=yes
13474     ;;
13475   *) # from 3.2 on
13476     shlibpath_overrides_runpath=no
13477     hardcode_into_libs=yes
13478     ;;
13479   esac
13480   ;;
13481
13482 gnu*)
13483   version_type=linux
13484   need_lib_prefix=no
13485   need_version=no
13486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13487   soname_spec='${libname}${release}${shared_ext}$major'
13488   shlibpath_var=LD_LIBRARY_PATH
13489   hardcode_into_libs=yes
13490   ;;
13491
13492 hpux9* | hpux10* | hpux11*)
13493   # Give a soname corresponding to the major version so that dld.sl refuses to
13494   # link against other versions.
13495   version_type=sunos
13496   need_lib_prefix=no
13497   need_version=no
13498   case "$host_cpu" in
13499   ia64*)
13500     shrext_cmds='.so'
13501     hardcode_into_libs=yes
13502     dynamic_linker="$host_os dld.so"
13503     shlibpath_var=LD_LIBRARY_PATH
13504     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13505     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13506     soname_spec='${libname}${release}${shared_ext}$major'
13507     if test "X$HPUX_IA64_MODE" = X32; then
13508       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13509     else
13510       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13511     fi
13512     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13513     ;;
13514    hppa*64*)
13515      shrext_cmds='.sl'
13516      hardcode_into_libs=yes
13517      dynamic_linker="$host_os dld.sl"
13518      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13519      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13520      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13521      soname_spec='${libname}${release}${shared_ext}$major'
13522      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13523      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13524      ;;
13525    *)
13526     shrext_cmds='.sl'
13527     dynamic_linker="$host_os dld.sl"
13528     shlibpath_var=SHLIB_PATH
13529     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13530     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13531     soname_spec='${libname}${release}${shared_ext}$major'
13532     ;;
13533   esac
13534   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13535   postinstall_cmds='chmod 555 $lib'
13536   ;;
13537
13538 irix5* | irix6* | nonstopux*)
13539   case $host_os in
13540     nonstopux*) version_type=nonstopux ;;
13541     *)
13542         if test "$lt_cv_prog_gnu_ld" = yes; then
13543                 version_type=linux
13544         else
13545                 version_type=irix
13546         fi ;;
13547   esac
13548   need_lib_prefix=no
13549   need_version=no
13550   soname_spec='${libname}${release}${shared_ext}$major'
13551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13552   case $host_os in
13553   irix5* | nonstopux*)
13554     libsuff= shlibsuff=
13555     ;;
13556   *)
13557     case $LD in # libtool.m4 will add one of these switches to LD
13558     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13559       libsuff= shlibsuff= libmagic=32-bit;;
13560     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13561       libsuff=32 shlibsuff=N32 libmagic=N32;;
13562     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13563       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13564     *) libsuff= shlibsuff= libmagic=never-match;;
13565     esac
13566     ;;
13567   esac
13568   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13569   shlibpath_overrides_runpath=no
13570   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13571   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13572   hardcode_into_libs=yes
13573   ;;
13574
13575 # No shared lib support for Linux oldld, aout, or coff.
13576 linux*oldld* | linux*aout* | linux*coff*)
13577   dynamic_linker=no
13578   ;;
13579
13580 # This must be Linux ELF.
13581 linux*)
13582   version_type=linux
13583   need_lib_prefix=no
13584   need_version=no
13585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13586   soname_spec='${libname}${release}${shared_ext}$major'
13587   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13588   shlibpath_var=LD_LIBRARY_PATH
13589   shlibpath_overrides_runpath=no
13590   # This implies no fast_install, which is unacceptable.
13591   # Some rework will be needed to allow for fast_install
13592   # before this can be enabled.
13593   hardcode_into_libs=yes
13594
13595   # find out which ABI we are using
13596   libsuff=
13597   case "$host_cpu" in
13598   x86_64*|s390x*|powerpc64*)
13599     echo '#line 13599 "configure"' > conftest.$ac_ext
13600     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13601   (eval $ac_compile) 2>&5
13602   ac_status=$?
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); }; then
13605       case `/usr/bin/file conftest.$ac_objext` in
13606       *64-bit*)
13607         libsuff=64
13608         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13609         ;;
13610       esac
13611     fi
13612     rm -rf conftest*
13613     ;;
13614   esac
13615
13616   # Append ld.so.conf contents to the search path
13617   if test -f /etc/ld.so.conf; then
13618     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13619     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13620   fi
13621
13622   # We used to test for /lib/ld.so.1 and disable shared libraries on
13623   # powerpc, because MkLinux only supported shared libraries with the
13624   # GNU dynamic linker.  Since this was broken with cross compilers,
13625   # most powerpc-linux boxes support dynamic linking these days and
13626   # people can always --disable-shared, the test was removed, and we
13627   # assume the GNU/Linux dynamic linker is in use.
13628   dynamic_linker='GNU/Linux ld.so'
13629   ;;
13630
13631 knetbsd*-gnu)
13632   version_type=linux
13633   need_lib_prefix=no
13634   need_version=no
13635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13636   soname_spec='${libname}${release}${shared_ext}$major'
13637   shlibpath_var=LD_LIBRARY_PATH
13638   shlibpath_overrides_runpath=no
13639   hardcode_into_libs=yes
13640   dynamic_linker='GNU ld.so'
13641   ;;
13642
13643 netbsd*)
13644   version_type=sunos
13645   need_lib_prefix=no
13646   need_version=no
13647   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13648     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13649     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13650     dynamic_linker='NetBSD (a.out) ld.so'
13651   else
13652     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13653     soname_spec='${libname}${release}${shared_ext}$major'
13654     dynamic_linker='NetBSD ld.elf_so'
13655   fi
13656   shlibpath_var=LD_LIBRARY_PATH
13657   shlibpath_overrides_runpath=yes
13658   hardcode_into_libs=yes
13659   ;;
13660
13661 newsos6)
13662   version_type=linux
13663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13664   shlibpath_var=LD_LIBRARY_PATH
13665   shlibpath_overrides_runpath=yes
13666   ;;
13667
13668 nto-qnx*)
13669   version_type=linux
13670   need_lib_prefix=no
13671   need_version=no
13672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13673   soname_spec='${libname}${release}${shared_ext}$major'
13674   shlibpath_var=LD_LIBRARY_PATH
13675   shlibpath_overrides_runpath=yes
13676   ;;
13677
13678 openbsd*)
13679   version_type=sunos
13680   need_lib_prefix=no
13681   need_version=yes
13682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13683   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13684   shlibpath_var=LD_LIBRARY_PATH
13685   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13686     case $host_os in
13687       openbsd2.[89] | openbsd2.[89].*)
13688         shlibpath_overrides_runpath=no
13689         ;;
13690       *)
13691         shlibpath_overrides_runpath=yes
13692         ;;
13693       esac
13694   else
13695     shlibpath_overrides_runpath=yes
13696   fi
13697   ;;
13698
13699 os2*)
13700   libname_spec='$name'
13701   shrext_cmds=".dll"
13702   need_lib_prefix=no
13703   library_names_spec='$libname${shared_ext} $libname.a'
13704   dynamic_linker='OS/2 ld.exe'
13705   shlibpath_var=LIBPATH
13706   ;;
13707
13708 osf3* | osf4* | osf5*)
13709   version_type=osf
13710   need_lib_prefix=no
13711   need_version=no
13712   soname_spec='${libname}${release}${shared_ext}$major'
13713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13714   shlibpath_var=LD_LIBRARY_PATH
13715   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13716   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13717   ;;
13718
13719 sco3.2v5*)
13720   version_type=osf
13721   soname_spec='${libname}${release}${shared_ext}$major'
13722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13723   shlibpath_var=LD_LIBRARY_PATH
13724   ;;
13725
13726 solaris*)
13727   version_type=linux
13728   need_lib_prefix=no
13729   need_version=no
13730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13731   soname_spec='${libname}${release}${shared_ext}$major'
13732   shlibpath_var=LD_LIBRARY_PATH
13733   shlibpath_overrides_runpath=yes
13734   hardcode_into_libs=yes
13735   # ldd complains unless libraries are executable
13736   postinstall_cmds='chmod +x $lib'
13737   ;;
13738
13739 sunos4*)
13740   version_type=sunos
13741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13742   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13743   shlibpath_var=LD_LIBRARY_PATH
13744   shlibpath_overrides_runpath=yes
13745   if test "$with_gnu_ld" = yes; then
13746     need_lib_prefix=no
13747   fi
13748   need_version=yes
13749   ;;
13750
13751 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13752   version_type=linux
13753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754   soname_spec='${libname}${release}${shared_ext}$major'
13755   shlibpath_var=LD_LIBRARY_PATH
13756   case $host_vendor in
13757     sni)
13758       shlibpath_overrides_runpath=no
13759       need_lib_prefix=no
13760       export_dynamic_flag_spec='${wl}-Blargedynsym'
13761       runpath_var=LD_RUN_PATH
13762       ;;
13763     siemens)
13764       need_lib_prefix=no
13765       ;;
13766     motorola)
13767       need_lib_prefix=no
13768       need_version=no
13769       shlibpath_overrides_runpath=no
13770       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13771       ;;
13772   esac
13773   ;;
13774
13775 sysv4*MP*)
13776   if test -d /usr/nec ;then
13777     version_type=linux
13778     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13779     soname_spec='$libname${shared_ext}.$major'
13780     shlibpath_var=LD_LIBRARY_PATH
13781   fi
13782   ;;
13783
13784 uts4*)
13785   version_type=linux
13786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13787   soname_spec='${libname}${release}${shared_ext}$major'
13788   shlibpath_var=LD_LIBRARY_PATH
13789   ;;
13790
13791 *)
13792   dynamic_linker=no
13793   ;;
13794 esac
13795 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13796 echo "${ECHO_T}$dynamic_linker" >&6
13797 test "$dynamic_linker" = no && can_build_shared=no
13798
13799 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13800 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13801 hardcode_action_CXX=
13802 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13803    test -n "$runpath_var CXX" || \
13804    test "X$hardcode_automatic_CXX"="Xyes" ; then
13805
13806   # We can hardcode non-existant directories.
13807   if test "$hardcode_direct_CXX" != no &&
13808      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13809      # have to relink, otherwise we might link with an installed library
13810      # when we should be linking with a yet-to-be-installed one
13811      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13812      test "$hardcode_minus_L_CXX" != no; then
13813     # Linking always hardcodes the temporary library directory.
13814     hardcode_action_CXX=relink
13815   else
13816     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13817     hardcode_action_CXX=immediate
13818   fi
13819 else
13820   # We cannot hardcode anything, or else we can only hardcode existing
13821   # directories.
13822   hardcode_action_CXX=unsupported
13823 fi
13824 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13825 echo "${ECHO_T}$hardcode_action_CXX" >&6
13826
13827 if test "$hardcode_action_CXX" = relink; then
13828   # Fast installation is not supported
13829   enable_fast_install=no
13830 elif test "$shlibpath_overrides_runpath" = yes ||
13831      test "$enable_shared" = no; then
13832   # Fast installation is not necessary
13833   enable_fast_install=needless
13834 fi
13835
13836 striplib=
13837 old_striplib=
13838 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13839 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13840 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13841   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13842   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13843   echo "$as_me:$LINENO: result: yes" >&5
13844 echo "${ECHO_T}yes" >&6
13845 else
13846 # FIXME - insert some real tests, host_os isn't really good enough
13847   case $host_os in
13848    darwin*)
13849        if test -n "$STRIP" ; then
13850          striplib="$STRIP -x"
13851          echo "$as_me:$LINENO: result: yes" >&5
13852 echo "${ECHO_T}yes" >&6
13853        else
13854   echo "$as_me:$LINENO: result: no" >&5
13855 echo "${ECHO_T}no" >&6
13856 fi
13857        ;;
13858    *)
13859   echo "$as_me:$LINENO: result: no" >&5
13860 echo "${ECHO_T}no" >&6
13861     ;;
13862   esac
13863 fi
13864
13865 if test "x$enable_dlopen" != xyes; then
13866   enable_dlopen=unknown
13867   enable_dlopen_self=unknown
13868   enable_dlopen_self_static=unknown
13869 else
13870   lt_cv_dlopen=no
13871   lt_cv_dlopen_libs=
13872
13873   case $host_os in
13874   beos*)
13875     lt_cv_dlopen="load_add_on"
13876     lt_cv_dlopen_libs=
13877     lt_cv_dlopen_self=yes
13878     ;;
13879
13880   mingw* | pw32*)
13881     lt_cv_dlopen="LoadLibrary"
13882     lt_cv_dlopen_libs=
13883    ;;
13884
13885   cygwin*)
13886     lt_cv_dlopen="dlopen"
13887     lt_cv_dlopen_libs=
13888    ;;
13889
13890   darwin*)
13891   # if libdl is installed we need to link against it
13892     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13893 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13894 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13895   echo $ECHO_N "(cached) $ECHO_C" >&6
13896 else
13897   ac_check_lib_save_LIBS=$LIBS
13898 LIBS="-ldl  $LIBS"
13899 cat >conftest.$ac_ext <<_ACEOF
13900 /* confdefs.h.  */
13901 _ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h.  */
13905
13906 /* Override any gcc2 internal prototype to avoid an error.  */
13907 #ifdef __cplusplus
13908 extern "C"
13909 #endif
13910 /* We use char because int might match the return type of a gcc2
13911    builtin and then its argument prototype would still apply.  */
13912 char dlopen ();
13913 int
13914 main ()
13915 {
13916 dlopen ();
13917   ;
13918   return 0;
13919 }
13920 _ACEOF
13921 rm -f conftest.$ac_objext conftest$ac_exeext
13922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13923   (eval $ac_link) 2>conftest.er1
13924   ac_status=$?
13925   grep -v '^ *+' conftest.er1 >conftest.err
13926   rm -f conftest.er1
13927   cat conftest.err >&5
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); } &&
13930          { ac_try='test -z "$ac_cxx_werror_flag"
13931                          || test ! -s conftest.err'
13932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933   (eval $ac_try) 2>&5
13934   ac_status=$?
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); }; } &&
13937          { ac_try='test -s conftest$ac_exeext'
13938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939   (eval $ac_try) 2>&5
13940   ac_status=$?
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); }; }; then
13943   ac_cv_lib_dl_dlopen=yes
13944 else
13945   echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13947
13948 ac_cv_lib_dl_dlopen=no
13949 fi
13950 rm -f conftest.err conftest.$ac_objext \
13951       conftest$ac_exeext conftest.$ac_ext
13952 LIBS=$ac_check_lib_save_LIBS
13953 fi
13954 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13955 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13956 if test $ac_cv_lib_dl_dlopen = yes; then
13957   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13958 else
13959
13960     lt_cv_dlopen="dyld"
13961     lt_cv_dlopen_libs=
13962     lt_cv_dlopen_self=yes
13963
13964 fi
13965
13966    ;;
13967
13968   *)
13969     echo "$as_me:$LINENO: checking for shl_load" >&5
13970 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13971 if test "${ac_cv_func_shl_load+set}" = set; then
13972   echo $ECHO_N "(cached) $ECHO_C" >&6
13973 else
13974   cat >conftest.$ac_ext <<_ACEOF
13975 /* confdefs.h.  */
13976 _ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h.  */
13980 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13982 #define shl_load innocuous_shl_load
13983
13984 /* System header to define __stub macros and hopefully few prototypes,
13985     which can conflict with char shl_load (); below.
13986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13987     <limits.h> exists even on freestanding compilers.  */
13988
13989 #ifdef __STDC__
13990 # include <limits.h>
13991 #else
13992 # include <assert.h>
13993 #endif
13994
13995 #undef shl_load
13996
13997 /* Override any gcc2 internal prototype to avoid an error.  */
13998 #ifdef __cplusplus
13999 extern "C"
14000 {
14001 #endif
14002 /* We use char because int might match the return type of a gcc2
14003    builtin and then its argument prototype would still apply.  */
14004 char shl_load ();
14005 /* The GNU C library defines this for functions which it implements
14006     to always fail with ENOSYS.  Some functions are actually named
14007     something starting with __ and the normal name is an alias.  */
14008 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14009 choke me
14010 #else
14011 char (*f) () = shl_load;
14012 #endif
14013 #ifdef __cplusplus
14014 }
14015 #endif
14016
14017 int
14018 main ()
14019 {
14020 return f != shl_load;
14021   ;
14022   return 0;
14023 }
14024 _ACEOF
14025 rm -f conftest.$ac_objext conftest$ac_exeext
14026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14027   (eval $ac_link) 2>conftest.er1
14028   ac_status=$?
14029   grep -v '^ *+' conftest.er1 >conftest.err
14030   rm -f conftest.er1
14031   cat conftest.err >&5
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); } &&
14034          { ac_try='test -z "$ac_cxx_werror_flag"
14035                          || test ! -s conftest.err'
14036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037   (eval $ac_try) 2>&5
14038   ac_status=$?
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); }; } &&
14041          { ac_try='test -s conftest$ac_exeext'
14042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043   (eval $ac_try) 2>&5
14044   ac_status=$?
14045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046   (exit $ac_status); }; }; then
14047   ac_cv_func_shl_load=yes
14048 else
14049   echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14051
14052 ac_cv_func_shl_load=no
14053 fi
14054 rm -f conftest.err conftest.$ac_objext \
14055       conftest$ac_exeext conftest.$ac_ext
14056 fi
14057 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14058 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14059 if test $ac_cv_func_shl_load = yes; then
14060   lt_cv_dlopen="shl_load"
14061 else
14062   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14063 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14064 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14065   echo $ECHO_N "(cached) $ECHO_C" >&6
14066 else
14067   ac_check_lib_save_LIBS=$LIBS
14068 LIBS="-ldld  $LIBS"
14069 cat >conftest.$ac_ext <<_ACEOF
14070 /* confdefs.h.  */
14071 _ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h.  */
14075
14076 /* Override any gcc2 internal prototype to avoid an error.  */
14077 #ifdef __cplusplus
14078 extern "C"
14079 #endif
14080 /* We use char because int might match the return type of a gcc2
14081    builtin and then its argument prototype would still apply.  */
14082 char shl_load ();
14083 int
14084 main ()
14085 {
14086 shl_load ();
14087   ;
14088   return 0;
14089 }
14090 _ACEOF
14091 rm -f conftest.$ac_objext conftest$ac_exeext
14092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14093   (eval $ac_link) 2>conftest.er1
14094   ac_status=$?
14095   grep -v '^ *+' conftest.er1 >conftest.err
14096   rm -f conftest.er1
14097   cat conftest.err >&5
14098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099   (exit $ac_status); } &&
14100          { ac_try='test -z "$ac_cxx_werror_flag"
14101                          || test ! -s conftest.err'
14102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103   (eval $ac_try) 2>&5
14104   ac_status=$?
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); }; } &&
14107          { ac_try='test -s conftest$ac_exeext'
14108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109   (eval $ac_try) 2>&5
14110   ac_status=$?
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   (exit $ac_status); }; }; then
14113   ac_cv_lib_dld_shl_load=yes
14114 else
14115   echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14117
14118 ac_cv_lib_dld_shl_load=no
14119 fi
14120 rm -f conftest.err conftest.$ac_objext \
14121       conftest$ac_exeext conftest.$ac_ext
14122 LIBS=$ac_check_lib_save_LIBS
14123 fi
14124 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14125 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14126 if test $ac_cv_lib_dld_shl_load = yes; then
14127   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14128 else
14129   echo "$as_me:$LINENO: checking for dlopen" >&5
14130 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14131 if test "${ac_cv_func_dlopen+set}" = set; then
14132   echo $ECHO_N "(cached) $ECHO_C" >&6
14133 else
14134   cat >conftest.$ac_ext <<_ACEOF
14135 /* confdefs.h.  */
14136 _ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h.  */
14140 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14142 #define dlopen innocuous_dlopen
14143
14144 /* System header to define __stub macros and hopefully few prototypes,
14145     which can conflict with char dlopen (); below.
14146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14147     <limits.h> exists even on freestanding compilers.  */
14148
14149 #ifdef __STDC__
14150 # include <limits.h>
14151 #else
14152 # include <assert.h>
14153 #endif
14154
14155 #undef dlopen
14156
14157 /* Override any gcc2 internal prototype to avoid an error.  */
14158 #ifdef __cplusplus
14159 extern "C"
14160 {
14161 #endif
14162 /* We use char because int might match the return type of a gcc2
14163    builtin and then its argument prototype would still apply.  */
14164 char dlopen ();
14165 /* The GNU C library defines this for functions which it implements
14166     to always fail with ENOSYS.  Some functions are actually named
14167     something starting with __ and the normal name is an alias.  */
14168 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14169 choke me
14170 #else
14171 char (*f) () = dlopen;
14172 #endif
14173 #ifdef __cplusplus
14174 }
14175 #endif
14176
14177 int
14178 main ()
14179 {
14180 return f != dlopen;
14181   ;
14182   return 0;
14183 }
14184 _ACEOF
14185 rm -f conftest.$ac_objext conftest$ac_exeext
14186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14187   (eval $ac_link) 2>conftest.er1
14188   ac_status=$?
14189   grep -v '^ *+' conftest.er1 >conftest.err
14190   rm -f conftest.er1
14191   cat conftest.err >&5
14192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193   (exit $ac_status); } &&
14194          { ac_try='test -z "$ac_cxx_werror_flag"
14195                          || test ! -s conftest.err'
14196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14197   (eval $ac_try) 2>&5
14198   ac_status=$?
14199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200   (exit $ac_status); }; } &&
14201          { ac_try='test -s conftest$ac_exeext'
14202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203   (eval $ac_try) 2>&5
14204   ac_status=$?
14205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206   (exit $ac_status); }; }; then
14207   ac_cv_func_dlopen=yes
14208 else
14209   echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.$ac_ext >&5
14211
14212 ac_cv_func_dlopen=no
14213 fi
14214 rm -f conftest.err conftest.$ac_objext \
14215       conftest$ac_exeext conftest.$ac_ext
14216 fi
14217 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14218 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14219 if test $ac_cv_func_dlopen = yes; then
14220   lt_cv_dlopen="dlopen"
14221 else
14222   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14223 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14224 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14225   echo $ECHO_N "(cached) $ECHO_C" >&6
14226 else
14227   ac_check_lib_save_LIBS=$LIBS
14228 LIBS="-ldl  $LIBS"
14229 cat >conftest.$ac_ext <<_ACEOF
14230 /* confdefs.h.  */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h.  */
14235
14236 /* Override any gcc2 internal prototype to avoid an error.  */
14237 #ifdef __cplusplus
14238 extern "C"
14239 #endif
14240 /* We use char because int might match the return type of a gcc2
14241    builtin and then its argument prototype would still apply.  */
14242 char dlopen ();
14243 int
14244 main ()
14245 {
14246 dlopen ();
14247   ;
14248   return 0;
14249 }
14250 _ACEOF
14251 rm -f conftest.$ac_objext conftest$ac_exeext
14252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14253   (eval $ac_link) 2>conftest.er1
14254   ac_status=$?
14255   grep -v '^ *+' conftest.er1 >conftest.err
14256   rm -f conftest.er1
14257   cat conftest.err >&5
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); } &&
14260          { ac_try='test -z "$ac_cxx_werror_flag"
14261                          || test ! -s conftest.err'
14262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263   (eval $ac_try) 2>&5
14264   ac_status=$?
14265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266   (exit $ac_status); }; } &&
14267          { ac_try='test -s conftest$ac_exeext'
14268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269   (eval $ac_try) 2>&5
14270   ac_status=$?
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); }; }; then
14273   ac_cv_lib_dl_dlopen=yes
14274 else
14275   echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14277
14278 ac_cv_lib_dl_dlopen=no
14279 fi
14280 rm -f conftest.err conftest.$ac_objext \
14281       conftest$ac_exeext conftest.$ac_ext
14282 LIBS=$ac_check_lib_save_LIBS
14283 fi
14284 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14285 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14286 if test $ac_cv_lib_dl_dlopen = yes; then
14287   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14288 else
14289   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14290 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14291 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14292   echo $ECHO_N "(cached) $ECHO_C" >&6
14293 else
14294   ac_check_lib_save_LIBS=$LIBS
14295 LIBS="-lsvld  $LIBS"
14296 cat >conftest.$ac_ext <<_ACEOF
14297 /* confdefs.h.  */
14298 _ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h.  */
14302
14303 /* Override any gcc2 internal prototype to avoid an error.  */
14304 #ifdef __cplusplus
14305 extern "C"
14306 #endif
14307 /* We use char because int might match the return type of a gcc2
14308    builtin and then its argument prototype would still apply.  */
14309 char dlopen ();
14310 int
14311 main ()
14312 {
14313 dlopen ();
14314   ;
14315   return 0;
14316 }
14317 _ACEOF
14318 rm -f conftest.$ac_objext conftest$ac_exeext
14319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14320   (eval $ac_link) 2>conftest.er1
14321   ac_status=$?
14322   grep -v '^ *+' conftest.er1 >conftest.err
14323   rm -f conftest.er1
14324   cat conftest.err >&5
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); } &&
14327          { ac_try='test -z "$ac_cxx_werror_flag"
14328                          || test ! -s conftest.err'
14329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330   (eval $ac_try) 2>&5
14331   ac_status=$?
14332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); }; } &&
14334          { ac_try='test -s conftest$ac_exeext'
14335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336   (eval $ac_try) 2>&5
14337   ac_status=$?
14338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339   (exit $ac_status); }; }; then
14340   ac_cv_lib_svld_dlopen=yes
14341 else
14342   echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14344
14345 ac_cv_lib_svld_dlopen=no
14346 fi
14347 rm -f conftest.err conftest.$ac_objext \
14348       conftest$ac_exeext conftest.$ac_ext
14349 LIBS=$ac_check_lib_save_LIBS
14350 fi
14351 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14352 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14353 if test $ac_cv_lib_svld_dlopen = yes; then
14354   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14355 else
14356   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14357 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14358 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14359   echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361   ac_check_lib_save_LIBS=$LIBS
14362 LIBS="-ldld  $LIBS"
14363 cat >conftest.$ac_ext <<_ACEOF
14364 /* confdefs.h.  */
14365 _ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h.  */
14369
14370 /* Override any gcc2 internal prototype to avoid an error.  */
14371 #ifdef __cplusplus
14372 extern "C"
14373 #endif
14374 /* We use char because int might match the return type of a gcc2
14375    builtin and then its argument prototype would still apply.  */
14376 char dld_link ();
14377 int
14378 main ()
14379 {
14380 dld_link ();
14381   ;
14382   return 0;
14383 }
14384 _ACEOF
14385 rm -f conftest.$ac_objext conftest$ac_exeext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14387   (eval $ac_link) 2>conftest.er1
14388   ac_status=$?
14389   grep -v '^ *+' conftest.er1 >conftest.err
14390   rm -f conftest.er1
14391   cat conftest.err >&5
14392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393   (exit $ac_status); } &&
14394          { ac_try='test -z "$ac_cxx_werror_flag"
14395                          || test ! -s conftest.err'
14396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397   (eval $ac_try) 2>&5
14398   ac_status=$?
14399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400   (exit $ac_status); }; } &&
14401          { ac_try='test -s conftest$ac_exeext'
14402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403   (eval $ac_try) 2>&5
14404   ac_status=$?
14405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406   (exit $ac_status); }; }; then
14407   ac_cv_lib_dld_dld_link=yes
14408 else
14409   echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14411
14412 ac_cv_lib_dld_dld_link=no
14413 fi
14414 rm -f conftest.err conftest.$ac_objext \
14415       conftest$ac_exeext conftest.$ac_ext
14416 LIBS=$ac_check_lib_save_LIBS
14417 fi
14418 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14419 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14420 if test $ac_cv_lib_dld_dld_link = yes; then
14421   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14422 fi
14423
14424
14425 fi
14426
14427
14428 fi
14429
14430
14431 fi
14432
14433
14434 fi
14435
14436
14437 fi
14438
14439     ;;
14440   esac
14441
14442   if test "x$lt_cv_dlopen" != xno; then
14443     enable_dlopen=yes
14444   else
14445     enable_dlopen=no
14446   fi
14447
14448   case $lt_cv_dlopen in
14449   dlopen)
14450     save_CPPFLAGS="$CPPFLAGS"
14451     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14452
14453     save_LDFLAGS="$LDFLAGS"
14454     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14455
14456     save_LIBS="$LIBS"
14457     LIBS="$lt_cv_dlopen_libs $LIBS"
14458
14459     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14460 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14461 if test "${lt_cv_dlopen_self+set}" = set; then
14462   echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464           if test "$cross_compiling" = yes; then :
14465   lt_cv_dlopen_self=cross
14466 else
14467   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14468   lt_status=$lt_dlunknown
14469   cat > conftest.$ac_ext <<EOF
14470 #line 14470 "configure"
14471 #include "confdefs.h"
14472
14473 #if HAVE_DLFCN_H
14474 #include <dlfcn.h>
14475 #endif
14476
14477 #include <stdio.h>
14478
14479 #ifdef RTLD_GLOBAL
14480 #  define LT_DLGLOBAL           RTLD_GLOBAL
14481 #else
14482 #  ifdef DL_GLOBAL
14483 #    define LT_DLGLOBAL         DL_GLOBAL
14484 #  else
14485 #    define LT_DLGLOBAL         0
14486 #  endif
14487 #endif
14488
14489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14490    find out it does not work in some platform. */
14491 #ifndef LT_DLLAZY_OR_NOW
14492 #  ifdef RTLD_LAZY
14493 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14494 #  else
14495 #    ifdef DL_LAZY
14496 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14497 #    else
14498 #      ifdef RTLD_NOW
14499 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14500 #      else
14501 #        ifdef DL_NOW
14502 #          define LT_DLLAZY_OR_NOW      DL_NOW
14503 #        else
14504 #          define LT_DLLAZY_OR_NOW      0
14505 #        endif
14506 #      endif
14507 #    endif
14508 #  endif
14509 #endif
14510
14511 #ifdef __cplusplus
14512 extern "C" void exit (int);
14513 #endif
14514
14515 void fnord() { int i=42;}
14516 int main ()
14517 {
14518   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14519   int status = $lt_dlunknown;
14520
14521   if (self)
14522     {
14523       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14524       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14525       /* dlclose (self); */
14526     }
14527
14528     exit (status);
14529 }
14530 EOF
14531   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14532   (eval $ac_link) 2>&5
14533   ac_status=$?
14534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14536     (./conftest; exit; ) 2>/dev/null
14537     lt_status=$?
14538     case x$lt_status in
14539       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14540       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14541       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14542     esac
14543   else :
14544     # compilation failed
14545     lt_cv_dlopen_self=no
14546   fi
14547 fi
14548 rm -fr conftest*
14549
14550
14551 fi
14552 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14553 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14554
14555     if test "x$lt_cv_dlopen_self" = xyes; then
14556       LDFLAGS="$LDFLAGS $link_static_flag"
14557       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14558 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14559 if test "${lt_cv_dlopen_self_static+set}" = set; then
14560   echo $ECHO_N "(cached) $ECHO_C" >&6
14561 else
14562           if test "$cross_compiling" = yes; then :
14563   lt_cv_dlopen_self_static=cross
14564 else
14565   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14566   lt_status=$lt_dlunknown
14567   cat > conftest.$ac_ext <<EOF
14568 #line 14568 "configure"
14569 #include "confdefs.h"
14570
14571 #if HAVE_DLFCN_H
14572 #include <dlfcn.h>
14573 #endif
14574
14575 #include <stdio.h>
14576
14577 #ifdef RTLD_GLOBAL
14578 #  define LT_DLGLOBAL           RTLD_GLOBAL
14579 #else
14580 #  ifdef DL_GLOBAL
14581 #    define LT_DLGLOBAL         DL_GLOBAL
14582 #  else
14583 #    define LT_DLGLOBAL         0
14584 #  endif
14585 #endif
14586
14587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14588    find out it does not work in some platform. */
14589 #ifndef LT_DLLAZY_OR_NOW
14590 #  ifdef RTLD_LAZY
14591 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14592 #  else
14593 #    ifdef DL_LAZY
14594 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14595 #    else
14596 #      ifdef RTLD_NOW
14597 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14598 #      else
14599 #        ifdef DL_NOW
14600 #          define LT_DLLAZY_OR_NOW      DL_NOW
14601 #        else
14602 #          define LT_DLLAZY_OR_NOW      0
14603 #        endif
14604 #      endif
14605 #    endif
14606 #  endif
14607 #endif
14608
14609 #ifdef __cplusplus
14610 extern "C" void exit (int);
14611 #endif
14612
14613 void fnord() { int i=42;}
14614 int main ()
14615 {
14616   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14617   int status = $lt_dlunknown;
14618
14619   if (self)
14620     {
14621       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14622       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14623       /* dlclose (self); */
14624     }
14625
14626     exit (status);
14627 }
14628 EOF
14629   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14630   (eval $ac_link) 2>&5
14631   ac_status=$?
14632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14634     (./conftest; exit; ) 2>/dev/null
14635     lt_status=$?
14636     case x$lt_status in
14637       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14638       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14639       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14640     esac
14641   else :
14642     # compilation failed
14643     lt_cv_dlopen_self_static=no
14644   fi
14645 fi
14646 rm -fr conftest*
14647
14648
14649 fi
14650 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14651 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14652     fi
14653
14654     CPPFLAGS="$save_CPPFLAGS"
14655     LDFLAGS="$save_LDFLAGS"
14656     LIBS="$save_LIBS"
14657     ;;
14658   esac
14659
14660   case $lt_cv_dlopen_self in
14661   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14662   *) enable_dlopen_self=unknown ;;
14663   esac
14664
14665   case $lt_cv_dlopen_self_static in
14666   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14667   *) enable_dlopen_self_static=unknown ;;
14668   esac
14669 fi
14670
14671
14672 # The else clause should only fire when bootstrapping the
14673 # libtool distribution, otherwise you forgot to ship ltmain.sh
14674 # with your package, and you will get complaints that there are
14675 # no rules to generate ltmain.sh.
14676 if test -f "$ltmain"; then
14677   # See if we are running on zsh, and set the options which allow our commands through
14678   # without removal of \ escapes.
14679   if test -n "${ZSH_VERSION+set}" ; then
14680     setopt NO_GLOB_SUBST
14681   fi
14682   # Now quote all the things that may contain metacharacters while being
14683   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14684   # variables and quote the copies for generation of the libtool script.
14685   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14686     SED SHELL STRIP \
14687     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14688     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14689     deplibs_check_method reload_flag reload_cmds need_locks \
14690     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14691     lt_cv_sys_global_symbol_to_c_name_address \
14692     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14693     old_postinstall_cmds old_postuninstall_cmds \
14694     compiler_CXX \
14695     CC_CXX \
14696     LD_CXX \
14697     lt_prog_compiler_wl_CXX \
14698     lt_prog_compiler_pic_CXX \
14699     lt_prog_compiler_static_CXX \
14700     lt_prog_compiler_no_builtin_flag_CXX \
14701     export_dynamic_flag_spec_CXX \
14702     thread_safe_flag_spec_CXX \
14703     whole_archive_flag_spec_CXX \
14704     enable_shared_with_static_runtimes_CXX \
14705     old_archive_cmds_CXX \
14706     old_archive_from_new_cmds_CXX \
14707     predep_objects_CXX \
14708     postdep_objects_CXX \
14709     predeps_CXX \
14710     postdeps_CXX \
14711     compiler_lib_search_path_CXX \
14712     archive_cmds_CXX \
14713     archive_expsym_cmds_CXX \
14714     postinstall_cmds_CXX \
14715     postuninstall_cmds_CXX \
14716     old_archive_from_expsyms_cmds_CXX \
14717     allow_undefined_flag_CXX \
14718     no_undefined_flag_CXX \
14719     export_symbols_cmds_CXX \
14720     hardcode_libdir_flag_spec_CXX \
14721     hardcode_libdir_flag_spec_ld_CXX \
14722     hardcode_libdir_separator_CXX \
14723     hardcode_automatic_CXX \
14724     module_cmds_CXX \
14725     module_expsym_cmds_CXX \
14726     lt_cv_prog_compiler_c_o_CXX \
14727     exclude_expsyms_CXX \
14728     include_expsyms_CXX; do
14729
14730     case $var in
14731     old_archive_cmds_CXX | \
14732     old_archive_from_new_cmds_CXX | \
14733     archive_cmds_CXX | \
14734     archive_expsym_cmds_CXX | \
14735     module_cmds_CXX | \
14736     module_expsym_cmds_CXX | \
14737     old_archive_from_expsyms_cmds_CXX | \
14738     export_symbols_cmds_CXX | \
14739     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14740     postinstall_cmds | postuninstall_cmds | \
14741     old_postinstall_cmds | old_postuninstall_cmds | \
14742     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14743       # Double-quote double-evaled strings.
14744       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14745       ;;
14746     *)
14747       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14748       ;;
14749     esac
14750   done
14751
14752   case $lt_echo in
14753   *'\$0 --fallback-echo"')
14754     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14755     ;;
14756   esac
14757
14758 cfgfile="$ofile"
14759
14760   cat <<__EOF__ >> "$cfgfile"
14761 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14762
14763 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14764
14765 # Shell to use when invoking shell scripts.
14766 SHELL=$lt_SHELL
14767
14768 # Whether or not to build shared libraries.
14769 build_libtool_libs=$enable_shared
14770
14771 # Whether or not to build static libraries.
14772 build_old_libs=$enable_static
14773
14774 # Whether or not to add -lc for building shared libraries.
14775 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14776
14777 # Whether or not to disallow shared libs when runtime libs are static
14778 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14779
14780 # Whether or not to optimize for fast installation.
14781 fast_install=$enable_fast_install
14782
14783 # The host system.
14784 host_alias=$host_alias
14785 host=$host
14786
14787 # An echo program that does not interpret backslashes.
14788 echo=$lt_echo
14789
14790 # The archiver.
14791 AR=$lt_AR
14792 AR_FLAGS=$lt_AR_FLAGS
14793
14794 # A C compiler.
14795 LTCC=$lt_LTCC
14796
14797 # A language-specific compiler.
14798 CC=$lt_compiler_CXX
14799
14800 # Is the compiler the GNU C compiler?
14801 with_gcc=$GCC_CXX
14802
14803 # An ERE matcher.
14804 EGREP=$lt_EGREP
14805
14806 # The linker used to build libraries.
14807 LD=$lt_LD_CXX
14808
14809 # Whether we need hard or soft links.
14810 LN_S=$lt_LN_S
14811
14812 # A BSD-compatible nm program.
14813 NM=$lt_NM
14814
14815 # A symbol stripping program
14816 STRIP=$lt_STRIP
14817
14818 # Used to examine libraries when file_magic_cmd begins "file"
14819 MAGIC_CMD=$MAGIC_CMD
14820
14821 # Used on cygwin: DLL creation program.
14822 DLLTOOL="$DLLTOOL"
14823
14824 # Used on cygwin: object dumper.
14825 OBJDUMP="$OBJDUMP"
14826
14827 # Used on cygwin: assembler.
14828 AS="$AS"
14829
14830 # The name of the directory that contains temporary libtool files.
14831 objdir=$objdir
14832
14833 # How to create reloadable object files.
14834 reload_flag=$lt_reload_flag
14835 reload_cmds=$lt_reload_cmds
14836
14837 # How to pass a linker flag through the compiler.
14838 wl=$lt_lt_prog_compiler_wl_CXX
14839
14840 # Object file suffix (normally "o").
14841 objext="$ac_objext"
14842
14843 # Old archive suffix (normally "a").
14844 libext="$libext"
14845
14846 # Shared library suffix (normally ".so").
14847 shrext_cmds='$shrext_cmds'
14848
14849 # Executable file suffix (normally "").
14850 exeext="$exeext"
14851
14852 # Additional compiler flags for building library objects.
14853 pic_flag=$lt_lt_prog_compiler_pic_CXX
14854 pic_mode=$pic_mode
14855
14856 # What is the maximum length of a command?
14857 max_cmd_len=$lt_cv_sys_max_cmd_len
14858
14859 # Does compiler simultaneously support -c and -o options?
14860 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14861
14862 # Must we lock files when doing compilation ?
14863 need_locks=$lt_need_locks
14864
14865 # Do we need the lib prefix for modules?
14866 need_lib_prefix=$need_lib_prefix
14867
14868 # Do we need a version for libraries?
14869 need_version=$need_version
14870
14871 # Whether dlopen is supported.
14872 dlopen_support=$enable_dlopen
14873
14874 # Whether dlopen of programs is supported.
14875 dlopen_self=$enable_dlopen_self
14876
14877 # Whether dlopen of statically linked programs is supported.
14878 dlopen_self_static=$enable_dlopen_self_static
14879
14880 # Compiler flag to prevent dynamic linking.
14881 link_static_flag=$lt_lt_prog_compiler_static_CXX
14882
14883 # Compiler flag to turn off builtin functions.
14884 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14885
14886 # Compiler flag to allow reflexive dlopens.
14887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14888
14889 # Compiler flag to generate shared objects directly from archives.
14890 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14891
14892 # Compiler flag to generate thread-safe objects.
14893 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14894
14895 # Library versioning type.
14896 version_type=$version_type
14897
14898 # Format of library name prefix.
14899 libname_spec=$lt_libname_spec
14900
14901 # List of archive names.  First name is the real one, the rest are links.
14902 # The last name is the one that the linker finds with -lNAME.
14903 library_names_spec=$lt_library_names_spec
14904
14905 # The coded name of the library, if different from the real name.
14906 soname_spec=$lt_soname_spec
14907
14908 # Commands used to build and install an old-style archive.
14909 RANLIB=$lt_RANLIB
14910 old_archive_cmds=$lt_old_archive_cmds_CXX
14911 old_postinstall_cmds=$lt_old_postinstall_cmds
14912 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14913
14914 # Create an old-style archive from a shared archive.
14915 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14916
14917 # Create a temporary old-style archive to link instead of a shared archive.
14918 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14919
14920 # Commands used to build and install a shared archive.
14921 archive_cmds=$lt_archive_cmds_CXX
14922 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14923 postinstall_cmds=$lt_postinstall_cmds
14924 postuninstall_cmds=$lt_postuninstall_cmds
14925
14926 # Commands used to build a loadable module (assumed same as above if empty)
14927 module_cmds=$lt_module_cmds_CXX
14928 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14929
14930 # Commands to strip libraries.
14931 old_striplib=$lt_old_striplib
14932 striplib=$lt_striplib
14933
14934 # Dependencies to place before the objects being linked to create a
14935 # shared library.
14936 predep_objects=$lt_predep_objects_CXX
14937
14938 # Dependencies to place after the objects being linked to create a
14939 # shared library.
14940 postdep_objects=$lt_postdep_objects_CXX
14941
14942 # Dependencies to place before the objects being linked to create a
14943 # shared library.
14944 predeps=$lt_predeps_CXX
14945
14946 # Dependencies to place after the objects being linked to create a
14947 # shared library.
14948 postdeps=$lt_postdeps_CXX
14949
14950 # The library search path used internally by the compiler when linking
14951 # a shared library.
14952 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14953
14954 # Method to check whether dependent libraries are shared objects.
14955 deplibs_check_method=$lt_deplibs_check_method
14956
14957 # Command to use when deplibs_check_method == file_magic.
14958 file_magic_cmd=$lt_file_magic_cmd
14959
14960 # Flag that allows shared libraries with undefined symbols to be built.
14961 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14962
14963 # Flag that forces no undefined symbols.
14964 no_undefined_flag=$lt_no_undefined_flag_CXX
14965
14966 # Commands used to finish a libtool library installation in a directory.
14967 finish_cmds=$lt_finish_cmds
14968
14969 # Same as above, but a single script fragment to be evaled but not shown.
14970 finish_eval=$lt_finish_eval
14971
14972 # Take the output of nm and produce a listing of raw symbols and C names.
14973 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14974
14975 # Transform the output of nm in a proper C declaration
14976 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14977
14978 # Transform the output of nm in a C name address pair
14979 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14980
14981 # This is the shared library runtime path variable.
14982 runpath_var=$runpath_var
14983
14984 # This is the shared library path variable.
14985 shlibpath_var=$shlibpath_var
14986
14987 # Is shlibpath searched before the hard-coded library search path?
14988 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14989
14990 # How to hardcode a shared library path into an executable.
14991 hardcode_action=$hardcode_action_CXX
14992
14993 # Whether we should hardcode library paths into libraries.
14994 hardcode_into_libs=$hardcode_into_libs
14995
14996 # Flag to hardcode \$libdir into a binary during linking.
14997 # This must work even if \$libdir does not exist.
14998 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14999
15000 # If ld is used when linking, flag to hardcode \$libdir into
15001 # a binary during linking. This must work even if \$libdir does
15002 # not exist.
15003 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15004
15005 # Whether we need a single -rpath flag with a separated argument.
15006 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15007
15008 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15009 # resulting binary.
15010 hardcode_direct=$hardcode_direct_CXX
15011
15012 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15013 # resulting binary.
15014 hardcode_minus_L=$hardcode_minus_L_CXX
15015
15016 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15017 # the resulting binary.
15018 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15019
15020 # Set to yes if building a shared library automatically hardcodes DIR into the library
15021 # and all subsequent libraries and executables linked against it.
15022 hardcode_automatic=$hardcode_automatic_CXX
15023
15024 # Variables whose values should be saved in libtool wrapper scripts and
15025 # restored at relink time.
15026 variables_saved_for_relink="$variables_saved_for_relink"
15027
15028 # Whether libtool must link a program against all its dependency libraries.
15029 link_all_deplibs=$link_all_deplibs_CXX
15030
15031 # Compile-time system search path for libraries
15032 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15033
15034 # Run-time system search path for libraries
15035 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15036
15037 # Fix the shell variable \$srcfile for the compiler.
15038 fix_srcfile_path="$fix_srcfile_path_CXX"
15039
15040 # Set to yes if exported symbols are required.
15041 always_export_symbols=$always_export_symbols_CXX
15042
15043 # The commands to list exported symbols.
15044 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15045
15046 # The commands to extract the exported symbol list from a shared archive.
15047 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15048
15049 # Symbols that should not be listed in the preloaded symbols.
15050 exclude_expsyms=$lt_exclude_expsyms_CXX
15051
15052 # Symbols that must always be exported.
15053 include_expsyms=$lt_include_expsyms_CXX
15054
15055 # ### END LIBTOOL TAG CONFIG: $tagname
15056
15057 __EOF__
15058
15059
15060 else
15061   # If there is no Makefile yet, we rely on a make rule to execute
15062   # `config.status --recheck' to rerun these tests and create the
15063   # libtool script then.
15064   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15065   if test -f "$ltmain_in"; then
15066     test -f Makefile && make "$ltmain"
15067   fi
15068 fi
15069
15070
15071 ac_ext=c
15072 ac_cpp='$CPP $CPPFLAGS'
15073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15076
15077 CC=$lt_save_CC
15078 LDCXX=$LD
15079 LD=$lt_save_LD
15080 GCC=$lt_save_GCC
15081 with_gnu_ldcxx=$with_gnu_ld
15082 with_gnu_ld=$lt_save_with_gnu_ld
15083 lt_cv_path_LDCXX=$lt_cv_path_LD
15084 lt_cv_path_LD=$lt_save_path_LD
15085 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15086 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15087
15088         else
15089           tagname=""
15090         fi
15091         ;;
15092
15093       F77)
15094         if test -n "$F77" && test "X$F77" != "Xno"; then
15095
15096 ac_ext=f
15097 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15098 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15099 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15100
15101
15102 archive_cmds_need_lc_F77=no
15103 allow_undefined_flag_F77=
15104 always_export_symbols_F77=no
15105 archive_expsym_cmds_F77=
15106 export_dynamic_flag_spec_F77=
15107 hardcode_direct_F77=no
15108 hardcode_libdir_flag_spec_F77=
15109 hardcode_libdir_flag_spec_ld_F77=
15110 hardcode_libdir_separator_F77=
15111 hardcode_minus_L_F77=no
15112 hardcode_automatic_F77=no
15113 module_cmds_F77=
15114 module_expsym_cmds_F77=
15115 link_all_deplibs_F77=unknown
15116 old_archive_cmds_F77=$old_archive_cmds
15117 no_undefined_flag_F77=
15118 whole_archive_flag_spec_F77=
15119 enable_shared_with_static_runtimes_F77=no
15120
15121 # Source file extension for f77 test sources.
15122 ac_ext=f
15123
15124 # Object file extension for compiled f77 test sources.
15125 objext=o
15126 objext_F77=$objext
15127
15128 # Code to be used in simple compile tests
15129 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15130
15131 # Code to be used in simple link tests
15132 lt_simple_link_test_code="      program t\n      end\n"
15133
15134 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15135
15136 # If no C compiler was specified, use CC.
15137 LTCC=${LTCC-"$CC"}
15138
15139 # Allow CC to be a program name with arguments.
15140 compiler=$CC
15141
15142
15143 # Allow CC to be a program name with arguments.
15144 lt_save_CC="$CC"
15145 CC=${F77-"f77"}
15146 compiler=$CC
15147 compiler_F77=$CC
15148 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15149
15150 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15151 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15152 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15153 echo "${ECHO_T}$can_build_shared" >&6
15154
15155 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15156 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15157 test "$can_build_shared" = "no" && enable_shared=no
15158
15159 # On AIX, shared libraries and static libraries use the same namespace, and
15160 # are all built from PIC.
15161 case "$host_os" in
15162 aix3*)
15163   test "$enable_shared" = yes && enable_static=no
15164   if test -n "$RANLIB"; then
15165     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15166     postinstall_cmds='$RANLIB $lib'
15167   fi
15168   ;;
15169 aix4* | aix5*)
15170   test "$enable_shared" = yes && enable_static=no
15171   ;;
15172 esac
15173 echo "$as_me:$LINENO: result: $enable_shared" >&5
15174 echo "${ECHO_T}$enable_shared" >&6
15175
15176 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15177 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15178 # Make sure either enable_shared or enable_static is yes.
15179 test "$enable_shared" = yes || enable_static=yes
15180 echo "$as_me:$LINENO: result: $enable_static" >&5
15181 echo "${ECHO_T}$enable_static" >&6
15182
15183 test "$ld_shlibs_F77" = no && can_build_shared=no
15184
15185 GCC_F77="$G77"
15186 LD_F77="$LD"
15187
15188 lt_prog_compiler_wl_F77=
15189 lt_prog_compiler_pic_F77=
15190 lt_prog_compiler_static_F77=
15191
15192 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15193 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15194
15195   if test "$GCC" = yes; then
15196     lt_prog_compiler_wl_F77='-Wl,'
15197     lt_prog_compiler_static_F77='-static'
15198
15199     case $host_os in
15200       aix*)
15201       # All AIX code is PIC.
15202       if test "$host_cpu" = ia64; then
15203         # AIX 5 now supports IA64 processor
15204         lt_prog_compiler_static_F77='-Bstatic'
15205       fi
15206       ;;
15207
15208     amigaos*)
15209       # FIXME: we need at least 68020 code to build shared libraries, but
15210       # adding the `-m68020' flag to GCC prevents building anything better,
15211       # like `-m68040'.
15212       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15213       ;;
15214
15215     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15216       # PIC is the default for these OSes.
15217       ;;
15218
15219     mingw* | pw32* | os2*)
15220       # This hack is so that the source file can tell whether it is being
15221       # built for inclusion in a dll (and should export symbols for example).
15222       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15223       ;;
15224
15225     darwin* | rhapsody*)
15226       # PIC is the default on this platform
15227       # Common symbols not allowed in MH_DYLIB files
15228       lt_prog_compiler_pic_F77='-fno-common'
15229       ;;
15230
15231     msdosdjgpp*)
15232       # Just because we use GCC doesn't mean we suddenly get shared libraries
15233       # on systems that don't support them.
15234       lt_prog_compiler_can_build_shared_F77=no
15235       enable_shared=no
15236       ;;
15237
15238     sysv4*MP*)
15239       if test -d /usr/nec; then
15240         lt_prog_compiler_pic_F77=-Kconform_pic
15241       fi
15242       ;;
15243
15244     hpux*)
15245       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15246       # not for PA HP-UX.
15247       case "$host_cpu" in
15248       hppa*64*|ia64*)
15249         # +Z the default
15250         ;;
15251       *)
15252         lt_prog_compiler_pic_F77='-fPIC'
15253         ;;
15254       esac
15255       ;;
15256
15257     *)
15258       lt_prog_compiler_pic_F77='-fPIC'
15259       ;;
15260     esac
15261   else
15262     # PORTME Check for flag to pass linker flags through the system compiler.
15263     case $host_os in
15264     aix*)
15265       lt_prog_compiler_wl_F77='-Wl,'
15266       if test "$host_cpu" = ia64; then
15267         # AIX 5 now supports IA64 processor
15268         lt_prog_compiler_static_F77='-Bstatic'
15269       else
15270         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15271       fi
15272       ;;
15273
15274     mingw* | pw32* | os2*)
15275       # This hack is so that the source file can tell whether it is being
15276       # built for inclusion in a dll (and should export symbols for example).
15277       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15278       ;;
15279
15280     hpux9* | hpux10* | hpux11*)
15281       lt_prog_compiler_wl_F77='-Wl,'
15282       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15283       # not for PA HP-UX.
15284       case "$host_cpu" in
15285       hppa*64*|ia64*)
15286         # +Z the default
15287         ;;
15288       *)
15289         lt_prog_compiler_pic_F77='+Z'
15290         ;;
15291       esac
15292       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15293       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15294       ;;
15295
15296     irix5* | irix6* | nonstopux*)
15297       lt_prog_compiler_wl_F77='-Wl,'
15298       # PIC (with -KPIC) is the default.
15299       lt_prog_compiler_static_F77='-non_shared'
15300       ;;
15301
15302     newsos6)
15303       lt_prog_compiler_pic_F77='-KPIC'
15304       lt_prog_compiler_static_F77='-Bstatic'
15305       ;;
15306
15307     linux*)
15308       case $CC in
15309       icc* | ecc*)
15310         lt_prog_compiler_wl_F77='-Wl,'
15311         lt_prog_compiler_pic_F77='-KPIC'
15312         lt_prog_compiler_static_F77='-static'
15313         ;;
15314       ccc*)
15315         lt_prog_compiler_wl_F77='-Wl,'
15316         # All Alpha code is PIC.
15317         lt_prog_compiler_static_F77='-non_shared'
15318         ;;
15319       esac
15320       ;;
15321
15322     osf3* | osf4* | osf5*)
15323       lt_prog_compiler_wl_F77='-Wl,'
15324       # All OSF/1 code is PIC.
15325       lt_prog_compiler_static_F77='-non_shared'
15326       ;;
15327
15328     sco3.2v5*)
15329       lt_prog_compiler_pic_F77='-Kpic'
15330       lt_prog_compiler_static_F77='-dn'
15331       ;;
15332
15333     solaris*)
15334       lt_prog_compiler_wl_F77='-Wl,'
15335       lt_prog_compiler_pic_F77='-KPIC'
15336       lt_prog_compiler_static_F77='-Bstatic'
15337       ;;
15338
15339     sunos4*)
15340       lt_prog_compiler_wl_F77='-Qoption ld '
15341       lt_prog_compiler_pic_F77='-PIC'
15342       lt_prog_compiler_static_F77='-Bstatic'
15343       ;;
15344
15345     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15346       lt_prog_compiler_wl_F77='-Wl,'
15347       lt_prog_compiler_pic_F77='-KPIC'
15348       lt_prog_compiler_static_F77='-Bstatic'
15349       ;;
15350
15351     sysv4*MP*)
15352       if test -d /usr/nec ;then
15353         lt_prog_compiler_pic_F77='-Kconform_pic'
15354         lt_prog_compiler_static_F77='-Bstatic'
15355       fi
15356       ;;
15357
15358     uts4*)
15359       lt_prog_compiler_pic_F77='-pic'
15360       lt_prog_compiler_static_F77='-Bstatic'
15361       ;;
15362
15363     *)
15364       lt_prog_compiler_can_build_shared_F77=no
15365       ;;
15366     esac
15367   fi
15368
15369 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15370 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15371
15372 #
15373 # Check to make sure the PIC flag actually works.
15374 #
15375 if test -n "$lt_prog_compiler_pic_F77"; then
15376
15377 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15378 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15379 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15380   echo $ECHO_N "(cached) $ECHO_C" >&6
15381 else
15382   lt_prog_compiler_pic_works_F77=no
15383   ac_outfile=conftest.$ac_objext
15384    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15385    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15386    # Insert the option either (1) after the last *FLAGS variable, or
15387    # (2) before a word containing "conftest.", or (3) at the end.
15388    # Note that $ac_compile itself does not contain backslashes and begins
15389    # with a dollar sign (not a hyphen), so the echo should work correctly.
15390    # The option is referenced via a variable to avoid confusing sed.
15391    lt_compile=`echo "$ac_compile" | $SED \
15392    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15393    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15394    -e 's:$: $lt_compiler_flag:'`
15395    (eval echo "\"\$as_me:15395: $lt_compile\"" >&5)
15396    (eval "$lt_compile" 2>conftest.err)
15397    ac_status=$?
15398    cat conftest.err >&5
15399    echo "$as_me:15399: \$? = $ac_status" >&5
15400    if (exit $ac_status) && test -s "$ac_outfile"; then
15401      # The compiler can only warn and ignore the option if not recognized
15402      # So say no if there are warnings
15403      if test ! -s conftest.err; then
15404        lt_prog_compiler_pic_works_F77=yes
15405      fi
15406    fi
15407    $rm conftest*
15408
15409 fi
15410 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15411 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15412
15413 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15414     case $lt_prog_compiler_pic_F77 in
15415      "" | " "*) ;;
15416      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15417      esac
15418 else
15419     lt_prog_compiler_pic_F77=
15420      lt_prog_compiler_can_build_shared_F77=no
15421 fi
15422
15423 fi
15424 case "$host_os" in
15425   # For platforms which do not support PIC, -DPIC is meaningless:
15426   *djgpp*)
15427     lt_prog_compiler_pic_F77=
15428     ;;
15429   *)
15430     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15431     ;;
15432 esac
15433
15434 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15435 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15436 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15437   echo $ECHO_N "(cached) $ECHO_C" >&6
15438 else
15439   lt_cv_prog_compiler_c_o_F77=no
15440    $rm -r conftest 2>/dev/null
15441    mkdir conftest
15442    cd conftest
15443    mkdir out
15444    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15445
15446    lt_compiler_flag="-o out/conftest2.$ac_objext"
15447    # Insert the option either (1) after the last *FLAGS variable, or
15448    # (2) before a word containing "conftest.", or (3) at the end.
15449    # Note that $ac_compile itself does not contain backslashes and begins
15450    # with a dollar sign (not a hyphen), so the echo should work correctly.
15451    lt_compile=`echo "$ac_compile" | $SED \
15452    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15453    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15454    -e 's:$: $lt_compiler_flag:'`
15455    (eval echo "\"\$as_me:15455: $lt_compile\"" >&5)
15456    (eval "$lt_compile" 2>out/conftest.err)
15457    ac_status=$?
15458    cat out/conftest.err >&5
15459    echo "$as_me:15459: \$? = $ac_status" >&5
15460    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15461    then
15462      # The compiler can only warn and ignore the option if not recognized
15463      # So say no if there are warnings
15464      if test ! -s out/conftest.err; then
15465        lt_cv_prog_compiler_c_o_F77=yes
15466      fi
15467    fi
15468    chmod u+w .
15469    $rm conftest*
15470    # SGI C++ compiler will create directory out/ii_files/ for
15471    # template instantiation
15472    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15473    $rm out/* && rmdir out
15474    cd ..
15475    rmdir conftest
15476    $rm conftest*
15477
15478 fi
15479 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15480 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15481
15482
15483 hard_links="nottested"
15484 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15485   # do not overwrite the value of need_locks provided by the user
15486   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15487 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15488   hard_links=yes
15489   $rm conftest*
15490   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15491   touch conftest.a
15492   ln conftest.a conftest.b 2>&5 || hard_links=no
15493   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15494   echo "$as_me:$LINENO: result: $hard_links" >&5
15495 echo "${ECHO_T}$hard_links" >&6
15496   if test "$hard_links" = no; then
15497     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15498 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15499     need_locks=warn
15500   fi
15501 else
15502   need_locks=no
15503 fi
15504
15505 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15506 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15507
15508   runpath_var=
15509   allow_undefined_flag_F77=
15510   enable_shared_with_static_runtimes_F77=no
15511   archive_cmds_F77=
15512   archive_expsym_cmds_F77=
15513   old_archive_From_new_cmds_F77=
15514   old_archive_from_expsyms_cmds_F77=
15515   export_dynamic_flag_spec_F77=
15516   whole_archive_flag_spec_F77=
15517   thread_safe_flag_spec_F77=
15518   hardcode_libdir_flag_spec_F77=
15519   hardcode_libdir_flag_spec_ld_F77=
15520   hardcode_libdir_separator_F77=
15521   hardcode_direct_F77=no
15522   hardcode_minus_L_F77=no
15523   hardcode_shlibpath_var_F77=unsupported
15524   link_all_deplibs_F77=unknown
15525   hardcode_automatic_F77=no
15526   module_cmds_F77=
15527   module_expsym_cmds_F77=
15528   always_export_symbols_F77=no
15529   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15530   # include_expsyms should be a list of space-separated symbols to be *always*
15531   # included in the symbol list
15532   include_expsyms_F77=
15533   # exclude_expsyms can be an extended regexp of symbols to exclude
15534   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15535   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15536   # as well as any symbol that contains `d'.
15537   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15538   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15539   # platforms (ab)use it in PIC code, but their linkers get confused if
15540   # the symbol is explicitly referenced.  Since portable code cannot
15541   # rely on this symbol name, it's probably fine to never include it in
15542   # preloaded symbol tables.
15543   extract_expsyms_cmds=
15544
15545   case $host_os in
15546   cygwin* | mingw* | pw32*)
15547     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15548     # When not using gcc, we currently assume that we are using
15549     # Microsoft Visual C++.
15550     if test "$GCC" != yes; then
15551       with_gnu_ld=no
15552     fi
15553     ;;
15554   openbsd*)
15555     with_gnu_ld=no
15556     ;;
15557   esac
15558
15559   ld_shlibs_F77=yes
15560   if test "$with_gnu_ld" = yes; then
15561     # If archive_cmds runs LD, not CC, wlarc should be empty
15562     wlarc='${wl}'
15563
15564     # See if GNU ld supports shared libraries.
15565     case $host_os in
15566     aix3* | aix4* | aix5*)
15567       # On AIX/PPC, the GNU linker is very broken
15568       if test "$host_cpu" != ia64; then
15569         ld_shlibs_F77=no
15570         cat <<EOF 1>&2
15571
15572 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15573 *** to be unable to reliably create shared libraries on AIX.
15574 *** Therefore, libtool is disabling shared libraries support.  If you
15575 *** really care for shared libraries, you may want to modify your PATH
15576 *** so that a non-GNU linker is found, and then restart.
15577
15578 EOF
15579       fi
15580       ;;
15581
15582     amigaos*)
15583       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)'
15584       hardcode_libdir_flag_spec_F77='-L$libdir'
15585       hardcode_minus_L_F77=yes
15586
15587       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15588       # that the semantics of dynamic libraries on AmigaOS, at least up
15589       # to version 4, is to share data among multiple programs linked
15590       # with the same dynamic library.  Since this doesn't match the
15591       # behavior of shared libraries on other platforms, we can't use
15592       # them.
15593       ld_shlibs_F77=no
15594       ;;
15595
15596     beos*)
15597       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15598         allow_undefined_flag_F77=unsupported
15599         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15600         # support --undefined.  This deserves some investigation.  FIXME
15601         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15602       else
15603         ld_shlibs_F77=no
15604       fi
15605       ;;
15606
15607     cygwin* | mingw* | pw32*)
15608       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15609       # as there is no search path for DLLs.
15610       hardcode_libdir_flag_spec_F77='-L$libdir'
15611       allow_undefined_flag_F77=unsupported
15612       always_export_symbols_F77=no
15613       enable_shared_with_static_runtimes_F77=yes
15614       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15615
15616       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15617         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15618         # If the export-symbols file already is a .def file (1st line
15619         # is EXPORTS), use it as is; otherwise, prepend...
15620         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15621           cp $export_symbols $output_objdir/$soname.def;
15622         else
15623           echo EXPORTS > $output_objdir/$soname.def;
15624           cat $export_symbols >> $output_objdir/$soname.def;
15625         fi~
15626         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15627       else
15628         ld_shlibs=no
15629       fi
15630       ;;
15631
15632     netbsd*)
15633       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15634         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15635         wlarc=
15636       else
15637         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15638         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15639       fi
15640       ;;
15641
15642     solaris* | sysv5*)
15643       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15644         ld_shlibs_F77=no
15645         cat <<EOF 1>&2
15646
15647 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15648 *** create shared libraries on Solaris systems.  Therefore, libtool
15649 *** is disabling shared libraries support.  We urge you to upgrade GNU
15650 *** binutils to release 2.9.1 or newer.  Another option is to modify
15651 *** your PATH or compiler configuration so that the native linker is
15652 *** used, and then restart.
15653
15654 EOF
15655       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15656         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15657         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15658       else
15659         ld_shlibs_F77=no
15660       fi
15661       ;;
15662
15663     sunos4*)
15664       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15665       wlarc=
15666       hardcode_direct_F77=yes
15667       hardcode_shlibpath_var_F77=no
15668       ;;
15669
15670   linux*)
15671     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15672         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15673         archive_cmds_F77="$tmp_archive_cmds"
15674       supports_anon_versioning=no
15675       case `$LD -v 2>/dev/null` in
15676         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15677         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15678         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15679         *\ 2.11.*) ;; # other 2.11 versions
15680         *) supports_anon_versioning=yes ;;
15681       esac
15682       if test $supports_anon_versioning = yes; then
15683         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15684 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15685 $echo "local: *; };" >> $output_objdir/$libname.ver~
15686         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15687       else
15688         archive_expsym_cmds_F77="$tmp_archive_cmds"
15689       fi
15690     else
15691       ld_shlibs_F77=no
15692     fi
15693     ;;
15694
15695     *)
15696       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15697         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15698         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15699       else
15700         ld_shlibs_F77=no
15701       fi
15702       ;;
15703     esac
15704
15705     if test "$ld_shlibs_F77" = yes; then
15706       runpath_var=LD_RUN_PATH
15707       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15708       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15709       # ancient GNU ld didn't support --whole-archive et. al.
15710       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15711         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15712       else
15713         whole_archive_flag_spec_F77=
15714       fi
15715     fi
15716   else
15717     # PORTME fill in a description of your system's linker (not GNU ld)
15718     case $host_os in
15719     aix3*)
15720       allow_undefined_flag_F77=unsupported
15721       always_export_symbols_F77=yes
15722       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'
15723       # Note: this linker hardcodes the directories in LIBPATH if there
15724       # are no directories specified by -L.
15725       hardcode_minus_L_F77=yes
15726       if test "$GCC" = yes && test -z "$link_static_flag"; then
15727         # Neither direct hardcoding nor static linking is supported with a
15728         # broken collect2.
15729         hardcode_direct_F77=unsupported
15730       fi
15731       ;;
15732
15733     aix4* | aix5*)
15734       if test "$host_cpu" = ia64; then
15735         # On IA64, the linker does run time linking by default, so we don't
15736         # have to do anything special.
15737         aix_use_runtimelinking=no
15738         exp_sym_flag='-Bexport'
15739         no_entry_flag=""
15740       else
15741         # If we're using GNU nm, then we don't want the "-C" option.
15742         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15743         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15744           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'
15745         else
15746           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'
15747         fi
15748         aix_use_runtimelinking=no
15749
15750         # Test if we are trying to use run time linking or normal
15751         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15752         # need to do runtime linking.
15753         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15754           for ld_flag in $LDFLAGS; do
15755           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15756             aix_use_runtimelinking=yes
15757             break
15758           fi
15759           done
15760         esac
15761
15762         exp_sym_flag='-bexport'
15763         no_entry_flag='-bnoentry'
15764       fi
15765
15766       # When large executables or shared objects are built, AIX ld can
15767       # have problems creating the table of contents.  If linking a library
15768       # or program results in "error TOC overflow" add -mminimal-toc to
15769       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15770       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15771
15772       archive_cmds_F77=''
15773       hardcode_direct_F77=yes
15774       hardcode_libdir_separator_F77=':'
15775       link_all_deplibs_F77=yes
15776
15777       if test "$GCC" = yes; then
15778         case $host_os in aix4.012|aix4.012.*)
15779         # We only want to do this on AIX 4.2 and lower, the check
15780         # below for broken collect2 doesn't work under 4.3+
15781           collect2name=`${CC} -print-prog-name=collect2`
15782           if test -f "$collect2name" && \
15783            strings "$collect2name" | grep resolve_lib_name >/dev/null
15784           then
15785           # We have reworked collect2
15786           hardcode_direct_F77=yes
15787           else
15788           # We have old collect2
15789           hardcode_direct_F77=unsupported
15790           # It fails to find uninstalled libraries when the uninstalled
15791           # path is not listed in the libpath.  Setting hardcode_minus_L
15792           # to unsupported forces relinking
15793           hardcode_minus_L_F77=yes
15794           hardcode_libdir_flag_spec_F77='-L$libdir'
15795           hardcode_libdir_separator_F77=
15796           fi
15797         esac
15798         shared_flag='-shared'
15799       else
15800         # not using gcc
15801         if test "$host_cpu" = ia64; then
15802         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15803         # chokes on -Wl,-G. The following line is correct:
15804           shared_flag='-G'
15805         else
15806         if test "$aix_use_runtimelinking" = yes; then
15807             shared_flag='${wl}-G'
15808           else
15809             shared_flag='${wl}-bM:SRE'
15810         fi
15811         fi
15812       fi
15813
15814       # It seems that -bexpall does not export symbols beginning with
15815       # underscore (_), so it is better to generate a list of symbols to export.
15816       always_export_symbols_F77=yes
15817       if test "$aix_use_runtimelinking" = yes; then
15818         # Warning - without using the other runtime loading flags (-brtl),
15819         # -berok will link without error, but may produce a broken library.
15820         allow_undefined_flag_F77='-berok'
15821        # Determine the default libpath from the value encoded in an empty executable.
15822        cat >conftest.$ac_ext <<_ACEOF
15823       program main
15824
15825       end
15826 _ACEOF
15827 rm -f conftest.$ac_objext conftest$ac_exeext
15828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15829   (eval $ac_link) 2>conftest.er1
15830   ac_status=$?
15831   grep -v '^ *+' conftest.er1 >conftest.err
15832   rm -f conftest.er1
15833   cat conftest.err >&5
15834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835   (exit $ac_status); } &&
15836          { ac_try='test -z "$ac_f77_werror_flag"
15837                          || test ! -s conftest.err'
15838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839   (eval $ac_try) 2>&5
15840   ac_status=$?
15841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842   (exit $ac_status); }; } &&
15843          { ac_try='test -s conftest$ac_exeext'
15844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845   (eval $ac_try) 2>&5
15846   ac_status=$?
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); }; }; then
15849
15850 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15851 }'`
15852 # Check for a 64-bit object if we didn't find anything.
15853 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; }
15854 }'`; fi
15855 else
15856   echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15858
15859 fi
15860 rm -f conftest.err conftest.$ac_objext \
15861       conftest$ac_exeext conftest.$ac_ext
15862 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15863
15864        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15865         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15866        else
15867         if test "$host_cpu" = ia64; then
15868           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15869           allow_undefined_flag_F77="-z nodefs"
15870           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15871         else
15872          # Determine the default libpath from the value encoded in an empty executable.
15873          cat >conftest.$ac_ext <<_ACEOF
15874       program main
15875
15876       end
15877 _ACEOF
15878 rm -f conftest.$ac_objext conftest$ac_exeext
15879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15880   (eval $ac_link) 2>conftest.er1
15881   ac_status=$?
15882   grep -v '^ *+' conftest.er1 >conftest.err
15883   rm -f conftest.er1
15884   cat conftest.err >&5
15885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886   (exit $ac_status); } &&
15887          { ac_try='test -z "$ac_f77_werror_flag"
15888                          || test ! -s conftest.err'
15889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890   (eval $ac_try) 2>&5
15891   ac_status=$?
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); }; } &&
15894          { ac_try='test -s conftest$ac_exeext'
15895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896   (eval $ac_try) 2>&5
15897   ac_status=$?
15898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899   (exit $ac_status); }; }; then
15900
15901 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15902 }'`
15903 # Check for a 64-bit object if we didn't find anything.
15904 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; }
15905 }'`; fi
15906 else
15907   echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15909
15910 fi
15911 rm -f conftest.err conftest.$ac_objext \
15912       conftest$ac_exeext conftest.$ac_ext
15913 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15914
15915          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15916           # Warning - without using the other run time loading flags,
15917           # -berok will link without error, but may produce a broken library.
15918           no_undefined_flag_F77=' ${wl}-bernotok'
15919           allow_undefined_flag_F77=' ${wl}-berok'
15920           # -bexpall does not export symbols beginning with underscore (_)
15921           always_export_symbols_F77=yes
15922           # Exported symbols can be pulled into shared objects from archives
15923           whole_archive_flag_spec_F77=' '
15924           archive_cmds_need_lc_F77=yes
15925           # This is similar to how AIX traditionally builds it's shared libraries.
15926           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15927         fi
15928       fi
15929       ;;
15930
15931     amigaos*)
15932       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)'
15933       hardcode_libdir_flag_spec_F77='-L$libdir'
15934       hardcode_minus_L_F77=yes
15935       # see comment about different semantics on the GNU ld section
15936       ld_shlibs_F77=no
15937       ;;
15938
15939     bsdi4*)
15940       export_dynamic_flag_spec_F77=-rdynamic
15941       ;;
15942
15943     cygwin* | mingw* | pw32*)
15944       # When not using gcc, we currently assume that we are using
15945       # Microsoft Visual C++.
15946       # hardcode_libdir_flag_spec is actually meaningless, as there is
15947       # no search path for DLLs.
15948       hardcode_libdir_flag_spec_F77=' '
15949       allow_undefined_flag_F77=unsupported
15950       # Tell ltmain to make .lib files, not .a files.
15951       libext=lib
15952       # Tell ltmain to make .dll files, not .so files.
15953       shrext_cmds=".dll"
15954       # FIXME: Setting linknames here is a bad hack.
15955       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15956       # The linker will automatically build a .lib file if we build a DLL.
15957       old_archive_From_new_cmds_F77='true'
15958       # FIXME: Should let the user specify the lib program.
15959       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15960       fix_srcfile_path='`cygpath -w "$srcfile"`'
15961       enable_shared_with_static_runtimes_F77=yes
15962       ;;
15963
15964     darwin* | rhapsody*)
15965     if test "$GXX" = yes ; then
15966       archive_cmds_need_lc_F77=no
15967       case "$host_os" in
15968       rhapsody* | darwin1.[012])
15969         allow_undefined_flag_F77='-undefined suppress'
15970         ;;
15971       *) # Darwin 1.3 on
15972       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15973         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15974       else
15975         case ${MACOSX_DEPLOYMENT_TARGET} in
15976           10.[012])
15977             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15978             ;;
15979           10.*)
15980             allow_undefined_flag_F77='-undefined dynamic_lookup'
15981             ;;
15982         esac
15983       fi
15984         ;;
15985       esac
15986         lt_int_apple_cc_single_mod=no
15987         output_verbose_link_cmd='echo'
15988         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15989           lt_int_apple_cc_single_mod=yes
15990         fi
15991         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15992           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15993         else
15994         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
15995       fi
15996       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15997       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15998         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15999           archive_expsym_cmds_F77='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}'
16000         else
16001           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16002         fi
16003           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}'
16004       hardcode_direct_F77=no
16005       hardcode_automatic_F77=yes
16006       hardcode_shlibpath_var_F77=unsupported
16007       whole_archive_flag_spec_F77='-all_load $convenience'
16008       link_all_deplibs_F77=yes
16009     else
16010       ld_shlibs_F77=no
16011     fi
16012       ;;
16013
16014     dgux*)
16015       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16016       hardcode_libdir_flag_spec_F77='-L$libdir'
16017       hardcode_shlibpath_var_F77=no
16018       ;;
16019
16020     freebsd1*)
16021       ld_shlibs_F77=no
16022       ;;
16023
16024     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16025     # support.  Future versions do this automatically, but an explicit c++rt0.o
16026     # does not break anything, and helps significantly (at the cost of a little
16027     # extra space).
16028     freebsd2.2*)
16029       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16030       hardcode_libdir_flag_spec_F77='-R$libdir'
16031       hardcode_direct_F77=yes
16032       hardcode_shlibpath_var_F77=no
16033       ;;
16034
16035     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16036     freebsd2*)
16037       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16038       hardcode_direct_F77=yes
16039       hardcode_minus_L_F77=yes
16040       hardcode_shlibpath_var_F77=no
16041       ;;
16042
16043     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16044     freebsd* | kfreebsd*-gnu)
16045       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16046       hardcode_libdir_flag_spec_F77='-R$libdir'
16047       hardcode_direct_F77=yes
16048       hardcode_shlibpath_var_F77=no
16049       ;;
16050
16051     hpux9*)
16052       if test "$GCC" = yes; then
16053         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'
16054       else
16055         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'
16056       fi
16057       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16058       hardcode_libdir_separator_F77=:
16059       hardcode_direct_F77=yes
16060
16061       # hardcode_minus_L: Not really in the search PATH,
16062       # but as the default location of the library.
16063       hardcode_minus_L_F77=yes
16064       export_dynamic_flag_spec_F77='${wl}-E'
16065       ;;
16066
16067     hpux10* | hpux11*)
16068       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16069         case "$host_cpu" in
16070         hppa*64*|ia64*)
16071           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16072           ;;
16073         *)
16074           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16075           ;;
16076         esac
16077       else
16078         case "$host_cpu" in
16079         hppa*64*|ia64*)
16080           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16081           ;;
16082         *)
16083           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16084           ;;
16085         esac
16086       fi
16087       if test "$with_gnu_ld" = no; then
16088         case "$host_cpu" in
16089         hppa*64*)
16090           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16091           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16092           hardcode_libdir_separator_F77=:
16093           hardcode_direct_F77=no
16094           hardcode_shlibpath_var_F77=no
16095           ;;
16096         ia64*)
16097           hardcode_libdir_flag_spec_F77='-L$libdir'
16098           hardcode_direct_F77=no
16099           hardcode_shlibpath_var_F77=no
16100
16101           # hardcode_minus_L: Not really in the search PATH,
16102           # but as the default location of the library.
16103           hardcode_minus_L_F77=yes
16104           ;;
16105         *)
16106           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16107           hardcode_libdir_separator_F77=:
16108           hardcode_direct_F77=yes
16109           export_dynamic_flag_spec_F77='${wl}-E'
16110
16111           # hardcode_minus_L: Not really in the search PATH,
16112           # but as the default location of the library.
16113           hardcode_minus_L_F77=yes
16114           ;;
16115         esac
16116       fi
16117       ;;
16118
16119     irix5* | irix6* | nonstopux*)
16120       if test "$GCC" = yes; then
16121         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'
16122       else
16123         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'
16124         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16125       fi
16126       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16127       hardcode_libdir_separator_F77=:
16128       link_all_deplibs_F77=yes
16129       ;;
16130
16131     netbsd*)
16132       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16133         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16134       else
16135         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16136       fi
16137       hardcode_libdir_flag_spec_F77='-R$libdir'
16138       hardcode_direct_F77=yes
16139       hardcode_shlibpath_var_F77=no
16140       ;;
16141
16142     newsos6)
16143       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16144       hardcode_direct_F77=yes
16145       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16146       hardcode_libdir_separator_F77=:
16147       hardcode_shlibpath_var_F77=no
16148       ;;
16149
16150     openbsd*)
16151       hardcode_direct_F77=yes
16152       hardcode_shlibpath_var_F77=no
16153       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16154         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16155         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16156         export_dynamic_flag_spec_F77='${wl}-E'
16157       else
16158        case $host_os in
16159          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16160            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16161            hardcode_libdir_flag_spec_F77='-R$libdir'
16162            ;;
16163          *)
16164            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16165            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16166            ;;
16167        esac
16168       fi
16169       ;;
16170
16171     os2*)
16172       hardcode_libdir_flag_spec_F77='-L$libdir'
16173       hardcode_minus_L_F77=yes
16174       allow_undefined_flag_F77=unsupported
16175       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'
16176       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16177       ;;
16178
16179     osf3*)
16180       if test "$GCC" = yes; then
16181         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16182         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'
16183       else
16184         allow_undefined_flag_F77=' -expect_unresolved \*'
16185         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'
16186       fi
16187       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16188       hardcode_libdir_separator_F77=:
16189       ;;
16190
16191     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16192       if test "$GCC" = yes; then
16193         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16194         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'
16195         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16196       else
16197         allow_undefined_flag_F77=' -expect_unresolved \*'
16198         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'
16199         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~
16200         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16201
16202         # Both c and cxx compiler support -rpath directly
16203         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16204       fi
16205       hardcode_libdir_separator_F77=:
16206       ;;
16207
16208     sco3.2v5*)
16209       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16210       hardcode_shlibpath_var_F77=no
16211       export_dynamic_flag_spec_F77='${wl}-Bexport'
16212       runpath_var=LD_RUN_PATH
16213       hardcode_runpath_var=yes
16214       ;;
16215
16216     solaris*)
16217       no_undefined_flag_F77=' -z text'
16218       if test "$GCC" = yes; then
16219         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16220         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16221           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16222       else
16223         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16224         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16225         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16226       fi
16227       hardcode_libdir_flag_spec_F77='-R$libdir'
16228       hardcode_shlibpath_var_F77=no
16229       case $host_os in
16230       solaris2.[0-5] | solaris2.[0-5].*) ;;
16231       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16232         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16233       esac
16234       link_all_deplibs_F77=yes
16235       ;;
16236
16237     sunos4*)
16238       if test "x$host_vendor" = xsequent; then
16239         # Use $CC to link under sequent, because it throws in some extra .o
16240         # files that make .init and .fini sections work.
16241         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16242       else
16243         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16244       fi
16245       hardcode_libdir_flag_spec_F77='-L$libdir'
16246       hardcode_direct_F77=yes
16247       hardcode_minus_L_F77=yes
16248       hardcode_shlibpath_var_F77=no
16249       ;;
16250
16251     sysv4)
16252       case $host_vendor in
16253         sni)
16254           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16255           hardcode_direct_F77=yes # is this really true???
16256         ;;
16257         siemens)
16258           ## LD is ld it makes a PLAMLIB
16259           ## CC just makes a GrossModule.
16260           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16261           reload_cmds_F77='$CC -r -o $output$reload_objs'
16262           hardcode_direct_F77=no
16263         ;;
16264         motorola)
16265           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16266           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16267         ;;
16268       esac
16269       runpath_var='LD_RUN_PATH'
16270       hardcode_shlibpath_var_F77=no
16271       ;;
16272
16273     sysv4.3*)
16274       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16275       hardcode_shlibpath_var_F77=no
16276       export_dynamic_flag_spec_F77='-Bexport'
16277       ;;
16278
16279     sysv4*MP*)
16280       if test -d /usr/nec; then
16281         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16282         hardcode_shlibpath_var_F77=no
16283         runpath_var=LD_RUN_PATH
16284         hardcode_runpath_var=yes
16285         ld_shlibs_F77=yes
16286       fi
16287       ;;
16288
16289     sysv4.2uw2*)
16290       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16291       hardcode_direct_F77=yes
16292       hardcode_minus_L_F77=no
16293       hardcode_shlibpath_var_F77=no
16294       hardcode_runpath_var=yes
16295       runpath_var=LD_RUN_PATH
16296       ;;
16297
16298    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16299       no_undefined_flag_F77='${wl}-z ${wl}text'
16300       if test "$GCC" = yes; then
16301         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16302       else
16303         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16304       fi
16305       runpath_var='LD_RUN_PATH'
16306       hardcode_shlibpath_var_F77=no
16307       ;;
16308
16309     sysv5*)
16310       no_undefined_flag_F77=' -z text'
16311       # $CC -shared without GNU ld will not create a library from C++
16312       # object files and a static libstdc++, better avoid it by now
16313       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16314       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16315                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16316       hardcode_libdir_flag_spec_F77=
16317       hardcode_shlibpath_var_F77=no
16318       runpath_var='LD_RUN_PATH'
16319       ;;
16320
16321     uts4*)
16322       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16323       hardcode_libdir_flag_spec_F77='-L$libdir'
16324       hardcode_shlibpath_var_F77=no
16325       ;;
16326
16327     *)
16328       ld_shlibs_F77=no
16329       ;;
16330     esac
16331   fi
16332
16333 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16334 echo "${ECHO_T}$ld_shlibs_F77" >&6
16335 test "$ld_shlibs_F77" = no && can_build_shared=no
16336
16337 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16338 if test "$GCC" = yes; then
16339   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16340 fi
16341
16342 #
16343 # Do we need to explicitly link libc?
16344 #
16345 case "x$archive_cmds_need_lc_F77" in
16346 x|xyes)
16347   # Assume -lc should be added
16348   archive_cmds_need_lc_F77=yes
16349
16350   if test "$enable_shared" = yes && test "$GCC" = yes; then
16351     case $archive_cmds_F77 in
16352     *'~'*)
16353       # FIXME: we may have to deal with multi-command sequences.
16354       ;;
16355     '$CC '*)
16356       # Test whether the compiler implicitly links with -lc since on some
16357       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16358       # to ld, don't add -lc before -lgcc.
16359       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16360 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16361       $rm conftest*
16362       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16363
16364       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16365   (eval $ac_compile) 2>&5
16366   ac_status=$?
16367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); } 2>conftest.err; then
16369         soname=conftest
16370         lib=conftest
16371         libobjs=conftest.$ac_objext
16372         deplibs=
16373         wl=$lt_prog_compiler_wl_F77
16374         compiler_flags=-v
16375         linker_flags=-v
16376         verstring=
16377         output_objdir=.
16378         libname=conftest
16379         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16380         allow_undefined_flag_F77=
16381         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16382   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16383   ac_status=$?
16384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385   (exit $ac_status); }
16386         then
16387           archive_cmds_need_lc_F77=no
16388         else
16389           archive_cmds_need_lc_F77=yes
16390         fi
16391         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16392       else
16393         cat conftest.err 1>&5
16394       fi
16395       $rm conftest*
16396       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16397 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16398       ;;
16399     esac
16400   fi
16401   ;;
16402 esac
16403
16404 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16405 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16406 library_names_spec=
16407 libname_spec='lib$name'
16408 soname_spec=
16409 shrext_cmds=".so"
16410 postinstall_cmds=
16411 postuninstall_cmds=
16412 finish_cmds=
16413 finish_eval=
16414 shlibpath_var=
16415 shlibpath_overrides_runpath=unknown
16416 version_type=none
16417 dynamic_linker="$host_os ld.so"
16418 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16419 if test "$GCC" = yes; then
16420   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16421   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16422     # if the path contains ";" then we assume it to be the separator
16423     # otherwise default to the standard path separator (i.e. ":") - it is
16424     # assumed that no part of a normal pathname contains ";" but that should
16425     # okay in the real world where ";" in dirpaths is itself problematic.
16426     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16427   else
16428     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16429   fi
16430 else
16431   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16432 fi
16433 need_lib_prefix=unknown
16434 hardcode_into_libs=no
16435
16436 # when you set need_version to no, make sure it does not cause -set_version
16437 # flags to be left without arguments
16438 need_version=unknown
16439
16440 case $host_os in
16441 aix3*)
16442   version_type=linux
16443   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16444   shlibpath_var=LIBPATH
16445
16446   # AIX 3 has no versioning support, so we append a major version to the name.
16447   soname_spec='${libname}${release}${shared_ext}$major'
16448   ;;
16449
16450 aix4* | aix5*)
16451   version_type=linux
16452   need_lib_prefix=no
16453   need_version=no
16454   hardcode_into_libs=yes
16455   if test "$host_cpu" = ia64; then
16456     # AIX 5 supports IA64
16457     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16458     shlibpath_var=LD_LIBRARY_PATH
16459   else
16460     # With GCC up to 2.95.x, collect2 would create an import file
16461     # for dependence libraries.  The import file would start with
16462     # the line `#! .'.  This would cause the generated library to
16463     # depend on `.', always an invalid library.  This was fixed in
16464     # development snapshots of GCC prior to 3.0.
16465     case $host_os in
16466       aix4 | aix4.[01] | aix4.[01].*)
16467       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16468            echo ' yes '
16469            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16470         :
16471       else
16472         can_build_shared=no
16473       fi
16474       ;;
16475     esac
16476     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16477     # soname into executable. Probably we can add versioning support to
16478     # collect2, so additional links can be useful in future.
16479     if test "$aix_use_runtimelinking" = yes; then
16480       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16481       # instead of lib<name>.a to let people know that these are not
16482       # typical AIX shared libraries.
16483       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16484     else
16485       # We preserve .a as extension for shared libraries through AIX4.2
16486       # and later when we are not doing run time linking.
16487       library_names_spec='${libname}${release}.a $libname.a'
16488       soname_spec='${libname}${release}${shared_ext}$major'
16489     fi
16490     shlibpath_var=LIBPATH
16491   fi
16492   ;;
16493
16494 amigaos*)
16495   library_names_spec='$libname.ixlibrary $libname.a'
16496   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16497   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'
16498   ;;
16499
16500 beos*)
16501   library_names_spec='${libname}${shared_ext}'
16502   dynamic_linker="$host_os ld.so"
16503   shlibpath_var=LIBRARY_PATH
16504   ;;
16505
16506 bsdi4*)
16507   version_type=linux
16508   need_version=no
16509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16510   soname_spec='${libname}${release}${shared_ext}$major'
16511   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16512   shlibpath_var=LD_LIBRARY_PATH
16513   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16514   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16515   # the default ld.so.conf also contains /usr/contrib/lib and
16516   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16517   # libtool to hard-code these into programs
16518   ;;
16519
16520 cygwin* | mingw* | pw32*)
16521   version_type=windows
16522   shrext_cmds=".dll"
16523   need_version=no
16524   need_lib_prefix=no
16525
16526   case $GCC,$host_os in
16527   yes,cygwin* | yes,mingw* | yes,pw32*)
16528     library_names_spec='$libname.dll.a'
16529     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16530     postinstall_cmds='base_file=`basename \${file}`~
16531       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16532       dldir=$destdir/`dirname \$dlpath`~
16533       test -d \$dldir || mkdir -p \$dldir~
16534       $install_prog $dir/$dlname \$dldir/$dlname'
16535     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16536       dlpath=$dir/\$dldll~
16537        $rm \$dlpath'
16538     shlibpath_overrides_runpath=yes
16539
16540     case $host_os in
16541     cygwin*)
16542       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16543       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16544       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16545       ;;
16546     mingw*)
16547       # MinGW DLLs use traditional 'lib' prefix
16548       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16549       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16550       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16551         # It is most probably a Windows format PATH printed by
16552         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16553         # path with ; separators, and with drive letters. We can handle the
16554         # drive letters (cygwin fileutils understands them), so leave them,
16555         # especially as we might pass files found there to a mingw objdump,
16556         # which wouldn't understand a cygwinified path. Ahh.
16557         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16558       else
16559         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16560       fi
16561       ;;
16562     pw32*)
16563       # pw32 DLLs use 'pw' prefix rather than 'lib'
16564       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16565       ;;
16566     esac
16567     ;;
16568
16569   *)
16570     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16571     ;;
16572   esac
16573   dynamic_linker='Win32 ld.exe'
16574   # FIXME: first we should search . and the directory the executable is in
16575   shlibpath_var=PATH
16576   ;;
16577
16578 darwin* | rhapsody*)
16579   dynamic_linker="$host_os dyld"
16580   version_type=darwin
16581   need_lib_prefix=no
16582   need_version=no
16583   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16584   soname_spec='${libname}${release}${major}$shared_ext'
16585   shlibpath_overrides_runpath=yes
16586   shlibpath_var=DYLD_LIBRARY_PATH
16587   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16588   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16589   if test "$GCC" = yes; then
16590     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"`
16591   else
16592     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16593   fi
16594   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16595   ;;
16596
16597 dgux*)
16598   version_type=linux
16599   need_lib_prefix=no
16600   need_version=no
16601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16602   soname_spec='${libname}${release}${shared_ext}$major'
16603   shlibpath_var=LD_LIBRARY_PATH
16604   ;;
16605
16606 freebsd1*)
16607   dynamic_linker=no
16608   ;;
16609
16610 kfreebsd*-gnu)
16611   version_type=linux
16612   need_lib_prefix=no
16613   need_version=no
16614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16615   soname_spec='${libname}${release}${shared_ext}$major'
16616   shlibpath_var=LD_LIBRARY_PATH
16617   shlibpath_overrides_runpath=no
16618   hardcode_into_libs=yes
16619   dynamic_linker='GNU ld.so'
16620   ;;
16621
16622 freebsd*)
16623   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16624   version_type=freebsd-$objformat
16625   case $version_type in
16626     freebsd-elf*)
16627       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16628       need_version=no
16629       need_lib_prefix=no
16630       ;;
16631     freebsd-*)
16632       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16633       need_version=yes
16634       ;;
16635   esac
16636   shlibpath_var=LD_LIBRARY_PATH
16637   case $host_os in
16638   freebsd2*)
16639     shlibpath_overrides_runpath=yes
16640     ;;
16641   freebsd3.01* | freebsdelf3.01*)
16642     shlibpath_overrides_runpath=yes
16643     hardcode_into_libs=yes
16644     ;;
16645   *) # from 3.2 on
16646     shlibpath_overrides_runpath=no
16647     hardcode_into_libs=yes
16648     ;;
16649   esac
16650   ;;
16651
16652 gnu*)
16653   version_type=linux
16654   need_lib_prefix=no
16655   need_version=no
16656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16657   soname_spec='${libname}${release}${shared_ext}$major'
16658   shlibpath_var=LD_LIBRARY_PATH
16659   hardcode_into_libs=yes
16660   ;;
16661
16662 hpux9* | hpux10* | hpux11*)
16663   # Give a soname corresponding to the major version so that dld.sl refuses to
16664   # link against other versions.
16665   version_type=sunos
16666   need_lib_prefix=no
16667   need_version=no
16668   case "$host_cpu" in
16669   ia64*)
16670     shrext_cmds='.so'
16671     hardcode_into_libs=yes
16672     dynamic_linker="$host_os dld.so"
16673     shlibpath_var=LD_LIBRARY_PATH
16674     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16675     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16676     soname_spec='${libname}${release}${shared_ext}$major'
16677     if test "X$HPUX_IA64_MODE" = X32; then
16678       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16679     else
16680       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16681     fi
16682     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16683     ;;
16684    hppa*64*)
16685      shrext_cmds='.sl'
16686      hardcode_into_libs=yes
16687      dynamic_linker="$host_os dld.sl"
16688      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16689      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16690      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16691      soname_spec='${libname}${release}${shared_ext}$major'
16692      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16693      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16694      ;;
16695    *)
16696     shrext_cmds='.sl'
16697     dynamic_linker="$host_os dld.sl"
16698     shlibpath_var=SHLIB_PATH
16699     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16700     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16701     soname_spec='${libname}${release}${shared_ext}$major'
16702     ;;
16703   esac
16704   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16705   postinstall_cmds='chmod 555 $lib'
16706   ;;
16707
16708 irix5* | irix6* | nonstopux*)
16709   case $host_os in
16710     nonstopux*) version_type=nonstopux ;;
16711     *)
16712         if test "$lt_cv_prog_gnu_ld" = yes; then
16713                 version_type=linux
16714         else
16715                 version_type=irix
16716         fi ;;
16717   esac
16718   need_lib_prefix=no
16719   need_version=no
16720   soname_spec='${libname}${release}${shared_ext}$major'
16721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16722   case $host_os in
16723   irix5* | nonstopux*)
16724     libsuff= shlibsuff=
16725     ;;
16726   *)
16727     case $LD in # libtool.m4 will add one of these switches to LD
16728     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16729       libsuff= shlibsuff= libmagic=32-bit;;
16730     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16731       libsuff=32 shlibsuff=N32 libmagic=N32;;
16732     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16733       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16734     *) libsuff= shlibsuff= libmagic=never-match;;
16735     esac
16736     ;;
16737   esac
16738   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16739   shlibpath_overrides_runpath=no
16740   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16741   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16742   hardcode_into_libs=yes
16743   ;;
16744
16745 # No shared lib support for Linux oldld, aout, or coff.
16746 linux*oldld* | linux*aout* | linux*coff*)
16747   dynamic_linker=no
16748   ;;
16749
16750 # This must be Linux ELF.
16751 linux*)
16752   version_type=linux
16753   need_lib_prefix=no
16754   need_version=no
16755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16756   soname_spec='${libname}${release}${shared_ext}$major'
16757   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16758   shlibpath_var=LD_LIBRARY_PATH
16759   shlibpath_overrides_runpath=no
16760   # This implies no fast_install, which is unacceptable.
16761   # Some rework will be needed to allow for fast_install
16762   # before this can be enabled.
16763   hardcode_into_libs=yes
16764
16765   # find out which ABI we are using
16766   libsuff=
16767   case "$host_cpu" in
16768   x86_64*|s390x*|powerpc64*)
16769     echo '#line 16769 "configure"' > conftest.$ac_ext
16770     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16771   (eval $ac_compile) 2>&5
16772   ac_status=$?
16773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774   (exit $ac_status); }; then
16775       case `/usr/bin/file conftest.$ac_objext` in
16776       *64-bit*)
16777         libsuff=64
16778         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16779         ;;
16780       esac
16781     fi
16782     rm -rf conftest*
16783     ;;
16784   esac
16785
16786   # Append ld.so.conf contents to the search path
16787   if test -f /etc/ld.so.conf; then
16788     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16789     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16790   fi
16791
16792   # We used to test for /lib/ld.so.1 and disable shared libraries on
16793   # powerpc, because MkLinux only supported shared libraries with the
16794   # GNU dynamic linker.  Since this was broken with cross compilers,
16795   # most powerpc-linux boxes support dynamic linking these days and
16796   # people can always --disable-shared, the test was removed, and we
16797   # assume the GNU/Linux dynamic linker is in use.
16798   dynamic_linker='GNU/Linux ld.so'
16799   ;;
16800
16801 knetbsd*-gnu)
16802   version_type=linux
16803   need_lib_prefix=no
16804   need_version=no
16805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16806   soname_spec='${libname}${release}${shared_ext}$major'
16807   shlibpath_var=LD_LIBRARY_PATH
16808   shlibpath_overrides_runpath=no
16809   hardcode_into_libs=yes
16810   dynamic_linker='GNU ld.so'
16811   ;;
16812
16813 netbsd*)
16814   version_type=sunos
16815   need_lib_prefix=no
16816   need_version=no
16817   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16818     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16819     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16820     dynamic_linker='NetBSD (a.out) ld.so'
16821   else
16822     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16823     soname_spec='${libname}${release}${shared_ext}$major'
16824     dynamic_linker='NetBSD ld.elf_so'
16825   fi
16826   shlibpath_var=LD_LIBRARY_PATH
16827   shlibpath_overrides_runpath=yes
16828   hardcode_into_libs=yes
16829   ;;
16830
16831 newsos6)
16832   version_type=linux
16833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16834   shlibpath_var=LD_LIBRARY_PATH
16835   shlibpath_overrides_runpath=yes
16836   ;;
16837
16838 nto-qnx*)
16839   version_type=linux
16840   need_lib_prefix=no
16841   need_version=no
16842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843   soname_spec='${libname}${release}${shared_ext}$major'
16844   shlibpath_var=LD_LIBRARY_PATH
16845   shlibpath_overrides_runpath=yes
16846   ;;
16847
16848 openbsd*)
16849   version_type=sunos
16850   need_lib_prefix=no
16851   need_version=yes
16852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16853   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16854   shlibpath_var=LD_LIBRARY_PATH
16855   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16856     case $host_os in
16857       openbsd2.[89] | openbsd2.[89].*)
16858         shlibpath_overrides_runpath=no
16859         ;;
16860       *)
16861         shlibpath_overrides_runpath=yes
16862         ;;
16863       esac
16864   else
16865     shlibpath_overrides_runpath=yes
16866   fi
16867   ;;
16868
16869 os2*)
16870   libname_spec='$name'
16871   shrext_cmds=".dll"
16872   need_lib_prefix=no
16873   library_names_spec='$libname${shared_ext} $libname.a'
16874   dynamic_linker='OS/2 ld.exe'
16875   shlibpath_var=LIBPATH
16876   ;;
16877
16878 osf3* | osf4* | osf5*)
16879   version_type=osf
16880   need_lib_prefix=no
16881   need_version=no
16882   soname_spec='${libname}${release}${shared_ext}$major'
16883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16884   shlibpath_var=LD_LIBRARY_PATH
16885   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16886   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16887   ;;
16888
16889 sco3.2v5*)
16890   version_type=osf
16891   soname_spec='${libname}${release}${shared_ext}$major'
16892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16893   shlibpath_var=LD_LIBRARY_PATH
16894   ;;
16895
16896 solaris*)
16897   version_type=linux
16898   need_lib_prefix=no
16899   need_version=no
16900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16901   soname_spec='${libname}${release}${shared_ext}$major'
16902   shlibpath_var=LD_LIBRARY_PATH
16903   shlibpath_overrides_runpath=yes
16904   hardcode_into_libs=yes
16905   # ldd complains unless libraries are executable
16906   postinstall_cmds='chmod +x $lib'
16907   ;;
16908
16909 sunos4*)
16910   version_type=sunos
16911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16912   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16913   shlibpath_var=LD_LIBRARY_PATH
16914   shlibpath_overrides_runpath=yes
16915   if test "$with_gnu_ld" = yes; then
16916     need_lib_prefix=no
16917   fi
16918   need_version=yes
16919   ;;
16920
16921 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16922   version_type=linux
16923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16924   soname_spec='${libname}${release}${shared_ext}$major'
16925   shlibpath_var=LD_LIBRARY_PATH
16926   case $host_vendor in
16927     sni)
16928       shlibpath_overrides_runpath=no
16929       need_lib_prefix=no
16930       export_dynamic_flag_spec='${wl}-Blargedynsym'
16931       runpath_var=LD_RUN_PATH
16932       ;;
16933     siemens)
16934       need_lib_prefix=no
16935       ;;
16936     motorola)
16937       need_lib_prefix=no
16938       need_version=no
16939       shlibpath_overrides_runpath=no
16940       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16941       ;;
16942   esac
16943   ;;
16944
16945 sysv4*MP*)
16946   if test -d /usr/nec ;then
16947     version_type=linux
16948     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16949     soname_spec='$libname${shared_ext}.$major'
16950     shlibpath_var=LD_LIBRARY_PATH
16951   fi
16952   ;;
16953
16954 uts4*)
16955   version_type=linux
16956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16957   soname_spec='${libname}${release}${shared_ext}$major'
16958   shlibpath_var=LD_LIBRARY_PATH
16959   ;;
16960
16961 *)
16962   dynamic_linker=no
16963   ;;
16964 esac
16965 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16966 echo "${ECHO_T}$dynamic_linker" >&6
16967 test "$dynamic_linker" = no && can_build_shared=no
16968
16969 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16970 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16971 hardcode_action_F77=
16972 if test -n "$hardcode_libdir_flag_spec_F77" || \
16973    test -n "$runpath_var F77" || \
16974    test "X$hardcode_automatic_F77"="Xyes" ; then
16975
16976   # We can hardcode non-existant directories.
16977   if test "$hardcode_direct_F77" != no &&
16978      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16979      # have to relink, otherwise we might link with an installed library
16980      # when we should be linking with a yet-to-be-installed one
16981      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16982      test "$hardcode_minus_L_F77" != no; then
16983     # Linking always hardcodes the temporary library directory.
16984     hardcode_action_F77=relink
16985   else
16986     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16987     hardcode_action_F77=immediate
16988   fi
16989 else
16990   # We cannot hardcode anything, or else we can only hardcode existing
16991   # directories.
16992   hardcode_action_F77=unsupported
16993 fi
16994 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16995 echo "${ECHO_T}$hardcode_action_F77" >&6
16996
16997 if test "$hardcode_action_F77" = relink; then
16998   # Fast installation is not supported
16999   enable_fast_install=no
17000 elif test "$shlibpath_overrides_runpath" = yes ||
17001      test "$enable_shared" = no; then
17002   # Fast installation is not necessary
17003   enable_fast_install=needless
17004 fi
17005
17006 striplib=
17007 old_striplib=
17008 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17009 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17010 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17011   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17012   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17013   echo "$as_me:$LINENO: result: yes" >&5
17014 echo "${ECHO_T}yes" >&6
17015 else
17016 # FIXME - insert some real tests, host_os isn't really good enough
17017   case $host_os in
17018    darwin*)
17019        if test -n "$STRIP" ; then
17020          striplib="$STRIP -x"
17021          echo "$as_me:$LINENO: result: yes" >&5
17022 echo "${ECHO_T}yes" >&6
17023        else
17024   echo "$as_me:$LINENO: result: no" >&5
17025 echo "${ECHO_T}no" >&6
17026 fi
17027        ;;
17028    *)
17029   echo "$as_me:$LINENO: result: no" >&5
17030 echo "${ECHO_T}no" >&6
17031     ;;
17032   esac
17033 fi
17034
17035
17036
17037 # The else clause should only fire when bootstrapping the
17038 # libtool distribution, otherwise you forgot to ship ltmain.sh
17039 # with your package, and you will get complaints that there are
17040 # no rules to generate ltmain.sh.
17041 if test -f "$ltmain"; then
17042   # See if we are running on zsh, and set the options which allow our commands through
17043   # without removal of \ escapes.
17044   if test -n "${ZSH_VERSION+set}" ; then
17045     setopt NO_GLOB_SUBST
17046   fi
17047   # Now quote all the things that may contain metacharacters while being
17048   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17049   # variables and quote the copies for generation of the libtool script.
17050   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17051     SED SHELL STRIP \
17052     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17053     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17054     deplibs_check_method reload_flag reload_cmds need_locks \
17055     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17056     lt_cv_sys_global_symbol_to_c_name_address \
17057     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17058     old_postinstall_cmds old_postuninstall_cmds \
17059     compiler_F77 \
17060     CC_F77 \
17061     LD_F77 \
17062     lt_prog_compiler_wl_F77 \
17063     lt_prog_compiler_pic_F77 \
17064     lt_prog_compiler_static_F77 \
17065     lt_prog_compiler_no_builtin_flag_F77 \
17066     export_dynamic_flag_spec_F77 \
17067     thread_safe_flag_spec_F77 \
17068     whole_archive_flag_spec_F77 \
17069     enable_shared_with_static_runtimes_F77 \
17070     old_archive_cmds_F77 \
17071     old_archive_from_new_cmds_F77 \
17072     predep_objects_F77 \
17073     postdep_objects_F77 \
17074     predeps_F77 \
17075     postdeps_F77 \
17076     compiler_lib_search_path_F77 \
17077     archive_cmds_F77 \
17078     archive_expsym_cmds_F77 \
17079     postinstall_cmds_F77 \
17080     postuninstall_cmds_F77 \
17081     old_archive_from_expsyms_cmds_F77 \
17082     allow_undefined_flag_F77 \
17083     no_undefined_flag_F77 \
17084     export_symbols_cmds_F77 \
17085     hardcode_libdir_flag_spec_F77 \
17086     hardcode_libdir_flag_spec_ld_F77 \
17087     hardcode_libdir_separator_F77 \
17088     hardcode_automatic_F77 \
17089     module_cmds_F77 \
17090     module_expsym_cmds_F77 \
17091     lt_cv_prog_compiler_c_o_F77 \
17092     exclude_expsyms_F77 \
17093     include_expsyms_F77; do
17094
17095     case $var in
17096     old_archive_cmds_F77 | \
17097     old_archive_from_new_cmds_F77 | \
17098     archive_cmds_F77 | \
17099     archive_expsym_cmds_F77 | \
17100     module_cmds_F77 | \
17101     module_expsym_cmds_F77 | \
17102     old_archive_from_expsyms_cmds_F77 | \
17103     export_symbols_cmds_F77 | \
17104     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17105     postinstall_cmds | postuninstall_cmds | \
17106     old_postinstall_cmds | old_postuninstall_cmds | \
17107     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17108       # Double-quote double-evaled strings.
17109       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17110       ;;
17111     *)
17112       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17113       ;;
17114     esac
17115   done
17116
17117   case $lt_echo in
17118   *'\$0 --fallback-echo"')
17119     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17120     ;;
17121   esac
17122
17123 cfgfile="$ofile"
17124
17125   cat <<__EOF__ >> "$cfgfile"
17126 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17127
17128 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17129
17130 # Shell to use when invoking shell scripts.
17131 SHELL=$lt_SHELL
17132
17133 # Whether or not to build shared libraries.
17134 build_libtool_libs=$enable_shared
17135
17136 # Whether or not to build static libraries.
17137 build_old_libs=$enable_static
17138
17139 # Whether or not to add -lc for building shared libraries.
17140 build_libtool_need_lc=$archive_cmds_need_lc_F77
17141
17142 # Whether or not to disallow shared libs when runtime libs are static
17143 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17144
17145 # Whether or not to optimize for fast installation.
17146 fast_install=$enable_fast_install
17147
17148 # The host system.
17149 host_alias=$host_alias
17150 host=$host
17151
17152 # An echo program that does not interpret backslashes.
17153 echo=$lt_echo
17154
17155 # The archiver.
17156 AR=$lt_AR
17157 AR_FLAGS=$lt_AR_FLAGS
17158
17159 # A C compiler.
17160 LTCC=$lt_LTCC
17161
17162 # A language-specific compiler.
17163 CC=$lt_compiler_F77
17164
17165 # Is the compiler the GNU C compiler?
17166 with_gcc=$GCC_F77
17167
17168 # An ERE matcher.
17169 EGREP=$lt_EGREP
17170
17171 # The linker used to build libraries.
17172 LD=$lt_LD_F77
17173
17174 # Whether we need hard or soft links.
17175 LN_S=$lt_LN_S
17176
17177 # A BSD-compatible nm program.
17178 NM=$lt_NM
17179
17180 # A symbol stripping program
17181 STRIP=$lt_STRIP
17182
17183 # Used to examine libraries when file_magic_cmd begins "file"
17184 MAGIC_CMD=$MAGIC_CMD
17185
17186 # Used on cygwin: DLL creation program.
17187 DLLTOOL="$DLLTOOL"
17188
17189 # Used on cygwin: object dumper.
17190 OBJDUMP="$OBJDUMP"
17191
17192 # Used on cygwin: assembler.
17193 AS="$AS"
17194
17195 # The name of the directory that contains temporary libtool files.
17196 objdir=$objdir
17197
17198 # How to create reloadable object files.
17199 reload_flag=$lt_reload_flag
17200 reload_cmds=$lt_reload_cmds
17201
17202 # How to pass a linker flag through the compiler.
17203 wl=$lt_lt_prog_compiler_wl_F77
17204
17205 # Object file suffix (normally "o").
17206 objext="$ac_objext"
17207
17208 # Old archive suffix (normally "a").
17209 libext="$libext"
17210
17211 # Shared library suffix (normally ".so").
17212 shrext_cmds='$shrext_cmds'
17213
17214 # Executable file suffix (normally "").
17215 exeext="$exeext"
17216
17217 # Additional compiler flags for building library objects.
17218 pic_flag=$lt_lt_prog_compiler_pic_F77
17219 pic_mode=$pic_mode
17220
17221 # What is the maximum length of a command?
17222 max_cmd_len=$lt_cv_sys_max_cmd_len
17223
17224 # Does compiler simultaneously support -c and -o options?
17225 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17226
17227 # Must we lock files when doing compilation ?
17228 need_locks=$lt_need_locks
17229
17230 # Do we need the lib prefix for modules?
17231 need_lib_prefix=$need_lib_prefix
17232
17233 # Do we need a version for libraries?
17234 need_version=$need_version
17235
17236 # Whether dlopen is supported.
17237 dlopen_support=$enable_dlopen
17238
17239 # Whether dlopen of programs is supported.
17240 dlopen_self=$enable_dlopen_self
17241
17242 # Whether dlopen of statically linked programs is supported.
17243 dlopen_self_static=$enable_dlopen_self_static
17244
17245 # Compiler flag to prevent dynamic linking.
17246 link_static_flag=$lt_lt_prog_compiler_static_F77
17247
17248 # Compiler flag to turn off builtin functions.
17249 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17250
17251 # Compiler flag to allow reflexive dlopens.
17252 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17253
17254 # Compiler flag to generate shared objects directly from archives.
17255 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17256
17257 # Compiler flag to generate thread-safe objects.
17258 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17259
17260 # Library versioning type.
17261 version_type=$version_type
17262
17263 # Format of library name prefix.
17264 libname_spec=$lt_libname_spec
17265
17266 # List of archive names.  First name is the real one, the rest are links.
17267 # The last name is the one that the linker finds with -lNAME.
17268 library_names_spec=$lt_library_names_spec
17269
17270 # The coded name of the library, if different from the real name.
17271 soname_spec=$lt_soname_spec
17272
17273 # Commands used to build and install an old-style archive.
17274 RANLIB=$lt_RANLIB
17275 old_archive_cmds=$lt_old_archive_cmds_F77
17276 old_postinstall_cmds=$lt_old_postinstall_cmds
17277 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17278
17279 # Create an old-style archive from a shared archive.
17280 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17281
17282 # Create a temporary old-style archive to link instead of a shared archive.
17283 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17284
17285 # Commands used to build and install a shared archive.
17286 archive_cmds=$lt_archive_cmds_F77
17287 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17288 postinstall_cmds=$lt_postinstall_cmds
17289 postuninstall_cmds=$lt_postuninstall_cmds
17290
17291 # Commands used to build a loadable module (assumed same as above if empty)
17292 module_cmds=$lt_module_cmds_F77
17293 module_expsym_cmds=$lt_module_expsym_cmds_F77
17294
17295 # Commands to strip libraries.
17296 old_striplib=$lt_old_striplib
17297 striplib=$lt_striplib
17298
17299 # Dependencies to place before the objects being linked to create a
17300 # shared library.
17301 predep_objects=$lt_predep_objects_F77
17302
17303 # Dependencies to place after the objects being linked to create a
17304 # shared library.
17305 postdep_objects=$lt_postdep_objects_F77
17306
17307 # Dependencies to place before the objects being linked to create a
17308 # shared library.
17309 predeps=$lt_predeps_F77
17310
17311 # Dependencies to place after the objects being linked to create a
17312 # shared library.
17313 postdeps=$lt_postdeps_F77
17314
17315 # The library search path used internally by the compiler when linking
17316 # a shared library.
17317 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17318
17319 # Method to check whether dependent libraries are shared objects.
17320 deplibs_check_method=$lt_deplibs_check_method
17321
17322 # Command to use when deplibs_check_method == file_magic.
17323 file_magic_cmd=$lt_file_magic_cmd
17324
17325 # Flag that allows shared libraries with undefined symbols to be built.
17326 allow_undefined_flag=$lt_allow_undefined_flag_F77
17327
17328 # Flag that forces no undefined symbols.
17329 no_undefined_flag=$lt_no_undefined_flag_F77
17330
17331 # Commands used to finish a libtool library installation in a directory.
17332 finish_cmds=$lt_finish_cmds
17333
17334 # Same as above, but a single script fragment to be evaled but not shown.
17335 finish_eval=$lt_finish_eval
17336
17337 # Take the output of nm and produce a listing of raw symbols and C names.
17338 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17339
17340 # Transform the output of nm in a proper C declaration
17341 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17342
17343 # Transform the output of nm in a C name address pair
17344 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17345
17346 # This is the shared library runtime path variable.
17347 runpath_var=$runpath_var
17348
17349 # This is the shared library path variable.
17350 shlibpath_var=$shlibpath_var
17351
17352 # Is shlibpath searched before the hard-coded library search path?
17353 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17354
17355 # How to hardcode a shared library path into an executable.
17356 hardcode_action=$hardcode_action_F77
17357
17358 # Whether we should hardcode library paths into libraries.
17359 hardcode_into_libs=$hardcode_into_libs
17360
17361 # Flag to hardcode \$libdir into a binary during linking.
17362 # This must work even if \$libdir does not exist.
17363 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17364
17365 # If ld is used when linking, flag to hardcode \$libdir into
17366 # a binary during linking. This must work even if \$libdir does
17367 # not exist.
17368 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17369
17370 # Whether we need a single -rpath flag with a separated argument.
17371 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17372
17373 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17374 # resulting binary.
17375 hardcode_direct=$hardcode_direct_F77
17376
17377 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17378 # resulting binary.
17379 hardcode_minus_L=$hardcode_minus_L_F77
17380
17381 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17382 # the resulting binary.
17383 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17384
17385 # Set to yes if building a shared library automatically hardcodes DIR into the library
17386 # and all subsequent libraries and executables linked against it.
17387 hardcode_automatic=$hardcode_automatic_F77
17388
17389 # Variables whose values should be saved in libtool wrapper scripts and
17390 # restored at relink time.
17391 variables_saved_for_relink="$variables_saved_for_relink"
17392
17393 # Whether libtool must link a program against all its dependency libraries.
17394 link_all_deplibs=$link_all_deplibs_F77
17395
17396 # Compile-time system search path for libraries
17397 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17398
17399 # Run-time system search path for libraries
17400 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17401
17402 # Fix the shell variable \$srcfile for the compiler.
17403 fix_srcfile_path="$fix_srcfile_path_F77"
17404
17405 # Set to yes if exported symbols are required.
17406 always_export_symbols=$always_export_symbols_F77
17407
17408 # The commands to list exported symbols.
17409 export_symbols_cmds=$lt_export_symbols_cmds_F77
17410
17411 # The commands to extract the exported symbol list from a shared archive.
17412 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17413
17414 # Symbols that should not be listed in the preloaded symbols.
17415 exclude_expsyms=$lt_exclude_expsyms_F77
17416
17417 # Symbols that must always be exported.
17418 include_expsyms=$lt_include_expsyms_F77
17419
17420 # ### END LIBTOOL TAG CONFIG: $tagname
17421
17422 __EOF__
17423
17424
17425 else
17426   # If there is no Makefile yet, we rely on a make rule to execute
17427   # `config.status --recheck' to rerun these tests and create the
17428   # libtool script then.
17429   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17430   if test -f "$ltmain_in"; then
17431     test -f Makefile && make "$ltmain"
17432   fi
17433 fi
17434
17435
17436 ac_ext=c
17437 ac_cpp='$CPP $CPPFLAGS'
17438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17441
17442 CC="$lt_save_CC"
17443
17444         else
17445           tagname=""
17446         fi
17447         ;;
17448
17449       GCJ)
17450         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17451
17452
17453
17454 # Source file extension for Java test sources.
17455 ac_ext=java
17456
17457 # Object file extension for compiled Java test sources.
17458 objext=o
17459 objext_GCJ=$objext
17460
17461 # Code to be used in simple compile tests
17462 lt_simple_compile_test_code="class foo {}\n"
17463
17464 # Code to be used in simple link tests
17465 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17466
17467 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17468
17469 # If no C compiler was specified, use CC.
17470 LTCC=${LTCC-"$CC"}
17471
17472 # Allow CC to be a program name with arguments.
17473 compiler=$CC
17474
17475
17476 # Allow CC to be a program name with arguments.
17477 lt_save_CC="$CC"
17478 CC=${GCJ-"gcj"}
17479 compiler=$CC
17480 compiler_GCJ=$CC
17481
17482 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17483 archive_cmds_need_lc_GCJ=no
17484
17485 ## CAVEAT EMPTOR:
17486 ## There is no encapsulation within the following macros, do not change
17487 ## the running order or otherwise move them around unless you know exactly
17488 ## what you are doing...
17489
17490 lt_prog_compiler_no_builtin_flag_GCJ=
17491
17492 if test "$GCC" = yes; then
17493   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17494
17495
17496 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17497 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17498 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17499   echo $ECHO_N "(cached) $ECHO_C" >&6
17500 else
17501   lt_cv_prog_compiler_rtti_exceptions=no
17502   ac_outfile=conftest.$ac_objext
17503    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17504    lt_compiler_flag="-fno-rtti -fno-exceptions"
17505    # Insert the option either (1) after the last *FLAGS variable, or
17506    # (2) before a word containing "conftest.", or (3) at the end.
17507    # Note that $ac_compile itself does not contain backslashes and begins
17508    # with a dollar sign (not a hyphen), so the echo should work correctly.
17509    # The option is referenced via a variable to avoid confusing sed.
17510    lt_compile=`echo "$ac_compile" | $SED \
17511    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17512    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17513    -e 's:$: $lt_compiler_flag:'`
17514    (eval echo "\"\$as_me:17514: $lt_compile\"" >&5)
17515    (eval "$lt_compile" 2>conftest.err)
17516    ac_status=$?
17517    cat conftest.err >&5
17518    echo "$as_me:17518: \$? = $ac_status" >&5
17519    if (exit $ac_status) && test -s "$ac_outfile"; then
17520      # The compiler can only warn and ignore the option if not recognized
17521      # So say no if there are warnings
17522      if test ! -s conftest.err; then
17523        lt_cv_prog_compiler_rtti_exceptions=yes
17524      fi
17525    fi
17526    $rm conftest*
17527
17528 fi
17529 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17530 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17531
17532 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17533     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17534 else
17535     :
17536 fi
17537
17538 fi
17539
17540 lt_prog_compiler_wl_GCJ=
17541 lt_prog_compiler_pic_GCJ=
17542 lt_prog_compiler_static_GCJ=
17543
17544 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17545 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17546
17547   if test "$GCC" = yes; then
17548     lt_prog_compiler_wl_GCJ='-Wl,'
17549     lt_prog_compiler_static_GCJ='-static'
17550
17551     case $host_os in
17552       aix*)
17553       # All AIX code is PIC.
17554       if test "$host_cpu" = ia64; then
17555         # AIX 5 now supports IA64 processor
17556         lt_prog_compiler_static_GCJ='-Bstatic'
17557       fi
17558       ;;
17559
17560     amigaos*)
17561       # FIXME: we need at least 68020 code to build shared libraries, but
17562       # adding the `-m68020' flag to GCC prevents building anything better,
17563       # like `-m68040'.
17564       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17565       ;;
17566
17567     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17568       # PIC is the default for these OSes.
17569       ;;
17570
17571     mingw* | pw32* | os2*)
17572       # This hack is so that the source file can tell whether it is being
17573       # built for inclusion in a dll (and should export symbols for example).
17574       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17575       ;;
17576
17577     darwin* | rhapsody*)
17578       # PIC is the default on this platform
17579       # Common symbols not allowed in MH_DYLIB files
17580       lt_prog_compiler_pic_GCJ='-fno-common'
17581       ;;
17582
17583     msdosdjgpp*)
17584       # Just because we use GCC doesn't mean we suddenly get shared libraries
17585       # on systems that don't support them.
17586       lt_prog_compiler_can_build_shared_GCJ=no
17587       enable_shared=no
17588       ;;
17589
17590     sysv4*MP*)
17591       if test -d /usr/nec; then
17592         lt_prog_compiler_pic_GCJ=-Kconform_pic
17593       fi
17594       ;;
17595
17596     hpux*)
17597       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17598       # not for PA HP-UX.
17599       case "$host_cpu" in
17600       hppa*64*|ia64*)
17601         # +Z the default
17602         ;;
17603       *)
17604         lt_prog_compiler_pic_GCJ='-fPIC'
17605         ;;
17606       esac
17607       ;;
17608
17609     *)
17610       lt_prog_compiler_pic_GCJ='-fPIC'
17611       ;;
17612     esac
17613   else
17614     # PORTME Check for flag to pass linker flags through the system compiler.
17615     case $host_os in
17616     aix*)
17617       lt_prog_compiler_wl_GCJ='-Wl,'
17618       if test "$host_cpu" = ia64; then
17619         # AIX 5 now supports IA64 processor
17620         lt_prog_compiler_static_GCJ='-Bstatic'
17621       else
17622         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17623       fi
17624       ;;
17625
17626     mingw* | pw32* | os2*)
17627       # This hack is so that the source file can tell whether it is being
17628       # built for inclusion in a dll (and should export symbols for example).
17629       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17630       ;;
17631
17632     hpux9* | hpux10* | hpux11*)
17633       lt_prog_compiler_wl_GCJ='-Wl,'
17634       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17635       # not for PA HP-UX.
17636       case "$host_cpu" in
17637       hppa*64*|ia64*)
17638         # +Z the default
17639         ;;
17640       *)
17641         lt_prog_compiler_pic_GCJ='+Z'
17642         ;;
17643       esac
17644       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17645       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17646       ;;
17647
17648     irix5* | irix6* | nonstopux*)
17649       lt_prog_compiler_wl_GCJ='-Wl,'
17650       # PIC (with -KPIC) is the default.
17651       lt_prog_compiler_static_GCJ='-non_shared'
17652       ;;
17653
17654     newsos6)
17655       lt_prog_compiler_pic_GCJ='-KPIC'
17656       lt_prog_compiler_static_GCJ='-Bstatic'
17657       ;;
17658
17659     linux*)
17660       case $CC in
17661       icc* | ecc*)
17662         lt_prog_compiler_wl_GCJ='-Wl,'
17663         lt_prog_compiler_pic_GCJ='-KPIC'
17664         lt_prog_compiler_static_GCJ='-static'
17665         ;;
17666       ccc*)
17667         lt_prog_compiler_wl_GCJ='-Wl,'
17668         # All Alpha code is PIC.
17669         lt_prog_compiler_static_GCJ='-non_shared'
17670         ;;
17671       esac
17672       ;;
17673
17674     osf3* | osf4* | osf5*)
17675       lt_prog_compiler_wl_GCJ='-Wl,'
17676       # All OSF/1 code is PIC.
17677       lt_prog_compiler_static_GCJ='-non_shared'
17678       ;;
17679
17680     sco3.2v5*)
17681       lt_prog_compiler_pic_GCJ='-Kpic'
17682       lt_prog_compiler_static_GCJ='-dn'
17683       ;;
17684
17685     solaris*)
17686       lt_prog_compiler_wl_GCJ='-Wl,'
17687       lt_prog_compiler_pic_GCJ='-KPIC'
17688       lt_prog_compiler_static_GCJ='-Bstatic'
17689       ;;
17690
17691     sunos4*)
17692       lt_prog_compiler_wl_GCJ='-Qoption ld '
17693       lt_prog_compiler_pic_GCJ='-PIC'
17694       lt_prog_compiler_static_GCJ='-Bstatic'
17695       ;;
17696
17697     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17698       lt_prog_compiler_wl_GCJ='-Wl,'
17699       lt_prog_compiler_pic_GCJ='-KPIC'
17700       lt_prog_compiler_static_GCJ='-Bstatic'
17701       ;;
17702
17703     sysv4*MP*)
17704       if test -d /usr/nec ;then
17705         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17706         lt_prog_compiler_static_GCJ='-Bstatic'
17707       fi
17708       ;;
17709
17710     uts4*)
17711       lt_prog_compiler_pic_GCJ='-pic'
17712       lt_prog_compiler_static_GCJ='-Bstatic'
17713       ;;
17714
17715     *)
17716       lt_prog_compiler_can_build_shared_GCJ=no
17717       ;;
17718     esac
17719   fi
17720
17721 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17722 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17723
17724 #
17725 # Check to make sure the PIC flag actually works.
17726 #
17727 if test -n "$lt_prog_compiler_pic_GCJ"; then
17728
17729 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17730 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17731 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17732   echo $ECHO_N "(cached) $ECHO_C" >&6
17733 else
17734   lt_prog_compiler_pic_works_GCJ=no
17735   ac_outfile=conftest.$ac_objext
17736    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17737    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17738    # Insert the option either (1) after the last *FLAGS variable, or
17739    # (2) before a word containing "conftest.", or (3) at the end.
17740    # Note that $ac_compile itself does not contain backslashes and begins
17741    # with a dollar sign (not a hyphen), so the echo should work correctly.
17742    # The option is referenced via a variable to avoid confusing sed.
17743    lt_compile=`echo "$ac_compile" | $SED \
17744    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17745    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17746    -e 's:$: $lt_compiler_flag:'`
17747    (eval echo "\"\$as_me:17747: $lt_compile\"" >&5)
17748    (eval "$lt_compile" 2>conftest.err)
17749    ac_status=$?
17750    cat conftest.err >&5
17751    echo "$as_me:17751: \$? = $ac_status" >&5
17752    if (exit $ac_status) && test -s "$ac_outfile"; then
17753      # The compiler can only warn and ignore the option if not recognized
17754      # So say no if there are warnings
17755      if test ! -s conftest.err; then
17756        lt_prog_compiler_pic_works_GCJ=yes
17757      fi
17758    fi
17759    $rm conftest*
17760
17761 fi
17762 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17763 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17764
17765 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17766     case $lt_prog_compiler_pic_GCJ in
17767      "" | " "*) ;;
17768      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17769      esac
17770 else
17771     lt_prog_compiler_pic_GCJ=
17772      lt_prog_compiler_can_build_shared_GCJ=no
17773 fi
17774
17775 fi
17776 case "$host_os" in
17777   # For platforms which do not support PIC, -DPIC is meaningless:
17778   *djgpp*)
17779     lt_prog_compiler_pic_GCJ=
17780     ;;
17781   *)
17782     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17783     ;;
17784 esac
17785
17786 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17787 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17788 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17789   echo $ECHO_N "(cached) $ECHO_C" >&6
17790 else
17791   lt_cv_prog_compiler_c_o_GCJ=no
17792    $rm -r conftest 2>/dev/null
17793    mkdir conftest
17794    cd conftest
17795    mkdir out
17796    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17797
17798    lt_compiler_flag="-o out/conftest2.$ac_objext"
17799    # Insert the option either (1) after the last *FLAGS variable, or
17800    # (2) before a word containing "conftest.", or (3) at the end.
17801    # Note that $ac_compile itself does not contain backslashes and begins
17802    # with a dollar sign (not a hyphen), so the echo should work correctly.
17803    lt_compile=`echo "$ac_compile" | $SED \
17804    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17805    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17806    -e 's:$: $lt_compiler_flag:'`
17807    (eval echo "\"\$as_me:17807: $lt_compile\"" >&5)
17808    (eval "$lt_compile" 2>out/conftest.err)
17809    ac_status=$?
17810    cat out/conftest.err >&5
17811    echo "$as_me:17811: \$? = $ac_status" >&5
17812    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17813    then
17814      # The compiler can only warn and ignore the option if not recognized
17815      # So say no if there are warnings
17816      if test ! -s out/conftest.err; then
17817        lt_cv_prog_compiler_c_o_GCJ=yes
17818      fi
17819    fi
17820    chmod u+w .
17821    $rm conftest*
17822    # SGI C++ compiler will create directory out/ii_files/ for
17823    # template instantiation
17824    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17825    $rm out/* && rmdir out
17826    cd ..
17827    rmdir conftest
17828    $rm conftest*
17829
17830 fi
17831 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17832 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17833
17834
17835 hard_links="nottested"
17836 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17837   # do not overwrite the value of need_locks provided by the user
17838   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17839 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17840   hard_links=yes
17841   $rm conftest*
17842   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17843   touch conftest.a
17844   ln conftest.a conftest.b 2>&5 || hard_links=no
17845   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17846   echo "$as_me:$LINENO: result: $hard_links" >&5
17847 echo "${ECHO_T}$hard_links" >&6
17848   if test "$hard_links" = no; then
17849     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17850 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17851     need_locks=warn
17852   fi
17853 else
17854   need_locks=no
17855 fi
17856
17857 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17858 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17859
17860   runpath_var=
17861   allow_undefined_flag_GCJ=
17862   enable_shared_with_static_runtimes_GCJ=no
17863   archive_cmds_GCJ=
17864   archive_expsym_cmds_GCJ=
17865   old_archive_From_new_cmds_GCJ=
17866   old_archive_from_expsyms_cmds_GCJ=
17867   export_dynamic_flag_spec_GCJ=
17868   whole_archive_flag_spec_GCJ=
17869   thread_safe_flag_spec_GCJ=
17870   hardcode_libdir_flag_spec_GCJ=
17871   hardcode_libdir_flag_spec_ld_GCJ=
17872   hardcode_libdir_separator_GCJ=
17873   hardcode_direct_GCJ=no
17874   hardcode_minus_L_GCJ=no
17875   hardcode_shlibpath_var_GCJ=unsupported
17876   link_all_deplibs_GCJ=unknown
17877   hardcode_automatic_GCJ=no
17878   module_cmds_GCJ=
17879   module_expsym_cmds_GCJ=
17880   always_export_symbols_GCJ=no
17881   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17882   # include_expsyms should be a list of space-separated symbols to be *always*
17883   # included in the symbol list
17884   include_expsyms_GCJ=
17885   # exclude_expsyms can be an extended regexp of symbols to exclude
17886   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17887   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17888   # as well as any symbol that contains `d'.
17889   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17890   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17891   # platforms (ab)use it in PIC code, but their linkers get confused if
17892   # the symbol is explicitly referenced.  Since portable code cannot
17893   # rely on this symbol name, it's probably fine to never include it in
17894   # preloaded symbol tables.
17895   extract_expsyms_cmds=
17896
17897   case $host_os in
17898   cygwin* | mingw* | pw32*)
17899     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17900     # When not using gcc, we currently assume that we are using
17901     # Microsoft Visual C++.
17902     if test "$GCC" != yes; then
17903       with_gnu_ld=no
17904     fi
17905     ;;
17906   openbsd*)
17907     with_gnu_ld=no
17908     ;;
17909   esac
17910
17911   ld_shlibs_GCJ=yes
17912   if test "$with_gnu_ld" = yes; then
17913     # If archive_cmds runs LD, not CC, wlarc should be empty
17914     wlarc='${wl}'
17915
17916     # See if GNU ld supports shared libraries.
17917     case $host_os in
17918     aix3* | aix4* | aix5*)
17919       # On AIX/PPC, the GNU linker is very broken
17920       if test "$host_cpu" != ia64; then
17921         ld_shlibs_GCJ=no
17922         cat <<EOF 1>&2
17923
17924 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17925 *** to be unable to reliably create shared libraries on AIX.
17926 *** Therefore, libtool is disabling shared libraries support.  If you
17927 *** really care for shared libraries, you may want to modify your PATH
17928 *** so that a non-GNU linker is found, and then restart.
17929
17930 EOF
17931       fi
17932       ;;
17933
17934     amigaos*)
17935       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)'
17936       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17937       hardcode_minus_L_GCJ=yes
17938
17939       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17940       # that the semantics of dynamic libraries on AmigaOS, at least up
17941       # to version 4, is to share data among multiple programs linked
17942       # with the same dynamic library.  Since this doesn't match the
17943       # behavior of shared libraries on other platforms, we can't use
17944       # them.
17945       ld_shlibs_GCJ=no
17946       ;;
17947
17948     beos*)
17949       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17950         allow_undefined_flag_GCJ=unsupported
17951         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17952         # support --undefined.  This deserves some investigation.  FIXME
17953         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17954       else
17955         ld_shlibs_GCJ=no
17956       fi
17957       ;;
17958
17959     cygwin* | mingw* | pw32*)
17960       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17961       # as there is no search path for DLLs.
17962       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17963       allow_undefined_flag_GCJ=unsupported
17964       always_export_symbols_GCJ=no
17965       enable_shared_with_static_runtimes_GCJ=yes
17966       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17967
17968       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17969         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17970         # If the export-symbols file already is a .def file (1st line
17971         # is EXPORTS), use it as is; otherwise, prepend...
17972         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17973           cp $export_symbols $output_objdir/$soname.def;
17974         else
17975           echo EXPORTS > $output_objdir/$soname.def;
17976           cat $export_symbols >> $output_objdir/$soname.def;
17977         fi~
17978         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17979       else
17980         ld_shlibs=no
17981       fi
17982       ;;
17983
17984     netbsd*)
17985       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17986         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17987         wlarc=
17988       else
17989         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17990         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17991       fi
17992       ;;
17993
17994     solaris* | sysv5*)
17995       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17996         ld_shlibs_GCJ=no
17997         cat <<EOF 1>&2
17998
17999 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18000 *** create shared libraries on Solaris systems.  Therefore, libtool
18001 *** is disabling shared libraries support.  We urge you to upgrade GNU
18002 *** binutils to release 2.9.1 or newer.  Another option is to modify
18003 *** your PATH or compiler configuration so that the native linker is
18004 *** used, and then restart.
18005
18006 EOF
18007       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18008         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18009         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18010       else
18011         ld_shlibs_GCJ=no
18012       fi
18013       ;;
18014
18015     sunos4*)
18016       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18017       wlarc=
18018       hardcode_direct_GCJ=yes
18019       hardcode_shlibpath_var_GCJ=no
18020       ;;
18021
18022   linux*)
18023     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18024         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18025         archive_cmds_GCJ="$tmp_archive_cmds"
18026       supports_anon_versioning=no
18027       case `$LD -v 2>/dev/null` in
18028         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18029         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18030         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18031         *\ 2.11.*) ;; # other 2.11 versions
18032         *) supports_anon_versioning=yes ;;
18033       esac
18034       if test $supports_anon_versioning = yes; then
18035         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18036 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18037 $echo "local: *; };" >> $output_objdir/$libname.ver~
18038         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18039       else
18040         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
18041       fi
18042     else
18043       ld_shlibs_GCJ=no
18044     fi
18045     ;;
18046
18047     *)
18048       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18049         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18050         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18051       else
18052         ld_shlibs_GCJ=no
18053       fi
18054       ;;
18055     esac
18056
18057     if test "$ld_shlibs_GCJ" = yes; then
18058       runpath_var=LD_RUN_PATH
18059       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18060       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18061       # ancient GNU ld didn't support --whole-archive et. al.
18062       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18063         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18064       else
18065         whole_archive_flag_spec_GCJ=
18066       fi
18067     fi
18068   else
18069     # PORTME fill in a description of your system's linker (not GNU ld)
18070     case $host_os in
18071     aix3*)
18072       allow_undefined_flag_GCJ=unsupported
18073       always_export_symbols_GCJ=yes
18074       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'
18075       # Note: this linker hardcodes the directories in LIBPATH if there
18076       # are no directories specified by -L.
18077       hardcode_minus_L_GCJ=yes
18078       if test "$GCC" = yes && test -z "$link_static_flag"; then
18079         # Neither direct hardcoding nor static linking is supported with a
18080         # broken collect2.
18081         hardcode_direct_GCJ=unsupported
18082       fi
18083       ;;
18084
18085     aix4* | aix5*)
18086       if test "$host_cpu" = ia64; then
18087         # On IA64, the linker does run time linking by default, so we don't
18088         # have to do anything special.
18089         aix_use_runtimelinking=no
18090         exp_sym_flag='-Bexport'
18091         no_entry_flag=""
18092       else
18093         # If we're using GNU nm, then we don't want the "-C" option.
18094         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18095         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18096           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'
18097         else
18098           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'
18099         fi
18100         aix_use_runtimelinking=no
18101
18102         # Test if we are trying to use run time linking or normal
18103         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18104         # need to do runtime linking.
18105         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18106           for ld_flag in $LDFLAGS; do
18107           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18108             aix_use_runtimelinking=yes
18109             break
18110           fi
18111           done
18112         esac
18113
18114         exp_sym_flag='-bexport'
18115         no_entry_flag='-bnoentry'
18116       fi
18117
18118       # When large executables or shared objects are built, AIX ld can
18119       # have problems creating the table of contents.  If linking a library
18120       # or program results in "error TOC overflow" add -mminimal-toc to
18121       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18122       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18123
18124       archive_cmds_GCJ=''
18125       hardcode_direct_GCJ=yes
18126       hardcode_libdir_separator_GCJ=':'
18127       link_all_deplibs_GCJ=yes
18128
18129       if test "$GCC" = yes; then
18130         case $host_os in aix4.012|aix4.012.*)
18131         # We only want to do this on AIX 4.2 and lower, the check
18132         # below for broken collect2 doesn't work under 4.3+
18133           collect2name=`${CC} -print-prog-name=collect2`
18134           if test -f "$collect2name" && \
18135            strings "$collect2name" | grep resolve_lib_name >/dev/null
18136           then
18137           # We have reworked collect2
18138           hardcode_direct_GCJ=yes
18139           else
18140           # We have old collect2
18141           hardcode_direct_GCJ=unsupported
18142           # It fails to find uninstalled libraries when the uninstalled
18143           # path is not listed in the libpath.  Setting hardcode_minus_L
18144           # to unsupported forces relinking
18145           hardcode_minus_L_GCJ=yes
18146           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18147           hardcode_libdir_separator_GCJ=
18148           fi
18149         esac
18150         shared_flag='-shared'
18151       else
18152         # not using gcc
18153         if test "$host_cpu" = ia64; then
18154         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18155         # chokes on -Wl,-G. The following line is correct:
18156           shared_flag='-G'
18157         else
18158         if test "$aix_use_runtimelinking" = yes; then
18159             shared_flag='${wl}-G'
18160           else
18161             shared_flag='${wl}-bM:SRE'
18162         fi
18163         fi
18164       fi
18165
18166       # It seems that -bexpall does not export symbols beginning with
18167       # underscore (_), so it is better to generate a list of symbols to export.
18168       always_export_symbols_GCJ=yes
18169       if test "$aix_use_runtimelinking" = yes; then
18170         # Warning - without using the other runtime loading flags (-brtl),
18171         # -berok will link without error, but may produce a broken library.
18172         allow_undefined_flag_GCJ='-berok'
18173        # Determine the default libpath from the value encoded in an empty executable.
18174        cat >conftest.$ac_ext <<_ACEOF
18175 /* confdefs.h.  */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h.  */
18180
18181 int
18182 main ()
18183 {
18184
18185   ;
18186   return 0;
18187 }
18188 _ACEOF
18189 rm -f conftest.$ac_objext conftest$ac_exeext
18190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18191   (eval $ac_link) 2>conftest.er1
18192   ac_status=$?
18193   grep -v '^ *+' conftest.er1 >conftest.err
18194   rm -f conftest.er1
18195   cat conftest.err >&5
18196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197   (exit $ac_status); } &&
18198          { ac_try='test -z "$ac_c_werror_flag"
18199                          || test ! -s conftest.err'
18200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201   (eval $ac_try) 2>&5
18202   ac_status=$?
18203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204   (exit $ac_status); }; } &&
18205          { ac_try='test -s conftest$ac_exeext'
18206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207   (eval $ac_try) 2>&5
18208   ac_status=$?
18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210   (exit $ac_status); }; }; then
18211
18212 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18213 }'`
18214 # Check for a 64-bit object if we didn't find anything.
18215 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; }
18216 }'`; fi
18217 else
18218   echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18220
18221 fi
18222 rm -f conftest.err conftest.$ac_objext \
18223       conftest$ac_exeext conftest.$ac_ext
18224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18225
18226        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18227         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18228        else
18229         if test "$host_cpu" = ia64; then
18230           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18231           allow_undefined_flag_GCJ="-z nodefs"
18232           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
18233         else
18234          # Determine the default libpath from the value encoded in an empty executable.
18235          cat >conftest.$ac_ext <<_ACEOF
18236 /* confdefs.h.  */
18237 _ACEOF
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h.  */
18241
18242 int
18243 main ()
18244 {
18245
18246   ;
18247   return 0;
18248 }
18249 _ACEOF
18250 rm -f conftest.$ac_objext conftest$ac_exeext
18251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18252   (eval $ac_link) 2>conftest.er1
18253   ac_status=$?
18254   grep -v '^ *+' conftest.er1 >conftest.err
18255   rm -f conftest.er1
18256   cat conftest.err >&5
18257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258   (exit $ac_status); } &&
18259          { ac_try='test -z "$ac_c_werror_flag"
18260                          || test ! -s conftest.err'
18261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262   (eval $ac_try) 2>&5
18263   ac_status=$?
18264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265   (exit $ac_status); }; } &&
18266          { ac_try='test -s conftest$ac_exeext'
18267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18268   (eval $ac_try) 2>&5
18269   ac_status=$?
18270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271   (exit $ac_status); }; }; then
18272
18273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18274 }'`
18275 # Check for a 64-bit object if we didn't find anything.
18276 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; }
18277 }'`; fi
18278 else
18279   echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18281
18282 fi
18283 rm -f conftest.err conftest.$ac_objext \
18284       conftest$ac_exeext conftest.$ac_ext
18285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18286
18287          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18288           # Warning - without using the other run time loading flags,
18289           # -berok will link without error, but may produce a broken library.
18290           no_undefined_flag_GCJ=' ${wl}-bernotok'
18291           allow_undefined_flag_GCJ=' ${wl}-berok'
18292           # -bexpall does not export symbols beginning with underscore (_)
18293           always_export_symbols_GCJ=yes
18294           # Exported symbols can be pulled into shared objects from archives
18295           whole_archive_flag_spec_GCJ=' '
18296           archive_cmds_need_lc_GCJ=yes
18297           # This is similar to how AIX traditionally builds it's shared libraries.
18298           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18299         fi
18300       fi
18301       ;;
18302
18303     amigaos*)
18304       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)'
18305       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18306       hardcode_minus_L_GCJ=yes
18307       # see comment about different semantics on the GNU ld section
18308       ld_shlibs_GCJ=no
18309       ;;
18310
18311     bsdi4*)
18312       export_dynamic_flag_spec_GCJ=-rdynamic
18313       ;;
18314
18315     cygwin* | mingw* | pw32*)
18316       # When not using gcc, we currently assume that we are using
18317       # Microsoft Visual C++.
18318       # hardcode_libdir_flag_spec is actually meaningless, as there is
18319       # no search path for DLLs.
18320       hardcode_libdir_flag_spec_GCJ=' '
18321       allow_undefined_flag_GCJ=unsupported
18322       # Tell ltmain to make .lib files, not .a files.
18323       libext=lib
18324       # Tell ltmain to make .dll files, not .so files.
18325       shrext_cmds=".dll"
18326       # FIXME: Setting linknames here is a bad hack.
18327       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18328       # The linker will automatically build a .lib file if we build a DLL.
18329       old_archive_From_new_cmds_GCJ='true'
18330       # FIXME: Should let the user specify the lib program.
18331       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18332       fix_srcfile_path='`cygpath -w "$srcfile"`'
18333       enable_shared_with_static_runtimes_GCJ=yes
18334       ;;
18335
18336     darwin* | rhapsody*)
18337     if test "$GXX" = yes ; then
18338       archive_cmds_need_lc_GCJ=no
18339       case "$host_os" in
18340       rhapsody* | darwin1.[012])
18341         allow_undefined_flag_GCJ='-undefined suppress'
18342         ;;
18343       *) # Darwin 1.3 on
18344       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18345         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18346       else
18347         case ${MACOSX_DEPLOYMENT_TARGET} in
18348           10.[012])
18349             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18350             ;;
18351           10.*)
18352             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
18353             ;;
18354         esac
18355       fi
18356         ;;
18357       esac
18358         lt_int_apple_cc_single_mod=no
18359         output_verbose_link_cmd='echo'
18360         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
18361           lt_int_apple_cc_single_mod=yes
18362         fi
18363         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18364           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18365         else
18366         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
18367       fi
18368       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18369       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18370         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18371           archive_expsym_cmds_GCJ='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}'
18372         else
18373           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
18374         fi
18375           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}'
18376       hardcode_direct_GCJ=no
18377       hardcode_automatic_GCJ=yes
18378       hardcode_shlibpath_var_GCJ=unsupported
18379       whole_archive_flag_spec_GCJ='-all_load $convenience'
18380       link_all_deplibs_GCJ=yes
18381     else
18382       ld_shlibs_GCJ=no
18383     fi
18384       ;;
18385
18386     dgux*)
18387       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18388       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18389       hardcode_shlibpath_var_GCJ=no
18390       ;;
18391
18392     freebsd1*)
18393       ld_shlibs_GCJ=no
18394       ;;
18395
18396     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18397     # support.  Future versions do this automatically, but an explicit c++rt0.o
18398     # does not break anything, and helps significantly (at the cost of a little
18399     # extra space).
18400     freebsd2.2*)
18401       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18402       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18403       hardcode_direct_GCJ=yes
18404       hardcode_shlibpath_var_GCJ=no
18405       ;;
18406
18407     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18408     freebsd2*)
18409       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18410       hardcode_direct_GCJ=yes
18411       hardcode_minus_L_GCJ=yes
18412       hardcode_shlibpath_var_GCJ=no
18413       ;;
18414
18415     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18416     freebsd* | kfreebsd*-gnu)
18417       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18418       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18419       hardcode_direct_GCJ=yes
18420       hardcode_shlibpath_var_GCJ=no
18421       ;;
18422
18423     hpux9*)
18424       if test "$GCC" = yes; then
18425         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'
18426       else
18427         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'
18428       fi
18429       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18430       hardcode_libdir_separator_GCJ=:
18431       hardcode_direct_GCJ=yes
18432
18433       # hardcode_minus_L: Not really in the search PATH,
18434       # but as the default location of the library.
18435       hardcode_minus_L_GCJ=yes
18436       export_dynamic_flag_spec_GCJ='${wl}-E'
18437       ;;
18438
18439     hpux10* | hpux11*)
18440       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18441         case "$host_cpu" in
18442         hppa*64*|ia64*)
18443           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18444           ;;
18445         *)
18446           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18447           ;;
18448         esac
18449       else
18450         case "$host_cpu" in
18451         hppa*64*|ia64*)
18452           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18453           ;;
18454         *)
18455           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18456           ;;
18457         esac
18458       fi
18459       if test "$with_gnu_ld" = no; then
18460         case "$host_cpu" in
18461         hppa*64*)
18462           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18463           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18464           hardcode_libdir_separator_GCJ=:
18465           hardcode_direct_GCJ=no
18466           hardcode_shlibpath_var_GCJ=no
18467           ;;
18468         ia64*)
18469           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18470           hardcode_direct_GCJ=no
18471           hardcode_shlibpath_var_GCJ=no
18472
18473           # hardcode_minus_L: Not really in the search PATH,
18474           # but as the default location of the library.
18475           hardcode_minus_L_GCJ=yes
18476           ;;
18477         *)
18478           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18479           hardcode_libdir_separator_GCJ=:
18480           hardcode_direct_GCJ=yes
18481           export_dynamic_flag_spec_GCJ='${wl}-E'
18482
18483           # hardcode_minus_L: Not really in the search PATH,
18484           # but as the default location of the library.
18485           hardcode_minus_L_GCJ=yes
18486           ;;
18487         esac
18488       fi
18489       ;;
18490
18491     irix5* | irix6* | nonstopux*)
18492       if test "$GCC" = yes; then
18493         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'
18494       else
18495         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'
18496         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18497       fi
18498       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18499       hardcode_libdir_separator_GCJ=:
18500       link_all_deplibs_GCJ=yes
18501       ;;
18502
18503     netbsd*)
18504       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18505         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18506       else
18507         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18508       fi
18509       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18510       hardcode_direct_GCJ=yes
18511       hardcode_shlibpath_var_GCJ=no
18512       ;;
18513
18514     newsos6)
18515       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18516       hardcode_direct_GCJ=yes
18517       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18518       hardcode_libdir_separator_GCJ=:
18519       hardcode_shlibpath_var_GCJ=no
18520       ;;
18521
18522     openbsd*)
18523       hardcode_direct_GCJ=yes
18524       hardcode_shlibpath_var_GCJ=no
18525       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18526         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18527         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18528         export_dynamic_flag_spec_GCJ='${wl}-E'
18529       else
18530        case $host_os in
18531          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18532            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18533            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18534            ;;
18535          *)
18536            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18537            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18538            ;;
18539        esac
18540       fi
18541       ;;
18542
18543     os2*)
18544       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18545       hardcode_minus_L_GCJ=yes
18546       allow_undefined_flag_GCJ=unsupported
18547       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'
18548       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18549       ;;
18550
18551     osf3*)
18552       if test "$GCC" = yes; then
18553         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18554         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'
18555       else
18556         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18557         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'
18558       fi
18559       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18560       hardcode_libdir_separator_GCJ=:
18561       ;;
18562
18563     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18564       if test "$GCC" = yes; then
18565         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18566         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'
18567         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18568       else
18569         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18570         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'
18571         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~
18572         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
18573
18574         # Both c and cxx compiler support -rpath directly
18575         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18576       fi
18577       hardcode_libdir_separator_GCJ=:
18578       ;;
18579
18580     sco3.2v5*)
18581       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18582       hardcode_shlibpath_var_GCJ=no
18583       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18584       runpath_var=LD_RUN_PATH
18585       hardcode_runpath_var=yes
18586       ;;
18587
18588     solaris*)
18589       no_undefined_flag_GCJ=' -z text'
18590       if test "$GCC" = yes; then
18591         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18592         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18593           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18594       else
18595         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18596         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18597         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18598       fi
18599       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18600       hardcode_shlibpath_var_GCJ=no
18601       case $host_os in
18602       solaris2.[0-5] | solaris2.[0-5].*) ;;
18603       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18604         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18605       esac
18606       link_all_deplibs_GCJ=yes
18607       ;;
18608
18609     sunos4*)
18610       if test "x$host_vendor" = xsequent; then
18611         # Use $CC to link under sequent, because it throws in some extra .o
18612         # files that make .init and .fini sections work.
18613         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18614       else
18615         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18616       fi
18617       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18618       hardcode_direct_GCJ=yes
18619       hardcode_minus_L_GCJ=yes
18620       hardcode_shlibpath_var_GCJ=no
18621       ;;
18622
18623     sysv4)
18624       case $host_vendor in
18625         sni)
18626           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18627           hardcode_direct_GCJ=yes # is this really true???
18628         ;;
18629         siemens)
18630           ## LD is ld it makes a PLAMLIB
18631           ## CC just makes a GrossModule.
18632           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18633           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18634           hardcode_direct_GCJ=no
18635         ;;
18636         motorola)
18637           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18638           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18639         ;;
18640       esac
18641       runpath_var='LD_RUN_PATH'
18642       hardcode_shlibpath_var_GCJ=no
18643       ;;
18644
18645     sysv4.3*)
18646       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18647       hardcode_shlibpath_var_GCJ=no
18648       export_dynamic_flag_spec_GCJ='-Bexport'
18649       ;;
18650
18651     sysv4*MP*)
18652       if test -d /usr/nec; then
18653         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18654         hardcode_shlibpath_var_GCJ=no
18655         runpath_var=LD_RUN_PATH
18656         hardcode_runpath_var=yes
18657         ld_shlibs_GCJ=yes
18658       fi
18659       ;;
18660
18661     sysv4.2uw2*)
18662       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18663       hardcode_direct_GCJ=yes
18664       hardcode_minus_L_GCJ=no
18665       hardcode_shlibpath_var_GCJ=no
18666       hardcode_runpath_var=yes
18667       runpath_var=LD_RUN_PATH
18668       ;;
18669
18670    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18671       no_undefined_flag_GCJ='${wl}-z ${wl}text'
18672       if test "$GCC" = yes; then
18673         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18674       else
18675         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18676       fi
18677       runpath_var='LD_RUN_PATH'
18678       hardcode_shlibpath_var_GCJ=no
18679       ;;
18680
18681     sysv5*)
18682       no_undefined_flag_GCJ=' -z text'
18683       # $CC -shared without GNU ld will not create a library from C++
18684       # object files and a static libstdc++, better avoid it by now
18685       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18686       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18687                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18688       hardcode_libdir_flag_spec_GCJ=
18689       hardcode_shlibpath_var_GCJ=no
18690       runpath_var='LD_RUN_PATH'
18691       ;;
18692
18693     uts4*)
18694       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18695       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18696       hardcode_shlibpath_var_GCJ=no
18697       ;;
18698
18699     *)
18700       ld_shlibs_GCJ=no
18701       ;;
18702     esac
18703   fi
18704
18705 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18706 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18707 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18708
18709 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18710 if test "$GCC" = yes; then
18711   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18712 fi
18713
18714 #
18715 # Do we need to explicitly link libc?
18716 #
18717 case "x$archive_cmds_need_lc_GCJ" in
18718 x|xyes)
18719   # Assume -lc should be added
18720   archive_cmds_need_lc_GCJ=yes
18721
18722   if test "$enable_shared" = yes && test "$GCC" = yes; then
18723     case $archive_cmds_GCJ in
18724     *'~'*)
18725       # FIXME: we may have to deal with multi-command sequences.
18726       ;;
18727     '$CC '*)
18728       # Test whether the compiler implicitly links with -lc since on some
18729       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18730       # to ld, don't add -lc before -lgcc.
18731       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18732 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18733       $rm conftest*
18734       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18735
18736       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18737   (eval $ac_compile) 2>&5
18738   ac_status=$?
18739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740   (exit $ac_status); } 2>conftest.err; then
18741         soname=conftest
18742         lib=conftest
18743         libobjs=conftest.$ac_objext
18744         deplibs=
18745         wl=$lt_prog_compiler_wl_GCJ
18746         compiler_flags=-v
18747         linker_flags=-v
18748         verstring=
18749         output_objdir=.
18750         libname=conftest
18751         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18752         allow_undefined_flag_GCJ=
18753         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18754   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18755   ac_status=$?
18756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757   (exit $ac_status); }
18758         then
18759           archive_cmds_need_lc_GCJ=no
18760         else
18761           archive_cmds_need_lc_GCJ=yes
18762         fi
18763         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18764       else
18765         cat conftest.err 1>&5
18766       fi
18767       $rm conftest*
18768       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18769 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18770       ;;
18771     esac
18772   fi
18773   ;;
18774 esac
18775
18776 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18777 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18778 library_names_spec=
18779 libname_spec='lib$name'
18780 soname_spec=
18781 shrext_cmds=".so"
18782 postinstall_cmds=
18783 postuninstall_cmds=
18784 finish_cmds=
18785 finish_eval=
18786 shlibpath_var=
18787 shlibpath_overrides_runpath=unknown
18788 version_type=none
18789 dynamic_linker="$host_os ld.so"
18790 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18791 if test "$GCC" = yes; then
18792   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18793   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18794     # if the path contains ";" then we assume it to be the separator
18795     # otherwise default to the standard path separator (i.e. ":") - it is
18796     # assumed that no part of a normal pathname contains ";" but that should
18797     # okay in the real world where ";" in dirpaths is itself problematic.
18798     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18799   else
18800     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18801   fi
18802 else
18803   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18804 fi
18805 need_lib_prefix=unknown
18806 hardcode_into_libs=no
18807
18808 # when you set need_version to no, make sure it does not cause -set_version
18809 # flags to be left without arguments
18810 need_version=unknown
18811
18812 case $host_os in
18813 aix3*)
18814   version_type=linux
18815   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18816   shlibpath_var=LIBPATH
18817
18818   # AIX 3 has no versioning support, so we append a major version to the name.
18819   soname_spec='${libname}${release}${shared_ext}$major'
18820   ;;
18821
18822 aix4* | aix5*)
18823   version_type=linux
18824   need_lib_prefix=no
18825   need_version=no
18826   hardcode_into_libs=yes
18827   if test "$host_cpu" = ia64; then
18828     # AIX 5 supports IA64
18829     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18830     shlibpath_var=LD_LIBRARY_PATH
18831   else
18832     # With GCC up to 2.95.x, collect2 would create an import file
18833     # for dependence libraries.  The import file would start with
18834     # the line `#! .'.  This would cause the generated library to
18835     # depend on `.', always an invalid library.  This was fixed in
18836     # development snapshots of GCC prior to 3.0.
18837     case $host_os in
18838       aix4 | aix4.[01] | aix4.[01].*)
18839       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18840            echo ' yes '
18841            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18842         :
18843       else
18844         can_build_shared=no
18845       fi
18846       ;;
18847     esac
18848     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18849     # soname into executable. Probably we can add versioning support to
18850     # collect2, so additional links can be useful in future.
18851     if test "$aix_use_runtimelinking" = yes; then
18852       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18853       # instead of lib<name>.a to let people know that these are not
18854       # typical AIX shared libraries.
18855       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18856     else
18857       # We preserve .a as extension for shared libraries through AIX4.2
18858       # and later when we are not doing run time linking.
18859       library_names_spec='${libname}${release}.a $libname.a'
18860       soname_spec='${libname}${release}${shared_ext}$major'
18861     fi
18862     shlibpath_var=LIBPATH
18863   fi
18864   ;;
18865
18866 amigaos*)
18867   library_names_spec='$libname.ixlibrary $libname.a'
18868   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18869   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'
18870   ;;
18871
18872 beos*)
18873   library_names_spec='${libname}${shared_ext}'
18874   dynamic_linker="$host_os ld.so"
18875   shlibpath_var=LIBRARY_PATH
18876   ;;
18877
18878 bsdi4*)
18879   version_type=linux
18880   need_version=no
18881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18882   soname_spec='${libname}${release}${shared_ext}$major'
18883   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18884   shlibpath_var=LD_LIBRARY_PATH
18885   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18886   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18887   # the default ld.so.conf also contains /usr/contrib/lib and
18888   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18889   # libtool to hard-code these into programs
18890   ;;
18891
18892 cygwin* | mingw* | pw32*)
18893   version_type=windows
18894   shrext_cmds=".dll"
18895   need_version=no
18896   need_lib_prefix=no
18897
18898   case $GCC,$host_os in
18899   yes,cygwin* | yes,mingw* | yes,pw32*)
18900     library_names_spec='$libname.dll.a'
18901     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18902     postinstall_cmds='base_file=`basename \${file}`~
18903       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18904       dldir=$destdir/`dirname \$dlpath`~
18905       test -d \$dldir || mkdir -p \$dldir~
18906       $install_prog $dir/$dlname \$dldir/$dlname'
18907     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18908       dlpath=$dir/\$dldll~
18909        $rm \$dlpath'
18910     shlibpath_overrides_runpath=yes
18911
18912     case $host_os in
18913     cygwin*)
18914       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18915       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18916       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18917       ;;
18918     mingw*)
18919       # MinGW DLLs use traditional 'lib' prefix
18920       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18921       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18922       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18923         # It is most probably a Windows format PATH printed by
18924         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18925         # path with ; separators, and with drive letters. We can handle the
18926         # drive letters (cygwin fileutils understands them), so leave them,
18927         # especially as we might pass files found there to a mingw objdump,
18928         # which wouldn't understand a cygwinified path. Ahh.
18929         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18930       else
18931         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18932       fi
18933       ;;
18934     pw32*)
18935       # pw32 DLLs use 'pw' prefix rather than 'lib'
18936       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18937       ;;
18938     esac
18939     ;;
18940
18941   *)
18942     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18943     ;;
18944   esac
18945   dynamic_linker='Win32 ld.exe'
18946   # FIXME: first we should search . and the directory the executable is in
18947   shlibpath_var=PATH
18948   ;;
18949
18950 darwin* | rhapsody*)
18951   dynamic_linker="$host_os dyld"
18952   version_type=darwin
18953   need_lib_prefix=no
18954   need_version=no
18955   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18956   soname_spec='${libname}${release}${major}$shared_ext'
18957   shlibpath_overrides_runpath=yes
18958   shlibpath_var=DYLD_LIBRARY_PATH
18959   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18960   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18961   if test "$GCC" = yes; then
18962     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"`
18963   else
18964     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18965   fi
18966   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18967   ;;
18968
18969 dgux*)
18970   version_type=linux
18971   need_lib_prefix=no
18972   need_version=no
18973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18974   soname_spec='${libname}${release}${shared_ext}$major'
18975   shlibpath_var=LD_LIBRARY_PATH
18976   ;;
18977
18978 freebsd1*)
18979   dynamic_linker=no
18980   ;;
18981
18982 kfreebsd*-gnu)
18983   version_type=linux
18984   need_lib_prefix=no
18985   need_version=no
18986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18987   soname_spec='${libname}${release}${shared_ext}$major'
18988   shlibpath_var=LD_LIBRARY_PATH
18989   shlibpath_overrides_runpath=no
18990   hardcode_into_libs=yes
18991   dynamic_linker='GNU ld.so'
18992   ;;
18993
18994 freebsd*)
18995   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18996   version_type=freebsd-$objformat
18997   case $version_type in
18998     freebsd-elf*)
18999       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19000       need_version=no
19001       need_lib_prefix=no
19002       ;;
19003     freebsd-*)
19004       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19005       need_version=yes
19006       ;;
19007   esac
19008   shlibpath_var=LD_LIBRARY_PATH
19009   case $host_os in
19010   freebsd2*)
19011     shlibpath_overrides_runpath=yes
19012     ;;
19013   freebsd3.01* | freebsdelf3.01*)
19014     shlibpath_overrides_runpath=yes
19015     hardcode_into_libs=yes
19016     ;;
19017   *) # from 3.2 on
19018     shlibpath_overrides_runpath=no
19019     hardcode_into_libs=yes
19020     ;;
19021   esac
19022   ;;
19023
19024 gnu*)
19025   version_type=linux
19026   need_lib_prefix=no
19027   need_version=no
19028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19029   soname_spec='${libname}${release}${shared_ext}$major'
19030   shlibpath_var=LD_LIBRARY_PATH
19031   hardcode_into_libs=yes
19032   ;;
19033
19034 hpux9* | hpux10* | hpux11*)
19035   # Give a soname corresponding to the major version so that dld.sl refuses to
19036   # link against other versions.
19037   version_type=sunos
19038   need_lib_prefix=no
19039   need_version=no
19040   case "$host_cpu" in
19041   ia64*)
19042     shrext_cmds='.so'
19043     hardcode_into_libs=yes
19044     dynamic_linker="$host_os dld.so"
19045     shlibpath_var=LD_LIBRARY_PATH
19046     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19048     soname_spec='${libname}${release}${shared_ext}$major'
19049     if test "X$HPUX_IA64_MODE" = X32; then
19050       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19051     else
19052       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19053     fi
19054     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19055     ;;
19056    hppa*64*)
19057      shrext_cmds='.sl'
19058      hardcode_into_libs=yes
19059      dynamic_linker="$host_os dld.sl"
19060      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19061      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19062      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19063      soname_spec='${libname}${release}${shared_ext}$major'
19064      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19065      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19066      ;;
19067    *)
19068     shrext_cmds='.sl'
19069     dynamic_linker="$host_os dld.sl"
19070     shlibpath_var=SHLIB_PATH
19071     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19073     soname_spec='${libname}${release}${shared_ext}$major'
19074     ;;
19075   esac
19076   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19077   postinstall_cmds='chmod 555 $lib'
19078   ;;
19079
19080 irix5* | irix6* | nonstopux*)
19081   case $host_os in
19082     nonstopux*) version_type=nonstopux ;;
19083     *)
19084         if test "$lt_cv_prog_gnu_ld" = yes; then
19085                 version_type=linux
19086         else
19087                 version_type=irix
19088         fi ;;
19089   esac
19090   need_lib_prefix=no
19091   need_version=no
19092   soname_spec='${libname}${release}${shared_ext}$major'
19093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19094   case $host_os in
19095   irix5* | nonstopux*)
19096     libsuff= shlibsuff=
19097     ;;
19098   *)
19099     case $LD in # libtool.m4 will add one of these switches to LD
19100     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19101       libsuff= shlibsuff= libmagic=32-bit;;
19102     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19103       libsuff=32 shlibsuff=N32 libmagic=N32;;
19104     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19105       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19106     *) libsuff= shlibsuff= libmagic=never-match;;
19107     esac
19108     ;;
19109   esac
19110   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19111   shlibpath_overrides_runpath=no
19112   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19113   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19114   hardcode_into_libs=yes
19115   ;;
19116
19117 # No shared lib support for Linux oldld, aout, or coff.
19118 linux*oldld* | linux*aout* | linux*coff*)
19119   dynamic_linker=no
19120   ;;
19121
19122 # This must be Linux ELF.
19123 linux*)
19124   version_type=linux
19125   need_lib_prefix=no
19126   need_version=no
19127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19128   soname_spec='${libname}${release}${shared_ext}$major'
19129   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19130   shlibpath_var=LD_LIBRARY_PATH
19131   shlibpath_overrides_runpath=no
19132   # This implies no fast_install, which is unacceptable.
19133   # Some rework will be needed to allow for fast_install
19134   # before this can be enabled.
19135   hardcode_into_libs=yes
19136
19137   # find out which ABI we are using
19138   libsuff=
19139   case "$host_cpu" in
19140   x86_64*|s390x*|powerpc64*)
19141     echo '#line 19141 "configure"' > conftest.$ac_ext
19142     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19143   (eval $ac_compile) 2>&5
19144   ac_status=$?
19145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146   (exit $ac_status); }; then
19147       case `/usr/bin/file conftest.$ac_objext` in
19148       *64-bit*)
19149         libsuff=64
19150         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19151         ;;
19152       esac
19153     fi
19154     rm -rf conftest*
19155     ;;
19156   esac
19157
19158   # Append ld.so.conf contents to the search path
19159   if test -f /etc/ld.so.conf; then
19160     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
19161     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19162   fi
19163
19164   # We used to test for /lib/ld.so.1 and disable shared libraries on
19165   # powerpc, because MkLinux only supported shared libraries with the
19166   # GNU dynamic linker.  Since this was broken with cross compilers,
19167   # most powerpc-linux boxes support dynamic linking these days and
19168   # people can always --disable-shared, the test was removed, and we
19169   # assume the GNU/Linux dynamic linker is in use.
19170   dynamic_linker='GNU/Linux ld.so'
19171   ;;
19172
19173 knetbsd*-gnu)
19174   version_type=linux
19175   need_lib_prefix=no
19176   need_version=no
19177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19178   soname_spec='${libname}${release}${shared_ext}$major'
19179   shlibpath_var=LD_LIBRARY_PATH
19180   shlibpath_overrides_runpath=no
19181   hardcode_into_libs=yes
19182   dynamic_linker='GNU ld.so'
19183   ;;
19184
19185 netbsd*)
19186   version_type=sunos
19187   need_lib_prefix=no
19188   need_version=no
19189   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19190     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19191     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19192     dynamic_linker='NetBSD (a.out) ld.so'
19193   else
19194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19195     soname_spec='${libname}${release}${shared_ext}$major'
19196     dynamic_linker='NetBSD ld.elf_so'
19197   fi
19198   shlibpath_var=LD_LIBRARY_PATH
19199   shlibpath_overrides_runpath=yes
19200   hardcode_into_libs=yes
19201   ;;
19202
19203 newsos6)
19204   version_type=linux
19205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19206   shlibpath_var=LD_LIBRARY_PATH
19207   shlibpath_overrides_runpath=yes
19208   ;;
19209
19210 nto-qnx*)
19211   version_type=linux
19212   need_lib_prefix=no
19213   need_version=no
19214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19215   soname_spec='${libname}${release}${shared_ext}$major'
19216   shlibpath_var=LD_LIBRARY_PATH
19217   shlibpath_overrides_runpath=yes
19218   ;;
19219
19220 openbsd*)
19221   version_type=sunos
19222   need_lib_prefix=no
19223   need_version=yes
19224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19225   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19226   shlibpath_var=LD_LIBRARY_PATH
19227   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19228     case $host_os in
19229       openbsd2.[89] | openbsd2.[89].*)
19230         shlibpath_overrides_runpath=no
19231         ;;
19232       *)
19233         shlibpath_overrides_runpath=yes
19234         ;;
19235       esac
19236   else
19237     shlibpath_overrides_runpath=yes
19238   fi
19239   ;;
19240
19241 os2*)
19242   libname_spec='$name'
19243   shrext_cmds=".dll"
19244   need_lib_prefix=no
19245   library_names_spec='$libname${shared_ext} $libname.a'
19246   dynamic_linker='OS/2 ld.exe'
19247   shlibpath_var=LIBPATH
19248   ;;
19249
19250 osf3* | osf4* | osf5*)
19251   version_type=osf
19252   need_lib_prefix=no
19253   need_version=no
19254   soname_spec='${libname}${release}${shared_ext}$major'
19255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19256   shlibpath_var=LD_LIBRARY_PATH
19257   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19258   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19259   ;;
19260
19261 sco3.2v5*)
19262   version_type=osf
19263   soname_spec='${libname}${release}${shared_ext}$major'
19264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19265   shlibpath_var=LD_LIBRARY_PATH
19266   ;;
19267
19268 solaris*)
19269   version_type=linux
19270   need_lib_prefix=no
19271   need_version=no
19272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19273   soname_spec='${libname}${release}${shared_ext}$major'
19274   shlibpath_var=LD_LIBRARY_PATH
19275   shlibpath_overrides_runpath=yes
19276   hardcode_into_libs=yes
19277   # ldd complains unless libraries are executable
19278   postinstall_cmds='chmod +x $lib'
19279   ;;
19280
19281 sunos4*)
19282   version_type=sunos
19283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19284   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19285   shlibpath_var=LD_LIBRARY_PATH
19286   shlibpath_overrides_runpath=yes
19287   if test "$with_gnu_ld" = yes; then
19288     need_lib_prefix=no
19289   fi
19290   need_version=yes
19291   ;;
19292
19293 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19294   version_type=linux
19295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19296   soname_spec='${libname}${release}${shared_ext}$major'
19297   shlibpath_var=LD_LIBRARY_PATH
19298   case $host_vendor in
19299     sni)
19300       shlibpath_overrides_runpath=no
19301       need_lib_prefix=no
19302       export_dynamic_flag_spec='${wl}-Blargedynsym'
19303       runpath_var=LD_RUN_PATH
19304       ;;
19305     siemens)
19306       need_lib_prefix=no
19307       ;;
19308     motorola)
19309       need_lib_prefix=no
19310       need_version=no
19311       shlibpath_overrides_runpath=no
19312       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19313       ;;
19314   esac
19315   ;;
19316
19317 sysv4*MP*)
19318   if test -d /usr/nec ;then
19319     version_type=linux
19320     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19321     soname_spec='$libname${shared_ext}.$major'
19322     shlibpath_var=LD_LIBRARY_PATH
19323   fi
19324   ;;
19325
19326 uts4*)
19327   version_type=linux
19328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19329   soname_spec='${libname}${release}${shared_ext}$major'
19330   shlibpath_var=LD_LIBRARY_PATH
19331   ;;
19332
19333 *)
19334   dynamic_linker=no
19335   ;;
19336 esac
19337 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19338 echo "${ECHO_T}$dynamic_linker" >&6
19339 test "$dynamic_linker" = no && can_build_shared=no
19340
19341 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19342 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19343 hardcode_action_GCJ=
19344 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19345    test -n "$runpath_var GCJ" || \
19346    test "X$hardcode_automatic_GCJ"="Xyes" ; then
19347
19348   # We can hardcode non-existant directories.
19349   if test "$hardcode_direct_GCJ" != no &&
19350      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19351      # have to relink, otherwise we might link with an installed library
19352      # when we should be linking with a yet-to-be-installed one
19353      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19354      test "$hardcode_minus_L_GCJ" != no; then
19355     # Linking always hardcodes the temporary library directory.
19356     hardcode_action_GCJ=relink
19357   else
19358     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19359     hardcode_action_GCJ=immediate
19360   fi
19361 else
19362   # We cannot hardcode anything, or else we can only hardcode existing
19363   # directories.
19364   hardcode_action_GCJ=unsupported
19365 fi
19366 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19367 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19368
19369 if test "$hardcode_action_GCJ" = relink; then
19370   # Fast installation is not supported
19371   enable_fast_install=no
19372 elif test "$shlibpath_overrides_runpath" = yes ||
19373      test "$enable_shared" = no; then
19374   # Fast installation is not necessary
19375   enable_fast_install=needless
19376 fi
19377
19378 striplib=
19379 old_striplib=
19380 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19381 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19382 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19383   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19384   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19385   echo "$as_me:$LINENO: result: yes" >&5
19386 echo "${ECHO_T}yes" >&6
19387 else
19388 # FIXME - insert some real tests, host_os isn't really good enough
19389   case $host_os in
19390    darwin*)
19391        if test -n "$STRIP" ; then
19392          striplib="$STRIP -x"
19393          echo "$as_me:$LINENO: result: yes" >&5
19394 echo "${ECHO_T}yes" >&6
19395        else
19396   echo "$as_me:$LINENO: result: no" >&5
19397 echo "${ECHO_T}no" >&6
19398 fi
19399        ;;
19400    *)
19401   echo "$as_me:$LINENO: result: no" >&5
19402 echo "${ECHO_T}no" >&6
19403     ;;
19404   esac
19405 fi
19406
19407 if test "x$enable_dlopen" != xyes; then
19408   enable_dlopen=unknown
19409   enable_dlopen_self=unknown
19410   enable_dlopen_self_static=unknown
19411 else
19412   lt_cv_dlopen=no
19413   lt_cv_dlopen_libs=
19414
19415   case $host_os in
19416   beos*)
19417     lt_cv_dlopen="load_add_on"
19418     lt_cv_dlopen_libs=
19419     lt_cv_dlopen_self=yes
19420     ;;
19421
19422   mingw* | pw32*)
19423     lt_cv_dlopen="LoadLibrary"
19424     lt_cv_dlopen_libs=
19425    ;;
19426
19427   cygwin*)
19428     lt_cv_dlopen="dlopen"
19429     lt_cv_dlopen_libs=
19430    ;;
19431
19432   darwin*)
19433   # if libdl is installed we need to link against it
19434     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19435 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19436 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19437   echo $ECHO_N "(cached) $ECHO_C" >&6
19438 else
19439   ac_check_lib_save_LIBS=$LIBS
19440 LIBS="-ldl  $LIBS"
19441 cat >conftest.$ac_ext <<_ACEOF
19442 /* confdefs.h.  */
19443 _ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h.  */
19447
19448 /* Override any gcc2 internal prototype to avoid an error.  */
19449 #ifdef __cplusplus
19450 extern "C"
19451 #endif
19452 /* We use char because int might match the return type of a gcc2
19453    builtin and then its argument prototype would still apply.  */
19454 char dlopen ();
19455 int
19456 main ()
19457 {
19458 dlopen ();
19459   ;
19460   return 0;
19461 }
19462 _ACEOF
19463 rm -f conftest.$ac_objext conftest$ac_exeext
19464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19465   (eval $ac_link) 2>conftest.er1
19466   ac_status=$?
19467   grep -v '^ *+' conftest.er1 >conftest.err
19468   rm -f conftest.er1
19469   cat conftest.err >&5
19470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471   (exit $ac_status); } &&
19472          { ac_try='test -z "$ac_c_werror_flag"
19473                          || test ! -s conftest.err'
19474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19475   (eval $ac_try) 2>&5
19476   ac_status=$?
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); }; } &&
19479          { ac_try='test -s conftest$ac_exeext'
19480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481   (eval $ac_try) 2>&5
19482   ac_status=$?
19483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484   (exit $ac_status); }; }; then
19485   ac_cv_lib_dl_dlopen=yes
19486 else
19487   echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19489
19490 ac_cv_lib_dl_dlopen=no
19491 fi
19492 rm -f conftest.err conftest.$ac_objext \
19493       conftest$ac_exeext conftest.$ac_ext
19494 LIBS=$ac_check_lib_save_LIBS
19495 fi
19496 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19497 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19498 if test $ac_cv_lib_dl_dlopen = yes; then
19499   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19500 else
19501
19502     lt_cv_dlopen="dyld"
19503     lt_cv_dlopen_libs=
19504     lt_cv_dlopen_self=yes
19505
19506 fi
19507
19508    ;;
19509
19510   *)
19511     echo "$as_me:$LINENO: checking for shl_load" >&5
19512 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19513 if test "${ac_cv_func_shl_load+set}" = set; then
19514   echo $ECHO_N "(cached) $ECHO_C" >&6
19515 else
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 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19524 #define shl_load innocuous_shl_load
19525
19526 /* System header to define __stub macros and hopefully few prototypes,
19527     which can conflict with char shl_load (); below.
19528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19529     <limits.h> exists even on freestanding compilers.  */
19530
19531 #ifdef __STDC__
19532 # include <limits.h>
19533 #else
19534 # include <assert.h>
19535 #endif
19536
19537 #undef shl_load
19538
19539 /* Override any gcc2 internal prototype to avoid an error.  */
19540 #ifdef __cplusplus
19541 extern "C"
19542 {
19543 #endif
19544 /* We use char because int might match the return type of a gcc2
19545    builtin and then its argument prototype would still apply.  */
19546 char shl_load ();
19547 /* The GNU C library defines this for functions which it implements
19548     to always fail with ENOSYS.  Some functions are actually named
19549     something starting with __ and the normal name is an alias.  */
19550 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19551 choke me
19552 #else
19553 char (*f) () = shl_load;
19554 #endif
19555 #ifdef __cplusplus
19556 }
19557 #endif
19558
19559 int
19560 main ()
19561 {
19562 return f != shl_load;
19563   ;
19564   return 0;
19565 }
19566 _ACEOF
19567 rm -f conftest.$ac_objext conftest$ac_exeext
19568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19569   (eval $ac_link) 2>conftest.er1
19570   ac_status=$?
19571   grep -v '^ *+' conftest.er1 >conftest.err
19572   rm -f conftest.er1
19573   cat conftest.err >&5
19574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575   (exit $ac_status); } &&
19576          { ac_try='test -z "$ac_c_werror_flag"
19577                          || test ! -s conftest.err'
19578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579   (eval $ac_try) 2>&5
19580   ac_status=$?
19581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582   (exit $ac_status); }; } &&
19583          { ac_try='test -s conftest$ac_exeext'
19584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585   (eval $ac_try) 2>&5
19586   ac_status=$?
19587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588   (exit $ac_status); }; }; then
19589   ac_cv_func_shl_load=yes
19590 else
19591   echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19593
19594 ac_cv_func_shl_load=no
19595 fi
19596 rm -f conftest.err conftest.$ac_objext \
19597       conftest$ac_exeext conftest.$ac_ext
19598 fi
19599 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19600 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19601 if test $ac_cv_func_shl_load = yes; then
19602   lt_cv_dlopen="shl_load"
19603 else
19604   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19605 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19606 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19607   echo $ECHO_N "(cached) $ECHO_C" >&6
19608 else
19609   ac_check_lib_save_LIBS=$LIBS
19610 LIBS="-ldld  $LIBS"
19611 cat >conftest.$ac_ext <<_ACEOF
19612 /* confdefs.h.  */
19613 _ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h.  */
19617
19618 /* Override any gcc2 internal prototype to avoid an error.  */
19619 #ifdef __cplusplus
19620 extern "C"
19621 #endif
19622 /* We use char because int might match the return type of a gcc2
19623    builtin and then its argument prototype would still apply.  */
19624 char shl_load ();
19625 int
19626 main ()
19627 {
19628 shl_load ();
19629   ;
19630   return 0;
19631 }
19632 _ACEOF
19633 rm -f conftest.$ac_objext conftest$ac_exeext
19634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19635   (eval $ac_link) 2>conftest.er1
19636   ac_status=$?
19637   grep -v '^ *+' conftest.er1 >conftest.err
19638   rm -f conftest.er1
19639   cat conftest.err >&5
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); } &&
19642          { ac_try='test -z "$ac_c_werror_flag"
19643                          || test ! -s conftest.err'
19644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645   (eval $ac_try) 2>&5
19646   ac_status=$?
19647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648   (exit $ac_status); }; } &&
19649          { ac_try='test -s conftest$ac_exeext'
19650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651   (eval $ac_try) 2>&5
19652   ac_status=$?
19653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654   (exit $ac_status); }; }; then
19655   ac_cv_lib_dld_shl_load=yes
19656 else
19657   echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19659
19660 ac_cv_lib_dld_shl_load=no
19661 fi
19662 rm -f conftest.err conftest.$ac_objext \
19663       conftest$ac_exeext conftest.$ac_ext
19664 LIBS=$ac_check_lib_save_LIBS
19665 fi
19666 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19667 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19668 if test $ac_cv_lib_dld_shl_load = yes; then
19669   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19670 else
19671   echo "$as_me:$LINENO: checking for dlopen" >&5
19672 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19673 if test "${ac_cv_func_dlopen+set}" = set; then
19674   echo $ECHO_N "(cached) $ECHO_C" >&6
19675 else
19676   cat >conftest.$ac_ext <<_ACEOF
19677 /* confdefs.h.  */
19678 _ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h.  */
19682 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19684 #define dlopen innocuous_dlopen
19685
19686 /* System header to define __stub macros and hopefully few prototypes,
19687     which can conflict with char dlopen (); below.
19688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19689     <limits.h> exists even on freestanding compilers.  */
19690
19691 #ifdef __STDC__
19692 # include <limits.h>
19693 #else
19694 # include <assert.h>
19695 #endif
19696
19697 #undef dlopen
19698
19699 /* Override any gcc2 internal prototype to avoid an error.  */
19700 #ifdef __cplusplus
19701 extern "C"
19702 {
19703 #endif
19704 /* We use char because int might match the return type of a gcc2
19705    builtin and then its argument prototype would still apply.  */
19706 char dlopen ();
19707 /* The GNU C library defines this for functions which it implements
19708     to always fail with ENOSYS.  Some functions are actually named
19709     something starting with __ and the normal name is an alias.  */
19710 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19711 choke me
19712 #else
19713 char (*f) () = dlopen;
19714 #endif
19715 #ifdef __cplusplus
19716 }
19717 #endif
19718
19719 int
19720 main ()
19721 {
19722 return f != dlopen;
19723   ;
19724   return 0;
19725 }
19726 _ACEOF
19727 rm -f conftest.$ac_objext conftest$ac_exeext
19728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19729   (eval $ac_link) 2>conftest.er1
19730   ac_status=$?
19731   grep -v '^ *+' conftest.er1 >conftest.err
19732   rm -f conftest.er1
19733   cat conftest.err >&5
19734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735   (exit $ac_status); } &&
19736          { ac_try='test -z "$ac_c_werror_flag"
19737                          || test ! -s conftest.err'
19738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739   (eval $ac_try) 2>&5
19740   ac_status=$?
19741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742   (exit $ac_status); }; } &&
19743          { ac_try='test -s conftest$ac_exeext'
19744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745   (eval $ac_try) 2>&5
19746   ac_status=$?
19747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748   (exit $ac_status); }; }; then
19749   ac_cv_func_dlopen=yes
19750 else
19751   echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19753
19754 ac_cv_func_dlopen=no
19755 fi
19756 rm -f conftest.err conftest.$ac_objext \
19757       conftest$ac_exeext conftest.$ac_ext
19758 fi
19759 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19760 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19761 if test $ac_cv_func_dlopen = yes; then
19762   lt_cv_dlopen="dlopen"
19763 else
19764   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19765 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19766 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19767   echo $ECHO_N "(cached) $ECHO_C" >&6
19768 else
19769   ac_check_lib_save_LIBS=$LIBS
19770 LIBS="-ldl  $LIBS"
19771 cat >conftest.$ac_ext <<_ACEOF
19772 /* confdefs.h.  */
19773 _ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h.  */
19777
19778 /* Override any gcc2 internal prototype to avoid an error.  */
19779 #ifdef __cplusplus
19780 extern "C"
19781 #endif
19782 /* We use char because int might match the return type of a gcc2
19783    builtin and then its argument prototype would still apply.  */
19784 char dlopen ();
19785 int
19786 main ()
19787 {
19788 dlopen ();
19789   ;
19790   return 0;
19791 }
19792 _ACEOF
19793 rm -f conftest.$ac_objext conftest$ac_exeext
19794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19795   (eval $ac_link) 2>conftest.er1
19796   ac_status=$?
19797   grep -v '^ *+' conftest.er1 >conftest.err
19798   rm -f conftest.er1
19799   cat conftest.err >&5
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); } &&
19802          { ac_try='test -z "$ac_c_werror_flag"
19803                          || test ! -s conftest.err'
19804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805   (eval $ac_try) 2>&5
19806   ac_status=$?
19807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808   (exit $ac_status); }; } &&
19809          { ac_try='test -s conftest$ac_exeext'
19810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811   (eval $ac_try) 2>&5
19812   ac_status=$?
19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); }; }; then
19815   ac_cv_lib_dl_dlopen=yes
19816 else
19817   echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19819
19820 ac_cv_lib_dl_dlopen=no
19821 fi
19822 rm -f conftest.err conftest.$ac_objext \
19823       conftest$ac_exeext conftest.$ac_ext
19824 LIBS=$ac_check_lib_save_LIBS
19825 fi
19826 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19828 if test $ac_cv_lib_dl_dlopen = yes; then
19829   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19830 else
19831   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19832 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19833 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19834   echo $ECHO_N "(cached) $ECHO_C" >&6
19835 else
19836   ac_check_lib_save_LIBS=$LIBS
19837 LIBS="-lsvld  $LIBS"
19838 cat >conftest.$ac_ext <<_ACEOF
19839 /* confdefs.h.  */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h.  */
19844
19845 /* Override any gcc2 internal prototype to avoid an error.  */
19846 #ifdef __cplusplus
19847 extern "C"
19848 #endif
19849 /* We use char because int might match the return type of a gcc2
19850    builtin and then its argument prototype would still apply.  */
19851 char dlopen ();
19852 int
19853 main ()
19854 {
19855 dlopen ();
19856   ;
19857   return 0;
19858 }
19859 _ACEOF
19860 rm -f conftest.$ac_objext conftest$ac_exeext
19861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19862   (eval $ac_link) 2>conftest.er1
19863   ac_status=$?
19864   grep -v '^ *+' conftest.er1 >conftest.err
19865   rm -f conftest.er1
19866   cat conftest.err >&5
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); } &&
19869          { ac_try='test -z "$ac_c_werror_flag"
19870                          || test ! -s conftest.err'
19871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872   (eval $ac_try) 2>&5
19873   ac_status=$?
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); }; } &&
19876          { ac_try='test -s conftest$ac_exeext'
19877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878   (eval $ac_try) 2>&5
19879   ac_status=$?
19880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881   (exit $ac_status); }; }; then
19882   ac_cv_lib_svld_dlopen=yes
19883 else
19884   echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19886
19887 ac_cv_lib_svld_dlopen=no
19888 fi
19889 rm -f conftest.err conftest.$ac_objext \
19890       conftest$ac_exeext conftest.$ac_ext
19891 LIBS=$ac_check_lib_save_LIBS
19892 fi
19893 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19894 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19895 if test $ac_cv_lib_svld_dlopen = yes; then
19896   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19897 else
19898   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19899 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19900 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19901   echo $ECHO_N "(cached) $ECHO_C" >&6
19902 else
19903   ac_check_lib_save_LIBS=$LIBS
19904 LIBS="-ldld  $LIBS"
19905 cat >conftest.$ac_ext <<_ACEOF
19906 /* confdefs.h.  */
19907 _ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h.  */
19911
19912 /* Override any gcc2 internal prototype to avoid an error.  */
19913 #ifdef __cplusplus
19914 extern "C"
19915 #endif
19916 /* We use char because int might match the return type of a gcc2
19917    builtin and then its argument prototype would still apply.  */
19918 char dld_link ();
19919 int
19920 main ()
19921 {
19922 dld_link ();
19923   ;
19924   return 0;
19925 }
19926 _ACEOF
19927 rm -f conftest.$ac_objext conftest$ac_exeext
19928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19929   (eval $ac_link) 2>conftest.er1
19930   ac_status=$?
19931   grep -v '^ *+' conftest.er1 >conftest.err
19932   rm -f conftest.er1
19933   cat conftest.err >&5
19934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); } &&
19936          { ac_try='test -z "$ac_c_werror_flag"
19937                          || test ! -s conftest.err'
19938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939   (eval $ac_try) 2>&5
19940   ac_status=$?
19941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942   (exit $ac_status); }; } &&
19943          { ac_try='test -s conftest$ac_exeext'
19944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945   (eval $ac_try) 2>&5
19946   ac_status=$?
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); }; }; then
19949   ac_cv_lib_dld_dld_link=yes
19950 else
19951   echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19953
19954 ac_cv_lib_dld_dld_link=no
19955 fi
19956 rm -f conftest.err conftest.$ac_objext \
19957       conftest$ac_exeext conftest.$ac_ext
19958 LIBS=$ac_check_lib_save_LIBS
19959 fi
19960 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19961 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19962 if test $ac_cv_lib_dld_dld_link = yes; then
19963   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19964 fi
19965
19966
19967 fi
19968
19969
19970 fi
19971
19972
19973 fi
19974
19975
19976 fi
19977
19978
19979 fi
19980
19981     ;;
19982   esac
19983
19984   if test "x$lt_cv_dlopen" != xno; then
19985     enable_dlopen=yes
19986   else
19987     enable_dlopen=no
19988   fi
19989
19990   case $lt_cv_dlopen in
19991   dlopen)
19992     save_CPPFLAGS="$CPPFLAGS"
19993     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19994
19995     save_LDFLAGS="$LDFLAGS"
19996     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19997
19998     save_LIBS="$LIBS"
19999     LIBS="$lt_cv_dlopen_libs $LIBS"
20000
20001     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20002 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20003 if test "${lt_cv_dlopen_self+set}" = set; then
20004   echo $ECHO_N "(cached) $ECHO_C" >&6
20005 else
20006           if test "$cross_compiling" = yes; then :
20007   lt_cv_dlopen_self=cross
20008 else
20009   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20010   lt_status=$lt_dlunknown
20011   cat > conftest.$ac_ext <<EOF
20012 #line 20012 "configure"
20013 #include "confdefs.h"
20014
20015 #if HAVE_DLFCN_H
20016 #include <dlfcn.h>
20017 #endif
20018
20019 #include <stdio.h>
20020
20021 #ifdef RTLD_GLOBAL
20022 #  define LT_DLGLOBAL           RTLD_GLOBAL
20023 #else
20024 #  ifdef DL_GLOBAL
20025 #    define LT_DLGLOBAL         DL_GLOBAL
20026 #  else
20027 #    define LT_DLGLOBAL         0
20028 #  endif
20029 #endif
20030
20031 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20032    find out it does not work in some platform. */
20033 #ifndef LT_DLLAZY_OR_NOW
20034 #  ifdef RTLD_LAZY
20035 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20036 #  else
20037 #    ifdef DL_LAZY
20038 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20039 #    else
20040 #      ifdef RTLD_NOW
20041 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20042 #      else
20043 #        ifdef DL_NOW
20044 #          define LT_DLLAZY_OR_NOW      DL_NOW
20045 #        else
20046 #          define LT_DLLAZY_OR_NOW      0
20047 #        endif
20048 #      endif
20049 #    endif
20050 #  endif
20051 #endif
20052
20053 #ifdef __cplusplus
20054 extern "C" void exit (int);
20055 #endif
20056
20057 void fnord() { int i=42;}
20058 int main ()
20059 {
20060   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20061   int status = $lt_dlunknown;
20062
20063   if (self)
20064     {
20065       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20066       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20067       /* dlclose (self); */
20068     }
20069
20070     exit (status);
20071 }
20072 EOF
20073   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20074   (eval $ac_link) 2>&5
20075   ac_status=$?
20076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20078     (./conftest; exit; ) 2>/dev/null
20079     lt_status=$?
20080     case x$lt_status in
20081       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20082       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20083       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20084     esac
20085   else :
20086     # compilation failed
20087     lt_cv_dlopen_self=no
20088   fi
20089 fi
20090 rm -fr conftest*
20091
20092
20093 fi
20094 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20095 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20096
20097     if test "x$lt_cv_dlopen_self" = xyes; then
20098       LDFLAGS="$LDFLAGS $link_static_flag"
20099       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20100 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20101 if test "${lt_cv_dlopen_self_static+set}" = set; then
20102   echo $ECHO_N "(cached) $ECHO_C" >&6
20103 else
20104           if test "$cross_compiling" = yes; then :
20105   lt_cv_dlopen_self_static=cross
20106 else
20107   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20108   lt_status=$lt_dlunknown
20109   cat > conftest.$ac_ext <<EOF
20110 #line 20110 "configure"
20111 #include "confdefs.h"
20112
20113 #if HAVE_DLFCN_H
20114 #include <dlfcn.h>
20115 #endif
20116
20117 #include <stdio.h>
20118
20119 #ifdef RTLD_GLOBAL
20120 #  define LT_DLGLOBAL           RTLD_GLOBAL
20121 #else
20122 #  ifdef DL_GLOBAL
20123 #    define LT_DLGLOBAL         DL_GLOBAL
20124 #  else
20125 #    define LT_DLGLOBAL         0
20126 #  endif
20127 #endif
20128
20129 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20130    find out it does not work in some platform. */
20131 #ifndef LT_DLLAZY_OR_NOW
20132 #  ifdef RTLD_LAZY
20133 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20134 #  else
20135 #    ifdef DL_LAZY
20136 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20137 #    else
20138 #      ifdef RTLD_NOW
20139 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20140 #      else
20141 #        ifdef DL_NOW
20142 #          define LT_DLLAZY_OR_NOW      DL_NOW
20143 #        else
20144 #          define LT_DLLAZY_OR_NOW      0
20145 #        endif
20146 #      endif
20147 #    endif
20148 #  endif
20149 #endif
20150
20151 #ifdef __cplusplus
20152 extern "C" void exit (int);
20153 #endif
20154
20155 void fnord() { int i=42;}
20156 int main ()
20157 {
20158   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20159   int status = $lt_dlunknown;
20160
20161   if (self)
20162     {
20163       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20164       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20165       /* dlclose (self); */
20166     }
20167
20168     exit (status);
20169 }
20170 EOF
20171   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20172   (eval $ac_link) 2>&5
20173   ac_status=$?
20174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20176     (./conftest; exit; ) 2>/dev/null
20177     lt_status=$?
20178     case x$lt_status in
20179       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20180       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20181       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20182     esac
20183   else :
20184     # compilation failed
20185     lt_cv_dlopen_self_static=no
20186   fi
20187 fi
20188 rm -fr conftest*
20189
20190
20191 fi
20192 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20193 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20194     fi
20195
20196     CPPFLAGS="$save_CPPFLAGS"
20197     LDFLAGS="$save_LDFLAGS"
20198     LIBS="$save_LIBS"
20199     ;;
20200   esac
20201
20202   case $lt_cv_dlopen_self in
20203   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20204   *) enable_dlopen_self=unknown ;;
20205   esac
20206
20207   case $lt_cv_dlopen_self_static in
20208   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20209   *) enable_dlopen_self_static=unknown ;;
20210   esac
20211 fi
20212
20213
20214 # The else clause should only fire when bootstrapping the
20215 # libtool distribution, otherwise you forgot to ship ltmain.sh
20216 # with your package, and you will get complaints that there are
20217 # no rules to generate ltmain.sh.
20218 if test -f "$ltmain"; then
20219   # See if we are running on zsh, and set the options which allow our commands through
20220   # without removal of \ escapes.
20221   if test -n "${ZSH_VERSION+set}" ; then
20222     setopt NO_GLOB_SUBST
20223   fi
20224   # Now quote all the things that may contain metacharacters while being
20225   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20226   # variables and quote the copies for generation of the libtool script.
20227   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20228     SED SHELL STRIP \
20229     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20230     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20231     deplibs_check_method reload_flag reload_cmds need_locks \
20232     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20233     lt_cv_sys_global_symbol_to_c_name_address \
20234     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20235     old_postinstall_cmds old_postuninstall_cmds \
20236     compiler_GCJ \
20237     CC_GCJ \
20238     LD_GCJ \
20239     lt_prog_compiler_wl_GCJ \
20240     lt_prog_compiler_pic_GCJ \
20241     lt_prog_compiler_static_GCJ \
20242     lt_prog_compiler_no_builtin_flag_GCJ \
20243     export_dynamic_flag_spec_GCJ \
20244     thread_safe_flag_spec_GCJ \
20245     whole_archive_flag_spec_GCJ \
20246     enable_shared_with_static_runtimes_GCJ \
20247     old_archive_cmds_GCJ \
20248     old_archive_from_new_cmds_GCJ \
20249     predep_objects_GCJ \
20250     postdep_objects_GCJ \
20251     predeps_GCJ \
20252     postdeps_GCJ \
20253     compiler_lib_search_path_GCJ \
20254     archive_cmds_GCJ \
20255     archive_expsym_cmds_GCJ \
20256     postinstall_cmds_GCJ \
20257     postuninstall_cmds_GCJ \
20258     old_archive_from_expsyms_cmds_GCJ \
20259     allow_undefined_flag_GCJ \
20260     no_undefined_flag_GCJ \
20261     export_symbols_cmds_GCJ \
20262     hardcode_libdir_flag_spec_GCJ \
20263     hardcode_libdir_flag_spec_ld_GCJ \
20264     hardcode_libdir_separator_GCJ \
20265     hardcode_automatic_GCJ \
20266     module_cmds_GCJ \
20267     module_expsym_cmds_GCJ \
20268     lt_cv_prog_compiler_c_o_GCJ \
20269     exclude_expsyms_GCJ \
20270     include_expsyms_GCJ; do
20271
20272     case $var in
20273     old_archive_cmds_GCJ | \
20274     old_archive_from_new_cmds_GCJ | \
20275     archive_cmds_GCJ | \
20276     archive_expsym_cmds_GCJ | \
20277     module_cmds_GCJ | \
20278     module_expsym_cmds_GCJ | \
20279     old_archive_from_expsyms_cmds_GCJ | \
20280     export_symbols_cmds_GCJ | \
20281     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20282     postinstall_cmds | postuninstall_cmds | \
20283     old_postinstall_cmds | old_postuninstall_cmds | \
20284     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20285       # Double-quote double-evaled strings.
20286       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20287       ;;
20288     *)
20289       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20290       ;;
20291     esac
20292   done
20293
20294   case $lt_echo in
20295   *'\$0 --fallback-echo"')
20296     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20297     ;;
20298   esac
20299
20300 cfgfile="$ofile"
20301
20302   cat <<__EOF__ >> "$cfgfile"
20303 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20304
20305 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20306
20307 # Shell to use when invoking shell scripts.
20308 SHELL=$lt_SHELL
20309
20310 # Whether or not to build shared libraries.
20311 build_libtool_libs=$enable_shared
20312
20313 # Whether or not to build static libraries.
20314 build_old_libs=$enable_static
20315
20316 # Whether or not to add -lc for building shared libraries.
20317 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20318
20319 # Whether or not to disallow shared libs when runtime libs are static
20320 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20321
20322 # Whether or not to optimize for fast installation.
20323 fast_install=$enable_fast_install
20324
20325 # The host system.
20326 host_alias=$host_alias
20327 host=$host
20328
20329 # An echo program that does not interpret backslashes.
20330 echo=$lt_echo
20331
20332 # The archiver.
20333 AR=$lt_AR
20334 AR_FLAGS=$lt_AR_FLAGS
20335
20336 # A C compiler.
20337 LTCC=$lt_LTCC
20338
20339 # A language-specific compiler.
20340 CC=$lt_compiler_GCJ
20341
20342 # Is the compiler the GNU C compiler?
20343 with_gcc=$GCC_GCJ
20344
20345 # An ERE matcher.
20346 EGREP=$lt_EGREP
20347
20348 # The linker used to build libraries.
20349 LD=$lt_LD_GCJ
20350
20351 # Whether we need hard or soft links.
20352 LN_S=$lt_LN_S
20353
20354 # A BSD-compatible nm program.
20355 NM=$lt_NM
20356
20357 # A symbol stripping program
20358 STRIP=$lt_STRIP
20359
20360 # Used to examine libraries when file_magic_cmd begins "file"
20361 MAGIC_CMD=$MAGIC_CMD
20362
20363 # Used on cygwin: DLL creation program.
20364 DLLTOOL="$DLLTOOL"
20365
20366 # Used on cygwin: object dumper.
20367 OBJDUMP="$OBJDUMP"
20368
20369 # Used on cygwin: assembler.
20370 AS="$AS"
20371
20372 # The name of the directory that contains temporary libtool files.
20373 objdir=$objdir
20374
20375 # How to create reloadable object files.
20376 reload_flag=$lt_reload_flag
20377 reload_cmds=$lt_reload_cmds
20378
20379 # How to pass a linker flag through the compiler.
20380 wl=$lt_lt_prog_compiler_wl_GCJ
20381
20382 # Object file suffix (normally "o").
20383 objext="$ac_objext"
20384
20385 # Old archive suffix (normally "a").
20386 libext="$libext"
20387
20388 # Shared library suffix (normally ".so").
20389 shrext_cmds='$shrext_cmds'
20390
20391 # Executable file suffix (normally "").
20392 exeext="$exeext"
20393
20394 # Additional compiler flags for building library objects.
20395 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20396 pic_mode=$pic_mode
20397
20398 # What is the maximum length of a command?
20399 max_cmd_len=$lt_cv_sys_max_cmd_len
20400
20401 # Does compiler simultaneously support -c and -o options?
20402 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20403
20404 # Must we lock files when doing compilation ?
20405 need_locks=$lt_need_locks
20406
20407 # Do we need the lib prefix for modules?
20408 need_lib_prefix=$need_lib_prefix
20409
20410 # Do we need a version for libraries?
20411 need_version=$need_version
20412
20413 # Whether dlopen is supported.
20414 dlopen_support=$enable_dlopen
20415
20416 # Whether dlopen of programs is supported.
20417 dlopen_self=$enable_dlopen_self
20418
20419 # Whether dlopen of statically linked programs is supported.
20420 dlopen_self_static=$enable_dlopen_self_static
20421
20422 # Compiler flag to prevent dynamic linking.
20423 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20424
20425 # Compiler flag to turn off builtin functions.
20426 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20427
20428 # Compiler flag to allow reflexive dlopens.
20429 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20430
20431 # Compiler flag to generate shared objects directly from archives.
20432 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20433
20434 # Compiler flag to generate thread-safe objects.
20435 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20436
20437 # Library versioning type.
20438 version_type=$version_type
20439
20440 # Format of library name prefix.
20441 libname_spec=$lt_libname_spec
20442
20443 # List of archive names.  First name is the real one, the rest are links.
20444 # The last name is the one that the linker finds with -lNAME.
20445 library_names_spec=$lt_library_names_spec
20446
20447 # The coded name of the library, if different from the real name.
20448 soname_spec=$lt_soname_spec
20449
20450 # Commands used to build and install an old-style archive.
20451 RANLIB=$lt_RANLIB
20452 old_archive_cmds=$lt_old_archive_cmds_GCJ
20453 old_postinstall_cmds=$lt_old_postinstall_cmds
20454 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20455
20456 # Create an old-style archive from a shared archive.
20457 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20458
20459 # Create a temporary old-style archive to link instead of a shared archive.
20460 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20461
20462 # Commands used to build and install a shared archive.
20463 archive_cmds=$lt_archive_cmds_GCJ
20464 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20465 postinstall_cmds=$lt_postinstall_cmds
20466 postuninstall_cmds=$lt_postuninstall_cmds
20467
20468 # Commands used to build a loadable module (assumed same as above if empty)
20469 module_cmds=$lt_module_cmds_GCJ
20470 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20471
20472 # Commands to strip libraries.
20473 old_striplib=$lt_old_striplib
20474 striplib=$lt_striplib
20475
20476 # Dependencies to place before the objects being linked to create a
20477 # shared library.
20478 predep_objects=$lt_predep_objects_GCJ
20479
20480 # Dependencies to place after the objects being linked to create a
20481 # shared library.
20482 postdep_objects=$lt_postdep_objects_GCJ
20483
20484 # Dependencies to place before the objects being linked to create a
20485 # shared library.
20486 predeps=$lt_predeps_GCJ
20487
20488 # Dependencies to place after the objects being linked to create a
20489 # shared library.
20490 postdeps=$lt_postdeps_GCJ
20491
20492 # The library search path used internally by the compiler when linking
20493 # a shared library.
20494 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20495
20496 # Method to check whether dependent libraries are shared objects.
20497 deplibs_check_method=$lt_deplibs_check_method
20498
20499 # Command to use when deplibs_check_method == file_magic.
20500 file_magic_cmd=$lt_file_magic_cmd
20501
20502 # Flag that allows shared libraries with undefined symbols to be built.
20503 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20504
20505 # Flag that forces no undefined symbols.
20506 no_undefined_flag=$lt_no_undefined_flag_GCJ
20507
20508 # Commands used to finish a libtool library installation in a directory.
20509 finish_cmds=$lt_finish_cmds
20510
20511 # Same as above, but a single script fragment to be evaled but not shown.
20512 finish_eval=$lt_finish_eval
20513
20514 # Take the output of nm and produce a listing of raw symbols and C names.
20515 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20516
20517 # Transform the output of nm in a proper C declaration
20518 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20519
20520 # Transform the output of nm in a C name address pair
20521 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20522
20523 # This is the shared library runtime path variable.
20524 runpath_var=$runpath_var
20525
20526 # This is the shared library path variable.
20527 shlibpath_var=$shlibpath_var
20528
20529 # Is shlibpath searched before the hard-coded library search path?
20530 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20531
20532 # How to hardcode a shared library path into an executable.
20533 hardcode_action=$hardcode_action_GCJ
20534
20535 # Whether we should hardcode library paths into libraries.
20536 hardcode_into_libs=$hardcode_into_libs
20537
20538 # Flag to hardcode \$libdir into a binary during linking.
20539 # This must work even if \$libdir does not exist.
20540 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20541
20542 # If ld is used when linking, flag to hardcode \$libdir into
20543 # a binary during linking. This must work even if \$libdir does
20544 # not exist.
20545 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20546
20547 # Whether we need a single -rpath flag with a separated argument.
20548 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20549
20550 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20551 # resulting binary.
20552 hardcode_direct=$hardcode_direct_GCJ
20553
20554 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20555 # resulting binary.
20556 hardcode_minus_L=$hardcode_minus_L_GCJ
20557
20558 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20559 # the resulting binary.
20560 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20561
20562 # Set to yes if building a shared library automatically hardcodes DIR into the library
20563 # and all subsequent libraries and executables linked against it.
20564 hardcode_automatic=$hardcode_automatic_GCJ
20565
20566 # Variables whose values should be saved in libtool wrapper scripts and
20567 # restored at relink time.
20568 variables_saved_for_relink="$variables_saved_for_relink"
20569
20570 # Whether libtool must link a program against all its dependency libraries.
20571 link_all_deplibs=$link_all_deplibs_GCJ
20572
20573 # Compile-time system search path for libraries
20574 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20575
20576 # Run-time system search path for libraries
20577 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20578
20579 # Fix the shell variable \$srcfile for the compiler.
20580 fix_srcfile_path="$fix_srcfile_path_GCJ"
20581
20582 # Set to yes if exported symbols are required.
20583 always_export_symbols=$always_export_symbols_GCJ
20584
20585 # The commands to list exported symbols.
20586 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20587
20588 # The commands to extract the exported symbol list from a shared archive.
20589 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20590
20591 # Symbols that should not be listed in the preloaded symbols.
20592 exclude_expsyms=$lt_exclude_expsyms_GCJ
20593
20594 # Symbols that must always be exported.
20595 include_expsyms=$lt_include_expsyms_GCJ
20596
20597 # ### END LIBTOOL TAG CONFIG: $tagname
20598
20599 __EOF__
20600
20601
20602 else
20603   # If there is no Makefile yet, we rely on a make rule to execute
20604   # `config.status --recheck' to rerun these tests and create the
20605   # libtool script then.
20606   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20607   if test -f "$ltmain_in"; then
20608     test -f Makefile && make "$ltmain"
20609   fi
20610 fi
20611
20612
20613 ac_ext=c
20614 ac_cpp='$CPP $CPPFLAGS'
20615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20618
20619 CC="$lt_save_CC"
20620
20621         else
20622           tagname=""
20623         fi
20624         ;;
20625
20626       RC)
20627
20628
20629
20630 # Source file extension for RC test sources.
20631 ac_ext=rc
20632
20633 # Object file extension for compiled RC test sources.
20634 objext=o
20635 objext_RC=$objext
20636
20637 # Code to be used in simple compile tests
20638 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20639
20640 # Code to be used in simple link tests
20641 lt_simple_link_test_code="$lt_simple_compile_test_code"
20642
20643 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20644
20645 # If no C compiler was specified, use CC.
20646 LTCC=${LTCC-"$CC"}
20647
20648 # Allow CC to be a program name with arguments.
20649 compiler=$CC
20650
20651
20652 # Allow CC to be a program name with arguments.
20653 lt_save_CC="$CC"
20654 CC=${RC-"windres"}
20655 compiler=$CC
20656 compiler_RC=$CC
20657 lt_cv_prog_compiler_c_o_RC=yes
20658
20659 # The else clause should only fire when bootstrapping the
20660 # libtool distribution, otherwise you forgot to ship ltmain.sh
20661 # with your package, and you will get complaints that there are
20662 # no rules to generate ltmain.sh.
20663 if test -f "$ltmain"; then
20664   # See if we are running on zsh, and set the options which allow our commands through
20665   # without removal of \ escapes.
20666   if test -n "${ZSH_VERSION+set}" ; then
20667     setopt NO_GLOB_SUBST
20668   fi
20669   # Now quote all the things that may contain metacharacters while being
20670   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20671   # variables and quote the copies for generation of the libtool script.
20672   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20673     SED SHELL STRIP \
20674     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20675     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20676     deplibs_check_method reload_flag reload_cmds need_locks \
20677     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20678     lt_cv_sys_global_symbol_to_c_name_address \
20679     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20680     old_postinstall_cmds old_postuninstall_cmds \
20681     compiler_RC \
20682     CC_RC \
20683     LD_RC \
20684     lt_prog_compiler_wl_RC \
20685     lt_prog_compiler_pic_RC \
20686     lt_prog_compiler_static_RC \
20687     lt_prog_compiler_no_builtin_flag_RC \
20688     export_dynamic_flag_spec_RC \
20689     thread_safe_flag_spec_RC \
20690     whole_archive_flag_spec_RC \
20691     enable_shared_with_static_runtimes_RC \
20692     old_archive_cmds_RC \
20693     old_archive_from_new_cmds_RC \
20694     predep_objects_RC \
20695     postdep_objects_RC \
20696     predeps_RC \
20697     postdeps_RC \
20698     compiler_lib_search_path_RC \
20699     archive_cmds_RC \
20700     archive_expsym_cmds_RC \
20701     postinstall_cmds_RC \
20702     postuninstall_cmds_RC \
20703     old_archive_from_expsyms_cmds_RC \
20704     allow_undefined_flag_RC \
20705     no_undefined_flag_RC \
20706     export_symbols_cmds_RC \
20707     hardcode_libdir_flag_spec_RC \
20708     hardcode_libdir_flag_spec_ld_RC \
20709     hardcode_libdir_separator_RC \
20710     hardcode_automatic_RC \
20711     module_cmds_RC \
20712     module_expsym_cmds_RC \
20713     lt_cv_prog_compiler_c_o_RC \
20714     exclude_expsyms_RC \
20715     include_expsyms_RC; do
20716
20717     case $var in
20718     old_archive_cmds_RC | \
20719     old_archive_from_new_cmds_RC | \
20720     archive_cmds_RC | \
20721     archive_expsym_cmds_RC | \
20722     module_cmds_RC | \
20723     module_expsym_cmds_RC | \
20724     old_archive_from_expsyms_cmds_RC | \
20725     export_symbols_cmds_RC | \
20726     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20727     postinstall_cmds | postuninstall_cmds | \
20728     old_postinstall_cmds | old_postuninstall_cmds | \
20729     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20730       # Double-quote double-evaled strings.
20731       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20732       ;;
20733     *)
20734       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20735       ;;
20736     esac
20737   done
20738
20739   case $lt_echo in
20740   *'\$0 --fallback-echo"')
20741     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20742     ;;
20743   esac
20744
20745 cfgfile="$ofile"
20746
20747   cat <<__EOF__ >> "$cfgfile"
20748 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20749
20750 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20751
20752 # Shell to use when invoking shell scripts.
20753 SHELL=$lt_SHELL
20754
20755 # Whether or not to build shared libraries.
20756 build_libtool_libs=$enable_shared
20757
20758 # Whether or not to build static libraries.
20759 build_old_libs=$enable_static
20760
20761 # Whether or not to add -lc for building shared libraries.
20762 build_libtool_need_lc=$archive_cmds_need_lc_RC
20763
20764 # Whether or not to disallow shared libs when runtime libs are static
20765 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20766
20767 # Whether or not to optimize for fast installation.
20768 fast_install=$enable_fast_install
20769
20770 # The host system.
20771 host_alias=$host_alias
20772 host=$host
20773
20774 # An echo program that does not interpret backslashes.
20775 echo=$lt_echo
20776
20777 # The archiver.
20778 AR=$lt_AR
20779 AR_FLAGS=$lt_AR_FLAGS
20780
20781 # A C compiler.
20782 LTCC=$lt_LTCC
20783
20784 # A language-specific compiler.
20785 CC=$lt_compiler_RC
20786
20787 # Is the compiler the GNU C compiler?
20788 with_gcc=$GCC_RC
20789
20790 # An ERE matcher.
20791 EGREP=$lt_EGREP
20792
20793 # The linker used to build libraries.
20794 LD=$lt_LD_RC
20795
20796 # Whether we need hard or soft links.
20797 LN_S=$lt_LN_S
20798
20799 # A BSD-compatible nm program.
20800 NM=$lt_NM
20801
20802 # A symbol stripping program
20803 STRIP=$lt_STRIP
20804
20805 # Used to examine libraries when file_magic_cmd begins "file"
20806 MAGIC_CMD=$MAGIC_CMD
20807
20808 # Used on cygwin: DLL creation program.
20809 DLLTOOL="$DLLTOOL"
20810
20811 # Used on cygwin: object dumper.
20812 OBJDUMP="$OBJDUMP"
20813
20814 # Used on cygwin: assembler.
20815 AS="$AS"
20816
20817 # The name of the directory that contains temporary libtool files.
20818 objdir=$objdir
20819
20820 # How to create reloadable object files.
20821 reload_flag=$lt_reload_flag
20822 reload_cmds=$lt_reload_cmds
20823
20824 # How to pass a linker flag through the compiler.
20825 wl=$lt_lt_prog_compiler_wl_RC
20826
20827 # Object file suffix (normally "o").
20828 objext="$ac_objext"
20829
20830 # Old archive suffix (normally "a").
20831 libext="$libext"
20832
20833 # Shared library suffix (normally ".so").
20834 shrext_cmds='$shrext_cmds'
20835
20836 # Executable file suffix (normally "").
20837 exeext="$exeext"
20838
20839 # Additional compiler flags for building library objects.
20840 pic_flag=$lt_lt_prog_compiler_pic_RC
20841 pic_mode=$pic_mode
20842
20843 # What is the maximum length of a command?
20844 max_cmd_len=$lt_cv_sys_max_cmd_len
20845
20846 # Does compiler simultaneously support -c and -o options?
20847 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20848
20849 # Must we lock files when doing compilation ?
20850 need_locks=$lt_need_locks
20851
20852 # Do we need the lib prefix for modules?
20853 need_lib_prefix=$need_lib_prefix
20854
20855 # Do we need a version for libraries?
20856 need_version=$need_version
20857
20858 # Whether dlopen is supported.
20859 dlopen_support=$enable_dlopen
20860
20861 # Whether dlopen of programs is supported.
20862 dlopen_self=$enable_dlopen_self
20863
20864 # Whether dlopen of statically linked programs is supported.
20865 dlopen_self_static=$enable_dlopen_self_static
20866
20867 # Compiler flag to prevent dynamic linking.
20868 link_static_flag=$lt_lt_prog_compiler_static_RC
20869
20870 # Compiler flag to turn off builtin functions.
20871 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20872
20873 # Compiler flag to allow reflexive dlopens.
20874 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20875
20876 # Compiler flag to generate shared objects directly from archives.
20877 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20878
20879 # Compiler flag to generate thread-safe objects.
20880 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20881
20882 # Library versioning type.
20883 version_type=$version_type
20884
20885 # Format of library name prefix.
20886 libname_spec=$lt_libname_spec
20887
20888 # List of archive names.  First name is the real one, the rest are links.
20889 # The last name is the one that the linker finds with -lNAME.
20890 library_names_spec=$lt_library_names_spec
20891
20892 # The coded name of the library, if different from the real name.
20893 soname_spec=$lt_soname_spec
20894
20895 # Commands used to build and install an old-style archive.
20896 RANLIB=$lt_RANLIB
20897 old_archive_cmds=$lt_old_archive_cmds_RC
20898 old_postinstall_cmds=$lt_old_postinstall_cmds
20899 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20900
20901 # Create an old-style archive from a shared archive.
20902 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20903
20904 # Create a temporary old-style archive to link instead of a shared archive.
20905 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20906
20907 # Commands used to build and install a shared archive.
20908 archive_cmds=$lt_archive_cmds_RC
20909 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20910 postinstall_cmds=$lt_postinstall_cmds
20911 postuninstall_cmds=$lt_postuninstall_cmds
20912
20913 # Commands used to build a loadable module (assumed same as above if empty)
20914 module_cmds=$lt_module_cmds_RC
20915 module_expsym_cmds=$lt_module_expsym_cmds_RC
20916
20917 # Commands to strip libraries.
20918 old_striplib=$lt_old_striplib
20919 striplib=$lt_striplib
20920
20921 # Dependencies to place before the objects being linked to create a
20922 # shared library.
20923 predep_objects=$lt_predep_objects_RC
20924
20925 # Dependencies to place after the objects being linked to create a
20926 # shared library.
20927 postdep_objects=$lt_postdep_objects_RC
20928
20929 # Dependencies to place before the objects being linked to create a
20930 # shared library.
20931 predeps=$lt_predeps_RC
20932
20933 # Dependencies to place after the objects being linked to create a
20934 # shared library.
20935 postdeps=$lt_postdeps_RC
20936
20937 # The library search path used internally by the compiler when linking
20938 # a shared library.
20939 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20940
20941 # Method to check whether dependent libraries are shared objects.
20942 deplibs_check_method=$lt_deplibs_check_method
20943
20944 # Command to use when deplibs_check_method == file_magic.
20945 file_magic_cmd=$lt_file_magic_cmd
20946
20947 # Flag that allows shared libraries with undefined symbols to be built.
20948 allow_undefined_flag=$lt_allow_undefined_flag_RC
20949
20950 # Flag that forces no undefined symbols.
20951 no_undefined_flag=$lt_no_undefined_flag_RC
20952
20953 # Commands used to finish a libtool library installation in a directory.
20954 finish_cmds=$lt_finish_cmds
20955
20956 # Same as above, but a single script fragment to be evaled but not shown.
20957 finish_eval=$lt_finish_eval
20958
20959 # Take the output of nm and produce a listing of raw symbols and C names.
20960 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20961
20962 # Transform the output of nm in a proper C declaration
20963 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20964
20965 # Transform the output of nm in a C name address pair
20966 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20967
20968 # This is the shared library runtime path variable.
20969 runpath_var=$runpath_var
20970
20971 # This is the shared library path variable.
20972 shlibpath_var=$shlibpath_var
20973
20974 # Is shlibpath searched before the hard-coded library search path?
20975 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20976
20977 # How to hardcode a shared library path into an executable.
20978 hardcode_action=$hardcode_action_RC
20979
20980 # Whether we should hardcode library paths into libraries.
20981 hardcode_into_libs=$hardcode_into_libs
20982
20983 # Flag to hardcode \$libdir into a binary during linking.
20984 # This must work even if \$libdir does not exist.
20985 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20986
20987 # If ld is used when linking, flag to hardcode \$libdir into
20988 # a binary during linking. This must work even if \$libdir does
20989 # not exist.
20990 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20991
20992 # Whether we need a single -rpath flag with a separated argument.
20993 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20994
20995 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20996 # resulting binary.
20997 hardcode_direct=$hardcode_direct_RC
20998
20999 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21000 # resulting binary.
21001 hardcode_minus_L=$hardcode_minus_L_RC
21002
21003 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21004 # the resulting binary.
21005 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21006
21007 # Set to yes if building a shared library automatically hardcodes DIR into the library
21008 # and all subsequent libraries and executables linked against it.
21009 hardcode_automatic=$hardcode_automatic_RC
21010
21011 # Variables whose values should be saved in libtool wrapper scripts and
21012 # restored at relink time.
21013 variables_saved_for_relink="$variables_saved_for_relink"
21014
21015 # Whether libtool must link a program against all its dependency libraries.
21016 link_all_deplibs=$link_all_deplibs_RC
21017
21018 # Compile-time system search path for libraries
21019 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21020
21021 # Run-time system search path for libraries
21022 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21023
21024 # Fix the shell variable \$srcfile for the compiler.
21025 fix_srcfile_path="$fix_srcfile_path_RC"
21026
21027 # Set to yes if exported symbols are required.
21028 always_export_symbols=$always_export_symbols_RC
21029
21030 # The commands to list exported symbols.
21031 export_symbols_cmds=$lt_export_symbols_cmds_RC
21032
21033 # The commands to extract the exported symbol list from a shared archive.
21034 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21035
21036 # Symbols that should not be listed in the preloaded symbols.
21037 exclude_expsyms=$lt_exclude_expsyms_RC
21038
21039 # Symbols that must always be exported.
21040 include_expsyms=$lt_include_expsyms_RC
21041
21042 # ### END LIBTOOL TAG CONFIG: $tagname
21043
21044 __EOF__
21045
21046
21047 else
21048   # If there is no Makefile yet, we rely on a make rule to execute
21049   # `config.status --recheck' to rerun these tests and create the
21050   # libtool script then.
21051   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21052   if test -f "$ltmain_in"; then
21053     test -f Makefile && make "$ltmain"
21054   fi
21055 fi
21056
21057
21058 ac_ext=c
21059 ac_cpp='$CPP $CPPFLAGS'
21060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21063
21064 CC="$lt_save_CC"
21065
21066         ;;
21067
21068       *)
21069         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21070 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21071    { (exit 1); exit 1; }; }
21072         ;;
21073       esac
21074
21075       # Append the new tag name to the list of available tags.
21076       if test -n "$tagname" ; then
21077       available_tags="$available_tags $tagname"
21078     fi
21079     fi
21080   done
21081   IFS="$lt_save_ifs"
21082
21083   # Now substitute the updated list of available tags.
21084   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21085     mv "${ofile}T" "$ofile"
21086     chmod +x "$ofile"
21087   else
21088     rm -f "${ofile}T"
21089     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21090 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21091    { (exit 1); exit 1; }; }
21092   fi
21093 fi
21094
21095
21096
21097 # This can be used to rebuild libtool when needed
21098 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21099
21100 # Always use our own libtool.
21101 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21102
21103 # Prevent multiple expansion
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125 ac_ext=c
21126 ac_cpp='$CPP $CPPFLAGS'
21127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21130
21131
21132 # Checks for typedefs, structures, and compiler characteristics.
21133 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21134 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21135 if test "${ac_cv_c_const+set}" = set; then
21136   echo $ECHO_N "(cached) $ECHO_C" >&6
21137 else
21138   cat >conftest.$ac_ext <<_ACEOF
21139 /* confdefs.h.  */
21140 _ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h.  */
21144
21145 int
21146 main ()
21147 {
21148 /* FIXME: Include the comments suggested by Paul. */
21149 #ifndef __cplusplus
21150   /* Ultrix mips cc rejects this.  */
21151   typedef int charset[2];
21152   const charset x;
21153   /* SunOS 4.1.1 cc rejects this.  */
21154   char const *const *ccp;
21155   char **p;
21156   /* NEC SVR4.0.2 mips cc rejects this.  */
21157   struct point {int x, y;};
21158   static struct point const zero = {0,0};
21159   /* AIX XL C 1.02.0.0 rejects this.
21160      It does not let you subtract one const X* pointer from another in
21161      an arm of an if-expression whose if-part is not a constant
21162      expression */
21163   const char *g = "string";
21164   ccp = &g + (g ? g-g : 0);
21165   /* HPUX 7.0 cc rejects these. */
21166   ++ccp;
21167   p = (char**) ccp;
21168   ccp = (char const *const *) p;
21169   { /* SCO 3.2v4 cc rejects this.  */
21170     char *t;
21171     char const *s = 0 ? (char *) 0 : (char const *) 0;
21172
21173     *t++ = 0;
21174   }
21175   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21176     int x[] = {25, 17};
21177     const int *foo = &x[0];
21178     ++foo;
21179   }
21180   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21181     typedef const int *iptr;
21182     iptr p = 0;
21183     ++p;
21184   }
21185   { /* AIX XL C 1.02.0.0 rejects this saying
21186        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21187     struct s { int j; const int *ap[3]; };
21188     struct s *b; b->j = 5;
21189   }
21190   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21191     const int foo = 10;
21192   }
21193 #endif
21194
21195   ;
21196   return 0;
21197 }
21198 _ACEOF
21199 rm -f conftest.$ac_objext
21200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21201   (eval $ac_compile) 2>conftest.er1
21202   ac_status=$?
21203   grep -v '^ *+' conftest.er1 >conftest.err
21204   rm -f conftest.er1
21205   cat conftest.err >&5
21206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207   (exit $ac_status); } &&
21208          { ac_try='test -z "$ac_c_werror_flag"
21209                          || test ! -s conftest.err'
21210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211   (eval $ac_try) 2>&5
21212   ac_status=$?
21213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); }; } &&
21215          { ac_try='test -s conftest.$ac_objext'
21216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21217   (eval $ac_try) 2>&5
21218   ac_status=$?
21219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220   (exit $ac_status); }; }; then
21221   ac_cv_c_const=yes
21222 else
21223   echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21225
21226 ac_cv_c_const=no
21227 fi
21228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21229 fi
21230 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21231 echo "${ECHO_T}$ac_cv_c_const" >&6
21232 if test $ac_cv_c_const = no; then
21233
21234 cat >>confdefs.h <<\_ACEOF
21235 #define const
21236 _ACEOF
21237
21238 fi
21239
21240 echo "$as_me:$LINENO: checking for size_t" >&5
21241 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21242 if test "${ac_cv_type_size_t+set}" = set; then
21243   echo $ECHO_N "(cached) $ECHO_C" >&6
21244 else
21245   cat >conftest.$ac_ext <<_ACEOF
21246 /* confdefs.h.  */
21247 _ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h.  */
21251 $ac_includes_default
21252 int
21253 main ()
21254 {
21255 if ((size_t *) 0)
21256   return 0;
21257 if (sizeof (size_t))
21258   return 0;
21259   ;
21260   return 0;
21261 }
21262 _ACEOF
21263 rm -f conftest.$ac_objext
21264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21265   (eval $ac_compile) 2>conftest.er1
21266   ac_status=$?
21267   grep -v '^ *+' conftest.er1 >conftest.err
21268   rm -f conftest.er1
21269   cat conftest.err >&5
21270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271   (exit $ac_status); } &&
21272          { ac_try='test -z "$ac_c_werror_flag"
21273                          || test ! -s conftest.err'
21274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275   (eval $ac_try) 2>&5
21276   ac_status=$?
21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278   (exit $ac_status); }; } &&
21279          { ac_try='test -s conftest.$ac_objext'
21280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281   (eval $ac_try) 2>&5
21282   ac_status=$?
21283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284   (exit $ac_status); }; }; then
21285   ac_cv_type_size_t=yes
21286 else
21287   echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21289
21290 ac_cv_type_size_t=no
21291 fi
21292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21293 fi
21294 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21295 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21296 if test $ac_cv_type_size_t = yes; then
21297   :
21298 else
21299
21300 cat >>confdefs.h <<_ACEOF
21301 #define size_t unsigned
21302 _ACEOF
21303
21304 fi
21305
21306 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21307 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21308 if test "${ac_cv_struct_tm+set}" = set; then
21309   echo $ECHO_N "(cached) $ECHO_C" >&6
21310 else
21311   cat >conftest.$ac_ext <<_ACEOF
21312 /* confdefs.h.  */
21313 _ACEOF
21314 cat confdefs.h >>conftest.$ac_ext
21315 cat >>conftest.$ac_ext <<_ACEOF
21316 /* end confdefs.h.  */
21317 #include <sys/types.h>
21318 #include <time.h>
21319
21320 int
21321 main ()
21322 {
21323 struct tm *tp; tp->tm_sec;
21324   ;
21325   return 0;
21326 }
21327 _ACEOF
21328 rm -f conftest.$ac_objext
21329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21330   (eval $ac_compile) 2>conftest.er1
21331   ac_status=$?
21332   grep -v '^ *+' conftest.er1 >conftest.err
21333   rm -f conftest.er1
21334   cat conftest.err >&5
21335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336   (exit $ac_status); } &&
21337          { ac_try='test -z "$ac_c_werror_flag"
21338                          || test ! -s conftest.err'
21339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340   (eval $ac_try) 2>&5
21341   ac_status=$?
21342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343   (exit $ac_status); }; } &&
21344          { ac_try='test -s conftest.$ac_objext'
21345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346   (eval $ac_try) 2>&5
21347   ac_status=$?
21348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349   (exit $ac_status); }; }; then
21350   ac_cv_struct_tm=time.h
21351 else
21352   echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21354
21355 ac_cv_struct_tm=sys/time.h
21356 fi
21357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21358 fi
21359 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21360 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21361 if test $ac_cv_struct_tm = sys/time.h; then
21362
21363 cat >>confdefs.h <<\_ACEOF
21364 #define TM_IN_SYS_TIME 1
21365 _ACEOF
21366
21367 fi
21368
21369
21370 # Checks for library functions.
21371
21372 for ac_func in strftime
21373 do
21374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21375 echo "$as_me:$LINENO: checking for $ac_func" >&5
21376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21377 if eval "test \"\${$as_ac_var+set}\" = set"; then
21378   echo $ECHO_N "(cached) $ECHO_C" >&6
21379 else
21380   cat >conftest.$ac_ext <<_ACEOF
21381 /* confdefs.h.  */
21382 _ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h.  */
21386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21388 #define $ac_func innocuous_$ac_func
21389
21390 /* System header to define __stub macros and hopefully few prototypes,
21391     which can conflict with char $ac_func (); below.
21392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21393     <limits.h> exists even on freestanding compilers.  */
21394
21395 #ifdef __STDC__
21396 # include <limits.h>
21397 #else
21398 # include <assert.h>
21399 #endif
21400
21401 #undef $ac_func
21402
21403 /* Override any gcc2 internal prototype to avoid an error.  */
21404 #ifdef __cplusplus
21405 extern "C"
21406 {
21407 #endif
21408 /* We use char because int might match the return type of a gcc2
21409    builtin and then its argument prototype would still apply.  */
21410 char $ac_func ();
21411 /* The GNU C library defines this for functions which it implements
21412     to always fail with ENOSYS.  Some functions are actually named
21413     something starting with __ and the normal name is an alias.  */
21414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21415 choke me
21416 #else
21417 char (*f) () = $ac_func;
21418 #endif
21419 #ifdef __cplusplus
21420 }
21421 #endif
21422
21423 int
21424 main ()
21425 {
21426 return f != $ac_func;
21427   ;
21428   return 0;
21429 }
21430 _ACEOF
21431 rm -f conftest.$ac_objext conftest$ac_exeext
21432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21433   (eval $ac_link) 2>conftest.er1
21434   ac_status=$?
21435   grep -v '^ *+' conftest.er1 >conftest.err
21436   rm -f conftest.er1
21437   cat conftest.err >&5
21438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439   (exit $ac_status); } &&
21440          { ac_try='test -z "$ac_c_werror_flag"
21441                          || test ! -s conftest.err'
21442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21443   (eval $ac_try) 2>&5
21444   ac_status=$?
21445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446   (exit $ac_status); }; } &&
21447          { ac_try='test -s conftest$ac_exeext'
21448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21449   (eval $ac_try) 2>&5
21450   ac_status=$?
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); }; }; then
21453   eval "$as_ac_var=yes"
21454 else
21455   echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21457
21458 eval "$as_ac_var=no"
21459 fi
21460 rm -f conftest.err conftest.$ac_objext \
21461       conftest$ac_exeext conftest.$ac_ext
21462 fi
21463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21465 if test `eval echo '${'$as_ac_var'}'` = yes; then
21466   cat >>confdefs.h <<_ACEOF
21467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21468 _ACEOF
21469
21470 else
21471   # strftime is in -lintl on SCO UNIX.
21472 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21473 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21474 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21475   echo $ECHO_N "(cached) $ECHO_C" >&6
21476 else
21477   ac_check_lib_save_LIBS=$LIBS
21478 LIBS="-lintl  $LIBS"
21479 cat >conftest.$ac_ext <<_ACEOF
21480 /* confdefs.h.  */
21481 _ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h.  */
21485
21486 /* Override any gcc2 internal prototype to avoid an error.  */
21487 #ifdef __cplusplus
21488 extern "C"
21489 #endif
21490 /* We use char because int might match the return type of a gcc2
21491    builtin and then its argument prototype would still apply.  */
21492 char strftime ();
21493 int
21494 main ()
21495 {
21496 strftime ();
21497   ;
21498   return 0;
21499 }
21500 _ACEOF
21501 rm -f conftest.$ac_objext conftest$ac_exeext
21502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21503   (eval $ac_link) 2>conftest.er1
21504   ac_status=$?
21505   grep -v '^ *+' conftest.er1 >conftest.err
21506   rm -f conftest.er1
21507   cat conftest.err >&5
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); } &&
21510          { ac_try='test -z "$ac_c_werror_flag"
21511                          || test ! -s conftest.err'
21512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513   (eval $ac_try) 2>&5
21514   ac_status=$?
21515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); }; } &&
21517          { ac_try='test -s conftest$ac_exeext'
21518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519   (eval $ac_try) 2>&5
21520   ac_status=$?
21521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522   (exit $ac_status); }; }; then
21523   ac_cv_lib_intl_strftime=yes
21524 else
21525   echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.$ac_ext >&5
21527
21528 ac_cv_lib_intl_strftime=no
21529 fi
21530 rm -f conftest.err conftest.$ac_objext \
21531       conftest$ac_exeext conftest.$ac_ext
21532 LIBS=$ac_check_lib_save_LIBS
21533 fi
21534 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21535 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21536 if test $ac_cv_lib_intl_strftime = yes; then
21537   cat >>confdefs.h <<\_ACEOF
21538 #define HAVE_STRFTIME 1
21539 _ACEOF
21540
21541 LIBS="-lintl $LIBS"
21542 fi
21543
21544 fi
21545 done
21546
21547 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
21548 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
21549 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
21550   echo $ECHO_N "(cached) $ECHO_C" >&6
21551 else
21552   cat >conftest.$ac_ext <<_ACEOF
21553 /* confdefs.h.  */
21554 _ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h.  */
21558 $ac_includes_default
21559 int
21560 main ()
21561 {
21562 #ifndef strerror_r
21563   char *p = (char *) strerror_r;
21564 #endif
21565
21566   ;
21567   return 0;
21568 }
21569 _ACEOF
21570 rm -f conftest.$ac_objext
21571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21572   (eval $ac_compile) 2>conftest.er1
21573   ac_status=$?
21574   grep -v '^ *+' conftest.er1 >conftest.err
21575   rm -f conftest.er1
21576   cat conftest.err >&5
21577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578   (exit $ac_status); } &&
21579          { ac_try='test -z "$ac_c_werror_flag"
21580                          || test ! -s conftest.err'
21581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582   (eval $ac_try) 2>&5
21583   ac_status=$?
21584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); }; } &&
21586          { ac_try='test -s conftest.$ac_objext'
21587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588   (eval $ac_try) 2>&5
21589   ac_status=$?
21590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591   (exit $ac_status); }; }; then
21592   ac_cv_have_decl_strerror_r=yes
21593 else
21594   echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21596
21597 ac_cv_have_decl_strerror_r=no
21598 fi
21599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21600 fi
21601 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
21602 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
21603 if test $ac_cv_have_decl_strerror_r = yes; then
21604
21605 cat >>confdefs.h <<_ACEOF
21606 #define HAVE_DECL_STRERROR_R 1
21607 _ACEOF
21608
21609
21610 else
21611   cat >>confdefs.h <<_ACEOF
21612 #define HAVE_DECL_STRERROR_R 0
21613 _ACEOF
21614
21615
21616 fi
21617
21618
21619
21620 for ac_func in strerror_r
21621 do
21622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21623 echo "$as_me:$LINENO: checking for $ac_func" >&5
21624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21625 if eval "test \"\${$as_ac_var+set}\" = set"; then
21626   echo $ECHO_N "(cached) $ECHO_C" >&6
21627 else
21628   cat >conftest.$ac_ext <<_ACEOF
21629 /* confdefs.h.  */
21630 _ACEOF
21631 cat confdefs.h >>conftest.$ac_ext
21632 cat >>conftest.$ac_ext <<_ACEOF
21633 /* end confdefs.h.  */
21634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21635    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21636 #define $ac_func innocuous_$ac_func
21637
21638 /* System header to define __stub macros and hopefully few prototypes,
21639     which can conflict with char $ac_func (); below.
21640     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21641     <limits.h> exists even on freestanding compilers.  */
21642
21643 #ifdef __STDC__
21644 # include <limits.h>
21645 #else
21646 # include <assert.h>
21647 #endif
21648
21649 #undef $ac_func
21650
21651 /* Override any gcc2 internal prototype to avoid an error.  */
21652 #ifdef __cplusplus
21653 extern "C"
21654 {
21655 #endif
21656 /* We use char because int might match the return type of a gcc2
21657    builtin and then its argument prototype would still apply.  */
21658 char $ac_func ();
21659 /* The GNU C library defines this for functions which it implements
21660     to always fail with ENOSYS.  Some functions are actually named
21661     something starting with __ and the normal name is an alias.  */
21662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21663 choke me
21664 #else
21665 char (*f) () = $ac_func;
21666 #endif
21667 #ifdef __cplusplus
21668 }
21669 #endif
21670
21671 int
21672 main ()
21673 {
21674 return f != $ac_func;
21675   ;
21676   return 0;
21677 }
21678 _ACEOF
21679 rm -f conftest.$ac_objext conftest$ac_exeext
21680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21681   (eval $ac_link) 2>conftest.er1
21682   ac_status=$?
21683   grep -v '^ *+' conftest.er1 >conftest.err
21684   rm -f conftest.er1
21685   cat conftest.err >&5
21686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687   (exit $ac_status); } &&
21688          { ac_try='test -z "$ac_c_werror_flag"
21689                          || test ! -s conftest.err'
21690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691   (eval $ac_try) 2>&5
21692   ac_status=$?
21693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694   (exit $ac_status); }; } &&
21695          { ac_try='test -s conftest$ac_exeext'
21696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697   (eval $ac_try) 2>&5
21698   ac_status=$?
21699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700   (exit $ac_status); }; }; then
21701   eval "$as_ac_var=yes"
21702 else
21703   echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21705
21706 eval "$as_ac_var=no"
21707 fi
21708 rm -f conftest.err conftest.$ac_objext \
21709       conftest$ac_exeext conftest.$ac_ext
21710 fi
21711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21713 if test `eval echo '${'$as_ac_var'}'` = yes; then
21714   cat >>confdefs.h <<_ACEOF
21715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21716 _ACEOF
21717
21718 fi
21719 done
21720
21721 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
21722 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
21723 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
21724   echo $ECHO_N "(cached) $ECHO_C" >&6
21725 else
21726
21727     ac_cv_func_strerror_r_char_p=no
21728     if test $ac_cv_have_decl_strerror_r = yes; then
21729       cat >conftest.$ac_ext <<_ACEOF
21730 /* confdefs.h.  */
21731 _ACEOF
21732 cat confdefs.h >>conftest.$ac_ext
21733 cat >>conftest.$ac_ext <<_ACEOF
21734 /* end confdefs.h.  */
21735 $ac_includes_default
21736 int
21737 main ()
21738 {
21739
21740           char buf[100];
21741           char x = *strerror_r (0, buf, sizeof buf);
21742           char *p = strerror_r (0, buf, sizeof buf);
21743
21744   ;
21745   return 0;
21746 }
21747 _ACEOF
21748 rm -f conftest.$ac_objext
21749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21750   (eval $ac_compile) 2>conftest.er1
21751   ac_status=$?
21752   grep -v '^ *+' conftest.er1 >conftest.err
21753   rm -f conftest.er1
21754   cat conftest.err >&5
21755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756   (exit $ac_status); } &&
21757          { ac_try='test -z "$ac_c_werror_flag"
21758                          || test ! -s conftest.err'
21759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760   (eval $ac_try) 2>&5
21761   ac_status=$?
21762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763   (exit $ac_status); }; } &&
21764          { ac_try='test -s conftest.$ac_objext'
21765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766   (eval $ac_try) 2>&5
21767   ac_status=$?
21768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769   (exit $ac_status); }; }; then
21770   ac_cv_func_strerror_r_char_p=yes
21771 else
21772   echo "$as_me: failed program was:" >&5
21773 sed 's/^/| /' conftest.$ac_ext >&5
21774
21775 fi
21776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21777     else
21778       # strerror_r is not declared.  Choose between
21779       # systems that have relatively inaccessible declarations for the
21780       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
21781       # former has a strerror_r that returns char*, while the latter
21782       # has a strerror_r that returns `int'.
21783       # This test should segfault on the DEC system.
21784       if test "$cross_compiling" = yes; then
21785   :
21786 else
21787   cat >conftest.$ac_ext <<_ACEOF
21788 /* confdefs.h.  */
21789 _ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h.  */
21793 $ac_includes_default
21794         extern char *strerror_r ();
21795 int
21796 main ()
21797 {
21798 char buf[100];
21799           char x = *strerror_r (0, buf, sizeof buf);
21800           exit (!isalpha (x));
21801   ;
21802   return 0;
21803 }
21804 _ACEOF
21805 rm -f conftest$ac_exeext
21806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21807   (eval $ac_link) 2>&5
21808   ac_status=$?
21809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812   (eval $ac_try) 2>&5
21813   ac_status=$?
21814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815   (exit $ac_status); }; }; then
21816   ac_cv_func_strerror_r_char_p=yes
21817 else
21818   echo "$as_me: program exited with status $ac_status" >&5
21819 echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21821
21822 fi
21823 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21824 fi
21825     fi
21826
21827 fi
21828 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
21829 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
21830 if test $ac_cv_func_strerror_r_char_p = yes; then
21831
21832 cat >>confdefs.h <<\_ACEOF
21833 #define STRERROR_R_CHAR_P 1
21834 _ACEOF
21835
21836 fi
21837
21838
21839
21840
21841
21842
21843
21844
21845 for ac_func in strchr strdup strstr timegm gmtime_r strtok_r strcasecmp
21846 do
21847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21848 echo "$as_me:$LINENO: checking for $ac_func" >&5
21849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21850 if eval "test \"\${$as_ac_var+set}\" = set"; then
21851   echo $ECHO_N "(cached) $ECHO_C" >&6
21852 else
21853   cat >conftest.$ac_ext <<_ACEOF
21854 /* confdefs.h.  */
21855 _ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h.  */
21859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21861 #define $ac_func innocuous_$ac_func
21862
21863 /* System header to define __stub macros and hopefully few prototypes,
21864     which can conflict with char $ac_func (); below.
21865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21866     <limits.h> exists even on freestanding compilers.  */
21867
21868 #ifdef __STDC__
21869 # include <limits.h>
21870 #else
21871 # include <assert.h>
21872 #endif
21873
21874 #undef $ac_func
21875
21876 /* Override any gcc2 internal prototype to avoid an error.  */
21877 #ifdef __cplusplus
21878 extern "C"
21879 {
21880 #endif
21881 /* We use char because int might match the return type of a gcc2
21882    builtin and then its argument prototype would still apply.  */
21883 char $ac_func ();
21884 /* The GNU C library defines this for functions which it implements
21885     to always fail with ENOSYS.  Some functions are actually named
21886     something starting with __ and the normal name is an alias.  */
21887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21888 choke me
21889 #else
21890 char (*f) () = $ac_func;
21891 #endif
21892 #ifdef __cplusplus
21893 }
21894 #endif
21895
21896 int
21897 main ()
21898 {
21899 return f != $ac_func;
21900   ;
21901   return 0;
21902 }
21903 _ACEOF
21904 rm -f conftest.$ac_objext conftest$ac_exeext
21905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21906   (eval $ac_link) 2>conftest.er1
21907   ac_status=$?
21908   grep -v '^ *+' conftest.er1 >conftest.err
21909   rm -f conftest.er1
21910   cat conftest.err >&5
21911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912   (exit $ac_status); } &&
21913          { ac_try='test -z "$ac_c_werror_flag"
21914                          || test ! -s conftest.err'
21915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21916   (eval $ac_try) 2>&5
21917   ac_status=$?
21918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919   (exit $ac_status); }; } &&
21920          { ac_try='test -s conftest$ac_exeext'
21921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21922   (eval $ac_try) 2>&5
21923   ac_status=$?
21924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925   (exit $ac_status); }; }; then
21926   eval "$as_ac_var=yes"
21927 else
21928   echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21930
21931 eval "$as_ac_var=no"
21932 fi
21933 rm -f conftest.err conftest.$ac_objext \
21934       conftest$ac_exeext conftest.$ac_ext
21935 fi
21936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21938 if test `eval echo '${'$as_ac_var'}'` = yes; then
21939   cat >>confdefs.h <<_ACEOF
21940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21941 _ACEOF
21942
21943 fi
21944 done
21945
21946
21947 # checks for pthreads
21948
21949
21950
21951
21952 ac_ext=c
21953 ac_cpp='$CPP $CPPFLAGS'
21954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21957
21958 acx_pthread_ok=no
21959
21960 # We used to check for pthread.h first, but this fails if pthread.h
21961 # requires special compiler flags (e.g. on True64 or Sequent).
21962 # It gets checked for in the link test anyway.
21963
21964 # First of all, check if the user has set any of the PTHREAD_LIBS,
21965 # etcetera environment variables, and if threads linking works using
21966 # them:
21967 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21968         save_CFLAGS="$CFLAGS"
21969         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21970         save_LIBS="$LIBS"
21971         LIBS="$PTHREAD_LIBS $LIBS"
21972         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21973 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
21974         cat >conftest.$ac_ext <<_ACEOF
21975 /* confdefs.h.  */
21976 _ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h.  */
21980
21981 /* Override any gcc2 internal prototype to avoid an error.  */
21982 #ifdef __cplusplus
21983 extern "C"
21984 #endif
21985 /* We use char because int might match the return type of a gcc2
21986    builtin and then its argument prototype would still apply.  */
21987 char pthread_join ();
21988 int
21989 main ()
21990 {
21991 pthread_join ();
21992   ;
21993   return 0;
21994 }
21995 _ACEOF
21996 rm -f conftest.$ac_objext conftest$ac_exeext
21997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21998   (eval $ac_link) 2>conftest.er1
21999   ac_status=$?
22000   grep -v '^ *+' conftest.er1 >conftest.err
22001   rm -f conftest.er1
22002   cat conftest.err >&5
22003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004   (exit $ac_status); } &&
22005          { ac_try='test -z "$ac_c_werror_flag"
22006                          || test ! -s conftest.err'
22007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22008   (eval $ac_try) 2>&5
22009   ac_status=$?
22010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011   (exit $ac_status); }; } &&
22012          { ac_try='test -s conftest$ac_exeext'
22013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22014   (eval $ac_try) 2>&5
22015   ac_status=$?
22016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017   (exit $ac_status); }; }; then
22018   acx_pthread_ok=yes
22019 else
22020   echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22022
22023 fi
22024 rm -f conftest.err conftest.$ac_objext \
22025       conftest$ac_exeext conftest.$ac_ext
22026         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22027 echo "${ECHO_T}$acx_pthread_ok" >&6
22028         if test x"$acx_pthread_ok" = xno; then
22029                 PTHREAD_LIBS=""
22030                 PTHREAD_CFLAGS=""
22031         fi
22032         LIBS="$save_LIBS"
22033         CFLAGS="$save_CFLAGS"
22034 fi
22035
22036 # We must check for the threads library under a number of different
22037 # names; the ordering is very important because some systems
22038 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22039 # libraries is broken (non-POSIX).
22040
22041 # Create a list of thread flags to try.  Items starting with a "-" are
22042 # C compiler flags, and other items are library names, except for "none"
22043 # which indicates that we try without any flags at all, and "pthread-config"
22044 # which is a program returning the flags for the Pth emulation library.
22045
22046 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
22047
22048 # The ordering *is* (sometimes) important.  Some notes on the
22049 # individual items follow:
22050
22051 # pthreads: AIX (must check this before -lpthread)
22052 # none: in case threads are in libc; should be tried before -Kthread and
22053 #       other compiler flags to prevent continual compiler warnings
22054 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22055 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22056 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22057 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22058 # -pthreads: Solaris/gcc
22059 # -mthreads: Mingw32/gcc, Lynx/gcc
22060 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22061 #      doesn't hurt to check since this sometimes defines pthreads too;
22062 #      also defines -D_REENTRANT)
22063 #      ... -mt is also the pthreads flag for HP/aCC
22064 # pthread: Linux, etcetera
22065 # --thread-safe: KAI C++
22066 # pthread-config: use pthread-config program (for GNU Pth library)
22067
22068 case "${host_cpu}-${host_os}" in
22069         *solaris*)
22070
22071         # On Solaris (at least, for some versions), libc contains stubbed
22072         # (non-functional) versions of the pthreads routines, so link-based
22073         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
22074         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22075         # a function called by this macro, so we could check for that, but
22076         # who knows whether they'll stub that too in a future libc.)  So,
22077         # we'll just look for -pthreads and -lpthread first:
22078
22079         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
22080         ;;
22081 esac
22082
22083 if test x"$acx_pthread_ok" = xno; then
22084 for flag in $acx_pthread_flags; do
22085
22086         case $flag in
22087                 none)
22088                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22089 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
22090                 ;;
22091
22092                 -*)
22093                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22094 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
22095                 PTHREAD_CFLAGS="$flag"
22096                 ;;
22097
22098                 pthread-config)
22099                 # Extract the first word of "pthread-config", so it can be a program name with args.
22100 set dummy pthread-config; ac_word=$2
22101 echo "$as_me:$LINENO: checking for $ac_word" >&5
22102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22103 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22104   echo $ECHO_N "(cached) $ECHO_C" >&6
22105 else
22106   if test -n "$acx_pthread_config"; then
22107   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22108 else
22109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22110 for as_dir in $PATH
22111 do
22112   IFS=$as_save_IFS
22113   test -z "$as_dir" && as_dir=.
22114   for ac_exec_ext in '' $ac_executable_extensions; do
22115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22116     ac_cv_prog_acx_pthread_config="yes"
22117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22118     break 2
22119   fi
22120 done
22121 done
22122
22123   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22124 fi
22125 fi
22126 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22127 if test -n "$acx_pthread_config"; then
22128   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22129 echo "${ECHO_T}$acx_pthread_config" >&6
22130 else
22131   echo "$as_me:$LINENO: result: no" >&5
22132 echo "${ECHO_T}no" >&6
22133 fi
22134
22135                 if test x"$acx_pthread_config" = xno; then continue; fi
22136                 PTHREAD_CFLAGS="`pthread-config --cflags`"
22137                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22138                 ;;
22139
22140                 *)
22141                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22142 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
22143                 PTHREAD_LIBS="-l$flag"
22144                 ;;
22145         esac
22146
22147         save_LIBS="$LIBS"
22148         save_CFLAGS="$CFLAGS"
22149         LIBS="$PTHREAD_LIBS $LIBS"
22150         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22151
22152         # Check for various functions.  We must include pthread.h,
22153         # since some functions may be macros.  (On the Sequent, we
22154         # need a special flag -Kthread to make this header compile.)
22155         # We check for pthread_join because it is in -lpthread on IRIX
22156         # while pthread_create is in libc.  We check for pthread_attr_init
22157         # due to DEC craziness with -lpthreads.  We check for
22158         # pthread_cleanup_push because it is one of the few pthread
22159         # functions on Solaris that doesn't have a non-functional libc stub.
22160         # We try pthread_create on general principles.
22161         cat >conftest.$ac_ext <<_ACEOF
22162 /* confdefs.h.  */
22163 _ACEOF
22164 cat confdefs.h >>conftest.$ac_ext
22165 cat >>conftest.$ac_ext <<_ACEOF
22166 /* end confdefs.h.  */
22167 #include <pthread.h>
22168 int
22169 main ()
22170 {
22171 pthread_t th; pthread_join(th, 0);
22172                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22173                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22174   ;
22175   return 0;
22176 }
22177 _ACEOF
22178 rm -f conftest.$ac_objext conftest$ac_exeext
22179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22180   (eval $ac_link) 2>conftest.er1
22181   ac_status=$?
22182   grep -v '^ *+' conftest.er1 >conftest.err
22183   rm -f conftest.er1
22184   cat conftest.err >&5
22185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186   (exit $ac_status); } &&
22187          { ac_try='test -z "$ac_c_werror_flag"
22188                          || test ! -s conftest.err'
22189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22190   (eval $ac_try) 2>&5
22191   ac_status=$?
22192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193   (exit $ac_status); }; } &&
22194          { ac_try='test -s conftest$ac_exeext'
22195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196   (eval $ac_try) 2>&5
22197   ac_status=$?
22198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199   (exit $ac_status); }; }; then
22200   acx_pthread_ok=yes
22201 else
22202   echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22204
22205 fi
22206 rm -f conftest.err conftest.$ac_objext \
22207       conftest$ac_exeext conftest.$ac_ext
22208
22209         LIBS="$save_LIBS"
22210         CFLAGS="$save_CFLAGS"
22211
22212         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22213 echo "${ECHO_T}$acx_pthread_ok" >&6
22214         if test "x$acx_pthread_ok" = xyes; then
22215                 break;
22216         fi
22217
22218         PTHREAD_LIBS=""
22219         PTHREAD_CFLAGS=""
22220 done
22221 fi
22222
22223 # Various other checks:
22224 if test "x$acx_pthread_ok" = xyes; then
22225         save_LIBS="$LIBS"
22226         LIBS="$PTHREAD_LIBS $LIBS"
22227         save_CFLAGS="$CFLAGS"
22228         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22229
22230         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22231         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22232 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
22233         attr_name=unknown
22234         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22235             cat >conftest.$ac_ext <<_ACEOF
22236 /* confdefs.h.  */
22237 _ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h.  */
22241 #include <pthread.h>
22242 int
22243 main ()
22244 {
22245 int attr=$attr; return attr;
22246   ;
22247   return 0;
22248 }
22249 _ACEOF
22250 rm -f conftest.$ac_objext conftest$ac_exeext
22251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22252   (eval $ac_link) 2>conftest.er1
22253   ac_status=$?
22254   grep -v '^ *+' conftest.er1 >conftest.err
22255   rm -f conftest.er1
22256   cat conftest.err >&5
22257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258   (exit $ac_status); } &&
22259          { ac_try='test -z "$ac_c_werror_flag"
22260                          || test ! -s conftest.err'
22261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262   (eval $ac_try) 2>&5
22263   ac_status=$?
22264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265   (exit $ac_status); }; } &&
22266          { ac_try='test -s conftest$ac_exeext'
22267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22268   (eval $ac_try) 2>&5
22269   ac_status=$?
22270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271   (exit $ac_status); }; }; then
22272   attr_name=$attr; break
22273 else
22274   echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22276
22277 fi
22278 rm -f conftest.err conftest.$ac_objext \
22279       conftest$ac_exeext conftest.$ac_ext
22280         done
22281         echo "$as_me:$LINENO: result: $attr_name" >&5
22282 echo "${ECHO_T}$attr_name" >&6
22283         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
22284
22285 cat >>confdefs.h <<_ACEOF
22286 #define PTHREAD_CREATE_JOINABLE $attr_name
22287 _ACEOF
22288
22289         fi
22290
22291         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22292 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
22293         flag=no
22294         case "${host_cpu}-${host_os}" in
22295                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
22296                 *-osf* | *-hpux*) flag="-D_REENTRANT";;
22297                 *solaris*)
22298                 if test "$GCC" = "yes"; then
22299                     flag="-D_REENTRANT"
22300                 else
22301                     flag="-mt -D_REENTRANT"
22302                 fi
22303                 ;;
22304         esac
22305         echo "$as_me:$LINENO: result: ${flag}" >&5
22306 echo "${ECHO_T}${flag}" >&6
22307         if test "x$flag" != xno; then
22308             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22309         fi
22310
22311         LIBS="$save_LIBS"
22312         CFLAGS="$save_CFLAGS"
22313
22314         # More AIX lossage: must compile with xlc_r or cc_r
22315         if test x"$GCC" != xyes; then
22316           for ac_prog in xlc_r cc_r
22317 do
22318   # Extract the first word of "$ac_prog", so it can be a program name with args.
22319 set dummy $ac_prog; ac_word=$2
22320 echo "$as_me:$LINENO: checking for $ac_word" >&5
22321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22322 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22323   echo $ECHO_N "(cached) $ECHO_C" >&6
22324 else
22325   if test -n "$PTHREAD_CC"; then
22326   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22327 else
22328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22329 for as_dir in $PATH
22330 do
22331   IFS=$as_save_IFS
22332   test -z "$as_dir" && as_dir=.
22333   for ac_exec_ext in '' $ac_executable_extensions; do
22334   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22335     ac_cv_prog_PTHREAD_CC="$ac_prog"
22336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22337     break 2
22338   fi
22339 done
22340 done
22341
22342 fi
22343 fi
22344 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22345 if test -n "$PTHREAD_CC"; then
22346   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22347 echo "${ECHO_T}$PTHREAD_CC" >&6
22348 else
22349   echo "$as_me:$LINENO: result: no" >&5
22350 echo "${ECHO_T}no" >&6
22351 fi
22352
22353   test -n "$PTHREAD_CC" && break
22354 done
22355 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
22356
22357         else
22358           PTHREAD_CC=$CC
22359         fi
22360 else
22361         PTHREAD_CC="$CC"
22362 fi
22363
22364
22365
22366
22367
22368 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22369 if test x"$acx_pthread_ok" = xyes; then
22370         enable_threads="pthread"
22371         :
22372 else
22373         acx_pthread_ok=no
22374         enable_threads="no"
22375 fi
22376 ac_ext=c
22377 ac_cpp='$CPP $CPPFLAGS'
22378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22381
22382
22383 if test $enable_threads != "pthread"; then
22384     { { echo "$as_me:$LINENO: error: unable to find pthreads, currently this is required" >&5
22385 echo "$as_me: error: unable to find pthreads, currently this is required" >&2;}
22386    { (exit 1); exit 1; }; }
22387 else
22388
22389 cat >>confdefs.h <<\_ACEOF
22390 #define HAVE_PTHREAD 1
22391 _ACEOF
22392
22393     LIBS="$PTHREAD_LIBS $LIBS"
22394     CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
22395     CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
22396 fi
22397
22398 # OpenSSL settings
22399
22400 # Check whether --with-openssl or --without-openssl was given.
22401 if test "${with_openssl+set}" = set; then
22402   withval="$with_openssl"
22403   if test x_$with_openssl != x_/usr; then
22404         SSLFLAGS="-I${with_openssl}/include"
22405     fi
22406 fi;
22407
22408 if test "x$SSLFLAGS" = "x" ; then
22409     # Extract the first word of "pkg-config", so it can be a program name with args.
22410 set dummy pkg-config; ac_word=$2
22411 echo "$as_me:$LINENO: checking for $ac_word" >&5
22412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22413 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22414   echo $ECHO_N "(cached) $ECHO_C" >&6
22415 else
22416   case $PKG_CONFIG in
22417   [\\/]* | ?:[\\/]*)
22418   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22419   ;;
22420   *)
22421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22422 for as_dir in $PATH
22423 do
22424   IFS=$as_save_IFS
22425   test -z "$as_dir" && as_dir=.
22426   for ac_exec_ext in '' $ac_executable_extensions; do
22427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22428     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22430     break 2
22431   fi
22432 done
22433 done
22434
22435   ;;
22436 esac
22437 fi
22438 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22439
22440 if test -n "$PKG_CONFIG"; then
22441   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22442 echo "${ECHO_T}$PKG_CONFIG" >&6
22443 else
22444   echo "$as_me:$LINENO: result: no" >&5
22445 echo "${ECHO_T}no" >&6
22446 fi
22447
22448     if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
22449         if pkg-config openssl ; then
22450             SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
22451         else
22452             { { echo "$as_me:$LINENO: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
22453 echo "$as_me: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
22454    { (exit 1); exit 1; }; }
22455         fi
22456     fi
22457 fi
22458
22459 echo "$as_me:$LINENO: checking for OpenSSL cflags" >&5
22460 echo $ECHO_N "checking for OpenSSL cflags... $ECHO_C" >&6
22461 echo "$as_me:$LINENO: result: $SSLFLAGS" >&5
22462 echo "${ECHO_T}$SSLFLAGS" >&6
22463 CPPFLAGS="$SSLFLAGS $CPPFLAGS"
22464
22465 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22466   echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22467 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22468 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22469   echo $ECHO_N "(cached) $ECHO_C" >&6
22470 fi
22471 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22472 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22473 else
22474   # Is the header compilable?
22475 echo "$as_me:$LINENO: checking openssl/x509.h usability" >&5
22476 echo $ECHO_N "checking openssl/x509.h usability... $ECHO_C" >&6
22477 cat >conftest.$ac_ext <<_ACEOF
22478 /* confdefs.h.  */
22479 _ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h.  */
22483 $ac_includes_default
22484 #include <openssl/x509.h>
22485 _ACEOF
22486 rm -f conftest.$ac_objext
22487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22488   (eval $ac_compile) 2>conftest.er1
22489   ac_status=$?
22490   grep -v '^ *+' conftest.er1 >conftest.err
22491   rm -f conftest.er1
22492   cat conftest.err >&5
22493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494   (exit $ac_status); } &&
22495          { ac_try='test -z "$ac_c_werror_flag"
22496                          || test ! -s conftest.err'
22497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22498   (eval $ac_try) 2>&5
22499   ac_status=$?
22500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501   (exit $ac_status); }; } &&
22502          { ac_try='test -s conftest.$ac_objext'
22503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22504   (eval $ac_try) 2>&5
22505   ac_status=$?
22506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507   (exit $ac_status); }; }; then
22508   ac_header_compiler=yes
22509 else
22510   echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22512
22513 ac_header_compiler=no
22514 fi
22515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22517 echo "${ECHO_T}$ac_header_compiler" >&6
22518
22519 # Is the header present?
22520 echo "$as_me:$LINENO: checking openssl/x509.h presence" >&5
22521 echo $ECHO_N "checking openssl/x509.h presence... $ECHO_C" >&6
22522 cat >conftest.$ac_ext <<_ACEOF
22523 /* confdefs.h.  */
22524 _ACEOF
22525 cat confdefs.h >>conftest.$ac_ext
22526 cat >>conftest.$ac_ext <<_ACEOF
22527 /* end confdefs.h.  */
22528 #include <openssl/x509.h>
22529 _ACEOF
22530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22531   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22532   ac_status=$?
22533   grep -v '^ *+' conftest.er1 >conftest.err
22534   rm -f conftest.er1
22535   cat conftest.err >&5
22536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537   (exit $ac_status); } >/dev/null; then
22538   if test -s conftest.err; then
22539     ac_cpp_err=$ac_c_preproc_warn_flag
22540     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22541   else
22542     ac_cpp_err=
22543   fi
22544 else
22545   ac_cpp_err=yes
22546 fi
22547 if test -z "$ac_cpp_err"; then
22548   ac_header_preproc=yes
22549 else
22550   echo "$as_me: failed program was:" >&5
22551 sed 's/^/| /' conftest.$ac_ext >&5
22552
22553   ac_header_preproc=no
22554 fi
22555 rm -f conftest.err conftest.$ac_ext
22556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22557 echo "${ECHO_T}$ac_header_preproc" >&6
22558
22559 # So?  What about this header?
22560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22561   yes:no: )
22562     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&5
22563 echo "$as_me: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22564     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the compiler's result" >&5
22565 echo "$as_me: WARNING: openssl/x509.h: proceeding with the compiler's result" >&2;}
22566     ac_header_preproc=yes
22567     ;;
22568   no:yes:* )
22569     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: present but cannot be compiled" >&5
22570 echo "$as_me: WARNING: openssl/x509.h: present but cannot be compiled" >&2;}
22571     { echo "$as_me:$LINENO: WARNING: openssl/x509.h:     check for missing prerequisite headers?" >&5
22572 echo "$as_me: WARNING: openssl/x509.h:     check for missing prerequisite headers?" >&2;}
22573     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: see the Autoconf documentation" >&5
22574 echo "$as_me: WARNING: openssl/x509.h: see the Autoconf documentation" >&2;}
22575     { echo "$as_me:$LINENO: WARNING: openssl/x509.h:     section \"Present But Cannot Be Compiled\"" >&5
22576 echo "$as_me: WARNING: openssl/x509.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22577     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&5
22578 echo "$as_me: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&2;}
22579     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&5
22580 echo "$as_me: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&2;}
22581     (
22582       cat <<\_ASBOX
22583 ## --------------------------------------------- ##
22584 ## Report this to shibboleth-users@internet2.edu ##
22585 ## --------------------------------------------- ##
22586 _ASBOX
22587     ) |
22588       sed "s/^/$as_me: WARNING:     /" >&2
22589     ;;
22590 esac
22591 echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22592 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22593 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22594   echo $ECHO_N "(cached) $ECHO_C" >&6
22595 else
22596   ac_cv_header_openssl_x509_h=$ac_header_preproc
22597 fi
22598 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22599 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22600
22601 fi
22602 if test $ac_cv_header_openssl_x509_h = yes; then
22603   :
22604 else
22605   { { echo "$as_me:$LINENO: error: unable to find openssl header files" >&5
22606 echo "$as_me: error: unable to find openssl header files" >&2;}
22607    { (exit 1); exit 1; }; }
22608 fi
22609
22610
22611
22612 ac_ext=cc
22613 ac_cpp='$CXXCPP $CPPFLAGS'
22614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22617
22618
22619 # C++ requirements
22620 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22621 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22622 if test "${ac_cv_cxx_namespaces+set}" = set; then
22623   echo $ECHO_N "(cached) $ECHO_C" >&6
22624 else
22625
22626
22627  ac_ext=cc
22628 ac_cpp='$CXXCPP $CPPFLAGS'
22629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22632
22633  cat >conftest.$ac_ext <<_ACEOF
22634 /* confdefs.h.  */
22635 _ACEOF
22636 cat confdefs.h >>conftest.$ac_ext
22637 cat >>conftest.$ac_ext <<_ACEOF
22638 /* end confdefs.h.  */
22639 namespace Outer { namespace Inner { int i = 0; }}
22640 int
22641 main ()
22642 {
22643 using namespace Outer::Inner; return i;
22644   ;
22645   return 0;
22646 }
22647 _ACEOF
22648 rm -f conftest.$ac_objext
22649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22650   (eval $ac_compile) 2>conftest.er1
22651   ac_status=$?
22652   grep -v '^ *+' conftest.er1 >conftest.err
22653   rm -f conftest.er1
22654   cat conftest.err >&5
22655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656   (exit $ac_status); } &&
22657          { ac_try='test -z "$ac_cxx_werror_flag"
22658                          || test ! -s conftest.err'
22659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22660   (eval $ac_try) 2>&5
22661   ac_status=$?
22662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663   (exit $ac_status); }; } &&
22664          { ac_try='test -s conftest.$ac_objext'
22665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666   (eval $ac_try) 2>&5
22667   ac_status=$?
22668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669   (exit $ac_status); }; }; then
22670   ac_cv_cxx_namespaces=yes
22671 else
22672   echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22674
22675 ac_cv_cxx_namespaces=no
22676 fi
22677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22678  ac_ext=cc
22679 ac_cpp='$CXXCPP $CPPFLAGS'
22680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22683
22684
22685 fi
22686 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22687 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22688 if test "$ac_cv_cxx_namespaces" = yes; then
22689
22690 cat >>confdefs.h <<\_ACEOF
22691 #define HAVE_NAMESPACES 1
22692 _ACEOF
22693
22694 fi
22695
22696 echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
22697 echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6
22698 if test "${ac_cv_cxx_have_stl+set}" = set; then
22699   echo $ECHO_N "(cached) $ECHO_C" >&6
22700 else
22701
22702
22703
22704  ac_ext=cc
22705 ac_cpp='$CXXCPP $CPPFLAGS'
22706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22709
22710  cat >conftest.$ac_ext <<_ACEOF
22711 /* confdefs.h.  */
22712 _ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h.  */
22716 #include <list>
22717 #include <deque>
22718 #ifdef HAVE_NAMESPACES
22719 using namespace std;
22720 #endif
22721 int
22722 main ()
22723 {
22724 list<int> x; x.push_back(5);
22725 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
22726   ;
22727   return 0;
22728 }
22729 _ACEOF
22730 rm -f conftest.$ac_objext
22731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22732   (eval $ac_compile) 2>conftest.er1
22733   ac_status=$?
22734   grep -v '^ *+' conftest.er1 >conftest.err
22735   rm -f conftest.er1
22736   cat conftest.err >&5
22737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738   (exit $ac_status); } &&
22739          { ac_try='test -z "$ac_cxx_werror_flag"
22740                          || test ! -s conftest.err'
22741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22742   (eval $ac_try) 2>&5
22743   ac_status=$?
22744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745   (exit $ac_status); }; } &&
22746          { ac_try='test -s conftest.$ac_objext'
22747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22748   (eval $ac_try) 2>&5
22749   ac_status=$?
22750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751   (exit $ac_status); }; }; then
22752   ac_cv_cxx_have_stl=yes
22753 else
22754   echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22756
22757 ac_cv_cxx_have_stl=no
22758 fi
22759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22760  ac_ext=cc
22761 ac_cpp='$CXXCPP $CPPFLAGS'
22762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22765
22766
22767 fi
22768 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5
22769 echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6
22770 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
22771   { { echo "$as_me:$LINENO: error: C++ Standard Template Libary unsupported" >&5
22772 echo "$as_me: error: C++ Standard Template Libary unsupported" >&2;}
22773    { (exit 1); exit 1; }; }
22774 fi
22775
22776 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22777 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22778 if test "${ac_cv_cxx_namespaces+set}" = set; then
22779   echo $ECHO_N "(cached) $ECHO_C" >&6
22780 else
22781
22782
22783  ac_ext=cc
22784 ac_cpp='$CXXCPP $CPPFLAGS'
22785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22788
22789  cat >conftest.$ac_ext <<_ACEOF
22790 /* confdefs.h.  */
22791 _ACEOF
22792 cat confdefs.h >>conftest.$ac_ext
22793 cat >>conftest.$ac_ext <<_ACEOF
22794 /* end confdefs.h.  */
22795 namespace Outer { namespace Inner { int i = 0; }}
22796 int
22797 main ()
22798 {
22799 using namespace Outer::Inner; return i;
22800   ;
22801   return 0;
22802 }
22803 _ACEOF
22804 rm -f conftest.$ac_objext
22805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22806   (eval $ac_compile) 2>conftest.er1
22807   ac_status=$?
22808   grep -v '^ *+' conftest.er1 >conftest.err
22809   rm -f conftest.er1
22810   cat conftest.err >&5
22811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812   (exit $ac_status); } &&
22813          { ac_try='test -z "$ac_cxx_werror_flag"
22814                          || test ! -s conftest.err'
22815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816   (eval $ac_try) 2>&5
22817   ac_status=$?
22818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819   (exit $ac_status); }; } &&
22820          { ac_try='test -s conftest.$ac_objext'
22821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822   (eval $ac_try) 2>&5
22823   ac_status=$?
22824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825   (exit $ac_status); }; }; then
22826   ac_cv_cxx_namespaces=yes
22827 else
22828   echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22830
22831 ac_cv_cxx_namespaces=no
22832 fi
22833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22834  ac_ext=cc
22835 ac_cpp='$CXXCPP $CPPFLAGS'
22836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22839
22840
22841 fi
22842 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22843 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22844 if test "$ac_cv_cxx_namespaces" = yes; then
22845
22846 cat >>confdefs.h <<\_ACEOF
22847 #define HAVE_NAMESPACES 1
22848 _ACEOF
22849
22850 fi
22851
22852
22853 # Thank you Solaris, really.
22854 echo "$as_me:$LINENO: checking for ctime_r" >&5
22855 echo $ECHO_N "checking for ctime_r... $ECHO_C" >&6
22856  if test -z "$ac_cv_ctime_args"; then
22857      cat >conftest.$ac_ext <<_ACEOF
22858 /* confdefs.h.  */
22859 _ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h.  */
22863 #include <time.h>
22864 int
22865 main ()
22866 {
22867
22868          time_t clock;
22869          char buf[26];
22870          ctime_r(&clock, buf);
22871
22872   ;
22873   return 0;
22874 }
22875 _ACEOF
22876 rm -f conftest.$ac_objext
22877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22878   (eval $ac_compile) 2>conftest.er1
22879   ac_status=$?
22880   grep -v '^ *+' conftest.er1 >conftest.err
22881   rm -f conftest.er1
22882   cat conftest.err >&5
22883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884   (exit $ac_status); } &&
22885          { ac_try='test -z "$ac_cxx_werror_flag"
22886                          || test ! -s conftest.err'
22887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22888   (eval $ac_try) 2>&5
22889   ac_status=$?
22890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891   (exit $ac_status); }; } &&
22892          { ac_try='test -s conftest.$ac_objext'
22893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22894   (eval $ac_try) 2>&5
22895   ac_status=$?
22896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897   (exit $ac_status); }; }; then
22898   ac_cv_ctime_args=2
22899 else
22900   echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22902
22903 fi
22904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22905
22906      cat >conftest.$ac_ext <<_ACEOF
22907 /* confdefs.h.  */
22908 _ACEOF
22909 cat confdefs.h >>conftest.$ac_ext
22910 cat >>conftest.$ac_ext <<_ACEOF
22911 /* end confdefs.h.  */
22912 #include <time.h>
22913 int
22914 main ()
22915 {
22916
22917          time_t clock;
22918          char buf[26];
22919          ctime_r(&clock, buf, 26);
22920
22921   ;
22922   return 0;
22923 }
22924 _ACEOF
22925 rm -f conftest.$ac_objext
22926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22927   (eval $ac_compile) 2>conftest.er1
22928   ac_status=$?
22929   grep -v '^ *+' conftest.er1 >conftest.err
22930   rm -f conftest.er1
22931   cat conftest.err >&5
22932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933   (exit $ac_status); } &&
22934          { ac_try='test -z "$ac_cxx_werror_flag"
22935                          || test ! -s conftest.err'
22936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22937   (eval $ac_try) 2>&5
22938   ac_status=$?
22939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940   (exit $ac_status); }; } &&
22941          { ac_try='test -s conftest.$ac_objext'
22942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22943   (eval $ac_try) 2>&5
22944   ac_status=$?
22945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946   (exit $ac_status); }; }; then
22947   ac_cv_ctime_args=3
22948 else
22949   echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22951
22952 fi
22953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22954  fi
22955  if test -z "$ac_cv_ctime_args"; then
22956      echo "$as_me:$LINENO: result: no" >&5
22957 echo "${ECHO_T}no" >&6
22958  else
22959      if test "$ac_cv_ctime_args" = 2; then
22960
22961 cat >>confdefs.h <<\_ACEOF
22962 #define HAVE_CTIME_R_2 1
22963 _ACEOF
22964
22965      elif test "$ac_cv_ctime_args" = 3; then
22966
22967 cat >>confdefs.h <<\_ACEOF
22968 #define HAVE_CTIME_R_3 1
22969 _ACEOF
22970
22971      fi
22972      echo "$as_me:$LINENO: result: yes, and it takes $ac_cv_ctime_args arguments" >&5
22973 echo "${ECHO_T}yes, and it takes $ac_cv_ctime_args arguments" >&6
22974  fi
22975
22976 # log4shib settings (favor this version over the log4cpp code)
22977 # Extract the first word of "log4shib-config", so it can be a program name with args.
22978 set dummy log4shib-config; ac_word=$2
22979 echo "$as_me:$LINENO: checking for $ac_word" >&5
22980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22981 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then
22982   echo $ECHO_N "(cached) $ECHO_C" >&6
22983 else
22984   case $LOG4SHIB_CONFIG in
22985   [\\/]* | ?:[\\/]*)
22986   ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
22987   ;;
22988   *)
22989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22990 for as_dir in $PATH
22991 do
22992   IFS=$as_save_IFS
22993   test -z "$as_dir" && as_dir=.
22994   for ac_exec_ext in '' $ac_executable_extensions; do
22995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22996     ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22998     break 2
22999   fi
23000 done
23001 done
23002
23003   ;;
23004 esac
23005 fi
23006 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
23007
23008 if test -n "$LOG4SHIB_CONFIG"; then
23009   echo "$as_me:$LINENO: result: $LOG4SHIB_CONFIG" >&5
23010 echo "${ECHO_T}$LOG4SHIB_CONFIG" >&6
23011 else
23012   echo "$as_me:$LINENO: result: no" >&5
23013 echo "${ECHO_T}no" >&6
23014 fi
23015
23016
23017 # Check whether --with-log4shib or --without-log4shib was given.
23018 if test "${with_log4shib+set}" = set; then
23019   withval="$with_log4shib"
23020
23021     LOG4SHIB_CONFIG="${with_log4shib}"
23022     if ! test -f "${LOG4SHIB_CONFIG}" ; then
23023         LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
23024     fi
23025
23026 fi;
23027 if test -f "${LOG4SHIB_CONFIG}"; then
23028     LDFLAGS="`${LOG4SHIB_CONFIG} --libs` $LDFLAGS"
23029     CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
23030
23031 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23032   echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23033 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23034 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23035   echo $ECHO_N "(cached) $ECHO_C" >&6
23036 fi
23037 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23038 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23039 else
23040   # Is the header compilable?
23041 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh usability" >&5
23042 echo $ECHO_N "checking log4shib/CategoryStream.hh usability... $ECHO_C" >&6
23043 cat >conftest.$ac_ext <<_ACEOF
23044 /* confdefs.h.  */
23045 _ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h.  */
23049 $ac_includes_default
23050 #include <log4shib/CategoryStream.hh>
23051 _ACEOF
23052 rm -f conftest.$ac_objext
23053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23054   (eval $ac_compile) 2>conftest.er1
23055   ac_status=$?
23056   grep -v '^ *+' conftest.er1 >conftest.err
23057   rm -f conftest.er1
23058   cat conftest.err >&5
23059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060   (exit $ac_status); } &&
23061          { ac_try='test -z "$ac_cxx_werror_flag"
23062                          || test ! -s conftest.err'
23063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23064   (eval $ac_try) 2>&5
23065   ac_status=$?
23066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067   (exit $ac_status); }; } &&
23068          { ac_try='test -s conftest.$ac_objext'
23069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23070   (eval $ac_try) 2>&5
23071   ac_status=$?
23072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073   (exit $ac_status); }; }; then
23074   ac_header_compiler=yes
23075 else
23076   echo "$as_me: failed program was:" >&5
23077 sed 's/^/| /' conftest.$ac_ext >&5
23078
23079 ac_header_compiler=no
23080 fi
23081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23083 echo "${ECHO_T}$ac_header_compiler" >&6
23084
23085 # Is the header present?
23086 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh presence" >&5
23087 echo $ECHO_N "checking log4shib/CategoryStream.hh presence... $ECHO_C" >&6
23088 cat >conftest.$ac_ext <<_ACEOF
23089 /* confdefs.h.  */
23090 _ACEOF
23091 cat confdefs.h >>conftest.$ac_ext
23092 cat >>conftest.$ac_ext <<_ACEOF
23093 /* end confdefs.h.  */
23094 #include <log4shib/CategoryStream.hh>
23095 _ACEOF
23096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23097   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23098   ac_status=$?
23099   grep -v '^ *+' conftest.er1 >conftest.err
23100   rm -f conftest.er1
23101   cat conftest.err >&5
23102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103   (exit $ac_status); } >/dev/null; then
23104   if test -s conftest.err; then
23105     ac_cpp_err=$ac_cxx_preproc_warn_flag
23106     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23107   else
23108     ac_cpp_err=
23109   fi
23110 else
23111   ac_cpp_err=yes
23112 fi
23113 if test -z "$ac_cpp_err"; then
23114   ac_header_preproc=yes
23115 else
23116   echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.$ac_ext >&5
23118
23119   ac_header_preproc=no
23120 fi
23121 rm -f conftest.err conftest.$ac_ext
23122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23123 echo "${ECHO_T}$ac_header_preproc" >&6
23124
23125 # So?  What about this header?
23126 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23127   yes:no: )
23128     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23129 echo "$as_me: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23130     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&5
23131 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23132     ac_header_preproc=yes
23133     ;;
23134   no:yes:* )
23135     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&5
23136 echo "$as_me: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&2;}
23137     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh:     check for missing prerequisite headers?" >&5
23138 echo "$as_me: WARNING: log4shib/CategoryStream.hh:     check for missing prerequisite headers?" >&2;}
23139     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&5
23140 echo "$as_me: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&2;}
23141     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&5
23142 echo "$as_me: WARNING: log4shib/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&2;}
23143     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23144 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23145     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23146 echo "$as_me: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23147     (
23148       cat <<\_ASBOX
23149 ## --------------------------------------------- ##
23150 ## Report this to shibboleth-users@internet2.edu ##
23151 ## --------------------------------------------- ##
23152 _ASBOX
23153     ) |
23154       sed "s/^/$as_me: WARNING:     /" >&2
23155     ;;
23156 esac
23157 echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23158 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23159 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23160   echo $ECHO_N "(cached) $ECHO_C" >&6
23161 else
23162   ac_cv_header_log4shib_CategoryStream_hh=$ac_header_preproc
23163 fi
23164 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23165 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23166
23167 fi
23168 if test $ac_cv_header_log4shib_CategoryStream_hh = yes; then
23169   :
23170 else
23171   { { echo "$as_me:$LINENO: error: unable to find log4shib header files" >&5
23172 echo "$as_me: error: unable to find log4shib header files" >&2;}
23173    { (exit 1); exit 1; }; }
23174 fi
23175
23176
23177         cat >conftest.$ac_ext <<_ACEOF
23178 /* confdefs.h.  */
23179 _ACEOF
23180 cat confdefs.h >>conftest.$ac_ext
23181 cat >>conftest.$ac_ext <<_ACEOF
23182 /* end confdefs.h.  */
23183 #include <log4shib/Category.hh>
23184 #include <log4shib/CategoryStream.hh>
23185 int
23186 main ()
23187 {
23188 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
23189   ;
23190   return 0;
23191 }
23192 _ACEOF
23193 rm -f conftest.$ac_objext conftest$ac_exeext
23194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23195   (eval $ac_link) 2>conftest.er1
23196   ac_status=$?
23197   grep -v '^ *+' conftest.er1 >conftest.err
23198   rm -f conftest.er1
23199   cat conftest.err >&5
23200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201   (exit $ac_status); } &&
23202          { ac_try='test -z "$ac_cxx_werror_flag"
23203                          || test ! -s conftest.err'
23204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23205   (eval $ac_try) 2>&5
23206   ac_status=$?
23207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208   (exit $ac_status); }; } &&
23209          { ac_try='test -s conftest$ac_exeext'
23210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211   (eval $ac_try) 2>&5
23212   ac_status=$?
23213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214   (exit $ac_status); }; }; then
23215
23216 cat >>confdefs.h <<\_ACEOF
23217 #define SHIBSP_LOG4SHIB 1
23218 _ACEOF
23219
23220 else
23221   echo "$as_me: failed program was:" >&5
23222 sed 's/^/| /' conftest.$ac_ext >&5
23223
23224 { { echo "$as_me:$LINENO: error: unable to link with log4shib" >&5
23225 echo "$as_me: error: unable to link with log4shib" >&2;}
23226    { (exit 1); exit 1; }; }
23227 fi
23228 rm -f conftest.err conftest.$ac_objext \
23229       conftest$ac_exeext conftest.$ac_ext
23230 else
23231     { echo "$as_me:$LINENO: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
23232 echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
23233     { echo "$as_me:$LINENO: WARNING: will look for original log4cpp library" >&5
23234 echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
23235
23236         # log4cpp settings
23237         # Extract the first word of "log4cpp-config", so it can be a program name with args.
23238 set dummy log4cpp-config; ac_word=$2
23239 echo "$as_me:$LINENO: checking for $ac_word" >&5
23240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23241 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then
23242   echo $ECHO_N "(cached) $ECHO_C" >&6
23243 else
23244   case $LOG4CPP_CONFIG in
23245   [\\/]* | ?:[\\/]*)
23246   ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
23247   ;;
23248   *)
23249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23250 for as_dir in $PATH
23251 do
23252   IFS=$as_save_IFS
23253   test -z "$as_dir" && as_dir=.
23254   for ac_exec_ext in '' $ac_executable_extensions; do
23255   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23256     ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23258     break 2
23259   fi
23260 done
23261 done
23262
23263   ;;
23264 esac
23265 fi
23266 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
23267
23268 if test -n "$LOG4CPP_CONFIG"; then
23269   echo "$as_me:$LINENO: result: $LOG4CPP_CONFIG" >&5
23270 echo "${ECHO_T}$LOG4CPP_CONFIG" >&6
23271 else
23272   echo "$as_me:$LINENO: result: no" >&5
23273 echo "${ECHO_T}no" >&6
23274 fi
23275
23276
23277 # Check whether --with-log4cpp or --without-log4cpp was given.
23278 if test "${with_log4cpp+set}" = set; then
23279   withval="$with_log4cpp"
23280
23281             LOG4CPP_CONFIG="${with_log4cpp}"
23282             if ! test -f "${LOG4CPP_CONFIG}" ; then
23283                 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
23284             fi
23285
23286 fi;
23287         if test -f "${LOG4CPP_CONFIG}"; then
23288                 { echo "$as_me:$LINENO: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&5
23289 echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
23290             LDFLAGS="`${LOG4CPP_CONFIG} --libs` $LDFLAGS"
23291             CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
23292                 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23293   echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23294 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23295 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23296   echo $ECHO_N "(cached) $ECHO_C" >&6
23297 fi
23298 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23299 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23300 else
23301   # Is the header compilable?
23302 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh usability" >&5
23303 echo $ECHO_N "checking log4cpp/CategoryStream.hh usability... $ECHO_C" >&6
23304 cat >conftest.$ac_ext <<_ACEOF
23305 /* confdefs.h.  */
23306 _ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h.  */
23310 $ac_includes_default
23311 #include <log4cpp/CategoryStream.hh>
23312 _ACEOF
23313 rm -f conftest.$ac_objext
23314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23315   (eval $ac_compile) 2>conftest.er1
23316   ac_status=$?
23317   grep -v '^ *+' conftest.er1 >conftest.err
23318   rm -f conftest.er1
23319   cat conftest.err >&5
23320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321   (exit $ac_status); } &&
23322          { ac_try='test -z "$ac_cxx_werror_flag"
23323                          || test ! -s conftest.err'
23324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23325   (eval $ac_try) 2>&5
23326   ac_status=$?
23327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328   (exit $ac_status); }; } &&
23329          { ac_try='test -s conftest.$ac_objext'
23330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23331   (eval $ac_try) 2>&5
23332   ac_status=$?
23333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334   (exit $ac_status); }; }; then
23335   ac_header_compiler=yes
23336 else
23337   echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23339
23340 ac_header_compiler=no
23341 fi
23342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23344 echo "${ECHO_T}$ac_header_compiler" >&6
23345
23346 # Is the header present?
23347 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh presence" >&5
23348 echo $ECHO_N "checking log4cpp/CategoryStream.hh presence... $ECHO_C" >&6
23349 cat >conftest.$ac_ext <<_ACEOF
23350 /* confdefs.h.  */
23351 _ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h.  */
23355 #include <log4cpp/CategoryStream.hh>
23356 _ACEOF
23357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23358   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23359   ac_status=$?
23360   grep -v '^ *+' conftest.er1 >conftest.err
23361   rm -f conftest.er1
23362   cat conftest.err >&5
23363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364   (exit $ac_status); } >/dev/null; then
23365   if test -s conftest.err; then
23366     ac_cpp_err=$ac_cxx_preproc_warn_flag
23367     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23368   else
23369     ac_cpp_err=
23370   fi
23371 else
23372   ac_cpp_err=yes
23373 fi
23374 if test -z "$ac_cpp_err"; then
23375   ac_header_preproc=yes
23376 else
23377   echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23379
23380   ac_header_preproc=no
23381 fi
23382 rm -f conftest.err conftest.$ac_ext
23383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23384 echo "${ECHO_T}$ac_header_preproc" >&6
23385
23386 # So?  What about this header?
23387 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23388   yes:no: )
23389     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23390 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23391     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&5
23392 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23393     ac_header_preproc=yes
23394     ;;
23395   no:yes:* )
23396     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&5
23397 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&2;}
23398     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh:     check for missing prerequisite headers?" >&5
23399 echo "$as_me: WARNING: log4cpp/CategoryStream.hh:     check for missing prerequisite headers?" >&2;}
23400     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&5
23401 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&2;}
23402     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&5
23403 echo "$as_me: WARNING: log4cpp/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&2;}
23404     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23405 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23406     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23407 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23408     (
23409       cat <<\_ASBOX
23410 ## --------------------------------------------- ##
23411 ## Report this to shibboleth-users@internet2.edu ##
23412 ## --------------------------------------------- ##
23413 _ASBOX
23414     ) |
23415       sed "s/^/$as_me: WARNING:     /" >&2
23416     ;;
23417 esac
23418 echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23419 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23420 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23421   echo $ECHO_N "(cached) $ECHO_C" >&6
23422 else
23423   ac_cv_header_log4cpp_CategoryStream_hh=$ac_header_preproc
23424 fi
23425 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23426 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23427
23428 fi
23429 if test $ac_cv_header_log4cpp_CategoryStream_hh = yes; then
23430   :
23431 else
23432   { { echo "$as_me:$LINENO: error: unable to find log4cpp header files" >&5
23433 echo "$as_me: error: unable to find log4cpp header files" >&2;}
23434    { (exit 1); exit 1; }; }
23435 fi
23436
23437
23438                 cat >conftest.$ac_ext <<_ACEOF
23439 /* confdefs.h.  */
23440 _ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h.  */
23444 #include <log4cpp/Category.hh>
23445 #include <log4cpp/CategoryStream.hh>
23446 int
23447 main ()
23448 {
23449 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
23450   ;
23451   return 0;
23452 }
23453 _ACEOF
23454 rm -f conftest.$ac_objext conftest$ac_exeext
23455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23456   (eval $ac_link) 2>conftest.er1
23457   ac_status=$?
23458   grep -v '^ *+' conftest.er1 >conftest.err
23459   rm -f conftest.er1
23460   cat conftest.err >&5
23461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462   (exit $ac_status); } &&
23463          { ac_try='test -z "$ac_cxx_werror_flag"
23464                          || test ! -s conftest.err'
23465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23466   (eval $ac_try) 2>&5
23467   ac_status=$?
23468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469   (exit $ac_status); }; } &&
23470          { ac_try='test -s conftest$ac_exeext'
23471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23472   (eval $ac_try) 2>&5
23473   ac_status=$?
23474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475   (exit $ac_status); }; }; then
23476
23477 cat >>confdefs.h <<\_ACEOF
23478 #define SHIBSP_LOG4CPP 1
23479 _ACEOF
23480
23481 else
23482   echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23484
23485 { { echo "$as_me:$LINENO: error: unable to link with log4cpp, need version 1.0 or later" >&5
23486 echo "$as_me: error: unable to link with log4cpp, need version 1.0 or later" >&2;}
23487    { (exit 1); exit 1; }; }
23488 fi
23489 rm -f conftest.err conftest.$ac_objext \
23490       conftest$ac_exeext conftest.$ac_ext
23491         else
23492             { { echo "$as_me:$LINENO: error: log4cpp-config not found, may need to use --with-log4cpp option" >&5
23493 echo "$as_me: error: log4cpp-config not found, may need to use --with-log4cpp option" >&2;}
23494    { (exit 1); exit 1; }; }
23495         fi
23496 fi
23497
23498 # Xerces settings
23499
23500 # Check whether --with-xerces or --without-xerces was given.
23501 if test "${with_xerces+set}" = set; then
23502   withval="$with_xerces"
23503   if test x_$with_xerces != x_/usr; then
23504                 LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
23505                 CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
23506             fi
23507 fi;
23508 LIBS="-lxerces-c $LIBS"
23509 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23510   echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23511 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23512 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23513   echo $ECHO_N "(cached) $ECHO_C" >&6
23514 fi
23515 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23516 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23517 else
23518   # Is the header compilable?
23519 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp usability" >&5
23520 echo $ECHO_N "checking xercesc/dom/DOM.hpp usability... $ECHO_C" >&6
23521 cat >conftest.$ac_ext <<_ACEOF
23522 /* confdefs.h.  */
23523 _ACEOF
23524 cat confdefs.h >>conftest.$ac_ext
23525 cat >>conftest.$ac_ext <<_ACEOF
23526 /* end confdefs.h.  */
23527 $ac_includes_default
23528 #include <xercesc/dom/DOM.hpp>
23529 _ACEOF
23530 rm -f conftest.$ac_objext
23531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23532   (eval $ac_compile) 2>conftest.er1
23533   ac_status=$?
23534   grep -v '^ *+' conftest.er1 >conftest.err
23535   rm -f conftest.er1
23536   cat conftest.err >&5
23537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538   (exit $ac_status); } &&
23539          { ac_try='test -z "$ac_cxx_werror_flag"
23540                          || test ! -s conftest.err'
23541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23542   (eval $ac_try) 2>&5
23543   ac_status=$?
23544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545   (exit $ac_status); }; } &&
23546          { ac_try='test -s conftest.$ac_objext'
23547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23548   (eval $ac_try) 2>&5
23549   ac_status=$?
23550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551   (exit $ac_status); }; }; then
23552   ac_header_compiler=yes
23553 else
23554   echo "$as_me: failed program was:" >&5
23555 sed 's/^/| /' conftest.$ac_ext >&5
23556
23557 ac_header_compiler=no
23558 fi
23559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23561 echo "${ECHO_T}$ac_header_compiler" >&6
23562
23563 # Is the header present?
23564 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp presence" >&5
23565 echo $ECHO_N "checking xercesc/dom/DOM.hpp presence... $ECHO_C" >&6
23566 cat >conftest.$ac_ext <<_ACEOF
23567 /* confdefs.h.  */
23568 _ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h.  */
23572 #include <xercesc/dom/DOM.hpp>
23573 _ACEOF
23574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23575   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23576   ac_status=$?
23577   grep -v '^ *+' conftest.er1 >conftest.err
23578   rm -f conftest.er1
23579   cat conftest.err >&5
23580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581   (exit $ac_status); } >/dev/null; then
23582   if test -s conftest.err; then
23583     ac_cpp_err=$ac_cxx_preproc_warn_flag
23584     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23585   else
23586     ac_cpp_err=
23587   fi
23588 else
23589   ac_cpp_err=yes
23590 fi
23591 if test -z "$ac_cpp_err"; then
23592   ac_header_preproc=yes
23593 else
23594   echo "$as_me: failed program was:" >&5
23595 sed 's/^/| /' conftest.$ac_ext >&5
23596
23597   ac_header_preproc=no
23598 fi
23599 rm -f conftest.err conftest.$ac_ext
23600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23601 echo "${ECHO_T}$ac_header_preproc" >&6
23602
23603 # So?  What about this header?
23604 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23605   yes:no: )
23606     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
23607 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
23608     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&5
23609 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&2;}
23610     ac_header_preproc=yes
23611     ;;
23612   no:yes:* )
23613     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&5
23614 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&2;}
23615     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp:     check for missing prerequisite headers?" >&5
23616 echo "$as_me: WARNING: xercesc/dom/DOM.hpp:     check for missing prerequisite headers?" >&2;}
23617     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&5
23618 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&2;}
23619     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp:     section \"Present But Cannot Be Compiled\"" >&5
23620 echo "$as_me: WARNING: xercesc/dom/DOM.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
23621     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&5
23622 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&2;}
23623     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&5
23624 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&2;}
23625     (
23626       cat <<\_ASBOX
23627 ## --------------------------------------------- ##
23628 ## Report this to shibboleth-users@internet2.edu ##
23629 ## --------------------------------------------- ##
23630 _ASBOX
23631     ) |
23632       sed "s/^/$as_me: WARNING:     /" >&2
23633     ;;
23634 esac
23635 echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23636 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23637 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23638   echo $ECHO_N "(cached) $ECHO_C" >&6
23639 else
23640   ac_cv_header_xercesc_dom_DOM_hpp=$ac_header_preproc
23641 fi
23642 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23643 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23644
23645 fi
23646 if test $ac_cv_header_xercesc_dom_DOM_hpp = yes; then
23647   :
23648 else
23649   { { echo "$as_me:$LINENO: error: unable to find xerces header files" >&5
23650 echo "$as_me: error: unable to find xerces header files" >&2;}
23651    { (exit 1); exit 1; }; }
23652 fi
23653
23654
23655 echo "$as_me:$LINENO: checking Xerces version" >&5
23656 echo $ECHO_N "checking Xerces version... $ECHO_C" >&6
23657 cat >conftest.$ac_ext <<_ACEOF
23658 /* confdefs.h.  */
23659 _ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h.  */
23663 #include <xercesc/util/XercesVersion.hpp>
23664 int
23665 main ()
23666 {
23667 #if  _XERCES_VERSION != 20600
23668 int i = 0;
23669 #else
23670 #error cannot use version 2.6.0
23671 #endif
23672   ;
23673   return 0;
23674 }
23675 _ACEOF
23676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23677   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23678   ac_status=$?
23679   grep -v '^ *+' conftest.er1 >conftest.err
23680   rm -f conftest.er1
23681   cat conftest.err >&5
23682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683   (exit $ac_status); } >/dev/null; then
23684   if test -s conftest.err; then
23685     ac_cpp_err=$ac_cxx_preproc_warn_flag
23686     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23687   else
23688     ac_cpp_err=
23689   fi
23690 else
23691   ac_cpp_err=yes
23692 fi
23693 if test -z "$ac_cpp_err"; then
23694   echo "$as_me:$LINENO: result: OK" >&5
23695 echo "${ECHO_T}OK" >&6
23696 else
23697   echo "$as_me: failed program was:" >&5
23698 sed 's/^/| /' conftest.$ac_ext >&5
23699
23700   { { echo "$as_me:$LINENO: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
23701 See \`config.log' for more details." >&5
23702 echo "$as_me: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
23703 See \`config.log' for more details." >&2;}
23704    { (exit 1); exit 1; }; }
23705 fi
23706 rm -f conftest.err conftest.$ac_ext
23707 cat >conftest.$ac_ext <<_ACEOF
23708 /* confdefs.h.  */
23709 _ACEOF
23710 cat confdefs.h >>conftest.$ac_ext
23711 cat >>conftest.$ac_ext <<_ACEOF
23712 /* end confdefs.h.  */
23713 #include <xercesc/util/PlatformUtils.hpp>
23714 int
23715 main ()
23716 {
23717 xercesc::XMLPlatformUtils::Initialize()
23718   ;
23719   return 0;
23720 }
23721 _ACEOF
23722 rm -f conftest.$ac_objext conftest$ac_exeext
23723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23724   (eval $ac_link) 2>conftest.er1
23725   ac_status=$?
23726   grep -v '^ *+' conftest.er1 >conftest.err
23727   rm -f conftest.er1
23728   cat conftest.err >&5
23729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730   (exit $ac_status); } &&
23731          { ac_try='test -z "$ac_cxx_werror_flag"
23732                          || test ! -s conftest.err'
23733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23734   (eval $ac_try) 2>&5
23735   ac_status=$?
23736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737   (exit $ac_status); }; } &&
23738          { ac_try='test -s conftest$ac_exeext'
23739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740   (eval $ac_try) 2>&5
23741   ac_status=$?
23742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743   (exit $ac_status); }; }; then
23744
23745 cat >>confdefs.h <<\_ACEOF
23746 #define HAVE_LIBXERCESC 1
23747 _ACEOF
23748
23749 else
23750   echo "$as_me: failed program was:" >&5
23751 sed 's/^/| /' conftest.$ac_ext >&5
23752
23753 { { echo "$as_me:$LINENO: error: unable to link with Xerces" >&5
23754 echo "$as_me: error: unable to link with Xerces" >&2;}
23755    { (exit 1); exit 1; }; }
23756 fi
23757 rm -f conftest.err conftest.$ac_objext \
23758       conftest$ac_exeext conftest.$ac_ext
23759
23760 echo "$as_me:$LINENO: checking whether Xerces XMLString::release(XMLByte**) exists" >&5
23761 echo $ECHO_N "checking whether Xerces XMLString::release(XMLByte**) exists... $ECHO_C" >&6
23762 cat >conftest.$ac_ext <<_ACEOF
23763 /* confdefs.h.  */
23764 _ACEOF
23765 cat confdefs.h >>conftest.$ac_ext
23766 cat >>conftest.$ac_ext <<_ACEOF
23767 /* end confdefs.h.  */
23768 #include <xercesc/util/XMLString.hpp>
23769 int
23770 main ()
23771 {
23772 using namespace XERCES_CPP_NAMESPACE;
23773       XMLByte* buf=NULL;
23774       XMLString::release(&buf);
23775
23776   ;
23777   return 0;
23778 }
23779 _ACEOF
23780 rm -f conftest.$ac_objext
23781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23782   (eval $ac_compile) 2>conftest.er1
23783   ac_status=$?
23784   grep -v '^ *+' conftest.er1 >conftest.err
23785   rm -f conftest.er1
23786   cat conftest.err >&5
23787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788   (exit $ac_status); } &&
23789          { ac_try='test -z "$ac_cxx_werror_flag"
23790                          || test ! -s conftest.err'
23791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23792   (eval $ac_try) 2>&5
23793   ac_status=$?
23794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795   (exit $ac_status); }; } &&
23796          { ac_try='test -s conftest.$ac_objext'
23797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23798   (eval $ac_try) 2>&5
23799   ac_status=$?
23800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801   (exit $ac_status); }; }; then
23802   echo "$as_me:$LINENO: result: yes" >&5
23803 echo "${ECHO_T}yes" >&6
23804
23805 cat >>confdefs.h <<\_ACEOF
23806 #define SHIBSP_XERCESC_HAS_XMLBYTE_RELEASE 1
23807 _ACEOF
23808
23809 else
23810   echo "$as_me: failed program was:" >&5
23811 sed 's/^/| /' conftest.$ac_ext >&5
23812
23813 echo "$as_me:$LINENO: result: no" >&5
23814 echo "${ECHO_T}no" >&6
23815 fi
23816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23817
23818 echo "$as_me:$LINENO: checking whether Xerces DOMNodeFilter API returns a short" >&5
23819 echo $ECHO_N "checking whether Xerces DOMNodeFilter API returns a short... $ECHO_C" >&6
23820 cat >conftest.$ac_ext <<_ACEOF
23821 /* confdefs.h.  */
23822 _ACEOF
23823 cat confdefs.h >>conftest.$ac_ext
23824 cat >>conftest.$ac_ext <<_ACEOF
23825 /* end confdefs.h.  */
23826 #include <xercesc/dom/DOM.hpp>
23827 int
23828 main ()
23829 {
23830 using namespace XERCES_CPP_NAMESPACE;
23831       class Blocker : public DOMNodeFilter {
23832       public:
23833         short acceptNode(const DOMNode* node) const {
23834             return FILTER_REJECT;
23835         }
23836       };
23837       static Blocker g_Blocker;
23838
23839   ;
23840   return 0;
23841 }
23842 _ACEOF
23843 rm -f conftest.$ac_objext
23844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23845   (eval $ac_compile) 2>conftest.er1
23846   ac_status=$?
23847   grep -v '^ *+' conftest.er1 >conftest.err
23848   rm -f conftest.er1
23849   cat conftest.err >&5
23850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851   (exit $ac_status); } &&
23852          { ac_try='test -z "$ac_cxx_werror_flag"
23853                          || test ! -s conftest.err'
23854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23855   (eval $ac_try) 2>&5
23856   ac_status=$?
23857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858   (exit $ac_status); }; } &&
23859          { ac_try='test -s conftest.$ac_objext'
23860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23861   (eval $ac_try) 2>&5
23862   ac_status=$?
23863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864   (exit $ac_status); }; }; then
23865   echo "$as_me:$LINENO: result: yes" >&5
23866 echo "${ECHO_T}yes" >&6
23867
23868 cat >>confdefs.h <<\_ACEOF
23869 #define SHIBSP_XERCESC_SHORT_ACCEPTNODE 1
23870 _ACEOF
23871
23872 else
23873   echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23875
23876 echo "$as_me:$LINENO: result: no" >&5
23877 echo "${ECHO_T}no" >&6
23878 fi
23879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23880
23881 #XML-Tooling settings
23882
23883 # Check whether --with-xmltooling or --without-xmltooling was given.
23884 if test "${with_xmltooling+set}" = set; then
23885   withval="$with_xmltooling"
23886   if test x_$with_xmltooling != x_/usr; then
23887                 LDFLAGS="-L${with_xmltooling}/lib $LDFLAGS"
23888                 CPPFLAGS="-I${with_xmltooling}/include $CPPFLAGS"
23889             fi
23890 fi;
23891 LITE_LIBS="-lxmltooling-lite"
23892 XMLSEC_LIBS="-lxmltooling"
23893 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
23894   echo "$as_me:$LINENO: checking for xmltooling/base.h" >&5
23895 echo $ECHO_N "checking for xmltooling/base.h... $ECHO_C" >&6
23896 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
23897   echo $ECHO_N "(cached) $ECHO_C" >&6
23898 fi
23899 echo "$as_me:$LINENO: result: $ac_cv_header_xmltooling_base_h" >&5
23900 echo "${ECHO_T}$ac_cv_header_xmltooling_base_h" >&6
23901 else
23902   # Is the header compilable?
23903 echo "$as_me:$LINENO: checking xmltooling/base.h usability" >&5
23904 echo $ECHO_N "checking xmltooling/base.h usability... $ECHO_C" >&6
23905 cat >conftest.$ac_ext <<_ACEOF
23906 /* confdefs.h.  */
23907 _ACEOF
23908 cat confdefs.h >>conftest.$ac_ext
23909 cat >>conftest.$ac_ext <<_ACEOF
23910 /* end confdefs.h.  */
23911 $ac_includes_default
23912 #include <xmltooling/base.h>
23913 _ACEOF
23914 rm -f conftest.$ac_objext
23915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23916   (eval $ac_compile) 2>conftest.er1
23917   ac_status=$?
23918   grep -v '^ *+' conftest.er1 >conftest.err
23919   rm -f conftest.er1
23920   cat conftest.err >&5
23921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922   (exit $ac_status); } &&
23923          { ac_try='test -z "$ac_cxx_werror_flag"
23924                          || test ! -s conftest.err'
23925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23926   (eval $ac_try) 2>&5
23927   ac_status=$?
23928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929   (exit $ac_status); }; } &&
23930          { ac_try='test -s conftest.$ac_objext'
23931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23932   (eval $ac_try) 2>&5
23933   ac_status=$?
23934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935   (exit $ac_status); }; }; then
23936   ac_header_compiler=yes
23937 else
23938   echo "$as_me: failed program was:" >&5
23939 sed 's/^/| /' conftest.$ac_ext >&5
23940
23941 ac_header_compiler=no
23942 fi
23943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23945 echo "${ECHO_T}$ac_header_compiler" >&6
23946
23947 # Is the header present?
23948 echo "$as_me:$LINENO: checking xmltooling/base.h presence" >&5
23949 echo $ECHO_N "checking xmltooling/base.h presence... $ECHO_C" >&6
23950 cat >conftest.$ac_ext <<_ACEOF
23951 /* confdefs.h.  */
23952 _ACEOF
23953 cat confdefs.h >>conftest.$ac_ext
23954 cat >>conftest.$ac_ext <<_ACEOF
23955 /* end confdefs.h.  */
23956 #include <xmltooling/base.h>
23957 _ACEOF
23958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23959   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23960   ac_status=$?
23961   grep -v '^ *+' conftest.er1 >conftest.err
23962   rm -f conftest.er1
23963   cat conftest.err >&5
23964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965   (exit $ac_status); } >/dev/null; then
23966   if test -s conftest.err; then
23967     ac_cpp_err=$ac_cxx_preproc_warn_flag
23968     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23969   else
23970     ac_cpp_err=
23971   fi
23972 else
23973   ac_cpp_err=yes
23974 fi
23975 if test -z "$ac_cpp_err"; then
23976   ac_header_preproc=yes
23977 else
23978   echo "$as_me: failed program was:" >&5
23979 sed 's/^/| /' conftest.$ac_ext >&5
23980
23981   ac_header_preproc=no
23982 fi
23983 rm -f conftest.err conftest.$ac_ext
23984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23985 echo "${ECHO_T}$ac_header_preproc" >&6
23986
23987 # So?  What about this header?
23988 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23989   yes:no: )
23990     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: accepted by the compiler, rejected by the preprocessor!" >&5
23991 echo "$as_me: WARNING: xmltooling/base.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23992     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: proceeding with the compiler's result" >&5
23993 echo "$as_me: WARNING: xmltooling/base.h: proceeding with the compiler's result" >&2;}
23994     ac_header_preproc=yes
23995     ;;
23996   no:yes:* )
23997     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: present but cannot be compiled" >&5
23998 echo "$as_me: WARNING: xmltooling/base.h: present but cannot be compiled" >&2;}
23999     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h:     check for missing prerequisite headers?" >&5
24000 echo "$as_me: WARNING: xmltooling/base.h:     check for missing prerequisite headers?" >&2;}
24001     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: see the Autoconf documentation" >&5
24002 echo "$as_me: WARNING: xmltooling/base.h: see the Autoconf documentation" >&2;}
24003     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h:     section \"Present But Cannot Be Compiled\"" >&5
24004 echo "$as_me: WARNING: xmltooling/base.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24005     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: proceeding with the preprocessor's result" >&5
24006 echo "$as_me: WARNING: xmltooling/base.h: proceeding with the preprocessor's result" >&2;}
24007     { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: in the future, the compiler will take precedence" >&5
24008 echo "$as_me: WARNING: xmltooling/base.h: in the future, the compiler will take precedence" >&2;}
24009     (
24010       cat <<\_ASBOX
24011 ## --------------------------------------------- ##
24012 ## Report this to shibboleth-users@internet2.edu ##
24013 ## --------------------------------------------- ##
24014 _ASBOX
24015     ) |
24016       sed "s/^/$as_me: WARNING:     /" >&2
24017     ;;
24018 esac
24019 echo "$as_me:$LINENO: checking for xmltooling/base.h" >&5
24020 echo $ECHO_N "checking for xmltooling/base.h... $ECHO_C" >&6
24021 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
24022   echo $ECHO_N "(cached) $ECHO_C" >&6
24023 else
24024   ac_cv_header_xmltooling_base_h=$ac_header_preproc
24025 fi
24026 echo "$as_me:$LINENO: result: $ac_cv_header_xmltooling_base_h" >&5
24027 echo "${ECHO_T}$ac_cv_header_xmltooling_base_h" >&6
24028
24029 fi
24030 if test $ac_cv_header_xmltooling_base_h = yes; then
24031   :
24032 else
24033   { { echo "$as_me:$LINENO: error: unable to find xmltooling header files" >&5
24034 echo "$as_me: error: unable to find xmltooling header files" >&2;}
24035    { (exit 1); exit 1; }; }
24036 fi
24037
24038
24039
24040 # Establish location of xmltooling catalog.
24041 XMLTOOLINGXMLDIR=""
24042 if test "x$with_xmltooling" = "x" ; then
24043    with_xmltooling="/usr"
24044 fi
24045 if test -f $with_xmltooling/share/xml/xmltooling/catalog.xml ; then
24046     XMLTOOLINGXMLDIR="$with_xmltooling"
24047 elif test -f $with_xerces/share/xml/xmltooling/catalog.xml ; then
24048     XMLTOOLINGXMLDIR="$with_xerces"
24049 elif test -f $with_log4shib/share/xml/xmltooling/catalog.xml ; then
24050     XMLTOOLINGXMLDIR="$with_log4shib"
24051 fi
24052 if test "x$XMLTOOLINGXMLDIR" = "x" ; then
24053     { { echo "$as_me:$LINENO: error: xmltooling XML catalog not found, may need to use --with-xmltooling option" >&5
24054 echo "$as_me: error: xmltooling XML catalog not found, may need to use --with-xmltooling option" >&2;}
24055    { (exit 1); exit 1; }; }
24056 fi
24057 XMLTOOLINGXMLDIR="$XMLTOOLINGXMLDIR/share/xml/xmltooling"
24058
24059
24060 # XML-Security settings
24061
24062 # Check whether --with-xmlsec or --without-xmlsec was given.
24063 if test "${with_xmlsec+set}" = set; then
24064   withval="$with_xmlsec"
24065
24066 else
24067   with_xmlsec=/usr
24068 fi;
24069
24070 if test x_$with_xmlsec != x_/usr; then
24071     LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
24072     CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
24073 fi
24074 XMLSEC_LIBS="-lxml-security-c $XMLSEC_LIBS"
24075
24076 # save and append master libs
24077 save_LIBS="$LIBS"
24078 LIBS="$XMLSEC_LIBS $LIBS"
24079
24080 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
24081   echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
24082 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
24083 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
24084   echo $ECHO_N "(cached) $ECHO_C" >&6
24085 fi
24086 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
24087 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
24088 else
24089   # Is the header compilable?
24090 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp usability" >&5
24091 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp usability... $ECHO_C" >&6
24092 cat >conftest.$ac_ext <<_ACEOF
24093 /* confdefs.h.  */
24094 _ACEOF
24095 cat confdefs.h >>conftest.$ac_ext
24096 cat >>conftest.$ac_ext <<_ACEOF
24097 /* end confdefs.h.  */
24098 $ac_includes_default
24099 #include <xsec/utils/XSECPlatformUtils.hpp>
24100 _ACEOF
24101 rm -f conftest.$ac_objext
24102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24103   (eval $ac_compile) 2>conftest.er1
24104   ac_status=$?
24105   grep -v '^ *+' conftest.er1 >conftest.err
24106   rm -f conftest.er1
24107   cat conftest.err >&5
24108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109   (exit $ac_status); } &&
24110          { ac_try='test -z "$ac_cxx_werror_flag"
24111                          || test ! -s conftest.err'
24112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24113   (eval $ac_try) 2>&5
24114   ac_status=$?
24115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116   (exit $ac_status); }; } &&
24117          { ac_try='test -s conftest.$ac_objext'
24118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24119   (eval $ac_try) 2>&5
24120   ac_status=$?
24121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122   (exit $ac_status); }; }; then
24123   ac_header_compiler=yes
24124 else
24125   echo "$as_me: failed program was:" >&5
24126 sed 's/^/| /' conftest.$ac_ext >&5
24127
24128 ac_header_compiler=no
24129 fi
24130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24132 echo "${ECHO_T}$ac_header_compiler" >&6
24133
24134 # Is the header present?
24135 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp presence" >&5
24136 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp presence... $ECHO_C" >&6
24137 cat >conftest.$ac_ext <<_ACEOF
24138 /* confdefs.h.  */
24139 _ACEOF
24140 cat confdefs.h >>conftest.$ac_ext
24141 cat >>conftest.$ac_ext <<_ACEOF
24142 /* end confdefs.h.  */
24143 #include <xsec/utils/XSECPlatformUtils.hpp>
24144 _ACEOF
24145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24147   ac_status=$?
24148   grep -v '^ *+' conftest.er1 >conftest.err
24149   rm -f conftest.er1
24150   cat conftest.err >&5
24151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152   (exit $ac_status); } >/dev/null; then
24153   if test -s conftest.err; then
24154     ac_cpp_err=$ac_cxx_preproc_warn_flag
24155     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24156   else
24157     ac_cpp_err=
24158   fi
24159 else
24160   ac_cpp_err=yes
24161 fi
24162 if test -z "$ac_cpp_err"; then
24163   ac_header_preproc=yes
24164 else
24165   echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24167
24168   ac_header_preproc=no
24169 fi
24170 rm -f conftest.err conftest.$ac_ext
24171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24172 echo "${ECHO_T}$ac_header_preproc" >&6
24173
24174 # So?  What about this header?
24175 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24176   yes:no: )
24177     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
24178 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
24179     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&5
24180 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&2;}
24181     ac_header_preproc=yes
24182     ;;
24183   no:yes:* )
24184     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&5
24185 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&2;}
24186     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp:     check for missing prerequisite headers?" >&5
24187 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp:     check for missing prerequisite headers?" >&2;}
24188     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&5
24189 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&2;}
24190     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp:     section \"Present But Cannot Be Compiled\"" >&5
24191 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
24192     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&5
24193 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&2;}
24194     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&5
24195 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&2;}
24196     (
24197       cat <<\_ASBOX
24198 ## --------------------------------------------- ##
24199 ## Report this to shibboleth-users@internet2.edu ##
24200 ## --------------------------------------------- ##
24201 _ASBOX
24202     ) |
24203       sed "s/^/$as_me: WARNING:     /" >&2
24204     ;;
24205 esac
24206 echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
24207 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
24208 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
24209   echo $ECHO_N "(cached) $ECHO_C" >&6
24210 else
24211   ac_cv_header_xsec_utils_XSECPlatformUtils_hpp=$ac_header_preproc
24212 fi
24213 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
24214 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
24215
24216 fi
24217 if test $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp = yes; then
24218   :
24219 else
24220   { { echo "$as_me:$LINENO: error: unable to find XML-Security header files" >&5
24221 echo "$as_me: error: unable to find XML-Security header files" >&2;}
24222    { (exit 1); exit 1; }; }
24223 fi
24224
24225
24226 echo "$as_me:$LINENO: checking XML-Security version" >&5
24227 echo $ECHO_N "checking XML-Security version... $ECHO_C" >&6
24228 cat >conftest.$ac_ext <<_ACEOF
24229 /* confdefs.h.  */
24230 _ACEOF
24231 cat confdefs.h >>conftest.$ac_ext
24232 cat >>conftest.$ac_ext <<_ACEOF
24233 /* end confdefs.h.  */
24234 #include <xsec/utils/XSECPlatformUtils.hpp>
24235 int
24236 main ()
24237 {
24238 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
24239 int i = 0;
24240 #else
24241 #error need version 1.4.0 or later
24242 #endif
24243   ;
24244   return 0;
24245 }
24246 _ACEOF
24247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24248   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24249   ac_status=$?
24250   grep -v '^ *+' conftest.er1 >conftest.err
24251   rm -f conftest.er1
24252   cat conftest.err >&5
24253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254   (exit $ac_status); } >/dev/null; then
24255   if test -s conftest.err; then
24256     ac_cpp_err=$ac_cxx_preproc_warn_flag
24257     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24258   else
24259     ac_cpp_err=
24260   fi
24261 else
24262   ac_cpp_err=yes
24263 fi
24264 if test -z "$ac_cpp_err"; then
24265   echo "$as_me:$LINENO: result: OK" >&5
24266 echo "${ECHO_T}OK" >&6
24267 else
24268   echo "$as_me: failed program was:" >&5
24269 sed 's/^/| /' conftest.$ac_ext >&5
24270
24271   { { echo "$as_me:$LINENO: error: XML-Security version 1.4.0 or greater is required.
24272 See \`config.log' for more details." >&5
24273 echo "$as_me: error: XML-Security version 1.4.0 or greater is required.
24274 See \`config.log' for more details." >&2;}
24275    { (exit 1); exit 1; }; }
24276 fi
24277 rm -f conftest.err conftest.$ac_ext
24278 cat >conftest.$ac_ext <<_ACEOF
24279 /* confdefs.h.  */
24280 _ACEOF
24281 cat confdefs.h >>conftest.$ac_ext
24282 cat >>conftest.$ac_ext <<_ACEOF
24283 /* end confdefs.h.  */
24284 #include <xsec/utils/XSECPlatformUtils.hpp>
24285 int
24286 main ()
24287 {
24288 XSECPlatformUtils::Initialise()
24289   ;
24290   return 0;
24291 }
24292 _ACEOF
24293 rm -f conftest.$ac_objext conftest$ac_exeext
24294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24295   (eval $ac_link) 2>conftest.er1
24296   ac_status=$?
24297   grep -v '^ *+' conftest.er1 >conftest.err
24298   rm -f conftest.er1
24299   cat conftest.err >&5
24300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301   (exit $ac_status); } &&
24302          { ac_try='test -z "$ac_cxx_werror_flag"
24303                          || test ! -s conftest.err'
24304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24305   (eval $ac_try) 2>&5
24306   ac_status=$?
24307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308   (exit $ac_status); }; } &&
24309          { ac_try='test -s conftest$ac_exeext'
24310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24311   (eval $ac_try) 2>&5
24312   ac_status=$?
24313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314   (exit $ac_status); }; }; then
24315   :
24316 else
24317   echo "$as_me: failed program was:" >&5
24318 sed 's/^/| /' conftest.$ac_ext >&5
24319
24320 { { echo "$as_me:$LINENO: error: unable to link with XML-Security" >&5
24321 echo "$as_me: error: unable to link with XML-Security" >&2;}
24322    { (exit 1); exit 1; }; }
24323 fi
24324 rm -f conftest.err conftest.$ac_objext \
24325       conftest$ac_exeext conftest.$ac_ext
24326
24327 # restore master libs
24328 LIBS="$save_LIBS"
24329
24330 # OpenSAML settings
24331
24332 # Check whether --with-saml or --without-saml was given.
24333 if test "${with_saml+set}" = set; then
24334   withval="$with_saml"
24335   if test x_$with_saml != x_/usr; then
24336         LDFLAGS="-L${with_saml}/lib $LDFLAGS"
24337         CPPFLAGS="-I${with_saml}/include $CPPFLAGS"
24338     fi
24339 fi;
24340 XMLSEC_LIBS="-lsaml $XMLSEC_LIBS"
24341
24342 # save and append master libs
24343 save_LIBS="$LIBS"
24344 LIBS="$XMLSEC_LIBS $LIBS"
24345
24346 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24347   echo "$as_me:$LINENO: checking for saml/saml2/metadata/Metadata.h" >&5
24348 echo $ECHO_N "checking for saml/saml2/metadata/Metadata.h... $ECHO_C" >&6
24349 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24350   echo $ECHO_N "(cached) $ECHO_C" >&6
24351 fi
24352 echo "$as_me:$LINENO: result: $ac_cv_header_saml_saml2_metadata_Metadata_h" >&5
24353 echo "${ECHO_T}$ac_cv_header_saml_saml2_metadata_Metadata_h" >&6
24354 else
24355   # Is the header compilable?
24356 echo "$as_me:$LINENO: checking saml/saml2/metadata/Metadata.h usability" >&5
24357 echo $ECHO_N "checking saml/saml2/metadata/Metadata.h usability... $ECHO_C" >&6
24358 cat >conftest.$ac_ext <<_ACEOF
24359 /* confdefs.h.  */
24360 _ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h.  */
24364 $ac_includes_default
24365 #include <saml/saml2/metadata/Metadata.h>
24366 _ACEOF
24367 rm -f conftest.$ac_objext
24368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24369   (eval $ac_compile) 2>conftest.er1
24370   ac_status=$?
24371   grep -v '^ *+' conftest.er1 >conftest.err
24372   rm -f conftest.er1
24373   cat conftest.err >&5
24374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375   (exit $ac_status); } &&
24376          { ac_try='test -z "$ac_cxx_werror_flag"
24377                          || test ! -s conftest.err'
24378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24379   (eval $ac_try) 2>&5
24380   ac_status=$?
24381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382   (exit $ac_status); }; } &&
24383          { ac_try='test -s conftest.$ac_objext'
24384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24385   (eval $ac_try) 2>&5
24386   ac_status=$?
24387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388   (exit $ac_status); }; }; then
24389   ac_header_compiler=yes
24390 else
24391   echo "$as_me: failed program was:" >&5
24392 sed 's/^/| /' conftest.$ac_ext >&5
24393
24394 ac_header_compiler=no
24395 fi
24396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24398 echo "${ECHO_T}$ac_header_compiler" >&6
24399
24400 # Is the header present?
24401 echo "$as_me:$LINENO: checking saml/saml2/metadata/Metadata.h presence" >&5
24402 echo $ECHO_N "checking saml/saml2/metadata/Metadata.h presence... $ECHO_C" >&6
24403 cat >conftest.$ac_ext <<_ACEOF
24404 /* confdefs.h.  */
24405 _ACEOF
24406 cat confdefs.h >>conftest.$ac_ext
24407 cat >>conftest.$ac_ext <<_ACEOF
24408 /* end confdefs.h.  */
24409 #include <saml/saml2/metadata/Metadata.h>
24410 _ACEOF
24411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24412   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24413   ac_status=$?
24414   grep -v '^ *+' conftest.er1 >conftest.err
24415   rm -f conftest.er1
24416   cat conftest.err >&5
24417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418   (exit $ac_status); } >/dev/null; then
24419   if test -s conftest.err; then
24420     ac_cpp_err=$ac_cxx_preproc_warn_flag
24421     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24422   else
24423     ac_cpp_err=
24424   fi
24425 else
24426   ac_cpp_err=yes
24427 fi
24428 if test -z "$ac_cpp_err"; then
24429   ac_header_preproc=yes
24430 else
24431   echo "$as_me: failed program was:" >&5
24432 sed 's/^/| /' conftest.$ac_ext >&5
24433
24434   ac_header_preproc=no
24435 fi
24436 rm -f conftest.err conftest.$ac_ext
24437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24438 echo "${ECHO_T}$ac_header_preproc" >&6
24439
24440 # So?  What about this header?
24441 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24442   yes:no: )
24443     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: accepted by the compiler, rejected by the preprocessor!" >&5
24444 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24445     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the compiler's result" >&5
24446 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the compiler's result" >&2;}
24447     ac_header_preproc=yes
24448     ;;
24449   no:yes:* )
24450     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: present but cannot be compiled" >&5
24451 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: present but cannot be compiled" >&2;}
24452     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h:     check for missing prerequisite headers?" >&5
24453 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h:     check for missing prerequisite headers?" >&2;}
24454     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: see the Autoconf documentation" >&5
24455 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: see the Autoconf documentation" >&2;}
24456     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h:     section \"Present But Cannot Be Compiled\"" >&5
24457 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24458     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the preprocessor's result" >&5
24459 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the preprocessor's result" >&2;}
24460     { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: in the future, the compiler will take precedence" >&5
24461 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: in the future, the compiler will take precedence" >&2;}
24462     (
24463       cat <<\_ASBOX
24464 ## --------------------------------------------- ##
24465 ## Report this to shibboleth-users@internet2.edu ##
24466 ## --------------------------------------------- ##
24467 _ASBOX
24468     ) |
24469       sed "s/^/$as_me: WARNING:     /" >&2
24470     ;;
24471 esac
24472 echo "$as_me:$LINENO: checking for saml/saml2/metadata/Metadata.h" >&5
24473 echo $ECHO_N "checking for saml/saml2/metadata/Metadata.h... $ECHO_C" >&6
24474 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24475   echo $ECHO_N "(cached) $ECHO_C" >&6
24476 else
24477   ac_cv_header_saml_saml2_metadata_Metadata_h=$ac_header_preproc
24478 fi
24479 echo "$as_me:$LINENO: result: $ac_cv_header_saml_saml2_metadata_Metadata_h" >&5
24480 echo "${ECHO_T}$ac_cv_header_saml_saml2_metadata_Metadata_h" >&6
24481
24482 fi
24483 if test $ac_cv_header_saml_saml2_metadata_Metadata_h = yes; then
24484   :
24485 else
24486   { { echo "$as_me:$LINENO: error: unable to find OpenSAML header files" >&5
24487 echo "$as_me: error: unable to find OpenSAML header files" >&2;}
24488    { (exit 1); exit 1; }; }
24489 fi
24490
24491
24492 cat >conftest.$ac_ext <<_ACEOF
24493 /* confdefs.h.  */
24494 _ACEOF
24495 cat confdefs.h >>conftest.$ac_ext
24496 cat >>conftest.$ac_ext <<_ACEOF
24497 /* end confdefs.h.  */
24498 #include <saml/SAMLConfig.h>
24499 #include <saml/version.h>
24500 int
24501 main ()
24502 {
24503 #if _OPENSAML_VERSION >= 20200
24504 opensaml::SAMLConfig::getConfig();
24505 #else
24506 #error Need OpenSAML version 2.2 or higher
24507 #endif
24508   ;
24509   return 0;
24510 }
24511 _ACEOF
24512 rm -f conftest.$ac_objext conftest$ac_exeext
24513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24514   (eval $ac_link) 2>conftest.er1
24515   ac_status=$?
24516   grep -v '^ *+' conftest.er1 >conftest.err
24517   rm -f conftest.er1
24518   cat conftest.err >&5
24519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520   (exit $ac_status); } &&
24521          { ac_try='test -z "$ac_cxx_werror_flag"
24522                          || test ! -s conftest.err'
24523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24524   (eval $ac_try) 2>&5
24525   ac_status=$?
24526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24527   (exit $ac_status); }; } &&
24528          { ac_try='test -s conftest$ac_exeext'
24529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24530   (eval $ac_try) 2>&5
24531   ac_status=$?
24532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533   (exit $ac_status); }; }; then
24534
24535 cat >>confdefs.h <<\_ACEOF
24536 #define HAVE_SAML 1
24537 _ACEOF
24538
24539 else
24540   echo "$as_me: failed program was:" >&5
24541 sed 's/^/| /' conftest.$ac_ext >&5
24542
24543 { { echo "$as_me:$LINENO: error: unable to link with OpenSAML, or version was too old" >&5
24544 echo "$as_me: error: unable to link with OpenSAML, or version was too old" >&2;}
24545    { (exit 1); exit 1; }; }
24546 fi
24547 rm -f conftest.err conftest.$ac_objext \
24548       conftest$ac_exeext conftest.$ac_ext
24549
24550 # restore master libs
24551 LIBS="$save_LIBS"
24552
24553 # Establish location of opensaml catalogs.
24554 OPENSAMLXMLDIR=""
24555 if test "x$with_saml" = "x" ; then
24556     with_saml="/usr"
24557 fi
24558 if test -f $with_saml/share/xml/opensaml/saml20-catalog.xml ; then
24559     OPENSAMLXMLDIR="$with_saml"
24560 elif test -f $with_xmltooling/share/xml/opensaml/saml20-catalog.xml ; then
24561     OPENSAMLXMLDIR="$with_xmltooling"
24562 elif test -f $with_xerces/share/xml/opensaml/saml20-catalog.xml ; then
24563     OPENSAMLXMLDIR="$with_xerces"
24564 elif test -f $with_log4shib/share/xml/opensaml/saml20-catalog.xml ; then
24565     OPENSAMLXMLDIR="$with_log4shib"
24566 fi
24567 if test "x$OPENSAMLXMLDIR" = "x" ; then
24568     { { echo "$as_me:$LINENO: error: opensaml XML catalogs not found, may need to use --with-saml option" >&5
24569 echo "$as_me: error: opensaml XML catalogs not found, may need to use --with-saml option" >&2;}
24570    { (exit 1); exit 1; }; }
24571 fi
24572 OPENSAMLXMLDIR="$OPENSAMLXMLDIR/share/xml/opensaml"
24573
24574
24575
24576
24577
24578                               ac_config_files="$ac_config_files shibboleth.spec pkginfo Portfile"
24579
24580
24581 # output the underlying makefiles
24582 WANT_SUBDIRS="doc schemas configs shibsp shibd util"
24583                                                                                 ac_config_files="$ac_config_files Makefile doc/Makefile schemas/Makefile configs/Makefile shibsp/Makefile shibd/Makefile util/Makefile selinux/Makefile"
24584
24585
24586 ## ADFS?
24587           ac_config_files="$ac_config_files adfs/Makefile"
24588
24589 # Check whether --enable-adfs or --disable-adfs was given.
24590 if test "${enable_adfs+set}" = set; then
24591   enableval="$enable_adfs"
24592   adfs_enabled=$enableval
24593 else
24594   adfs_enabled=yes
24595 fi;
24596 if test "x$adfs_enabled" = "x" ; then
24597    adfs_enabled=yes
24598 fi
24599 echo "$as_me:$LINENO: checking whether to build the ADFS module" >&5
24600 echo $ECHO_N "checking whether to build the ADFS module... $ECHO_C" >&6
24601 if test "$adfs_enabled" = "no" ; then
24602    echo "$as_me:$LINENO: result: no" >&5
24603 echo "${ECHO_T}no" >&6
24604 else
24605    echo "$as_me:$LINENO: result: yes" >&5
24606 echo "${ECHO_T}yes" >&6
24607    WANT_SUBDIRS="$WANT_SUBDIRS adfs"
24608 fi
24609
24610
24611 #
24612 # Build NSAPI module?
24613 #
24614 echo "$as_me:$LINENO: checking for NSAPI module option" >&5
24615 echo $ECHO_N "checking for NSAPI module option... $ECHO_C" >&6
24616
24617 # Check whether --with-nsapi or --without-nsapi was given.
24618 if test "${with_nsapi+set}" = set; then
24619   withval="$with_nsapi"
24620   WANT_NSAPI=$withval
24621 else
24622   WANT_NSAPI=no
24623 fi;
24624 echo "$as_me:$LINENO: result: $WANT_NSAPI" >&5
24625 echo "${ECHO_T}$WANT_NSAPI" >&6
24626
24627 if test "$WANT_NSAPI" != "no"; then
24628   if test ! -d $WANT_NSAPI/bin ; then
24629     { { echo "$as_me:$LINENO: error: Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR" >&5
24630 echo "$as_me: error: Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR" >&2;}
24631    { (exit 1); exit 1; }; }
24632   fi
24633   echo "$as_me:$LINENO: checking for NSAPI include files" >&5
24634 echo $ECHO_N "checking for NSAPI include files... $ECHO_C" >&6
24635   if test -d $WANT_NSAPI/include ; then
24636     NSAPI_INCLUDE=$WANT_NSAPI/include
24637     echo "$as_me:$LINENO: result: Netscape-Enterprise 3.x style" >&5
24638 echo "${ECHO_T}Netscape-Enterprise 3.x style" >&6
24639
24640 for ac_header in $NSAPI_INCLUDE/nsapi.h
24641 do
24642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24643 echo "$as_me:$LINENO: checking for $ac_header" >&5
24644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24646   echo $ECHO_N "(cached) $ECHO_C" >&6
24647 else
24648   cat >conftest.$ac_ext <<_ACEOF
24649 /* confdefs.h.  */
24650 _ACEOF
24651 cat confdefs.h >>conftest.$ac_ext
24652 cat >>conftest.$ac_ext <<_ACEOF
24653 /* end confdefs.h.  */
24654 #define XP_UNIX
24655
24656 #include <$ac_header>
24657 _ACEOF
24658 rm -f conftest.$ac_objext
24659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24660   (eval $ac_compile) 2>conftest.er1
24661   ac_status=$?
24662   grep -v '^ *+' conftest.er1 >conftest.err
24663   rm -f conftest.er1
24664   cat conftest.err >&5
24665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666   (exit $ac_status); } &&
24667          { ac_try='test -z "$ac_cxx_werror_flag"
24668                          || test ! -s conftest.err'
24669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24670   (eval $ac_try) 2>&5
24671   ac_status=$?
24672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673   (exit $ac_status); }; } &&
24674          { ac_try='test -s conftest.$ac_objext'
24675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24676   (eval $ac_try) 2>&5
24677   ac_status=$?
24678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679   (exit $ac_status); }; }; then
24680   eval "$as_ac_Header=yes"
24681 else
24682   echo "$as_me: failed program was:" >&5
24683 sed 's/^/| /' conftest.$ac_ext >&5
24684
24685 eval "$as_ac_Header=no"
24686 fi
24687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24688 fi
24689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24692   cat >>confdefs.h <<_ACEOF
24693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24694 _ACEOF
24695
24696 fi
24697
24698 done
24699
24700     NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
24701   fi
24702   if test -d $WANT_NSAPI/plugins/include ; then
24703     test -n "$NSAPI_INCLUDE" && NSAPI_INC_DIR="-I$NSAPI_INCLUDE"
24704     NSAPI_INCLUDE="$WANT_NSAPI/plugins/include"
24705     echo "$as_me:$LINENO: result: iPlanet 4.x / SunONE 6.x style" >&5
24706 echo "${ECHO_T}iPlanet 4.x / SunONE 6.x style" >&6
24707
24708 for ac_header in $NSAPI_INCLUDE/nsapi.h
24709 do
24710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24711 echo "$as_me:$LINENO: checking for $ac_header" >&5
24712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24714   echo $ECHO_N "(cached) $ECHO_C" >&6
24715 else
24716   cat >conftest.$ac_ext <<_ACEOF
24717 /* confdefs.h.  */
24718 _ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h.  */
24722 #define XP_UNIX
24723
24724 #include <$ac_header>
24725 _ACEOF
24726 rm -f conftest.$ac_objext
24727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24728   (eval $ac_compile) 2>conftest.er1
24729   ac_status=$?
24730   grep -v '^ *+' conftest.er1 >conftest.err
24731   rm -f conftest.er1
24732   cat conftest.err >&5
24733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734   (exit $ac_status); } &&
24735          { ac_try='test -z "$ac_cxx_werror_flag"
24736                          || test ! -s conftest.err'
24737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24738   (eval $ac_try) 2>&5
24739   ac_status=$?
24740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741   (exit $ac_status); }; } &&
24742          { ac_try='test -s conftest.$ac_objext'
24743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24744   (eval $ac_try) 2>&5
24745   ac_status=$?
24746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747   (exit $ac_status); }; }; then
24748   eval "$as_ac_Header=yes"
24749 else
24750   echo "$as_me: failed program was:" >&5
24751 sed 's/^/| /' conftest.$ac_ext >&5
24752
24753 eval "$as_ac_Header=no"
24754 fi
24755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24756 fi
24757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24760   cat >>confdefs.h <<_ACEOF
24761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24762 _ACEOF
24763
24764 fi
24765
24766 done
24767
24768     NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
24769   fi
24770   if test "$NSAPI_INCLUDE" = ""; then
24771     { { echo "$as_me:$LINENO: error: Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include" >&5
24772 echo "$as_me: error: Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include" >&2;}
24773    { (exit 1); exit 1; }; }
24774   fi
24775 fi
24776
24777
24778
24779 # always output the Makefile, even if you don't use it
24780           ac_config_files="$ac_config_files nsapi_shib/Makefile"
24781
24782
24783
24784 if test ! "$WANT_NSAPI" = "no"; then
24785   BUILD_NSAPI_TRUE=
24786   BUILD_NSAPI_FALSE='#'
24787 else
24788   BUILD_NSAPI_TRUE='#'
24789   BUILD_NSAPI_FALSE=
24790 fi
24791
24792
24793 # add the NSAPI module to the list of wanted subdirs..
24794 if test ! "$WANT_NSAPI" = "no" ; then
24795     WANT_SUBDIRS="$WANT_SUBDIRS nsapi_shib"
24796 fi
24797
24798
24799 #
24800 # Build FastCGI support?
24801 #
24802 echo "$as_me:$LINENO: checking for FastCGI support" >&5
24803 echo $ECHO_N "checking for FastCGI support... $ECHO_C" >&6
24804
24805 # Check whether --with-fastcgi or --without-fastcgi was given.
24806 if test "${with_fastcgi+set}" = set; then
24807   withval="$with_fastcgi"
24808   WANT_FASTCGI=$withval
24809 else
24810   WANT_FASTCGI=no
24811 fi;
24812 echo "$as_me:$LINENO: result: $WANT_FASTCGI" >&5
24813 echo "${ECHO_T}$WANT_FASTCGI" >&6
24814
24815 if test "$WANT_FASTCGI" != "no"; then
24816     if test "$WANT_FASTCGI" != "yes"; then
24817         if test x_$WANT_FASTCGI != x_/usr; then
24818             FASTCGI_INCLUDE="-I$WANT_FASTCGI/include"
24819             FASTCGI_LDFLAGS="-L$WANT_FASTCGI/lib"
24820         fi
24821     fi
24822     if test "${ac_cv_header_fcgio_h+set}" = set; then
24823   echo "$as_me:$LINENO: checking for fcgio.h" >&5
24824 echo $ECHO_N "checking for fcgio.h... $ECHO_C" >&6
24825 if test "${ac_cv_header_fcgio_h+set}" = set; then
24826   echo $ECHO_N "(cached) $ECHO_C" >&6
24827 fi
24828 echo "$as_me:$LINENO: result: $ac_cv_header_fcgio_h" >&5
24829 echo "${ECHO_T}$ac_cv_header_fcgio_h" >&6
24830 else
24831   # Is the header compilable?
24832 echo "$as_me:$LINENO: checking fcgio.h usability" >&5
24833 echo $ECHO_N "checking fcgio.h usability... $ECHO_C" >&6
24834 cat >conftest.$ac_ext <<_ACEOF
24835 /* confdefs.h.  */
24836 _ACEOF
24837 cat confdefs.h >>conftest.$ac_ext
24838 cat >>conftest.$ac_ext <<_ACEOF
24839 /* end confdefs.h.  */
24840 $ac_includes_default
24841 #include <fcgio.h>
24842 _ACEOF
24843 rm -f conftest.$ac_objext
24844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24845   (eval $ac_compile) 2>conftest.er1
24846   ac_status=$?
24847   grep -v '^ *+' conftest.er1 >conftest.err
24848   rm -f conftest.er1
24849   cat conftest.err >&5
24850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851   (exit $ac_status); } &&
24852          { ac_try='test -z "$ac_cxx_werror_flag"
24853                          || test ! -s conftest.err'
24854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24855   (eval $ac_try) 2>&5
24856   ac_status=$?
24857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858   (exit $ac_status); }; } &&
24859          { ac_try='test -s conftest.$ac_objext'
24860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24861   (eval $ac_try) 2>&5
24862   ac_status=$?
24863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864   (exit $ac_status); }; }; then
24865   ac_header_compiler=yes
24866 else
24867   echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24869
24870 ac_header_compiler=no
24871 fi
24872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24874 echo "${ECHO_T}$ac_header_compiler" >&6
24875
24876 # Is the header present?
24877 echo "$as_me:$LINENO: checking fcgio.h presence" >&5
24878 echo $ECHO_N "checking fcgio.h presence... $ECHO_C" >&6
24879 cat >conftest.$ac_ext <<_ACEOF
24880 /* confdefs.h.  */
24881 _ACEOF
24882 cat confdefs.h >>conftest.$ac_ext
24883 cat >>conftest.$ac_ext <<_ACEOF
24884 /* end confdefs.h.  */
24885 #include <fcgio.h>
24886 _ACEOF
24887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24888   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24889   ac_status=$?
24890   grep -v '^ *+' conftest.er1 >conftest.err
24891   rm -f conftest.er1
24892   cat conftest.err >&5
24893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894   (exit $ac_status); } >/dev/null; then
24895   if test -s conftest.err; then
24896     ac_cpp_err=$ac_cxx_preproc_warn_flag
24897     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24898   else
24899     ac_cpp_err=
24900   fi
24901 else
24902   ac_cpp_err=yes
24903 fi
24904 if test -z "$ac_cpp_err"; then
24905   ac_header_preproc=yes
24906 else
24907   echo "$as_me: failed program was:" >&5
24908 sed 's/^/| /' conftest.$ac_ext >&5
24909
24910   ac_header_preproc=no
24911 fi
24912 rm -f conftest.err conftest.$ac_ext
24913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24914 echo "${ECHO_T}$ac_header_preproc" >&6
24915
24916 # So?  What about this header?
24917 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24918   yes:no: )
24919     { echo "$as_me:$LINENO: WARNING: fcgio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24920 echo "$as_me: WARNING: fcgio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24921     { echo "$as_me:$LINENO: WARNING: fcgio.h: proceeding with the compiler's result" >&5
24922 echo "$as_me: WARNING: fcgio.h: proceeding with the compiler's result" >&2;}
24923     ac_header_preproc=yes
24924     ;;
24925   no:yes:* )
24926     { echo "$as_me:$LINENO: WARNING: fcgio.h: present but cannot be compiled" >&5
24927 echo "$as_me: WARNING: fcgio.h: present but cannot be compiled" >&2;}
24928     { echo "$as_me:$LINENO: WARNING: fcgio.h:     check for missing prerequisite headers?" >&5
24929 echo "$as_me: WARNING: fcgio.h:     check for missing prerequisite headers?" >&2;}
24930     { echo "$as_me:$LINENO: WARNING: fcgio.h: see the Autoconf documentation" >&5
24931 echo "$as_me: WARNING: fcgio.h: see the Autoconf documentation" >&2;}
24932     { echo "$as_me:$LINENO: WARNING: fcgio.h:     section \"Present But Cannot Be Compiled\"" >&5
24933 echo "$as_me: WARNING: fcgio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24934     { echo "$as_me:$LINENO: WARNING: fcgio.h: proceeding with the preprocessor's result" >&5
24935 echo "$as_me: WARNING: fcgio.h: proceeding with the preprocessor's result" >&2;}
24936     { echo "$as_me:$LINENO: WARNING: fcgio.h: in the future, the compiler will take precedence" >&5
24937 echo "$as_me: WARNING: fcgio.h: in the future, the compiler will take precedence" >&2;}
24938     (
24939       cat <<\_ASBOX
24940 ## --------------------------------------------- ##
24941 ## Report this to shibboleth-users@internet2.edu ##
24942 ## --------------------------------------------- ##
24943 _ASBOX
24944     ) |
24945       sed "s/^/$as_me: WARNING:     /" >&2
24946     ;;
24947 esac
24948 echo "$as_me:$LINENO: checking for fcgio.h" >&5
24949 echo $ECHO_N "checking for fcgio.h... $ECHO_C" >&6
24950 if test "${ac_cv_header_fcgio_h+set}" = set; then
24951   echo $ECHO_N "(cached) $ECHO_C" >&6
24952 else
24953   ac_cv_header_fcgio_h=$ac_header_preproc
24954 fi
24955 echo "$as_me:$LINENO: result: $ac_cv_header_fcgio_h" >&5
24956 echo "${ECHO_T}$ac_cv_header_fcgio_h" >&6
24957
24958 fi
24959 if test $ac_cv_header_fcgio_h = yes; then
24960   :
24961 else
24962   { { echo "$as_me:$LINENO: error: unable to find FastCGI header files" >&5
24963 echo "$as_me: error: unable to find FastCGI header files" >&2;}
24964    { (exit 1); exit 1; }; }
24965 fi
24966
24967
24968     FASTCGI_LIBS="-lfcgi -lfcgi++"
24969 fi
24970
24971
24972
24973
24974
24975 # always output the Makefile, even if you don't use it
24976           ac_config_files="$ac_config_files fastcgi/Makefile"
24977
24978
24979
24980 if test ! "$WANT_FASTCGI" = "no"; then
24981   BUILD_FASTCGI_TRUE=
24982   BUILD_FASTCGI_FALSE='#'
24983 else
24984   BUILD_FASTCGI_TRUE='#'
24985   BUILD_FASTCGI_FALSE=
24986 fi
24987
24988
24989 if test ! "$WANT_FASTCGI" = "no" ; then
24990     WANT_SUBDIRS="$WANT_SUBDIRS fastcgi"
24991 fi
24992
24993 #
24994 # Build Memcached support?
24995 #
24996 echo "$as_me:$LINENO: checking for Memcached support" >&5
24997 echo $ECHO_N "checking for Memcached support... $ECHO_C" >&6
24998
24999 # Check whether --with-memcached or --without-memcached was given.
25000 if test "${with_memcached+set}" = set; then
25001   withval="$with_memcached"
25002   WANT_MEMCACHED=$withval
25003 else
25004   WANT_MEMCACHED=no
25005 fi;
25006 echo "$as_me:$LINENO: result: $WANT_MEMCACHED" >&5
25007 echo "${ECHO_T}$WANT_MEMCACHED" >&6
25008
25009 if test "$WANT_MEMCACHED" != "no"; then
25010     if test "$WANT_MEMCACHED" != "yes"; then
25011         if test x_$WANT_MEMCACHED != x_/usr; then
25012             MEMCACHED_INCLUDE="-I$WANT_MEMCACHED/include"
25013             MEMCACHED_LDFLAGS="-L$WANT_MEMCACHED/lib"
25014         fi
25015     fi
25016     if test "${ac_cv_header_libmemcached_memcached_h+set}" = set; then
25017   echo "$as_me:$LINENO: checking for libmemcached/memcached.h" >&5
25018 echo $ECHO_N "checking for libmemcached/memcached.h... $ECHO_C" >&6
25019 if test "${ac_cv_header_libmemcached_memcached_h+set}" = set; then
25020   echo $ECHO_N "(cached) $ECHO_C" >&6
25021 fi
25022 echo "$as_me:$LINENO: result: $ac_cv_header_libmemcached_memcached_h" >&5
25023 echo "${ECHO_T}$ac_cv_header_libmemcached_memcached_h" >&6
25024 else
25025   # Is the header compilable?
25026 echo "$as_me:$LINENO: checking libmemcached/memcached.h usability" >&5
25027 echo $ECHO_N "checking libmemcached/memcached.h usability... $ECHO_C" >&6
25028 cat >conftest.$ac_ext <<_ACEOF
25029 /* confdefs.h.  */
25030 _ACEOF
25031 cat confdefs.h >>conftest.$ac_ext
25032 cat >>conftest.$ac_ext <<_ACEOF
25033 /* end confdefs.h.  */
25034 $ac_includes_default
25035 #include <libmemcached/memcached.h>
25036 _ACEOF
25037 rm -f conftest.$ac_objext
25038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25039   (eval $ac_compile) 2>conftest.er1
25040   ac_status=$?
25041   grep -v '^ *+' conftest.er1 >conftest.err
25042   rm -f conftest.er1
25043   cat conftest.err >&5
25044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045   (exit $ac_status); } &&
25046          { ac_try='test -z "$ac_cxx_werror_flag"
25047                          || test ! -s conftest.err'
25048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25049   (eval $ac_try) 2>&5
25050   ac_status=$?
25051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052   (exit $ac_status); }; } &&
25053          { ac_try='test -s conftest.$ac_objext'
25054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25055   (eval $ac_try) 2>&5
25056   ac_status=$?
25057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058   (exit $ac_status); }; }; then
25059   ac_header_compiler=yes
25060 else
25061   echo "$as_me: failed program was:" >&5
25062 sed 's/^/| /' conftest.$ac_ext >&5
25063
25064 ac_header_compiler=no
25065 fi
25066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25068 echo "${ECHO_T}$ac_header_compiler" >&6
25069
25070 # Is the header present?
25071 echo "$as_me:$LINENO: checking libmemcached/memcached.h presence" >&5
25072 echo $ECHO_N "checking libmemcached/memcached.h presence... $ECHO_C" >&6
25073 cat >conftest.$ac_ext <<_ACEOF
25074 /* confdefs.h.  */
25075 _ACEOF
25076 cat confdefs.h >>conftest.$ac_ext
25077 cat >>conftest.$ac_ext <<_ACEOF
25078 /* end confdefs.h.  */
25079 #include <libmemcached/memcached.h>
25080 _ACEOF
25081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25083   ac_status=$?
25084   grep -v '^ *+' conftest.er1 >conftest.err
25085   rm -f conftest.er1
25086   cat conftest.err >&5
25087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088   (exit $ac_status); } >/dev/null; then
25089   if test -s conftest.err; then
25090     ac_cpp_err=$ac_cxx_preproc_warn_flag
25091     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25092   else
25093     ac_cpp_err=
25094   fi
25095 else
25096   ac_cpp_err=yes
25097 fi
25098 if test -z "$ac_cpp_err"; then
25099   ac_header_preproc=yes
25100 else
25101   echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.$ac_ext >&5
25103
25104   ac_header_preproc=no
25105 fi
25106 rm -f conftest.err conftest.$ac_ext
25107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25108 echo "${ECHO_T}$ac_header_preproc" >&6
25109
25110 # So?  What about this header?
25111 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25112   yes:no: )
25113     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: accepted by the compiler, rejected by the preprocessor!" >&5
25114 echo "$as_me: WARNING: libmemcached/memcached.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25115     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: proceeding with the compiler's result" >&5
25116 echo "$as_me: WARNING: libmemcached/memcached.h: proceeding with the compiler's result" >&2;}
25117     ac_header_preproc=yes
25118     ;;
25119   no:yes:* )
25120     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: present but cannot be compiled" >&5
25121 echo "$as_me: WARNING: libmemcached/memcached.h: present but cannot be compiled" >&2;}
25122     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h:     check for missing prerequisite headers?" >&5
25123 echo "$as_me: WARNING: libmemcached/memcached.h:     check for missing prerequisite headers?" >&2;}
25124     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: see the Autoconf documentation" >&5
25125 echo "$as_me: WARNING: libmemcached/memcached.h: see the Autoconf documentation" >&2;}
25126     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h:     section \"Present But Cannot Be Compiled\"" >&5
25127 echo "$as_me: WARNING: libmemcached/memcached.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25128     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: proceeding with the preprocessor's result" >&5
25129 echo "$as_me: WARNING: libmemcached/memcached.h: proceeding with the preprocessor's result" >&2;}
25130     { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: in the future, the compiler will take precedence" >&5
25131 echo "$as_me: WARNING: libmemcached/memcached.h: in the future, the compiler will take precedence" >&2;}
25132     (
25133       cat <<\_ASBOX
25134 ## --------------------------------------------- ##
25135 ## Report this to shibboleth-users@internet2.edu ##
25136 ## --------------------------------------------- ##
25137 _ASBOX
25138     ) |
25139       sed "s/^/$as_me: WARNING:     /" >&2
25140     ;;
25141 esac
25142 echo "$as_me:$LINENO: checking for libmemcached/memcached.h" >&5
25143 echo $ECHO_N "checking for libmemcached/memcached.h... $ECHO_C" >&6
25144 if test "${ac_cv_header_libmemcached_memcached_h+set}" = set; then
25145   echo $ECHO_N "(cached) $ECHO_C" >&6
25146 else
25147   ac_cv_header_libmemcached_memcached_h=$ac_header_preproc
25148 fi
25149 echo "$as_me:$LINENO: result: $ac_cv_header_libmemcached_memcached_h" >&5
25150 echo "${ECHO_T}$ac_cv_header_libmemcached_memcached_h" >&6
25151
25152 fi
25153 if test $ac_cv_header_libmemcached_memcached_h = yes; then
25154   :
25155 else
25156   { { echo "$as_me:$LINENO: error: unable to find Memcached header files" >&5
25157 echo "$as_me: error: unable to find Memcached header files" >&2;}
25158    { (exit 1); exit 1; }; }
25159 fi
25160
25161
25162     MEMCACHED_LIBS="-lmemcached"
25163 fi
25164
25165
25166
25167
25168
25169 # always output the Makefile, even if you don't use it
25170           ac_config_files="$ac_config_files memcache-store/Makefile"
25171
25172
25173
25174 if test ! "$WANT_MEMCACHED" = "no"; then
25175   BUILD_MEMCACHED_TRUE=
25176   BUILD_MEMCACHED_FALSE='#'
25177 else
25178   BUILD_MEMCACHED_TRUE='#'
25179   BUILD_MEMCACHED_FALSE=
25180 fi
25181
25182
25183 if test ! "$WANT_MEMCACHED" = "no" ; then
25184     WANT_SUBDIRS="$WANT_SUBDIRS memcache-store"
25185 fi
25186
25187
25188 #
25189 # If no --enable-apache-xx specified
25190 # find a default and fake the specific parameters
25191 #
25192
25193 # simple macro to peek at an enable or a with
25194
25195
25196 echo "$as_me:$LINENO: checking if default apache needed" >&5
25197 echo $ECHO_N "checking if default apache needed... $ECHO_C" >&6
25198 need_default=yes
25199 if test "${enable_apache_13+set}" = set; then
25200   peekval="${enable_apache_13}"
25201   need_default=no
25202 fi;
25203 if test "${enable_apache_20+set}" = set; then
25204   peekval="${enable_apache_20}"
25205   need_default=no
25206 fi;
25207 if test "${enable_apache_22+set}" = set; then
25208   peekval="${enable_apache_22}"
25209   need_default=no
25210 fi;
25211 echo "$as_me:$LINENO: result: $need_default" >&5
25212 echo "${ECHO_T}$need_default" >&6
25213
25214 if test "$need_default" = "yes"; then
25215   # find an apxs, then the httpd
25216   xs=
25217   if test "${with_apxs+set}" = set; then
25218   peekval="${with_apxs}"
25219   xs="$peekval"
25220 fi;
25221   if test "${with_apxs2+set}" = set; then
25222   peekval="${with_apxs2}"
25223   xs="$peekval"
25224 fi;
25225   if test "${with_apxs22+set}" = set; then
25226   peekval="${with_apxs22}"
25227   xs="$peekval"
25228 fi;
25229   if test "x$xs" = "x"; then
25230      for ac_prog in apxs2 apxs
25231 do
25232   # Extract the first word of "$ac_prog", so it can be a program name with args.
25233 set dummy $ac_prog; ac_word=$2
25234 echo "$as_me:$LINENO: checking for $ac_word" >&5
25235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25236 if test "${ac_cv_path_xs+set}" = set; then
25237   echo $ECHO_N "(cached) $ECHO_C" >&6
25238 else
25239   case $xs in
25240   [\\/]* | ?:[\\/]*)
25241   ac_cv_path_xs="$xs" # Let the user override the test with a path.
25242   ;;
25243   *)
25244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25245 as_dummy="/usr/local/apache2/bin:/usr/local/apache/bin:/usr/sbin:$PATH"
25246 for as_dir in $as_dummy
25247 do
25248   IFS=$as_save_IFS
25249   test -z "$as_dir" && as_dir=.
25250   for ac_exec_ext in '' $ac_executable_extensions; do
25251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25252     ac_cv_path_xs="$as_dir/$ac_word$ac_exec_ext"
25253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25254     break 2
25255   fi
25256 done
25257 done
25258
25259   ;;
25260 esac
25261 fi
25262 xs=$ac_cv_path_xs
25263
25264 if test -n "$xs"; then
25265   echo "$as_me:$LINENO: result: $xs" >&5
25266 echo "${ECHO_T}$xs" >&6
25267 else
25268   echo "$as_me:$LINENO: result: no" >&5
25269 echo "${ECHO_T}no" >&6
25270 fi
25271
25272   test -n "$xs" && break
25273 done
25274 test -n "$xs" || xs="{ { echo "$as_me:$LINENO: error: No apxs" >&5
25275 echo "$as_me: error: No apxs" >&2;}
25276    { (exit no apache found.  Try --with-apxs); exit no apache found.  Try --with-apxs; }; }"
25277
25278   fi
25279   # ask the daemon for the version and set parameters
25280   echo "$as_me:$LINENO: checking default apache version" >&5
25281 echo $ECHO_N "checking default apache version... $ECHO_C" >&6
25282   httpd="`$xs -q SBINDIR`/`$xs -q TARGET`"
25283   if test "x$httpd" != "x" && test -f $httpd ; then
25284      v=`$httpd -v|$SED -n -e 's/.*Apache\/\.*//p'`
25285      case $v in
25286        1.3*)   enable_apache_13=yes
25287                with_apxs=$xs
25288                echo "$as_me:$LINENO: result: 1.3" >&5
25289 echo "${ECHO_T}1.3" >&6
25290                ;;
25291        2.0*)   enable_apache_20=yes
25292                with_apxs2=$xs
25293                echo "$as_me:$LINENO: result: 2.0" >&5
25294 echo "${ECHO_T}2.0" >&6
25295                ;;
25296        2.2*)   enable_apache_22=yes
25297                with_apxs22=$xs
25298                echo "$as_me:$LINENO: result: 2.2" >&5
25299 echo "${ECHO_T}2.2" >&6
25300                ;;
25301        *)      { { echo "$as_me:$LINENO: error: unusable apache versions: $v. Try setting --with-apxs" >&5
25302 echo "$as_me: error: unusable apache versions: $v. Try setting --with-apxs" >&2;}
25303    { (exit 1); exit 1; }; }
25304      esac
25305   else
25306      echo "$as_me:$LINENO: result: cannot determine version.  Try setting --with-apxs" >&5
25307 echo "${ECHO_T}cannot determine version.  Try setting --with-apxs" >&6
25308   fi
25309 fi
25310
25311 # Apache 1.3 (mod_shib_13)
25312 #   --enable-apache-13
25313 #   --with-apxs      (DSO build, the normal way, uses apxs to derive build flags)
25314
25315 # Check whether --enable-apache-13 or --disable-apache-13 was given.
25316 if test "${enable_apache_13+set}" = set; then
25317   enableval="$enable_apache_13"
25318    if test "x$enableval" = "x" ; then
25319               WANT_APACHE_13=yes
25320           else
25321               WANT_APACHE_13="$enableval"
25322           fi
25323
25324 else
25325    WANT_APACHE_13=no
25326 fi;
25327 echo "$as_me:$LINENO: checking whether to build Apache 1.3 module" >&5
25328 echo $ECHO_N "checking whether to build Apache 1.3 module... $ECHO_C" >&6
25329 if test "$WANT_APACHE_13" != yes && test "$WANT_APACHE_13" != no ; then
25330    WANT_APACHE_13=yes
25331 fi
25332 echo "$as_me:$LINENO: result: $WANT_APACHE_13" >&5
25333 echo "${ECHO_T}$WANT_APACHE_13" >&6
25334
25335 if test "$WANT_APACHE_13" = "yes" ; then
25336
25337 # Check whether --with-apxs or --without-apxs was given.
25338 if test "${with_apxs+set}" = set; then
25339   withval="$with_apxs"
25340
25341         echo "$as_me:$LINENO: checking for user-specified apxs name/location" >&5
25342 echo $ECHO_N "checking for user-specified apxs name/location... $ECHO_C" >&6
25343         if test "$withval" != "no" ; then
25344           if test "$withval" != "yes"; then
25345             APXS=$withval
25346             echo "$as_me:$LINENO: result: \"$withval\"" >&5
25347 echo "${ECHO_T}\"$withval\"" >&6
25348           fi
25349         fi
25350
25351 else
25352
25353         # Extract the first word of "apxs", so it can be a program name with args.
25354 set dummy apxs; ac_word=$2
25355 echo "$as_me:$LINENO: checking for $ac_word" >&5
25356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25357 if test "${ac_cv_path_APXS+set}" = set; then
25358   echo $ECHO_N "(cached) $ECHO_C" >&6
25359 else
25360   case $APXS in
25361   [\\/]* | ?:[\\/]*)
25362   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
25363   ;;
25364   *)
25365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25366 for as_dir in $PATH
25367 do
25368   IFS=$as_save_IFS
25369   test -z "$as_dir" && as_dir=.
25370   for ac_exec_ext in '' $ac_executable_extensions; do
25371   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25372     ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
25373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25374     break 2
25375   fi
25376 done
25377 done
25378
25379   test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
25380   ;;
25381 esac
25382 fi
25383 APXS=$ac_cv_path_APXS
25384
25385 if test -n "$APXS"; then
25386   echo "$as_me:$LINENO: result: $APXS" >&5
25387 echo "${ECHO_T}$APXS" >&6
25388 else
25389   echo "$as_me:$LINENO: result: no" >&5
25390 echo "${ECHO_T}no" >&6
25391 fi
25392
25393         if test "$APXS" = "no" ; then
25394           for i in /usr/sbin /usr/local/apache/bin ; do
25395             if test "$APXS" = "no" && test -f "$i/apxs"; then
25396               APXS="$i/apxs"
25397             fi
25398           done
25399         fi
25400
25401 fi;
25402
25403     echo "$as_me:$LINENO: checking to see if apxs was located" >&5
25404 echo $ECHO_N "checking to see if apxs was located... $ECHO_C" >&6
25405     if test ! -f "$APXS" ; then
25406         echo "$as_me:$LINENO: result: no" >&5
25407 echo "${ECHO_T}no" >&6
25408         { { echo "$as_me:$LINENO: error: Unable to locate apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs option." >&5
25409 echo "$as_me: error: Unable to locate apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs option." >&2;}
25410    { (exit 1); exit 1; }; }
25411     fi
25412     echo "$as_me:$LINENO: result: $APXS" >&5
25413 echo "${ECHO_T}$APXS" >&6
25414
25415
25416     # extract settings we need from APXS -q
25417     APXS_CC="`$APXS -q CC`"
25418     APXS_CFLAGS="`$APXS -q CFLAGS` `$APXS -q CFLAGS_SHLIB`"
25419     APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
25420 fi
25421
25422
25423
25424
25425
25426 # Apache 2.0 (mod_shib_20)
25427 #   --enable-apache-20
25428 #   --with-apxs2      (DSO build, the normal way, uses apxs to derive build flags)
25429 #       --with-apr        (DSO build, APR development package installed separately)
25430
25431 # Check whether --enable-apache-20 or --disable-apache-20 was given.
25432 if test "${enable_apache_20+set}" = set; then
25433   enableval="$enable_apache_20"
25434    if test "x$enableval" = "x" ; then
25435               WANT_APACHE_20=yes
25436           else
25437               WANT_APACHE_20="$enableval"
25438           fi
25439
25440 else
25441    WANT_APACHE_20=no
25442 fi;
25443 echo "$as_me:$LINENO: checking whether to build Apache 2.0 module" >&5
25444 echo $ECHO_N "checking whether to build Apache 2.0 module... $ECHO_C" >&6
25445 if test "$WANT_APACHE_20" != yes && test "$WANT_APACHE_20" != no ; then
25446    WANT_APACHE_20=yes
25447 fi
25448 echo "$as_me:$LINENO: result: $WANT_APACHE_20" >&5
25449 echo "${ECHO_T}$WANT_APACHE_20" >&6
25450
25451 if test "$WANT_APACHE_20" = "yes" ; then
25452
25453 # Check whether --with-apxs2 or --without-apxs2 was given.
25454 if test "${with_apxs2+set}" = set; then
25455   withval="$with_apxs2"
25456
25457         echo "$as_me:$LINENO: checking for user-specified Apache2 apxs name/location" >&5
25458 echo $ECHO_N "checking for user-specified Apache2 apxs name/location... $ECHO_C" >&6
25459         if test "$withval" != "no" ; then
25460           if test "$withval" != "yes"; then
25461             APXS2=$withval
25462             echo "$as_me:$LINENO: result: \"$withval\"" >&5
25463 echo "${ECHO_T}\"$withval\"" >&6
25464           fi
25465         fi
25466
25467 else
25468
25469         # Extract the first word of "apxs2", so it can be a program name with args.
25470 set dummy apxs2; ac_word=$2
25471 echo "$as_me:$LINENO: checking for $ac_word" >&5
25472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25473 if test "${ac_cv_path_APXS2+set}" = set; then
25474   echo $ECHO_N "(cached) $ECHO_C" >&6
25475 else
25476   case $APXS2 in
25477   [\\/]* | ?:[\\/]*)
25478   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
25479   ;;
25480   *)
25481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25482 for as_dir in $PATH
25483 do
25484   IFS=$as_save_IFS
25485   test -z "$as_dir" && as_dir=.
25486   for ac_exec_ext in '' $ac_executable_extensions; do
25487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25488     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
25489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25490     break 2
25491   fi
25492 done
25493 done
25494
25495   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
25496   ;;
25497 esac
25498 fi
25499 APXS2=$ac_cv_path_APXS2
25500
25501 if test -n "$APXS2"; then
25502   echo "$as_me:$LINENO: result: $APXS2" >&5
25503 echo "${ECHO_T}$APXS2" >&6
25504 else
25505   echo "$as_me:$LINENO: result: no" >&5
25506 echo "${ECHO_T}no" >&6
25507 fi
25508
25509         if test "$APXS2" = "no" ; then
25510             # Extract the first word of "apxs", so it can be a program name with args.
25511 set dummy apxs; ac_word=$2
25512 echo "$as_me:$LINENO: checking for $ac_word" >&5
25513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25514 if test "${ac_cv_path_APXS2+set}" = set; then
25515   echo $ECHO_N "(cached) $ECHO_C" >&6
25516 else
25517   case $APXS2 in
25518   [\\/]* | ?:[\\/]*)
25519   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
25520   ;;
25521   *)
25522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25523 for as_dir in $PATH
25524 do
25525   IFS=$as_save_IFS
25526   test -z "$as_dir" && as_dir=.
25527   for ac_exec_ext in '' $ac_executable_extensions; do
25528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25529     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
25530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25531     break 2
25532   fi
25533 done
25534 done
25535
25536   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
25537   ;;
25538 esac
25539 fi
25540 APXS2=$ac_cv_path_APXS2
25541
25542 if test -n "$APXS2"; then
25543   echo "$as_me:$LINENO: result: $APXS2" >&5
25544 echo "${ECHO_T}$APXS2" >&6
25545 else
25546   echo "$as_me:$LINENO: result: no" >&5
25547 echo "${ECHO_T}no" >&6
25548 fi
25549
25550         fi
25551         if test "$APXS2" = "no" ; then
25552           for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25553             if test "$APXS2" = "no" && test -f "$i/apxs2" ; then
25554               APXS2="$i/apxs2"
25555             fi
25556           done
25557           if test "$APXS2" = "no" ; then
25558             for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25559               if test "$APXS2" = "no" && test -f "$i/apxs" ; then
25560                 APXS2="$i/apxs"
25561               fi
25562             done
25563           fi
25564         fi
25565
25566 fi;
25567
25568     echo "$as_me:$LINENO: checking to see if Apache2 apxs was located" >&5
25569 echo $ECHO_N "checking to see if Apache2 apxs was located... $ECHO_C" >&6
25570     if test ! -f "$APXS2" ; then
25571         echo "$as_me:$LINENO: result: no" >&5
25572 echo "${ECHO_T}no" >&6
25573         { { echo "$as_me:$LINENO: error: Unable to locate Apache2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs2 option." >&5
25574 echo "$as_me: error: Unable to locate Apache2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs2 option." >&2;}
25575    { (exit 1); exit 1; }; }
25576     fi
25577     echo "$as_me:$LINENO: result: $APXS2" >&5
25578 echo "${ECHO_T}$APXS2" >&6
25579
25580
25581     # APR settings
25582
25583 # Check whether --with-apr or --without-apr was given.
25584 if test "${with_apr+set}" = set; then
25585   withval="$with_apr"
25586
25587         echo "$as_me:$LINENO: checking for user-specified apr-config name/location" >&5
25588 echo $ECHO_N "checking for user-specified apr-config name/location... $ECHO_C" >&6
25589         if test "$withval" != "no" ; then
25590             if test "$withval" != "yes"; then
25591                 APR_CONFIG=$withval
25592                 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25593 echo "${ECHO_T}\"$withval\"" >&6
25594             fi
25595         fi
25596
25597 else
25598
25599         # Extract the first word of "apr-config", so it can be a program name with args.
25600 set dummy apr-config; ac_word=$2
25601 echo "$as_me:$LINENO: checking for $ac_word" >&5
25602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25603 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
25604   echo $ECHO_N "(cached) $ECHO_C" >&6
25605 else
25606   case $APR_CONFIG in
25607   [\\/]* | ?:[\\/]*)
25608   ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
25609   ;;
25610   *)
25611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25612 as_dummy="`$APXS2 -q SBINDIR`:$PATH"
25613 for as_dir in $as_dummy
25614 do
25615   IFS=$as_save_IFS
25616   test -z "$as_dir" && as_dir=.
25617   for ac_exec_ext in '' $ac_executable_extensions; do
25618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25619     ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25621     break 2
25622   fi
25623 done
25624 done
25625
25626   ;;
25627 esac
25628 fi
25629 APR_CONFIG=$ac_cv_path_APR_CONFIG
25630
25631 if test -n "$APR_CONFIG"; then
25632   echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
25633 echo "${ECHO_T}$APR_CONFIG" >&6
25634 else
25635   echo "$as_me:$LINENO: result: no" >&5
25636 echo "${ECHO_T}no" >&6
25637 fi
25638
25639
25640 fi;
25641         if test -f "${APR_CONFIG}"; then
25642         APR_CFLAGS="`${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags` `${APR_CONFIG} --includes`"
25643     else
25644         { { echo "$as_me:$LINENO: error: Unable to locate apr-config, may need --with-apr option." >&5
25645 echo "$as_me: error: Unable to locate apr-config, may need --with-apr option." >&2;}
25646    { (exit 1); exit 1; }; }
25647     fi
25648
25649     # extract settings we need from APXS2 -q
25650     APXS2_CC="`$APXS2 -q CC`"
25651     APXS2_CFLAGS="`$APXS2 -q CPPFLAGS` `$APXS2 -q CFLAGS` $APR_CFLAGS"
25652     APXS2_INCLUDE="`$APXS2 -q INCLUDEDIR`"
25653 fi
25654
25655
25656
25657
25658
25659 # Apache 2.2 (mod_shib_22)
25660 #   --enable-apache-22
25661 #   --with-apxs22     (DSO build, the normal way, uses apxs to derive build flags)
25662 #       --with-apr1       (DSO build, APR development package installed separately)
25663
25664 # Check whether --enable-apache-22 or --disable-apache-22 was given.
25665 if test "${enable_apache_22+set}" = set; then
25666   enableval="$enable_apache_22"
25667    if test "x$enableval" = "x" ; then
25668               WANT_APACHE_22=yes
25669           else
25670               WANT_APACHE_22="$enableval"
25671           fi
25672
25673 else
25674    WANT_APACHE_22=no
25675 fi;
25676 echo "$as_me:$LINENO: checking whether to build Apache 2.2 module" >&5
25677 echo $ECHO_N "checking whether to build Apache 2.2 module... $ECHO_C" >&6
25678 if test "$WANT_APACHE_22" != yes && test "$WANT_APACHE_22" != no ; then
25679    WANT_APACHE_22=yes
25680 fi
25681 echo "$as_me:$LINENO: result: $WANT_APACHE_22" >&5
25682 echo "${ECHO_T}$WANT_APACHE_22" >&6
25683
25684 if test "$WANT_APACHE_22" = "yes" ; then
25685
25686 # Check whether --with-apxs22 or --without-apxs22 was given.
25687 if test "${with_apxs22+set}" = set; then
25688   withval="$with_apxs22"
25689
25690         echo "$as_me:$LINENO: checking for user-specified Apache2.2 apxs name/location" >&5
25691 echo $ECHO_N "checking for user-specified Apache2.2 apxs name/location... $ECHO_C" >&6
25692         if test "$withval" != "no" ; then
25693           if test "$withval" != "yes"; then
25694             APXS22=$withval
25695             echo "$as_me:$LINENO: result: \"$withval\"" >&5
25696 echo "${ECHO_T}\"$withval\"" >&6
25697           fi
25698         fi
25699
25700 else
25701
25702         # Extract the first word of "apxs2", so it can be a program name with args.
25703 set dummy apxs2; ac_word=$2
25704 echo "$as_me:$LINENO: checking for $ac_word" >&5
25705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25706 if test "${ac_cv_path_APXS22+set}" = set; then
25707   echo $ECHO_N "(cached) $ECHO_C" >&6
25708 else
25709   case $APXS22 in
25710   [\\/]* | ?:[\\/]*)
25711   ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
25712   ;;
25713   *)
25714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25715 for as_dir in $PATH
25716 do
25717   IFS=$as_save_IFS
25718   test -z "$as_dir" && as_dir=.
25719   for ac_exec_ext in '' $ac_executable_extensions; do
25720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25721     ac_cv_path_APXS22="$as_dir/$ac_word$ac_exec_ext"
25722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25723     break 2
25724   fi
25725 done
25726 done
25727
25728   test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
25729   ;;
25730 esac
25731 fi
25732 APXS22=$ac_cv_path_APXS22
25733
25734 if test -n "$APXS22"; then
25735   echo "$as_me:$LINENO: result: $APXS22" >&5
25736 echo "${ECHO_T}$APXS22" >&6
25737 else
25738   echo "$as_me:$LINENO: result: no" >&5
25739 echo "${ECHO_T}no" >&6
25740 fi
25741
25742         if test "$APXS22" = "no" ; then
25743             # Extract the first word of "apxs", so it can be a program name with args.
25744 set dummy apxs; ac_word=$2
25745 echo "$as_me:$LINENO: checking for $ac_word" >&5
25746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25747 if test "${ac_cv_path_APXS22+set}" = set; then
25748   echo $ECHO_N "(cached) $ECHO_C" >&6
25749 else
25750   case $APXS22 in
25751   [\\/]* | ?:[\\/]*)
25752   ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
25753   ;;
25754   *)
25755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25756 for as_dir in $PATH
25757 do
25758   IFS=$as_save_IFS
25759   test -z "$as_dir" && as_dir=.
25760   for ac_exec_ext in '' $ac_executable_extensions; do
25761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25762     ac_cv_path_APXS22="$as_dir/$ac_word$ac_exec_ext"
25763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25764     break 2
25765   fi
25766 done
25767 done
25768
25769   test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
25770   ;;
25771 esac
25772 fi
25773 APXS22=$ac_cv_path_APXS22
25774
25775 if test -n "$APXS22"; then
25776   echo "$as_me:$LINENO: result: $APXS22" >&5
25777 echo "${ECHO_T}$APXS22" >&6
25778 else
25779   echo "$as_me:$LINENO: result: no" >&5
25780 echo "${ECHO_T}no" >&6
25781 fi
25782
25783         fi
25784         if test "$APXS22" = "no" ; then
25785           for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25786             if test "$APXS22" = "no" && test -f "$i/apxs2" ; then
25787               APXS22="$i/apxs2"
25788             fi
25789           done
25790           if test "$APXS22" = "no" ; then
25791             for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25792               if test "$APXS22" = "no" && test -f "$i/apxs" ; then
25793                 APXS22="$i/apxs"
25794               fi
25795             done
25796           fi
25797         fi
25798
25799 fi;
25800
25801     echo "$as_me:$LINENO: checking to see if Apache2.2 apxs was located" >&5
25802 echo $ECHO_N "checking to see if Apache2.2 apxs was located... $ECHO_C" >&6
25803     if test ! -f "$APXS22" ; then
25804         echo "$as_me:$LINENO: result: no" >&5
25805 echo "${ECHO_T}no" >&6
25806         { { echo "$as_me:$LINENO: error: Unable to locate Apache2.2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs22 option." >&5
25807 echo "$as_me: error: Unable to locate Apache2.2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs22 option." >&2;}
25808    { (exit 1); exit 1; }; }
25809     fi
25810     echo "$as_me:$LINENO: result: $APXS22" >&5
25811 echo "${ECHO_T}$APXS22" >&6
25812
25813
25814     # APR1 settings
25815
25816 # Check whether --with-apr1 or --without-apr1 was given.
25817 if test "${with_apr1+set}" = set; then
25818   withval="$with_apr1"
25819
25820         echo "$as_me:$LINENO: checking for user-specified apr-1-config name/location" >&5
25821 echo $ECHO_N "checking for user-specified apr-1-config name/location... $ECHO_C" >&6
25822         if test "$withval" != "no" ; then
25823             if test "$withval" != "yes"; then
25824                 APR1_CONFIG=$withval
25825                 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25826 echo "${ECHO_T}\"$withval\"" >&6
25827             fi
25828         fi
25829
25830 else
25831
25832         # Extract the first word of "apr-1-config", so it can be a program name with args.
25833 set dummy apr-1-config; ac_word=$2
25834 echo "$as_me:$LINENO: checking for $ac_word" >&5
25835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25836 if test "${ac_cv_path_APR1_CONFIG+set}" = set; then
25837   echo $ECHO_N "(cached) $ECHO_C" >&6
25838 else
25839   case $APR1_CONFIG in
25840   [\\/]* | ?:[\\/]*)
25841   ac_cv_path_APR1_CONFIG="$APR1_CONFIG" # Let the user override the test with a path.
25842   ;;
25843   *)
25844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25845 as_dummy="`$APXS22 -q SBINDIR`:$PATH"
25846 for as_dir in $as_dummy
25847 do
25848   IFS=$as_save_IFS
25849   test -z "$as_dir" && as_dir=.
25850   for ac_exec_ext in '' $ac_executable_extensions; do
25851   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25852     ac_cv_path_APR1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25854     break 2
25855   fi
25856 done
25857 done
25858
25859   ;;
25860 esac
25861 fi
25862 APR1_CONFIG=$ac_cv_path_APR1_CONFIG
25863
25864 if test -n "$APR1_CONFIG"; then
25865   echo "$as_me:$LINENO: result: $APR1_CONFIG" >&5
25866 echo "${ECHO_T}$APR1_CONFIG" >&6
25867 else
25868   echo "$as_me:$LINENO: result: no" >&5
25869 echo "${ECHO_T}no" >&6
25870 fi
25871
25872
25873 fi;
25874         if test -f "${APR1_CONFIG}"; then
25875         APR1_CFLAGS="`${APR1_CONFIG} --cflags` `${APR1_CONFIG} --cppflags` `${APR1_CONFIG} --includes`"
25876     else
25877         { { echo "$as_me:$LINENO: error: Unable to locate apr-1-config, may need --with-apr1 option." >&5
25878 echo "$as_me: error: Unable to locate apr-1-config, may need --with-apr1 option." >&2;}
25879    { (exit 1); exit 1; }; }
25880     fi
25881
25882     # extract settings we need from APXS22 -q
25883     APXS22_CC="`$APXS22 -q CC`"
25884     APXS22_CFLAGS="`$APXS22 -q CPPFLAGS` `$APXS22 -q CFLAGS` $APR1_CFLAGS"
25885     APXS22_INCLUDE="`$APXS22 -q INCLUDEDIR`"
25886 fi
25887
25888
25889
25890
25891 # always output the Makefile, even if you don't use it
25892           ac_config_files="$ac_config_files apache/Makefile"
25893
25894
25895
25896 if test "$WANT_APACHE_13" = "yes"; then
25897   BUILD_AP13_TRUE=
25898   BUILD_AP13_FALSE='#'
25899 else
25900   BUILD_AP13_TRUE='#'
25901   BUILD_AP13_FALSE=
25902 fi
25903
25904
25905
25906 if test "$WANT_APACHE_20" = "yes"; then
25907   BUILD_AP20_TRUE=
25908   BUILD_AP20_FALSE='#'
25909 else
25910   BUILD_AP20_TRUE='#'
25911   BUILD_AP20_FALSE=
25912 fi
25913
25914
25915
25916 if test "$WANT_APACHE_22" = "yes"; then
25917   BUILD_AP22_TRUE=
25918   BUILD_AP22_FALSE='#'
25919 else
25920   BUILD_AP22_TRUE='#'
25921   BUILD_AP22_FALSE=
25922 fi
25923
25924
25925 # add the apache module to the list of wanted subdirs..
25926 if test "$WANT_APACHE_13" = "yes" || test "$WANT_APACHE_20" = "yes" || test "$WANT_APACHE_22" = "yes" ; then
25927     WANT_SUBDIRS="$WANT_SUBDIRS apache"
25928 fi
25929
25930
25931 #
25932 # Implement the checks of the ODBC Storage Service
25933 #
25934 # 1) Assume the user wants ODBC; if it's not found then just continue without
25935 # 2) If the user specifically requested odbc, look for it and ERROR if not found
25936 # 3) If the user specifically requested no odbc, don't build it.
25937 #
25938
25939           ac_config_files="$ac_config_files odbc-store/Makefile"
25940
25941
25942 # determine whether we should enable the odbc ccache
25943 # Check whether --enable-odbc or --disable-odbc was given.
25944 if test "${enable_odbc+set}" = set; then
25945   enableval="$enable_odbc"
25946   odbc_enabled=$enableval
25947 else
25948   odbc_enabled=default
25949 fi;
25950
25951 if test "x$odbc_enabled" = "x" ; then
25952    odbc_enabled=yes
25953 fi
25954
25955 # Are we trying to build ODBC?
25956 echo "$as_me:$LINENO: checking whether to build the ODBC storage service" >&5
25957 echo $ECHO_N "checking whether to build the ODBC storage service... $ECHO_C" >&6
25958 if test "$odbc_enabled" = "yes" ; then
25959    build_odbc=yes
25960    echo "$as_me:$LINENO: result: yes" >&5
25961 echo "${ECHO_T}yes" >&6
25962 elif test "$odbc_enabled" = "default" ; then
25963    build_odbc=yes
25964    echo "$as_me:$LINENO: result: yes, if it can be found" >&5
25965 echo "${ECHO_T}yes, if it can be found" >&6
25966 else
25967    build_odbc=no
25968    echo "$as_me:$LINENO: result: no" >&5
25969 echo "${ECHO_T}no" >&6
25970 fi
25971
25972 # If we're trying to build ODBC, try to find the odbc_config program.
25973 if test "$build_odbc" = "yes" ; then
25974    odbc_dir=""
25975
25976 # Check whether --with-odbc or --without-odbc was given.
25977 if test "${with_odbc+set}" = set; then
25978   withval="$with_odbc"
25979   if test "$with_odbc" = no ; then
25980                { { echo "$as_me:$LINENO: error: Try running --disable-odbc instead." >&5
25981 echo "$as_me: error: Try running --disable-odbc instead." >&2;}
25982    { (exit 1); exit 1; }; }
25983              elif test "$with_odbc" != yes ; then
25984                odbc_dir="$with_odbc/bin"
25985                if test "$with_odbc" != /usr ; then
25986                  ODBC_CFLAGS="-I$with_odbc/include"
25987                  ODBC_LIBS="-L$with_odbc/lib"
25988                fi
25989              fi
25990 fi;
25991
25992    # Extract the first word of "odbc_config", so it can be a program name with args.
25993 set dummy odbc_config; ac_word=$2
25994 echo "$as_me:$LINENO: checking for $ac_word" >&5
25995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25996 if test "${ac_cv_path_ODBC_CONFIG+set}" = set; then
25997   echo $ECHO_N "(cached) $ECHO_C" >&6
25998 else
25999   case $ODBC_CONFIG in
26000   [\\/]* | ?:[\\/]*)
26001   ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path.
26002   ;;
26003   *)
26004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26005 for as_dir in $odbc_dir $PATH
26006 do
26007   IFS=$as_save_IFS
26008   test -z "$as_dir" && as_dir=.
26009   for ac_exec_ext in '' $ac_executable_extensions; do
26010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26011     ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26013     break 2
26014   fi
26015 done
26016 done
26017
26018   test -z "$ac_cv_path_ODBC_CONFIG" && ac_cv_path_ODBC_CONFIG="no"
26019   ;;
26020 esac
26021 fi
26022 ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG
26023
26024 if test -n "$ODBC_CONFIG"; then
26025   echo "$as_me:$LINENO: result: $ODBC_CONFIG" >&5
26026 echo "${ECHO_T}$ODBC_CONFIG" >&6
26027 else
26028   echo "$as_me:$LINENO: result: no" >&5
26029 echo "${ECHO_T}no" >&6
26030 fi
26031
26032    if test "$ODBC_CONFIG" = no ; then
26033       { echo "$as_me:$LINENO: WARNING: Cannot find odbc_config, will try to guess settings." >&5
26034 echo "$as_me: WARNING: Cannot find odbc_config, will try to guess settings." >&2;}
26035       ODBC_LIBS="$ODBC_LIBS -lodbc"
26036    else
26037       ODBC_CFLAGS=`$ODBC_CONFIG --cflags`
26038       ODBC_LIBS=`$ODBC_CONFIG --libs`
26039    fi
26040
26041    save_CPPFLAGS="$CPPFLAGS"
26042    CPPFLAGS="$CPPFLAGS $ODBC_CFLAGS"
26043
26044    if test "${ac_cv_header_sql_h+set}" = set; then
26045   echo "$as_me:$LINENO: checking for sql.h" >&5
26046 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26047 if test "${ac_cv_header_sql_h+set}" = set; then
26048   echo $ECHO_N "(cached) $ECHO_C" >&6
26049 fi
26050 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26051 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26052 else
26053   # Is the header compilable?
26054 echo "$as_me:$LINENO: checking sql.h usability" >&5
26055 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26056 cat >conftest.$ac_ext <<_ACEOF
26057 /* confdefs.h.  */
26058 _ACEOF
26059 cat confdefs.h >>conftest.$ac_ext
26060 cat >>conftest.$ac_ext <<_ACEOF
26061 /* end confdefs.h.  */
26062 $ac_includes_default
26063 #include <sql.h>
26064 _ACEOF
26065 rm -f conftest.$ac_objext
26066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26067   (eval $ac_compile) 2>conftest.er1
26068   ac_status=$?
26069   grep -v '^ *+' conftest.er1 >conftest.err
26070   rm -f conftest.er1
26071   cat conftest.err >&5
26072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073   (exit $ac_status); } &&
26074          { ac_try='test -z "$ac_cxx_werror_flag"
26075                          || test ! -s conftest.err'
26076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26077   (eval $ac_try) 2>&5
26078   ac_status=$?
26079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080   (exit $ac_status); }; } &&
26081          { ac_try='test -s conftest.$ac_objext'
26082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26083   (eval $ac_try) 2>&5
26084   ac_status=$?
26085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086   (exit $ac_status); }; }; then
26087   ac_header_compiler=yes
26088 else
26089   echo "$as_me: failed program was:" >&5
26090 sed 's/^/| /' conftest.$ac_ext >&5
26091
26092 ac_header_compiler=no
26093 fi
26094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26096 echo "${ECHO_T}$ac_header_compiler" >&6
26097
26098 # Is the header present?
26099 echo "$as_me:$LINENO: checking sql.h presence" >&5
26100 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26101 cat >conftest.$ac_ext <<_ACEOF
26102 /* confdefs.h.  */
26103 _ACEOF
26104 cat confdefs.h >>conftest.$ac_ext
26105 cat >>conftest.$ac_ext <<_ACEOF
26106 /* end confdefs.h.  */
26107 #include <sql.h>
26108 _ACEOF
26109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26110   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26111   ac_status=$?
26112   grep -v '^ *+' conftest.er1 >conftest.err
26113   rm -f conftest.er1
26114   cat conftest.err >&5
26115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116   (exit $ac_status); } >/dev/null; then
26117   if test -s conftest.err; then
26118     ac_cpp_err=$ac_cxx_preproc_warn_flag
26119     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26120   else
26121     ac_cpp_err=
26122   fi
26123 else
26124   ac_cpp_err=yes
26125 fi
26126 if test -z "$ac_cpp_err"; then
26127   ac_header_preproc=yes
26128 else
26129   echo "$as_me: failed program was:" >&5
26130 sed 's/^/| /' conftest.$ac_ext >&5
26131
26132   ac_header_preproc=no
26133 fi
26134 rm -f conftest.err conftest.$ac_ext
26135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26136 echo "${ECHO_T}$ac_header_preproc" >&6
26137
26138 # So?  What about this header?
26139 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26140   yes:no: )
26141     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26142 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26143     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26144 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26145     ac_header_preproc=yes
26146     ;;
26147   no:yes:* )
26148     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26149 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
26150     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
26151 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
26152     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26153 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26154     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
26155 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26156     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26157 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
26158     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26159 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
26160     (
26161       cat <<\_ASBOX
26162 ## --------------------------------------------- ##
26163 ## Report this to shibboleth-users@internet2.edu ##
26164 ## --------------------------------------------- ##
26165 _ASBOX
26166     ) |
26167       sed "s/^/$as_me: WARNING:     /" >&2
26168     ;;
26169 esac
26170 echo "$as_me:$LINENO: checking for sql.h" >&5
26171 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26172 if test "${ac_cv_header_sql_h+set}" = set; then
26173   echo $ECHO_N "(cached) $ECHO_C" >&6
26174 else
26175   ac_cv_header_sql_h=$ac_header_preproc
26176 fi
26177 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26178 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26179
26180 fi
26181 if test $ac_cv_header_sql_h = yes; then
26182   have_sql_h=yes
26183 else
26184   have_sql_h=no
26185 fi
26186
26187
26188    if test "$have_sql_h" = no -a "$odbc_enabled" = "yes" ; then
26189      { { echo "$as_me:$LINENO: error: unable to find ODBC header files" >&5
26190 echo "$as_me: error: unable to find ODBC header files" >&2;}
26191    { (exit 1); exit 1; }; }
26192    fi
26193
26194    if test "$have_sql_h" = yes ; then
26195       save_LIBS="$LIBS"
26196       LIBS="$LIBS $ODBC_LIBS"
26197       echo "$as_me:$LINENO: checking if we can link againt ODBC" >&5
26198 echo $ECHO_N "checking if we can link againt ODBC... $ECHO_C" >&6
26199       cat >conftest.$ac_ext <<_ACEOF
26200 /* confdefs.h.  */
26201 _ACEOF
26202 cat confdefs.h >>conftest.$ac_ext
26203 cat >>conftest.$ac_ext <<_ACEOF
26204 /* end confdefs.h.  */
26205 #include <sql.h>
26206          #include <sqlext.h>
26207          #include <stdio.h>
26208 int
26209 main ()
26210 {
26211 SQLSetEnvAttr(SQL_NULL_HANDLE, SQL_ATTR_CONNECTION_POOLING, (void*)SQL_CP_ONE_PER_HENV, 0)
26212   ;
26213   return 0;
26214 }
26215 _ACEOF
26216 rm -f conftest.$ac_objext conftest$ac_exeext
26217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26218   (eval $ac_link) 2>conftest.er1
26219   ac_status=$?
26220   grep -v '^ *+' conftest.er1 >conftest.err
26221   rm -f conftest.er1
26222   cat conftest.err >&5
26223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224   (exit $ac_status); } &&
26225          { ac_try='test -z "$ac_cxx_werror_flag"
26226                          || test ! -s conftest.err'
26227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26228   (eval $ac_try) 2>&5
26229   ac_status=$?
26230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231   (exit $ac_status); }; } &&
26232          { ac_try='test -s conftest$ac_exeext'
26233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26234   (eval $ac_try) 2>&5
26235   ac_status=$?
26236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237   (exit $ac_status); }; }; then
26238   have_odbc_libs=yes
26239 else
26240   echo "$as_me: failed program was:" >&5
26241 sed 's/^/| /' conftest.$ac_ext >&5
26242
26243 have_odbc_libs=no
26244 fi
26245 rm -f conftest.err conftest.$ac_objext \
26246       conftest$ac_exeext conftest.$ac_ext
26247       LIBS="$save_LIBS"
26248
26249       if test "$have_odbc_libs" = no ; then
26250          if test "$odbc_enabled" = "yes" ; then
26251             { { echo "$as_me:$LINENO: error: unable to link with ODBC Library" >&5
26252 echo "$as_me: error: unable to link with ODBC Library" >&2;}
26253    { (exit 1); exit 1; }; }
26254          else
26255             echo "$as_me:$LINENO: result: no" >&5
26256 echo "${ECHO_T}no" >&6
26257          fi
26258       fi
26259    fi
26260
26261    CPPFLAGS="$save_CPPFLAGS"
26262 fi
26263
26264 # if have_odbc_libs=yes then go ahead with building ODBC
26265 if test "$have_odbc_libs" = yes ; then
26266    # this AC_MSG_RESULT is from above!
26267    echo "$as_me:$LINENO: result: yes" >&5
26268 echo "${ECHO_T}yes" >&6
26269    WANT_SUBDIRS="$WANT_SUBDIRS odbc-store"
26270
26271
26272 fi
26273
26274
26275
26276
26277 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
26278   echo "=================================================================="
26279   echo "WARNING: You have chosen to compile Apache-1.3 modules with a different"
26280   echo "         compiler than the one used to compile Apache."
26281   echo ""
26282   echo "    Current compiler:      $CC"
26283   echo "   Apache's compiler:      $APXS_CC"
26284   echo ""
26285   echo "This could cause problems."
26286   echo "=================================================================="
26287 fi
26288
26289 if test -n "$APXS2_CC" && test "$APXS2_CC" != "$CC" ; then
26290   echo "=================================================================="
26291   echo "WARNING: You have chosen to compile Apache-2.0 modules with a different"
26292   echo "         compiler than the one used to compile Apache."
26293   echo ""
26294   echo "    Current compiler:      $CC"
26295   echo "   Apache's compiler:      $APXS2_CC"
26296   echo ""
26297   echo "This could cause problems."
26298   echo "=================================================================="
26299 fi
26300
26301 if test -n "$APXS22_CC" && test "$APXS22_CC" != "$CC" ; then
26302   echo "=================================================================="
26303   echo "WARNING: You have chosen to compile Apache-2.2 modules with a different"
26304   echo "         compiler than the one used to compile Apache."
26305   echo ""
26306   echo "    Current compiler:      $CC"
26307   echo "   Apache's compiler:      $APXS22_CC"
26308   echo ""
26309   echo "This could cause problems."
26310   echo "=================================================================="
26311 fi
26312
26313 LIBTOOL="$LIBTOOL --silent"
26314
26315 cat >confcache <<\_ACEOF
26316 # This file is a shell script that caches the results of configure
26317 # tests run on this system so they can be shared between configure
26318 # scripts and configure runs, see configure's option --config-cache.
26319 # It is not useful on other systems.  If it contains results you don't
26320 # want to keep, you may remove or edit it.
26321 #
26322 # config.status only pays attention to the cache file if you give it
26323 # the --recheck option to rerun configure.
26324 #
26325 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26326 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26327 # following values.
26328
26329 _ACEOF
26330
26331 # The following way of writing the cache mishandles newlines in values,
26332 # but we know of no workaround that is simple, portable, and efficient.
26333 # So, don't put newlines in cache variables' values.
26334 # Ultrix sh set writes to stderr and can't be redirected directly,
26335 # and sets the high bit in the cache file unless we assign to the vars.
26336 {
26337   (set) 2>&1 |
26338     case `(ac_space=' '; set | grep ac_space) 2>&1` in
26339     *ac_space=\ *)
26340       # `set' does not quote correctly, so add quotes (double-quote
26341       # substitution turns \\\\ into \\, and sed turns \\ into \).
26342       sed -n \
26343         "s/'/'\\\\''/g;
26344           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26345       ;;
26346     *)
26347       # `set' quotes correctly as required by POSIX, so do not add quotes.
26348       sed -n \
26349         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26350       ;;
26351     esac;
26352 } |
26353   sed '
26354      t clear
26355      : clear
26356      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26357      t end
26358      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26359      : end' >>confcache
26360 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26361   if test -w $cache_file; then
26362     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26363     cat confcache >$cache_file
26364   else
26365     echo "not updating unwritable cache $cache_file"
26366   fi
26367 fi
26368 rm -f confcache
26369
26370 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26371 # Let make expand exec_prefix.
26372 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26373
26374 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26375 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26376 # trailing colons and then remove the whole line if VPATH becomes empty
26377 # (actually we leave an empty line to preserve line numbers).
26378 if test "x$srcdir" = x.; then
26379   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26380 s/:*\$(srcdir):*/:/;
26381 s/:*\${srcdir}:*/:/;
26382 s/:*@srcdir@:*/:/;
26383 s/^\([^=]*=[     ]*\):*/\1/;
26384 s/:*$//;
26385 s/^[^=]*=[       ]*$//;
26386 }'
26387 fi
26388
26389 DEFS=-DHAVE_CONFIG_H
26390
26391 ac_libobjs=
26392 ac_ltlibobjs=
26393 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26394   # 1. Remove the extension, and $U if already installed.
26395   ac_i=`echo "$ac_i" |
26396          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26397   # 2. Add them.
26398   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26399   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26400 done
26401 LIBOBJS=$ac_libobjs
26402
26403 LTLIBOBJS=$ac_ltlibobjs
26404
26405
26406 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
26407   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
26408 Usually this means the macro was only invoked conditionally." >&5
26409 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
26410 Usually this means the macro was only invoked conditionally." >&2;}
26411    { (exit 1); exit 1; }; }
26412 fi
26413 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
26414   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
26415 Usually this means the macro was only invoked conditionally." >&5
26416 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
26417 Usually this means the macro was only invoked conditionally." >&2;}
26418    { (exit 1); exit 1; }; }
26419 fi
26420 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
26421   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
26422 Usually this means the macro was only invoked conditionally." >&5
26423 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
26424 Usually this means the macro was only invoked conditionally." >&2;}
26425    { (exit 1); exit 1; }; }
26426 fi
26427 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
26428   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
26429 Usually this means the macro was only invoked conditionally." >&5
26430 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
26431 Usually this means the macro was only invoked conditionally." >&2;}
26432    { (exit 1); exit 1; }; }
26433 fi
26434 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
26435   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
26436 Usually this means the macro was only invoked conditionally." >&5
26437 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
26438 Usually this means the macro was only invoked conditionally." >&2;}
26439    { (exit 1); exit 1; }; }
26440 fi
26441 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
26442   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
26443 Usually this means the macro was only invoked conditionally." >&5
26444 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
26445 Usually this means the macro was only invoked conditionally." >&2;}
26446    { (exit 1); exit 1; }; }
26447 fi
26448 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
26449   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
26450 Usually this means the macro was only invoked conditionally." >&5
26451 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
26452 Usually this means the macro was only invoked conditionally." >&2;}
26453    { (exit 1); exit 1; }; }
26454 fi
26455 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
26456   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
26457 Usually this means the macro was only invoked conditionally." >&5
26458 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
26459 Usually this means the macro was only invoked conditionally." >&2;}
26460    { (exit 1); exit 1; }; }
26461 fi
26462 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
26463   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
26464 Usually this means the macro was only invoked conditionally." >&5
26465 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
26466 Usually this means the macro was only invoked conditionally." >&2;}
26467    { (exit 1); exit 1; }; }
26468 fi
26469 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
26470   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
26471 Usually this means the macro was only invoked conditionally." >&5
26472 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
26473 Usually this means the macro was only invoked conditionally." >&2;}
26474    { (exit 1); exit 1; }; }
26475 fi
26476 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
26477   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
26478 Usually this means the macro was only invoked conditionally." >&5
26479 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
26480 Usually this means the macro was only invoked conditionally." >&2;}
26481    { (exit 1); exit 1; }; }
26482 fi
26483 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
26484   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
26485 Usually this means the macro was only invoked conditionally." >&5
26486 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
26487 Usually this means the macro was only invoked conditionally." >&2;}
26488    { (exit 1); exit 1; }; }
26489 fi
26490 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
26491   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
26492 Usually this means the macro was only invoked conditionally." >&5
26493 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
26494 Usually this means the macro was only invoked conditionally." >&2;}
26495    { (exit 1); exit 1; }; }
26496 fi
26497 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
26498   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
26499 Usually this means the macro was only invoked conditionally." >&5
26500 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
26501 Usually this means the macro was only invoked conditionally." >&2;}
26502    { (exit 1); exit 1; }; }
26503 fi
26504 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
26505   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
26506 Usually this means the macro was only invoked conditionally." >&5
26507 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
26508 Usually this means the macro was only invoked conditionally." >&2;}
26509    { (exit 1); exit 1; }; }
26510 fi
26511 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
26512   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
26513 Usually this means the macro was only invoked conditionally." >&5
26514 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
26515 Usually this means the macro was only invoked conditionally." >&2;}
26516    { (exit 1); exit 1; }; }
26517 fi
26518 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
26519   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
26520 Usually this means the macro was only invoked conditionally." >&5
26521 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
26522 Usually this means the macro was only invoked conditionally." >&2;}
26523    { (exit 1); exit 1; }; }
26524 fi
26525 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
26526   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
26527 Usually this means the macro was only invoked conditionally." >&5
26528 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
26529 Usually this means the macro was only invoked conditionally." >&2;}
26530    { (exit 1); exit 1; }; }
26531 fi
26532 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
26533   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
26534 Usually this means the macro was only invoked conditionally." >&5
26535 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
26536 Usually this means the macro was only invoked conditionally." >&2;}
26537    { (exit 1); exit 1; }; }
26538 fi
26539 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
26540   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
26541 Usually this means the macro was only invoked conditionally." >&5
26542 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
26543 Usually this means the macro was only invoked conditionally." >&2;}
26544    { (exit 1); exit 1; }; }
26545 fi
26546 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
26547   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
26548 Usually this means the macro was only invoked conditionally." >&5
26549 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
26550 Usually this means the macro was only invoked conditionally." >&2;}
26551    { (exit 1); exit 1; }; }
26552 fi
26553 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
26554   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
26555 Usually this means the macro was only invoked conditionally." >&5
26556 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
26557 Usually this means the macro was only invoked conditionally." >&2;}
26558    { (exit 1); exit 1; }; }
26559 fi
26560 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26561   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26562 Usually this means the macro was only invoked conditionally." >&5
26563 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26564 Usually this means the macro was only invoked conditionally." >&2;}
26565    { (exit 1); exit 1; }; }
26566 fi
26567 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26568   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26569 Usually this means the macro was only invoked conditionally." >&5
26570 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26571 Usually this means the macro was only invoked conditionally." >&2;}
26572    { (exit 1); exit 1; }; }
26573 fi
26574 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26575   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26576 Usually this means the macro was only invoked conditionally." >&5
26577 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26578 Usually this means the macro was only invoked conditionally." >&2;}
26579    { (exit 1); exit 1; }; }
26580 fi
26581 if test -z "${BUILD_NSAPI_TRUE}" && test -z "${BUILD_NSAPI_FALSE}"; then
26582   { { echo "$as_me:$LINENO: error: conditional \"BUILD_NSAPI\" was never defined.
26583 Usually this means the macro was only invoked conditionally." >&5
26584 echo "$as_me: error: conditional \"BUILD_NSAPI\" was never defined.
26585 Usually this means the macro was only invoked conditionally." >&2;}
26586    { (exit 1); exit 1; }; }
26587 fi
26588 if test -z "${BUILD_FASTCGI_TRUE}" && test -z "${BUILD_FASTCGI_FALSE}"; then
26589   { { echo "$as_me:$LINENO: error: conditional \"BUILD_FASTCGI\" was never defined.
26590 Usually this means the macro was only invoked conditionally." >&5
26591 echo "$as_me: error: conditional \"BUILD_FASTCGI\" was never defined.
26592 Usually this means the macro was only invoked conditionally." >&2;}
26593    { (exit 1); exit 1; }; }
26594 fi
26595 if test -z "${BUILD_MEMCACHED_TRUE}" && test -z "${BUILD_MEMCACHED_FALSE}"; then
26596   { { echo "$as_me:$LINENO: error: conditional \"BUILD_MEMCACHED\" was never defined.
26597 Usually this means the macro was only invoked conditionally." >&5
26598 echo "$as_me: error: conditional \"BUILD_MEMCACHED\" was never defined.
26599 Usually this means the macro was only invoked conditionally." >&2;}
26600    { (exit 1); exit 1; }; }
26601 fi
26602 if test -z "${BUILD_AP13_TRUE}" && test -z "${BUILD_AP13_FALSE}"; then
26603   { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP13\" was never defined.
26604 Usually this means the macro was only invoked conditionally." >&5
26605 echo "$as_me: error: conditional \"BUILD_AP13\" was never defined.
26606 Usually this means the macro was only invoked conditionally." >&2;}
26607    { (exit 1); exit 1; }; }
26608 fi
26609 if test -z "${BUILD_AP20_TRUE}" && test -z "${BUILD_AP20_FALSE}"; then
26610   { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP20\" was never defined.
26611 Usually this means the macro was only invoked conditionally." >&5
26612 echo "$as_me: error: conditional \"BUILD_AP20\" was never defined.
26613 Usually this means the macro was only invoked conditionally." >&2;}
26614    { (exit 1); exit 1; }; }
26615 fi
26616 if test -z "${BUILD_AP22_TRUE}" && test -z "${BUILD_AP22_FALSE}"; then
26617   { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP22\" was never defined.
26618 Usually this means the macro was only invoked conditionally." >&5
26619 echo "$as_me: error: conditional \"BUILD_AP22\" was never defined.
26620 Usually this means the macro was only invoked conditionally." >&2;}
26621    { (exit 1); exit 1; }; }
26622 fi
26623
26624 : ${CONFIG_STATUS=./config.status}
26625 ac_clean_files_save=$ac_clean_files
26626 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26627 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26628 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26629 cat >$CONFIG_STATUS <<_ACEOF
26630 #! $SHELL
26631 # Generated by $as_me.
26632 # Run this file to recreate the current configuration.
26633 # Compiler output produced by configure, useful for debugging
26634 # configure, is in config.log if it exists.
26635
26636 debug=false
26637 ac_cs_recheck=false
26638 ac_cs_silent=false
26639 SHELL=\${CONFIG_SHELL-$SHELL}
26640 _ACEOF
26641
26642 cat >>$CONFIG_STATUS <<\_ACEOF
26643 ## --------------------- ##
26644 ## M4sh Initialization.  ##
26645 ## --------------------- ##
26646
26647 # Be Bourne compatible
26648 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26649   emulate sh
26650   NULLCMD=:
26651   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26652   # is contrary to our usage.  Disable this feature.
26653   alias -g '${1+"$@"}'='"$@"'
26654 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26655   set -o posix
26656 fi
26657 DUALCASE=1; export DUALCASE # for MKS sh
26658
26659 # Support unset when possible.
26660 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26661   as_unset=unset
26662 else
26663   as_unset=false
26664 fi
26665
26666
26667 # Work around bugs in pre-3.0 UWIN ksh.
26668 $as_unset ENV MAIL MAILPATH
26669 PS1='$ '
26670 PS2='> '
26671 PS4='+ '
26672
26673 # NLS nuisances.
26674 for as_var in \
26675   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26676   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26677   LC_TELEPHONE LC_TIME
26678 do
26679   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26680     eval $as_var=C; export $as_var
26681   else
26682     $as_unset $as_var
26683   fi
26684 done
26685
26686 # Required to use basename.
26687 if expr a : '\(a\)' >/dev/null 2>&1; then
26688   as_expr=expr
26689 else
26690   as_expr=false
26691 fi
26692
26693 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26694   as_basename=basename
26695 else
26696   as_basename=false
26697 fi
26698
26699
26700 # Name of the executable.
26701 as_me=`$as_basename "$0" ||
26702 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26703          X"$0" : 'X\(//\)$' \| \
26704          X"$0" : 'X\(/\)$' \| \
26705          .     : '\(.\)' 2>/dev/null ||
26706 echo X/"$0" |
26707     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26708           /^X\/\(\/\/\)$/{ s//\1/; q; }
26709           /^X\/\(\/\).*/{ s//\1/; q; }
26710           s/.*/./; q'`
26711
26712
26713 # PATH needs CR, and LINENO needs CR and PATH.
26714 # Avoid depending upon Character Ranges.
26715 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26716 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26717 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26718 as_cr_digits='0123456789'
26719 as_cr_alnum=$as_cr_Letters$as_cr_digits
26720
26721 # The user is always right.
26722 if test "${PATH_SEPARATOR+set}" != set; then
26723   echo "#! /bin/sh" >conf$$.sh
26724   echo  "exit 0"   >>conf$$.sh
26725   chmod +x conf$$.sh
26726   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26727     PATH_SEPARATOR=';'
26728   else
26729     PATH_SEPARATOR=:
26730   fi
26731   rm -f conf$$.sh
26732 fi
26733
26734
26735   as_lineno_1=$LINENO
26736   as_lineno_2=$LINENO
26737   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26738   test "x$as_lineno_1" != "x$as_lineno_2" &&
26739   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
26740   # Find who we are.  Look in the path if we contain no path at all
26741   # relative or not.
26742   case $0 in
26743     *[\\/]* ) as_myself=$0 ;;
26744     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26745 for as_dir in $PATH
26746 do
26747   IFS=$as_save_IFS
26748   test -z "$as_dir" && as_dir=.
26749   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26750 done
26751
26752        ;;
26753   esac
26754   # We did not find ourselves, most probably we were run as `sh COMMAND'
26755   # in which case we are not to be found in the path.
26756   if test "x$as_myself" = x; then
26757     as_myself=$0
26758   fi
26759   if test ! -f "$as_myself"; then
26760     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26761 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26762    { (exit 1); exit 1; }; }
26763   fi
26764   case $CONFIG_SHELL in
26765   '')
26766     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26767 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26768 do
26769   IFS=$as_save_IFS
26770   test -z "$as_dir" && as_dir=.
26771   for as_base in sh bash ksh sh5; do
26772          case $as_dir in
26773          /*)
26774            if ("$as_dir/$as_base" -c '
26775   as_lineno_1=$LINENO
26776   as_lineno_2=$LINENO
26777   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26778   test "x$as_lineno_1" != "x$as_lineno_2" &&
26779   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
26780              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26781              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26782              CONFIG_SHELL=$as_dir/$as_base
26783              export CONFIG_SHELL
26784              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26785            fi;;
26786          esac
26787        done
26788 done
26789 ;;
26790   esac
26791
26792   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26793   # uniformly replaced by the line number.  The first 'sed' inserts a
26794   # line-number line before each line; the second 'sed' does the real
26795   # work.  The second script uses 'N' to pair each line-number line
26796   # with the numbered line, and appends trailing '-' during
26797   # substitution so that $LINENO is not a special case at line end.
26798   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26799   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
26800   sed '=' <$as_myself |
26801     sed '
26802       N
26803       s,$,-,
26804       : loop
26805       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26806       t loop
26807       s,-$,,
26808       s,^['$as_cr_digits']*\n,,
26809     ' >$as_me.lineno &&
26810   chmod +x $as_me.lineno ||
26811     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26812 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26813    { (exit 1); exit 1; }; }
26814
26815   # Don't try to exec as it changes $[0], causing all sort of problems
26816   # (the dirname of $[0] is not the place where we might find the
26817   # original and so on.  Autoconf is especially sensible to this).
26818   . ./$as_me.lineno
26819   # Exit status is that of the last command.
26820   exit
26821 }
26822
26823
26824 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26825   *c*,-n*) ECHO_N= ECHO_C='
26826 ' ECHO_T='      ' ;;
26827   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26828   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
26829 esac
26830
26831 if expr a : '\(a\)' >/dev/null 2>&1; then
26832   as_expr=expr
26833 else
26834   as_expr=false
26835 fi
26836
26837 rm -f conf$$ conf$$.exe conf$$.file
26838 echo >conf$$.file
26839 if ln -s conf$$.file conf$$ 2>/dev/null; then
26840   # We could just check for DJGPP; but this test a) works b) is more generic
26841   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26842   if test -f conf$$.exe; then
26843     # Don't use ln at all; we don't have any links
26844     as_ln_s='cp -p'
26845   else
26846     as_ln_s='ln -s'
26847   fi
26848 elif ln conf$$.file conf$$ 2>/dev/null; then
26849   as_ln_s=ln
26850 else
26851   as_ln_s='cp -p'
26852 fi
26853 rm -f conf$$ conf$$.exe conf$$.file
26854
26855 if mkdir -p . 2>/dev/null; then
26856   as_mkdir_p=:
26857 else
26858   test -d ./-p && rmdir ./-p
26859   as_mkdir_p=false
26860 fi
26861
26862 as_executable_p="test -f"
26863
26864 # Sed expression to map a string onto a valid CPP name.
26865 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26866
26867 # Sed expression to map a string onto a valid variable name.
26868 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26869
26870
26871 # IFS
26872 # We need space, tab and new line, in precisely that order.
26873 as_nl='
26874 '
26875 IFS="   $as_nl"
26876
26877 # CDPATH.
26878 $as_unset CDPATH
26879
26880 exec 6>&1
26881
26882 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26883 # report actual input values of CONFIG_FILES etc. instead of their
26884 # values after options handling.  Logging --version etc. is OK.
26885 exec 5>>config.log
26886 {
26887   echo
26888   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26889 ## Running $as_me. ##
26890 _ASBOX
26891 } >&5
26892 cat >&5 <<_CSEOF
26893
26894 This file was extended by shibboleth $as_me 2.2.1, which was
26895 generated by GNU Autoconf 2.59.  Invocation command line was
26896
26897   CONFIG_FILES    = $CONFIG_FILES
26898   CONFIG_HEADERS  = $CONFIG_HEADERS
26899   CONFIG_LINKS    = $CONFIG_LINKS
26900   CONFIG_COMMANDS = $CONFIG_COMMANDS
26901   $ $0 $@
26902
26903 _CSEOF
26904 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26905 echo >&5
26906 _ACEOF
26907
26908 # Files that config.status was made for.
26909 if test -n "$ac_config_files"; then
26910   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26911 fi
26912
26913 if test -n "$ac_config_headers"; then
26914   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26915 fi
26916
26917 if test -n "$ac_config_links"; then
26918   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26919 fi
26920
26921 if test -n "$ac_config_commands"; then
26922   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26923 fi
26924
26925 cat >>$CONFIG_STATUS <<\_ACEOF
26926
26927 ac_cs_usage="\
26928 \`$as_me' instantiates files from templates according to the
26929 current configuration.
26930
26931 Usage: $0 [OPTIONS] [FILE]...
26932
26933   -h, --help       print this help, then exit
26934   -V, --version    print version number, then exit
26935   -q, --quiet      do not print progress messages
26936   -d, --debug      don't remove temporary files
26937       --recheck    update $as_me by reconfiguring in the same conditions
26938   --file=FILE[:TEMPLATE]
26939                    instantiate the configuration file FILE
26940   --header=FILE[:TEMPLATE]
26941                    instantiate the configuration header FILE
26942
26943 Configuration files:
26944 $config_files
26945
26946 Configuration headers:
26947 $config_headers
26948
26949 Configuration commands:
26950 $config_commands
26951
26952 Report bugs to <bug-autoconf@gnu.org>."
26953 _ACEOF
26954
26955 cat >>$CONFIG_STATUS <<_ACEOF
26956 ac_cs_version="\\
26957 shibboleth config.status 2.2.1
26958 configured by $0, generated by GNU Autoconf 2.59,
26959   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26960
26961 Copyright (C) 2003 Free Software Foundation, Inc.
26962 This config.status script is free software; the Free Software Foundation
26963 gives unlimited permission to copy, distribute and modify it."
26964 srcdir=$srcdir
26965 INSTALL="$INSTALL"
26966 _ACEOF
26967
26968 cat >>$CONFIG_STATUS <<\_ACEOF
26969 # If no file are specified by the user, then we need to provide default
26970 # value.  By we need to know if files were specified by the user.
26971 ac_need_defaults=:
26972 while test $# != 0
26973 do
26974   case $1 in
26975   --*=*)
26976     ac_option=`expr "x$1" : 'x\([^=]*\)='`
26977     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26978     ac_shift=:
26979     ;;
26980   -*)
26981     ac_option=$1
26982     ac_optarg=$2
26983     ac_shift=shift
26984     ;;
26985   *) # This is not an option, so the user has probably given explicit
26986      # arguments.
26987      ac_option=$1
26988      ac_need_defaults=false;;
26989   esac
26990
26991   case $ac_option in
26992   # Handling of the options.
26993 _ACEOF
26994 cat >>$CONFIG_STATUS <<\_ACEOF
26995   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26996     ac_cs_recheck=: ;;
26997   --version | --vers* | -V )
26998     echo "$ac_cs_version"; exit 0 ;;
26999   --he | --h)
27000     # Conflict between --help and --header
27001     { { echo "$as_me:$LINENO: error: ambiguous option: $1
27002 Try \`$0 --help' for more information." >&5
27003 echo "$as_me: error: ambiguous option: $1
27004 Try \`$0 --help' for more information." >&2;}
27005    { (exit 1); exit 1; }; };;
27006   --help | --hel | -h )
27007     echo "$ac_cs_usage"; exit 0 ;;
27008   --debug | --d* | -d )
27009     debug=: ;;
27010   --file | --fil | --fi | --f )
27011     $ac_shift
27012     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27013     ac_need_defaults=false;;
27014   --header | --heade | --head | --hea )
27015     $ac_shift
27016     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27017     ac_need_defaults=false;;
27018   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27019   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27020     ac_cs_silent=: ;;
27021
27022   # This is an error.
27023   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27024 Try \`$0 --help' for more information." >&5
27025 echo "$as_me: error: unrecognized option: $1
27026 Try \`$0 --help' for more information." >&2;}
27027    { (exit 1); exit 1; }; } ;;
27028
27029   *) ac_config_targets="$ac_config_targets $1" ;;
27030
27031   esac
27032   shift
27033 done
27034
27035 ac_configure_extra_args=
27036
27037 if $ac_cs_silent; then
27038   exec 6>/dev/null
27039   ac_configure_extra_args="$ac_configure_extra_args --silent"
27040 fi
27041
27042 _ACEOF
27043 cat >>$CONFIG_STATUS <<_ACEOF
27044 if \$ac_cs_recheck; then
27045   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27046   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27047 fi
27048
27049 _ACEOF
27050
27051 cat >>$CONFIG_STATUS <<_ACEOF
27052 #
27053 # INIT-COMMANDS section.
27054 #
27055
27056 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27057
27058 _ACEOF
27059
27060
27061
27062 cat >>$CONFIG_STATUS <<\_ACEOF
27063 for ac_config_target in $ac_config_targets
27064 do
27065   case "$ac_config_target" in
27066   # Handling of arguments.
27067   "shibboleth.spec" ) CONFIG_FILES="$CONFIG_FILES shibboleth.spec" ;;
27068   "pkginfo" ) CONFIG_FILES="$CONFIG_FILES pkginfo" ;;
27069   "Portfile" ) CONFIG_FILES="$CONFIG_FILES Portfile" ;;
27070   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27071   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27072   "schemas/Makefile" ) CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
27073   "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
27074   "shibsp/Makefile" ) CONFIG_FILES="$CONFIG_FILES shibsp/Makefile" ;;
27075   "shibd/Makefile" ) CONFIG_FILES="$CONFIG_FILES shibd/Makefile" ;;
27076   "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
27077   "selinux/Makefile" ) CONFIG_FILES="$CONFIG_FILES selinux/Makefile" ;;
27078   "adfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES adfs/Makefile" ;;
27079   "nsapi_shib/Makefile" ) CONFIG_FILES="$CONFIG_FILES nsapi_shib/Makefile" ;;
27080   "fastcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES fastcgi/Makefile" ;;
27081   "memcache-store/Makefile" ) CONFIG_FILES="$CONFIG_FILES memcache-store/Makefile" ;;
27082   "apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES apache/Makefile" ;;
27083   "odbc-store/Makefile" ) CONFIG_FILES="$CONFIG_FILES odbc-store/Makefile" ;;
27084   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27085   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27086   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27087 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27088    { (exit 1); exit 1; }; };;
27089   esac
27090 done
27091
27092 # If the user did not use the arguments to specify the items to instantiate,
27093 # then the envvar interface is used.  Set only those that are not.
27094 # We use the long form for the default assignment because of an extremely
27095 # bizarre bug on SunOS 4.1.3.
27096 if $ac_need_defaults; then
27097   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27098   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27099   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27100 fi
27101
27102 # Have a temporary directory for convenience.  Make it in the build tree
27103 # simply because there is no reason to put it here, and in addition,
27104 # creating and moving files from /tmp can sometimes cause problems.
27105 # Create a temporary directory, and hook for its removal unless debugging.
27106 $debug ||
27107 {
27108   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27109   trap '{ (exit 1); exit 1; }' 1 2 13 15
27110 }
27111
27112 # Create a (secure) tmp directory for tmp files.
27113
27114 {
27115   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27116   test -n "$tmp" && test -d "$tmp"
27117 }  ||
27118 {
27119   tmp=./confstat$$-$RANDOM
27120   (umask 077 && mkdir $tmp)
27121 } ||
27122 {
27123    echo "$me: cannot create a temporary directory in ." >&2
27124    { (exit 1); exit 1; }
27125 }
27126
27127 _ACEOF
27128
27129 cat >>$CONFIG_STATUS <<_ACEOF
27130
27131 #
27132 # CONFIG_FILES section.
27133 #
27134
27135 # No need to generate the scripts if there are no CONFIG_FILES.
27136 # This happens for instance when ./config.status config.h
27137 if test -n "\$CONFIG_FILES"; then
27138   # Protect against being on the right side of a sed subst in config.status.
27139   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27140    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27141 s,@SHELL@,$SHELL,;t t
27142 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27143 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27144 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27145 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27146 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27147 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27148 s,@exec_prefix@,$exec_prefix,;t t
27149 s,@prefix@,$prefix,;t t
27150 s,@program_transform_name@,$program_transform_name,;t t
27151 s,@bindir@,$bindir,;t t
27152 s,@sbindir@,$sbindir,;t t
27153 s,@libexecdir@,$libexecdir,;t t
27154 s,@datadir@,$datadir,;t t
27155 s,@sysconfdir@,$sysconfdir,;t t
27156 s,@sharedstatedir@,$sharedstatedir,;t t
27157 s,@localstatedir@,$localstatedir,;t t
27158 s,@libdir@,$libdir,;t t
27159 s,@includedir@,$includedir,;t t
27160 s,@oldincludedir@,$oldincludedir,;t t
27161 s,@infodir@,$infodir,;t t
27162 s,@mandir@,$mandir,;t t
27163 s,@build_alias@,$build_alias,;t t
27164 s,@host_alias@,$host_alias,;t t
27165 s,@target_alias@,$target_alias,;t t
27166 s,@DEFS@,$DEFS,;t t
27167 s,@ECHO_C@,$ECHO_C,;t t
27168 s,@ECHO_N@,$ECHO_N,;t t
27169 s,@ECHO_T@,$ECHO_T,;t t
27170 s,@LIBS@,$LIBS,;t t
27171 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27172 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27173 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27174 s,@CYGPATH_W@,$CYGPATH_W,;t t
27175 s,@PACKAGE@,$PACKAGE,;t t
27176 s,@VERSION@,$VERSION,;t t
27177 s,@ACLOCAL@,$ACLOCAL,;t t
27178 s,@AUTOCONF@,$AUTOCONF,;t t
27179 s,@AUTOMAKE@,$AUTOMAKE,;t t
27180 s,@AUTOHEADER@,$AUTOHEADER,;t t
27181 s,@MAKEINFO@,$MAKEINFO,;t t
27182 s,@install_sh@,$install_sh,;t t
27183 s,@STRIP@,$STRIP,;t t
27184 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
27185 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
27186 s,@mkdir_p@,$mkdir_p,;t t
27187 s,@AWK@,$AWK,;t t
27188 s,@SET_MAKE@,$SET_MAKE,;t t
27189 s,@am__leading_dot@,$am__leading_dot,;t t
27190 s,@AMTAR@,$AMTAR,;t t
27191 s,@am__tar@,$am__tar,;t t
27192 s,@am__untar@,$am__untar,;t t
27193 s,@DX_PROJECT@,$DX_PROJECT,;t t
27194 s,@DX_CONFIG@,$DX_CONFIG,;t t
27195 s,@DX_DOCDIR@,$DX_DOCDIR,;t t
27196 s,@DX_ENV@,$DX_ENV,;t t
27197 s,@DX_FLAG_doc@,$DX_FLAG_doc,;t t
27198 s,@DX_DOXYGEN@,$DX_DOXYGEN,;t t
27199 s,@ac_pt_DX_DOXYGEN@,$ac_pt_DX_DOXYGEN,;t t
27200 s,@DX_PERL@,$DX_PERL,;t t
27201 s,@ac_pt_DX_PERL@,$ac_pt_DX_PERL,;t t
27202 s,@DX_COND_doc_TRUE@,$DX_COND_doc_TRUE,;t t
27203 s,@DX_COND_doc_FALSE@,$DX_COND_doc_FALSE,;t t
27204 s,@DX_FLAG_dot@,$DX_FLAG_dot,;t t
27205 s,@DX_DOT@,$DX_DOT,;t t
27206 s,@ac_pt_DX_DOT@,$ac_pt_DX_DOT,;t t
27207 s,@DX_COND_dot_TRUE@,$DX_COND_dot_TRUE,;t t
27208 s,@DX_COND_dot_FALSE@,$DX_COND_dot_FALSE,;t t
27209 s,@DX_FLAG_man@,$DX_FLAG_man,;t t
27210 s,@DX_COND_man_TRUE@,$DX_COND_man_TRUE,;t t
27211 s,@DX_COND_man_FALSE@,$DX_COND_man_FALSE,;t t
27212 s,@DX_FLAG_rtf@,$DX_FLAG_rtf,;t t
27213 s,@DX_COND_rtf_TRUE@,$DX_COND_rtf_TRUE,;t t
27214 s,@DX_COND_rtf_FALSE@,$DX_COND_rtf_FALSE,;t t
27215 s,@DX_FLAG_xml@,$DX_FLAG_xml,;t t
27216 s,@DX_COND_xml_TRUE@,$DX_COND_xml_TRUE,;t t
27217 s,@DX_COND_xml_FALSE@,$DX_COND_xml_FALSE,;t t
27218 s,@DX_FLAG_chm@,$DX_FLAG_chm,;t t
27219 s,@DX_HHC@,$DX_HHC,;t t
27220 s,@ac_pt_DX_HHC@,$ac_pt_DX_HHC,;t t
27221 s,@DX_COND_chm_TRUE@,$DX_COND_chm_TRUE,;t t
27222 s,@DX_COND_chm_FALSE@,$DX_COND_chm_FALSE,;t t
27223 s,@DX_FLAG_chi@,$DX_FLAG_chi,;t t
27224 s,@DX_COND_chi_TRUE@,$DX_COND_chi_TRUE,;t t
27225 s,@DX_COND_chi_FALSE@,$DX_COND_chi_FALSE,;t t
27226 s,@DX_FLAG_html@,$DX_FLAG_html,;t t
27227 s,@DX_COND_html_TRUE@,$DX_COND_html_TRUE,;t t
27228 s,@DX_COND_html_FALSE@,$DX_COND_html_FALSE,;t t
27229 s,@DX_FLAG_ps@,$DX_FLAG_ps,;t t
27230 s,@DX_LATEX@,$DX_LATEX,;t t
27231 s,@ac_pt_DX_LATEX@,$ac_pt_DX_LATEX,;t t
27232 s,@DX_MAKEINDEX@,$DX_MAKEINDEX,;t t
27233 s,@ac_pt_DX_MAKEINDEX@,$ac_pt_DX_MAKEINDEX,;t t
27234 s,@DX_DVIPS@,$DX_DVIPS,;t t
27235 s,@ac_pt_DX_DVIPS@,$ac_pt_DX_DVIPS,;t t
27236 s,@DX_EGREP@,$DX_EGREP,;t t
27237 s,@ac_pt_DX_EGREP@,$ac_pt_DX_EGREP,;t t
27238 s,@DX_COND_ps_TRUE@,$DX_COND_ps_TRUE,;t t
27239 s,@DX_COND_ps_FALSE@,$DX_COND_ps_FALSE,;t t
27240 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27241 s,@DX_PDFLATEX@,$DX_PDFLATEX,;t t
27242 s,@ac_pt_DX_PDFLATEX@,$ac_pt_DX_PDFLATEX,;t t
27243 s,@DX_COND_pdf_TRUE@,$DX_COND_pdf_TRUE,;t t
27244 s,@DX_COND_pdf_FALSE@,$DX_COND_pdf_FALSE,;t t
27245 s,@DX_COND_latex_TRUE@,$DX_COND_latex_TRUE,;t t
27246 s,@DX_COND_latex_FALSE@,$DX_COND_latex_FALSE,;t t
27247 s,@DOXYGEN_PAPER_SIZE@,$DOXYGEN_PAPER_SIZE,;t t
27248 s,@CC@,$CC,;t t
27249 s,@CFLAGS@,$CFLAGS,;t t
27250 s,@LDFLAGS@,$LDFLAGS,;t t
27251 s,@CPPFLAGS@,$CPPFLAGS,;t t
27252 s,@ac_ct_CC@,$ac_ct_CC,;t t
27253 s,@EXEEXT@,$EXEEXT,;t t
27254 s,@OBJEXT@,$OBJEXT,;t t
27255 s,@DEPDIR@,$DEPDIR,;t t
27256 s,@am__include@,$am__include,;t t
27257 s,@am__quote@,$am__quote,;t t
27258 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
27259 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
27260 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
27261 s,@CCDEPMODE@,$CCDEPMODE,;t t
27262 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
27263 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
27264 s,@CXX@,$CXX,;t t
27265 s,@CXXFLAGS@,$CXXFLAGS,;t t
27266 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27267 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
27268 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
27269 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
27270 s,@build@,$build,;t t
27271 s,@build_cpu@,$build_cpu,;t t
27272 s,@build_vendor@,$build_vendor,;t t
27273 s,@build_os@,$build_os,;t t
27274 s,@host@,$host,;t t
27275 s,@host_cpu@,$host_cpu,;t t
27276 s,@host_vendor@,$host_vendor,;t t
27277 s,@host_os@,$host_os,;t t
27278 s,@EGREP@,$EGREP,;t t
27279 s,@LN_S@,$LN_S,;t t
27280 s,@ECHO@,$ECHO,;t t
27281 s,@AR@,$AR,;t t
27282 s,@ac_ct_AR@,$ac_ct_AR,;t t
27283 s,@RANLIB@,$RANLIB,;t t
27284 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27285 s,@CPP@,$CPP,;t t
27286 s,@CXXCPP@,$CXXCPP,;t t
27287 s,@F77@,$F77,;t t
27288 s,@FFLAGS@,$FFLAGS,;t t
27289 s,@ac_ct_F77@,$ac_ct_F77,;t t
27290 s,@LIBTOOL@,$LIBTOOL,;t t
27291 s,@acx_pthread_config@,$acx_pthread_config,;t t
27292 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
27293 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
27294 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
27295 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
27296 s,@LOG4SHIB_CONFIG@,$LOG4SHIB_CONFIG,;t t
27297 s,@LOG4CPP_CONFIG@,$LOG4CPP_CONFIG,;t t
27298 s,@XMLTOOLINGXMLDIR@,$XMLTOOLINGXMLDIR,;t t
27299 s,@OPENSAMLXMLDIR@,$OPENSAMLXMLDIR,;t t
27300 s,@LITE_LIBS@,$LITE_LIBS,;t t
27301 s,@XMLSEC_LIBS@,$XMLSEC_LIBS,;t t
27302 s,@NSAPI_INCLUDE@,$NSAPI_INCLUDE,;t t
27303 s,@BUILD_NSAPI_TRUE@,$BUILD_NSAPI_TRUE,;t t
27304 s,@BUILD_NSAPI_FALSE@,$BUILD_NSAPI_FALSE,;t t
27305 s,@FASTCGI_INCLUDE@,$FASTCGI_INCLUDE,;t t
27306 s,@FASTCGI_LDFLAGS@,$FASTCGI_LDFLAGS,;t t
27307 s,@FASTCGI_LIBS@,$FASTCGI_LIBS,;t t
27308 s,@BUILD_FASTCGI_TRUE@,$BUILD_FASTCGI_TRUE,;t t
27309 s,@BUILD_FASTCGI_FALSE@,$BUILD_FASTCGI_FALSE,;t t
27310 s,@MEMCACHED_INCLUDE@,$MEMCACHED_INCLUDE,;t t
27311 s,@MEMCACHED_LDFLAGS@,$MEMCACHED_LDFLAGS,;t t
27312 s,@MEMCACHED_LIBS@,$MEMCACHED_LIBS,;t t
27313 s,@BUILD_MEMCACHED_TRUE@,$BUILD_MEMCACHED_TRUE,;t t
27314 s,@BUILD_MEMCACHED_FALSE@,$BUILD_MEMCACHED_FALSE,;t t
27315 s,@xs@,$xs,;t t
27316 s,@APXS@,$APXS,;t t
27317 s,@APXS_CFLAGS@,$APXS_CFLAGS,;t t
27318 s,@APXS_INCLUDE@,$APXS_INCLUDE,;t t
27319 s,@APXS2@,$APXS2,;t t
27320 s,@APR_CONFIG@,$APR_CONFIG,;t t
27321 s,@APXS2_CFLAGS@,$APXS2_CFLAGS,;t t
27322 s,@APXS2_INCLUDE@,$APXS2_INCLUDE,;t t
27323 s,@APXS22@,$APXS22,;t t
27324 s,@APR1_CONFIG@,$APR1_CONFIG,;t t
27325 s,@APXS22_CFLAGS@,$APXS22_CFLAGS,;t t
27326 s,@APXS22_INCLUDE@,$APXS22_INCLUDE,;t t
27327 s,@BUILD_AP13_TRUE@,$BUILD_AP13_TRUE,;t t
27328 s,@BUILD_AP13_FALSE@,$BUILD_AP13_FALSE,;t t
27329 s,@BUILD_AP20_TRUE@,$BUILD_AP20_TRUE,;t t
27330 s,@BUILD_AP20_FALSE@,$BUILD_AP20_FALSE,;t t
27331 s,@BUILD_AP22_TRUE@,$BUILD_AP22_TRUE,;t t
27332 s,@BUILD_AP22_FALSE@,$BUILD_AP22_FALSE,;t t
27333 s,@ODBC_CONFIG@,$ODBC_CONFIG,;t t
27334 s,@ODBC_CFLAGS@,$ODBC_CFLAGS,;t t
27335 s,@ODBC_LIBS@,$ODBC_LIBS,;t t
27336 s,@WANT_SUBDIRS@,$WANT_SUBDIRS,;t t
27337 s,@LIBOBJS@,$LIBOBJS,;t t
27338 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27339 CEOF
27340
27341 _ACEOF
27342
27343   cat >>$CONFIG_STATUS <<\_ACEOF
27344   # Split the substitutions into bite-sized pieces for seds with
27345   # small command number limits, like on Digital OSF/1 and HP-UX.
27346   ac_max_sed_lines=48
27347   ac_sed_frag=1 # Number of current file.
27348   ac_beg=1 # First line for current file.
27349   ac_end=$ac_max_sed_lines # Line after last line for current file.
27350   ac_more_lines=:
27351   ac_sed_cmds=
27352   while $ac_more_lines; do
27353     if test $ac_beg -gt 1; then
27354       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27355     else
27356       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27357     fi
27358     if test ! -s $tmp/subs.frag; then
27359       ac_more_lines=false
27360     else
27361       # The purpose of the label and of the branching condition is to
27362       # speed up the sed processing (if there are no `@' at all, there
27363       # is no need to browse any of the substitutions).
27364       # These are the two extra sed commands mentioned above.
27365       (echo ':t
27366   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27367       if test -z "$ac_sed_cmds"; then
27368         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27369       else
27370         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27371       fi
27372       ac_sed_frag=`expr $ac_sed_frag + 1`
27373       ac_beg=$ac_end
27374       ac_end=`expr $ac_end + $ac_max_sed_lines`
27375     fi
27376   done
27377   if test -z "$ac_sed_cmds"; then
27378     ac_sed_cmds=cat
27379   fi
27380 fi # test -n "$CONFIG_FILES"
27381
27382 _ACEOF
27383 cat >>$CONFIG_STATUS <<\_ACEOF
27384 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27385   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27386   case $ac_file in
27387   - | *:- | *:-:* ) # input from stdin
27388         cat >$tmp/stdin
27389         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27390         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27391   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27392         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27393   * )   ac_file_in=$ac_file.in ;;
27394   esac
27395
27396   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27397   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27399          X"$ac_file" : 'X\(//\)[^/]' \| \
27400          X"$ac_file" : 'X\(//\)$' \| \
27401          X"$ac_file" : 'X\(/\)' \| \
27402          .     : '\(.\)' 2>/dev/null ||
27403 echo X"$ac_file" |
27404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27405           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27406           /^X\(\/\/\)$/{ s//\1/; q; }
27407           /^X\(\/\).*/{ s//\1/; q; }
27408           s/.*/./; q'`
27409   { if $as_mkdir_p; then
27410     mkdir -p "$ac_dir"
27411   else
27412     as_dir="$ac_dir"
27413     as_dirs=
27414     while test ! -d "$as_dir"; do
27415       as_dirs="$as_dir $as_dirs"
27416       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27418          X"$as_dir" : 'X\(//\)[^/]' \| \
27419          X"$as_dir" : 'X\(//\)$' \| \
27420          X"$as_dir" : 'X\(/\)' \| \
27421          .     : '\(.\)' 2>/dev/null ||
27422 echo X"$as_dir" |
27423     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27424           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27425           /^X\(\/\/\)$/{ s//\1/; q; }
27426           /^X\(\/\).*/{ s//\1/; q; }
27427           s/.*/./; q'`
27428     done
27429     test ! -n "$as_dirs" || mkdir $as_dirs
27430   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27431 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27432    { (exit 1); exit 1; }; }; }
27433
27434   ac_builddir=.
27435
27436 if test "$ac_dir" != .; then
27437   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27438   # A "../" for each directory in $ac_dir_suffix.
27439   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27440 else
27441   ac_dir_suffix= ac_top_builddir=
27442 fi
27443
27444 case $srcdir in
27445   .)  # No --srcdir option.  We are building in place.
27446     ac_srcdir=.
27447     if test -z "$ac_top_builddir"; then
27448        ac_top_srcdir=.
27449     else
27450        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27451     fi ;;
27452   [\\/]* | ?:[\\/]* )  # Absolute path.
27453     ac_srcdir=$srcdir$ac_dir_suffix;
27454     ac_top_srcdir=$srcdir ;;
27455   *) # Relative path.
27456     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27457     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27458 esac
27459
27460 # Do not use `cd foo && pwd` to compute absolute paths, because
27461 # the directories may not exist.
27462 case `pwd` in
27463 .) ac_abs_builddir="$ac_dir";;
27464 *)
27465   case "$ac_dir" in
27466   .) ac_abs_builddir=`pwd`;;
27467   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27468   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27469   esac;;
27470 esac
27471 case $ac_abs_builddir in
27472 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27473 *)
27474   case ${ac_top_builddir}. in
27475   .) ac_abs_top_builddir=$ac_abs_builddir;;
27476   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27477   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27478   esac;;
27479 esac
27480 case $ac_abs_builddir in
27481 .) ac_abs_srcdir=$ac_srcdir;;
27482 *)
27483   case $ac_srcdir in
27484   .) ac_abs_srcdir=$ac_abs_builddir;;
27485   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27486   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27487   esac;;
27488 esac
27489 case $ac_abs_builddir in
27490 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27491 *)
27492   case $ac_top_srcdir in
27493   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27494   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27495   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27496   esac;;
27497 esac
27498
27499
27500   case $INSTALL in
27501   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27502   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27503   esac
27504
27505   if test x"$ac_file" != x-; then
27506     { echo "$as_me:$LINENO: creating $ac_file" >&5
27507 echo "$as_me: creating $ac_file" >&6;}
27508     rm -f "$ac_file"
27509   fi
27510   # Let's still pretend it is `configure' which instantiates (i.e., don't
27511   # use $as_me), people would be surprised to read:
27512   #    /* config.h.  Generated by config.status.  */
27513   if test x"$ac_file" = x-; then
27514     configure_input=
27515   else
27516     configure_input="$ac_file.  "
27517   fi
27518   configure_input=$configure_input"Generated from `echo $ac_file_in |
27519                                      sed 's,.*/,,'` by configure."
27520
27521   # First look for the input files in the build tree, otherwise in the
27522   # src tree.
27523   ac_file_inputs=`IFS=:
27524     for f in $ac_file_in; do
27525       case $f in
27526       -) echo $tmp/stdin ;;
27527       [\\/$]*)
27528          # Absolute (can't be DOS-style, as IFS=:)
27529          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27530 echo "$as_me: error: cannot find input file: $f" >&2;}
27531    { (exit 1); exit 1; }; }
27532          echo "$f";;
27533       *) # Relative
27534          if test -f "$f"; then
27535            # Build tree
27536            echo "$f"
27537          elif test -f "$srcdir/$f"; then
27538            # Source tree
27539            echo "$srcdir/$f"
27540          else
27541            # /dev/null tree
27542            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27543 echo "$as_me: error: cannot find input file: $f" >&2;}
27544    { (exit 1); exit 1; }; }
27545          fi;;
27546       esac
27547     done` || { (exit 1); exit 1; }
27548 _ACEOF
27549 cat >>$CONFIG_STATUS <<_ACEOF
27550   sed "$ac_vpsub
27551 $extrasub
27552 _ACEOF
27553 cat >>$CONFIG_STATUS <<\_ACEOF
27554 :t
27555 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27556 s,@configure_input@,$configure_input,;t t
27557 s,@srcdir@,$ac_srcdir,;t t
27558 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27559 s,@top_srcdir@,$ac_top_srcdir,;t t
27560 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27561 s,@builddir@,$ac_builddir,;t t
27562 s,@abs_builddir@,$ac_abs_builddir,;t t
27563 s,@top_builddir@,$ac_top_builddir,;t t
27564 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27565 s,@INSTALL@,$ac_INSTALL,;t t
27566 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27567   rm -f $tmp/stdin
27568   if test x"$ac_file" != x-; then
27569     mv $tmp/out $ac_file
27570   else
27571     cat $tmp/out
27572     rm -f $tmp/out
27573   fi
27574
27575 done
27576 _ACEOF
27577 cat >>$CONFIG_STATUS <<\_ACEOF
27578
27579 #
27580 # CONFIG_HEADER section.
27581 #
27582
27583 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27584 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27585 #
27586 # ac_d sets the value in "#define NAME VALUE" lines.
27587 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
27588 ac_dB='[         ].*$,\1#\2'
27589 ac_dC=' '
27590 ac_dD=',;t'
27591 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27592 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
27593 ac_uB='$,\1#\2define\3'
27594 ac_uC=' '
27595 ac_uD=',;t'
27596
27597 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27598   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27599   case $ac_file in
27600   - | *:- | *:-:* ) # input from stdin
27601         cat >$tmp/stdin
27602         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27603         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27604   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27605         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27606   * )   ac_file_in=$ac_file.in ;;
27607   esac
27608
27609   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27610 echo "$as_me: creating $ac_file" >&6;}
27611
27612   # First look for the input files in the build tree, otherwise in the
27613   # src tree.
27614   ac_file_inputs=`IFS=:
27615     for f in $ac_file_in; do
27616       case $f in
27617       -) echo $tmp/stdin ;;
27618       [\\/$]*)
27619          # Absolute (can't be DOS-style, as IFS=:)
27620          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27621 echo "$as_me: error: cannot find input file: $f" >&2;}
27622    { (exit 1); exit 1; }; }
27623          # Do quote $f, to prevent DOS paths from being IFS'd.
27624          echo "$f";;
27625       *) # Relative
27626          if test -f "$f"; then
27627            # Build tree
27628            echo "$f"
27629          elif test -f "$srcdir/$f"; then
27630            # Source tree
27631            echo "$srcdir/$f"
27632          else
27633            # /dev/null tree
27634            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27635 echo "$as_me: error: cannot find input file: $f" >&2;}
27636    { (exit 1); exit 1; }; }
27637          fi;;
27638       esac
27639     done` || { (exit 1); exit 1; }
27640   # Remove the trailing spaces.
27641   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
27642
27643 _ACEOF
27644
27645 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27646 # `conftest.undefs', that substitutes the proper values into
27647 # config.h.in to produce config.h.  The first handles `#define'
27648 # templates, and the second `#undef' templates.
27649 # And first: Protect against being on the right side of a sed subst in
27650 # config.status.  Protect against being in an unquoted here document
27651 # in config.status.
27652 rm -f conftest.defines conftest.undefs
27653 # Using a here document instead of a string reduces the quoting nightmare.
27654 # Putting comments in sed scripts is not portable.
27655 #
27656 # `end' is used to avoid that the second main sed command (meant for
27657 # 0-ary CPP macros) applies to n-ary macro definitions.
27658 # See the Autoconf documentation for `clear'.
27659 cat >confdef2sed.sed <<\_ACEOF
27660 s/[\\&,]/\\&/g
27661 s,[\\$`],\\&,g
27662 t clear
27663 : clear
27664 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27665 t end
27666 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27667 : end
27668 _ACEOF
27669 # If some macros were called several times there might be several times
27670 # the same #defines, which is useless.  Nevertheless, we may not want to
27671 # sort them, since we want the *last* AC-DEFINE to be honored.
27672 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27673 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27674 rm -f confdef2sed.sed
27675
27676 # This sed command replaces #undef with comments.  This is necessary, for
27677 # example, in the case of _POSIX_SOURCE, which is predefined and required
27678 # on some systems where configure will not decide to define it.
27679 cat >>conftest.undefs <<\_ACEOF
27680 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27681 _ACEOF
27682
27683 # Break up conftest.defines because some shells have a limit on the size
27684 # of here documents, and old seds have small limits too (100 cmds).
27685 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27686 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27687 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27688 echo '  :' >>$CONFIG_STATUS
27689 rm -f conftest.tail
27690 while grep . conftest.defines >/dev/null
27691 do
27692   # Write a limited-size here document to $tmp/defines.sed.
27693   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27694   # Speed up: don't consider the non `#define' lines.
27695   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
27696   # Work around the forget-to-reset-the-flag bug.
27697   echo 't clr' >>$CONFIG_STATUS
27698   echo ': clr' >>$CONFIG_STATUS
27699   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27700   echo 'CEOF
27701   sed -f $tmp/defines.sed $tmp/in >$tmp/out
27702   rm -f $tmp/in
27703   mv $tmp/out $tmp/in
27704 ' >>$CONFIG_STATUS
27705   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27706   rm -f conftest.defines
27707   mv conftest.tail conftest.defines
27708 done
27709 rm -f conftest.defines
27710 echo '  fi # grep' >>$CONFIG_STATUS
27711 echo >>$CONFIG_STATUS
27712
27713 # Break up conftest.undefs because some shells have a limit on the size
27714 # of here documents, and old seds have small limits too (100 cmds).
27715 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
27716 rm -f conftest.tail
27717 while grep . conftest.undefs >/dev/null
27718 do
27719   # Write a limited-size here document to $tmp/undefs.sed.
27720   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27721   # Speed up: don't consider the non `#undef'
27722   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
27723   # Work around the forget-to-reset-the-flag bug.
27724   echo 't clr' >>$CONFIG_STATUS
27725   echo ': clr' >>$CONFIG_STATUS
27726   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27727   echo 'CEOF
27728   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27729   rm -f $tmp/in
27730   mv $tmp/out $tmp/in
27731 ' >>$CONFIG_STATUS
27732   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27733   rm -f conftest.undefs
27734   mv conftest.tail conftest.undefs
27735 done
27736 rm -f conftest.undefs
27737
27738 cat >>$CONFIG_STATUS <<\_ACEOF
27739   # Let's still pretend it is `configure' which instantiates (i.e., don't
27740   # use $as_me), people would be surprised to read:
27741   #    /* config.h.  Generated by config.status.  */
27742   if test x"$ac_file" = x-; then
27743     echo "/* Generated by configure.  */" >$tmp/config.h
27744   else
27745     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
27746   fi
27747   cat $tmp/in >>$tmp/config.h
27748   rm -f $tmp/in
27749   if test x"$ac_file" != x-; then
27750     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27751       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27752 echo "$as_me: $ac_file is unchanged" >&6;}
27753     else
27754       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27755 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27756          X"$ac_file" : 'X\(//\)[^/]' \| \
27757          X"$ac_file" : 'X\(//\)$' \| \
27758          X"$ac_file" : 'X\(/\)' \| \
27759          .     : '\(.\)' 2>/dev/null ||
27760 echo X"$ac_file" |
27761     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27762           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27763           /^X\(\/\/\)$/{ s//\1/; q; }
27764           /^X\(\/\).*/{ s//\1/; q; }
27765           s/.*/./; q'`
27766       { if $as_mkdir_p; then
27767     mkdir -p "$ac_dir"
27768   else
27769     as_dir="$ac_dir"
27770     as_dirs=
27771     while test ! -d "$as_dir"; do
27772       as_dirs="$as_dir $as_dirs"
27773       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27774 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27775          X"$as_dir" : 'X\(//\)[^/]' \| \
27776          X"$as_dir" : 'X\(//\)$' \| \
27777          X"$as_dir" : 'X\(/\)' \| \
27778          .     : '\(.\)' 2>/dev/null ||
27779 echo X"$as_dir" |
27780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27781           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27782           /^X\(\/\/\)$/{ s//\1/; q; }
27783           /^X\(\/\).*/{ s//\1/; q; }
27784           s/.*/./; q'`
27785     done
27786     test ! -n "$as_dirs" || mkdir $as_dirs
27787   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27788 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27789    { (exit 1); exit 1; }; }; }
27790
27791       rm -f $ac_file
27792       mv $tmp/config.h $ac_file
27793     fi
27794   else
27795     cat $tmp/config.h
27796     rm -f $tmp/config.h
27797   fi
27798 # Compute $ac_file's index in $config_headers.
27799 _am_stamp_count=1
27800 for _am_header in $config_headers :; do
27801   case $_am_header in
27802     $ac_file | $ac_file:* )
27803       break ;;
27804     * )
27805       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27806   esac
27807 done
27808 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27809 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27810          X$ac_file : 'X\(//\)[^/]' \| \
27811          X$ac_file : 'X\(//\)$' \| \
27812          X$ac_file : 'X\(/\)' \| \
27813          .     : '\(.\)' 2>/dev/null ||
27814 echo X$ac_file |
27815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27816           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27817           /^X\(\/\/\)$/{ s//\1/; q; }
27818           /^X\(\/\).*/{ s//\1/; q; }
27819           s/.*/./; q'`/stamp-h$_am_stamp_count
27820 done
27821 _ACEOF
27822 cat >>$CONFIG_STATUS <<\_ACEOF
27823
27824 #
27825 # CONFIG_COMMANDS section.
27826 #
27827 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27828   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27829   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27830   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27831 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27832          X"$ac_dest" : 'X\(//\)[^/]' \| \
27833          X"$ac_dest" : 'X\(//\)$' \| \
27834          X"$ac_dest" : 'X\(/\)' \| \
27835          .     : '\(.\)' 2>/dev/null ||
27836 echo X"$ac_dest" |
27837     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27838           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27839           /^X\(\/\/\)$/{ s//\1/; q; }
27840           /^X\(\/\).*/{ s//\1/; q; }
27841           s/.*/./; q'`
27842   { if $as_mkdir_p; then
27843     mkdir -p "$ac_dir"
27844   else
27845     as_dir="$ac_dir"
27846     as_dirs=
27847     while test ! -d "$as_dir"; do
27848       as_dirs="$as_dir $as_dirs"
27849       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27851          X"$as_dir" : 'X\(//\)[^/]' \| \
27852          X"$as_dir" : 'X\(//\)$' \| \
27853          X"$as_dir" : 'X\(/\)' \| \
27854          .     : '\(.\)' 2>/dev/null ||
27855 echo X"$as_dir" |
27856     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27857           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27858           /^X\(\/\/\)$/{ s//\1/; q; }
27859           /^X\(\/\).*/{ s//\1/; q; }
27860           s/.*/./; q'`
27861     done
27862     test ! -n "$as_dirs" || mkdir $as_dirs
27863   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27864 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27865    { (exit 1); exit 1; }; }; }
27866
27867   ac_builddir=.
27868
27869 if test "$ac_dir" != .; then
27870   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27871   # A "../" for each directory in $ac_dir_suffix.
27872   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27873 else
27874   ac_dir_suffix= ac_top_builddir=
27875 fi
27876
27877 case $srcdir in
27878   .)  # No --srcdir option.  We are building in place.
27879     ac_srcdir=.
27880     if test -z "$ac_top_builddir"; then
27881        ac_top_srcdir=.
27882     else
27883        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27884     fi ;;
27885   [\\/]* | ?:[\\/]* )  # Absolute path.
27886     ac_srcdir=$srcdir$ac_dir_suffix;
27887     ac_top_srcdir=$srcdir ;;
27888   *) # Relative path.
27889     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27890     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27891 esac
27892
27893 # Do not use `cd foo && pwd` to compute absolute paths, because
27894 # the directories may not exist.
27895 case `pwd` in
27896 .) ac_abs_builddir="$ac_dir";;
27897 *)
27898   case "$ac_dir" in
27899   .) ac_abs_builddir=`pwd`;;
27900   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27901   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27902   esac;;
27903 esac
27904 case $ac_abs_builddir in
27905 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27906 *)
27907   case ${ac_top_builddir}. in
27908   .) ac_abs_top_builddir=$ac_abs_builddir;;
27909   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27910   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27911   esac;;
27912 esac
27913 case $ac_abs_builddir in
27914 .) ac_abs_srcdir=$ac_srcdir;;
27915 *)
27916   case $ac_srcdir in
27917   .) ac_abs_srcdir=$ac_abs_builddir;;
27918   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27919   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27920   esac;;
27921 esac
27922 case $ac_abs_builddir in
27923 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27924 *)
27925   case $ac_top_srcdir in
27926   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27927   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27928   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27929   esac;;
27930 esac
27931
27932
27933   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27934 echo "$as_me: executing $ac_dest commands" >&6;}
27935   case $ac_dest in
27936     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27937   # Strip MF so we end up with the name of the file.
27938   mf=`echo "$mf" | sed -e 's/:.*$//'`
27939   # Check whether this is an Automake generated Makefile or not.
27940   # We used to match only the files named `Makefile.in', but
27941   # some people rename them; so instead we look at the file content.
27942   # Grep'ing the first line is not enough: some people post-process
27943   # each Makefile.in and add a new line on top of each file to say so.
27944   # So let's grep whole file.
27945   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27946     dirpart=`(dirname "$mf") 2>/dev/null ||
27947 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27948          X"$mf" : 'X\(//\)[^/]' \| \
27949          X"$mf" : 'X\(//\)$' \| \
27950          X"$mf" : 'X\(/\)' \| \
27951          .     : '\(.\)' 2>/dev/null ||
27952 echo X"$mf" |
27953     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27954           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27955           /^X\(\/\/\)$/{ s//\1/; q; }
27956           /^X\(\/\).*/{ s//\1/; q; }
27957           s/.*/./; q'`
27958   else
27959     continue
27960   fi
27961   # Extract the definition of DEPDIR, am__include, and am__quote
27962   # from the Makefile without running `make'.
27963   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27964   test -z "$DEPDIR" && continue
27965   am__include=`sed -n 's/^am__include = //p' < "$mf"`
27966   test -z "am__include" && continue
27967   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27968   # When using ansi2knr, U may be empty or an underscore; expand it
27969   U=`sed -n 's/^U = //p' < "$mf"`
27970   # Find all dependency output files, they are included files with
27971   # $(DEPDIR) in their names.  We invoke sed twice because it is the
27972   # simplest approach to changing $(DEPDIR) to its actual value in the
27973   # expansion.
27974   for file in `sed -n "
27975     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27976        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27977     # Make sure the directory exists.
27978     test -f "$dirpart/$file" && continue
27979     fdir=`(dirname "$file") 2>/dev/null ||
27980 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27981          X"$file" : 'X\(//\)[^/]' \| \
27982          X"$file" : 'X\(//\)$' \| \
27983          X"$file" : 'X\(/\)' \| \
27984          .     : '\(.\)' 2>/dev/null ||
27985 echo X"$file" |
27986     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27987           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27988           /^X\(\/\/\)$/{ s//\1/; q; }
27989           /^X\(\/\).*/{ s//\1/; q; }
27990           s/.*/./; q'`
27991     { if $as_mkdir_p; then
27992     mkdir -p $dirpart/$fdir
27993   else
27994     as_dir=$dirpart/$fdir
27995     as_dirs=
27996     while test ! -d "$as_dir"; do
27997       as_dirs="$as_dir $as_dirs"
27998       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27999 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28000          X"$as_dir" : 'X\(//\)[^/]' \| \
28001          X"$as_dir" : 'X\(//\)$' \| \
28002          X"$as_dir" : 'X\(/\)' \| \
28003          .     : '\(.\)' 2>/dev/null ||
28004 echo X"$as_dir" |
28005     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28006           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28007           /^X\(\/\/\)$/{ s//\1/; q; }
28008           /^X\(\/\).*/{ s//\1/; q; }
28009           s/.*/./; q'`
28010     done
28011     test ! -n "$as_dirs" || mkdir $as_dirs
28012   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28013 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28014    { (exit 1); exit 1; }; }; }
28015
28016     # echo "creating $dirpart/$file"
28017     echo '# dummy' > "$dirpart/$file"
28018   done
28019 done
28020  ;;
28021   esac
28022 done
28023 _ACEOF
28024
28025 cat >>$CONFIG_STATUS <<\_ACEOF
28026
28027 { (exit 0); exit 0; }
28028 _ACEOF
28029 chmod +x $CONFIG_STATUS
28030 ac_clean_files=$ac_clean_files_save
28031
28032
28033 # configure is writing to config.log, and then calls config.status.
28034 # config.status does its own redirection, appending to config.log.
28035 # Unfortunately, on DOS this fails, as config.log is still kept open
28036 # by configure, so config.status won't be able to write to it; its
28037 # output is simply discarded.  So we exec the FD to /dev/null,
28038 # effectively closing config.log, so it can be properly (re)opened and
28039 # appended to by config.status.  When coming back to configure, we
28040 # need to make the FD available again.
28041 if test "$no_create" != yes; then
28042   ac_cs_success=:
28043   ac_config_status_args=
28044   test "$silent" = yes &&
28045     ac_config_status_args="$ac_config_status_args --quiet"
28046   exec 5>/dev/null
28047   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28048   exec 5>>config.log
28049   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28050   # would make configure fail if this is the last instruction.
28051   $ac_cs_success || { (exit 1); exit 1; }
28052 fi
28053